Considerate Holdall

version 9 by Jon Ingold

  • Home page
  • Beginning
  • Previous



  • Example: *** Tomb Raider - An adventurer, with one backpack of varying size and a thigh-holster that will automatically accept pistols, but nothing else.

        Include Considerate Holdall by Jon Ingold.

        Rule for printing the name of the player: say "Lara".

        The player is wearing some thigh-holsters and a tiny backpack. The player is carrying a flaming torch. The backpack is an open player's holdall. The thigh-holsters are an open player's holdall. The carrying capacity of the player is 2.

        The player is holding a wearable thing called a crystal amulet. The crystal amulet has description "The Amulet of Khesh-to." A pistol is a kind of thing. The left pistol and the right pistol are pistols. Understand "gun" as a pistol. The left pistol and the right pistol are in the thigh-holsters. The carrying capacity of the backpack is 2. The fake amulet is a wearable thing in the backpack. The fake amulet has description "This amulet lacks the mystical powers of the real crystal amulet."

    A holdall rule: this simulates the magic of Lara's backpack, but only if the amulet is being worn:

        A holdall rule for the backpack when the number of things in the backpack is the carrying capacity of the backpack and the player is wearing the crystal amulet:
            increase the carrying capacity of the backpack by 1;

    Then some stashing rules.

        A stashing rule for the pistols when the considered holdall is the backpack (this is the no weapons in backpack rule):
            disallow stashing.

        A stashing rule for a pistol when taking a pistol (this is the don't exchange one pistol for another rule):
            disallow stashing.

    Two rules to ensure that only pistols go in the holsters.

        A stashing rule for the pistols when the considered holdall is the thigh-holsters (this is the stash pistols in holsters rule):
            allow stashing.

        A stashing rule for something when the considered holdall is the thigh-holsters (this is the nothing else in holsters rule):
            disallow stashing.

    A location with some goodies.

        The Temple Ruins are a room. "Triangular blocks of rubble litter the ground. Particle trails of dust sweep the air. Somewhere close by, a tiger roars. A small chamber orchestra plays orchestral music. You are panting slightly."

        The stone pedestal is a supporter in the Ruins. The ammo-pack is on the stone pedestal. The medi-pack is on the stone pedestal. The carrying capacity of the pedestal is 2. The ancient papyrus is on the stone pedestal.

    Whatever happens, the torch can't ever be stashed. And we can't put it down until we've sorted a few things out.

        The flaming torch is unstashable.

        Every turn when the ancient papyrus is on the pedestal and the torch is on the pedestal: remove the papyrus from play; say "In a flash, the papyrus is consumed by sparks from the torch."

        After dropping the flaming torch:
            end the game in death;
            say "As the torch torches the dry stone underneath, flames lick outwards in all directions! Soon you have curled up, and dropped to your knees, still burning."

    Now, our adversary, and a classic Tomb Raider solution: bullets.

        The tiger is an animal in the Temple Ruins. "There is a tiger right here! It paces backwards and forwards."

        The vine-covered arch is an open door. "An old twisted archway leads north." The arch is north of the Temple Ruins and south of the Grand Hall. Instead of going through the arch when the player can see the tiger, say "The tiger growls and roars at you!";

        Instead of inserting the ammo-pack into a pistol:
            remove the ammo-pack from play;
            say "You lock and load up."

        Shooting it with is an action applying to one thing and one carried thing.
        Understand "shoot [something] with [something]" as shooting it with.

        Instead of shooting something with something: say "No."
        Instead of shooting the tiger with the pistol when the player is not carrying two pistols: say "But Lara always shoots two-handed!"
        Instead of shooting the tiger with the pistol when the ammo-pack is not on-stage:
            say "Oh no! Your guns are out of ammo! Where are you going to find some here, in the depths of the jungle?"
        
        Instead of shooting the tiger with the pistol:
        remove the tiger from play;
        say "You pummel the tiger with bullets until it falls to the ground. A moment later - eerily - it fades from sight."

    A little hokery to try and get round the multiple object-similar name problems.

        Does the player mean taking a pistol (called the first one) when the player is carrying a pistol (called the second one): if the first one is the second one, it is very unlikely.
        Does the player mean doing something with the left pistol: it is very likely.
        Rule for clarifying the parser's choice of a pistol: do nothing instead.

    And finally, our just desserts.

        Instead of going through the arch:
            end the game in death;
            say "As you approach the arch, vicious spikes leap out from either side!"

        Test me with "i / wear amulet / shoot tiger with left pistol / take right pistol / take papyrus / take medi-pack / examine papyrus / put torch on pedestal / take all pistols / shoot tiger with left pistols / x right pistol / take medi-pack / n".

    Note the choices the system makes for stashing as you test it.