Skip to content

Be a Game Master

Rickard Edén edited this page Jan 29, 2024 · 6 revisions

There are some commands you can do beyond normal player commands that will affect the world (this will be expanded). To use them, you need to have wizard privileges. In an IF story, this is done by launching with the --wizard flag. Commands are always preceded by !.

  • 'Enrich'. By typing !enrich items in the prompt, the same generation sequence that is run at the start of an 'Anything' story will be triggered. This allows you to add more 'story' items to the world, without having to wait an eternity at the start of the game. Similarly, !enrich creatures will generate even more mob-like things for the LLM to choose from.

  • 'Add event'. This is like a powerful emote, where you can specify something happening in the location, that NPC's can react to. It will be added to their memories. Example in the 'teaparty' story:

    !add_event A Bloated Murklin slams into the window

    A Bloated Murklin slams into the window. Mad Hatter looks startled and confused as the Bloated Murklin slams into the window. “Oh dear! What in the world…?” he exclaims, his voice muffled by his oversized hat. The Duchess’s eyes narrow as she watches the Murklin through the window. “Well, well, well,” she says in a low, menacing tone. “Look what we have here.” With a flick of her wrist, she conjures up a small puff of smoke that darts towards the Murklin, obscuring its vision and temporarily blinding it. Ace of Spades glares at the Bloated Murklin, his thin lips curling into a snarl as he mutters darkly under his breath.

  • 'Set visibility'. Any object, including npcs and players, can be invisible. Invisible objects can still interact and be interacted with, but won't show up in 'look' commands and will not be fed to LLM prompts. Should be used with care. An example of when it's useful is if a Game Master doesn't want or need a physical presence. There are no fancy effects attached to the command. Usage: !set_visibility object true/false

  • 'Set description'. This allows a wizard to change the description field of anything from within the game.

    !set_description what new_description

    what can be anything

  • 'Set goal'. Set the goal for an autonomous NPC. Only viable if 'autonomous' = True

    !set_goal who new_goal

  • 'Create Item'. Adds an item to the current location. It will first search among 'catalogue' items for the story to see if it can instantiate an existing type. Failing that, it will try to parse the type among existing item classes (Food, Health, Wearable, Weapon, etc), or just create a generic Item, if it fails that.

    !create_item type/class name description