The Inform 6 Programmer's Guide

Appendix H: Standard Actions Reference

This appendix is a comprehensive reference for every action defined by the standard library. It covers the full action-processing pipeline, all action-related variables, and detailed entries for each action.

For broader discussion of how actions work, see §18 (Actions). For the grammar lines that trigger actions, see Appendix A (Grammar). For the library messages that actions produce, see Appendix C (Library Messages). For the attributes and properties that actions check, see Appendix B (Attributes and Properties).

§H.1 Introduction and Conventions

The standard library defines two categories of actions:

  • Player actions - triggered by parsed player input and defined in the library with corresponding handler routines. Standard game actions are listed alphabetically in §H.3; meta actions (game-control and debug commands) are in §H.4.
  • Fake actions - generated internally by the library to communicate between objects. They have no grammar and no *Sub routine. §H.5 lists these.

Every action, whether real or fake, is assigned a unique numeric value by the compiler. Real actions may be either meta (game-control commands that do not consume a game turn) or non-meta (in-world actions that advance the turn counter).

§H.1.1 How to Read Action Entries

Each action entry in §H.3 and §H.4 uses the following format:

ActionName

  • Routine: ActionNameSub - the default handler routine called when the action fires.
  • Meta: Yes/No - whether the action is a meta-command.
  • Grammar: The Verb lines that can trigger this action, or "None (Fake_Action)" for internally generated actions.
  • Default behavior: What the handler routine does when no before rule intercepts the action.
  • Checks performed: Conditions the handler tests before acting (e.g., checking attributes like open, container, static).
  • World-model effects: State changes the handler makes (e.g., setting attributes, moving objects).
  • Library messages: Library messages printed, referenced as L__M(##ActionName, N).
  • Related actions: Other actions commonly associated with this one, including any fake actions it generates.
  • Notes: Additional details, edge cases, or VM-specific behavior.

When a field's value spans multiple lines - the grammar listing, the numbered default-behavior steps, or the library-messages table - it appears as a block indented beneath that field's bullet.

§H.1.2 Notation Key

The following notation is used throughout this appendix:

Notation Meaning
##Action Action value constant, usable in before/after rules and switch statements
ActionSub Default handler routine for the action, called by ActionPrimitive()
L__M(##Action, N) Library message number N for the action; see Appendix C
meta Declared with Verb meta; does not consume a game turn
Fake_Action No grammar line; generated internally by the library (e.g., ##Receive)
[Z-machine] Behavior specific to the Z-machine virtual machine
[Glulx] Behavior specific to the Glulx virtual machine

For example, to intercept the Take action in a before property:

before [;
    Take: "You don't want to pick that up.";
],

And to handle the Order fake action - the one fake action dispatched through the life property (via RunLife) - in an NPC's life routine:

life [;
    Order: "~I don't take orders from the likes of you.~";
],

§H.2 Action Processing Pipeline Summary

This section documents the full action processing pipeline as implemented in the library. Understanding this pipeline is essential for writing correct before, after, react_before, react_after, and life rules.

§H.2.1 Execution Sequence

When an action fires, the library executes the following sequence (from begin_action):

  1. Save state - The current values of action, noun, and second are saved onto temporary variables.
  2. Set new values - The new action, noun, and second are installed into the globals.
  3. Debug trace - If debug_flag is set, the action and its arguments are printed to aid debugging.
  4. Before routines - For non-meta actions, BeforeRoutines() is called. If any before routine returns true, the action is intercepted, and the handler is never called.
  5. Action handler - If BeforeRoutines() returns false (action not intercepted), ActionPrimitive() is called to execute the handler.
  6. Restore state - The saved action, noun, and second are restored.

BeforeRoutines runs the following checks in order. If any routine returns true, processing stops, and the action is considered handled:

  1. GamePreRoutine() - game-wide pre-action hook.
  2. LibraryExtensions.RunWhile(ext_gamepreroutine) - extension hook.
  3. RunRoutines(player, orders) - the player object's orders property.
  4. SearchScope with REACT_BEFORE_REASON - runs the react_before property on every object currently in scope.
  5. RunRoutines(location, before) - the current location's before property.
  6. RunRoutines(inp1, before) - the first noun's before property, but only when inp1 > 1 (i.e., inp1 refers to a real object, not 0/nothing or 1/a-number).

ActionPrimitive looks up and calls the action's handler routine from the actions table:

  • [Z-machine]: (#actions_table-->action)() - direct lookup by action number.
  • [Glulx]: (#actions_table-->(action+1))() - Glulx uses an offset of 1 because entry 0 stores the table length.

AfterRoutines are called by the action handler itself (typically at the end of a successful action). The sequence is:

  1. SearchScope with REACT_AFTER_REASON - runs the react_after property on every object currently in scope.
  2. RunRoutines(location, after) - the current location's after property.
  3. RunRoutines(inp1, after) - the first noun's after property.
  4. GamePostRoutine() - game-wide post-action hook.
  5. LibraryExtensions.RunWhile(ext_gamepostroutine) - extension hook.

R_Process is the entry point the compiler emits for every <...> and <<...>> action-invocation statement (regardless of how many arguments are given):

  • <action noun second> - calls R_Process(action, noun, second), which saves inp1/inp2/actor, sets actor to the player, calls begin_action, then restores the saved state.
  • <action noun second, actor> - calls R_Process(action, noun, second, actor), which does the same but sets actor to the given actor before calling begin_action.

§H.2.2 Action Variables

The following global variables are relevant to action processing:

Variable Type Description
action Global Current action being performed
inp1 Global First input: 0 (nothing), 1 (number), or object
inp2 Global Second input: 0 (nothing), 1 (number), or object
noun Global First noun or numerical value
second Global Second noun or numerical value
actor Global Person asked to perform action
meta Global True if action is a meta-command
keep_silent Global If true, suppress default messages
reason_code Global Reason for calling a life rule
receive_action Global ##PutOn or ##Insert during Receive fake action
action_to_be Global Action from the grammar line being tested
action_reversed Global True if grammar line uses reverse
multiflag Global True during multi-object action processing
no_implicit_actions Global If true, don't perform implicit takes/opens
consult_from Global Starting word of a topic token
consult_words Global Number of words in the topic

§H.2.3 Scope Reason Constants

When SearchScope is called, it passes a reason code that determines which property is invoked on in-scope objects. The constants are:

Constant Value Purpose
PARSING_REASON 0 Normal scope search during parsing
TALKING_REASON 1 Scope search for conversation target
EACH_TURN_REASON 2 Scope search for each_turn processing
REACT_BEFORE_REASON 3 Scope search to run react_before properties
REACT_AFTER_REASON 4 Scope search to run react_after properties
LOOPOVERSCOPE_REASON 5 User-initiated LoopOverScope() call
TESTSCOPE_REASON 6 User-initiated TestScope() call

§H.2.4 RunLife and the life Property

The RunLife routine dispatches actions to an NPC's life property. Communication actions (Ask, Tell, Answer, Order) and physical interaction actions (Kiss, Attack, ThrowAt, Give, Show, WakeOther) use it.

The calling sequence is:

  1. Set reason_code to the action or fake action passed as an argument.
  2. Call RunRoutines(object, life) on the target NPC.
  3. If the life routine returns true, the action is considered handled.
  4. If it returns false, the action handler prints a default refusal message.

Inside a life property routine, the game can check reason_code - the value the life routine dispatches on - to determine which action triggered the call (for the Order fake action, for example, reason_code is ##Order while action still holds the command the NPC was told to perform):

life [;
    Give:
        if (noun == gold_coin) "The merchant accepts your payment.";
        "~I don't want that,~ says the merchant.";
    Attack:
        "The merchant ducks behind the counter!";
],

Note that Give and Show dispatch to the recipient NPC's life property via RunLife(second, ##Give) / RunLife(second, ##Show), where second is the NPC. They do not use the Receive fake action. The Receive fake action is unrelated: it is generated by PutOnSub and InsertSub (not by GiveSub/ShowSub), which run a ##Receive before check on the destination object and set the variable receive_action to ##PutOn or ##Insert so the handler can distinguish the two.

§H.3 Standard Game Actions

This section documents all non-meta game actions in alphabetical order. Each action is triggered by player input matching a grammar line and handled by a corresponding *Sub routine.

For meta actions (game-control and debug commands), see §H.4.

Answer

  • Routine: AnswerSub
  • Meta: No
  • Grammar:
    Verb 'answer' 'say' 'shout' 'speak'
        * topic 'to' creature                       -> Answer;
    
  • Default behavior:
    1. If second is non-zero, calls RunLife(second, ##Answer) to invoke the life property of the creature addressed by the player. If RunLife returns true, it handles the action and stops.
    2. If second is zero, or if RunLife returned false (the creature's life property did not handle the action), prints L__M(##Answer, 1, noun) - the default "there is no reply" message.
  • Checks performed: Whether second is non-zero before calling RunLife.
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##Answer, 1, noun) RunLife returned false - no life handler consumed the action
  • Related actions: Ask, AskFor, AskTo, Tell

Ask

  • Routine: AskSub
  • Meta: No
  • Grammar:
    Verb 'ask'
        * creature 'about' topic                    -> Ask;
    
  • Default behavior:
    1. Calls RunLife(noun, ##Ask) to invoke the life property of the creature being asked.
    2. If RunLife returns false, prints L__M(##Ask, 1, noun) - the default "there is no reply" message.
  • Checks performed: None beyond RunLife delegation to the life property.
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##Ask, 1, noun) RunLife returned false - no life handler consumed the action
  • Related actions: AskFor, AskTo, Answer, Tell

AskFor

  • Routine: AskForSub
  • Meta: No
  • Grammar:
    Verb 'ask'
        * creature 'for' noun                       -> AskFor;
    
  • Default behavior:
    1. If noun == player, the action is redirected to <<Inv, actor>> - the player is effectively asking for their own inventory.
    2. Otherwise, prints L__M(##Order, 1, noun) - the default refusal message (shared with the Order mechanism).
  • Checks performed: Compares noun against player.
  • World-model effects: None (may redirect to Inv).
  • Library messages:
    Message Condition
    L__M(##Order, 1, noun) noun is not the player - creature has no specific response
  • Related actions: Ask, Give

AskTo

  • Routine: AskToSub
  • Meta: No
  • Grammar:
    Verb 'ask'
        * creature 'to' topic                       -> AskTo
        * 'that' creature topic                     -> AskTo;
    
  • Default behavior:
    1. Prints L__M(##Order, 1, noun) - the default refusal message (shared with the Order mechanism).
  • Checks performed: None.
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##Order, 1, noun) Always (default refusal)
  • Related actions: Ask, Tell, Order (fake action)

Attack

  • Routine: AttackSub
  • Meta: No
  • Grammar:
    Verb 'attack' 'break' 'crack' 'destroy' 'fight' 'hit' 'kill'
         'murder' 'punch' 'smash' 'thump' 'torture' 'wreck'
        * noun                                      -> Attack;
    
  • Default behavior:
    1. Calls ObjectIsUntouchable(noun) - if the noun cannot be touched, the action stops early.
    2. If noun has the animate attribute, calls RunLife(noun, ##Attack) to let the creature's life property respond.
    3. If RunLife returns false (or the noun is not animate), prints L__M(##Attack, 1, noun).
  • Checks performed:
    Check Detail
    Touchability ObjectIsUntouchable(noun)
    animate Determines whether RunLife is called
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##Attack, 1, noun) RunLife returned false, or noun is not animate
  • Related actions: None directly; creature responses are handled via life.

Blow

  • Routine: BlowSub

  • Meta: No

  • Grammar:

    Verb 'blow'
        * held                                      -> Blow;
    
  • Default behavior:

    1. Prints L__M(##Blow, 1, noun).

    This is a pure stub - it performs no checks and changes no state. Override it in a before rule or the object's before property to implement custom behavior (e.g., blowing a whistle).

  • Checks performed: None.

  • World-model effects: None.

  • Library messages:

    Message Condition
    L__M(##Blow, 1, noun) Always
  • Related actions: None.

Burn

  • Routine: BurnSub

  • Meta: No

  • Grammar:

    Verb 'burn' 'light'
        * noun                                      -> Burn
        * noun 'with' held                          -> Burn;
    
  • Default behavior:

    1. If noun has the animate attribute, prints L__M(##Burn, 2, noun) (you can't set fire to a living creature) and returns.
    2. Otherwise prints L__M(##Burn, 1, noun) (a generic refusal).

    This is a stub - it does not actually burn anything. Override to implement combustion.

  • Checks performed:

    Check Detail
    animate Selects which refusal message to print
  • World-model effects: None.

  • Library messages:

    Message Condition
    L__M(##Burn, 1, noun) noun is not animate
    L__M(##Burn, 2, noun) noun has animate
  • Related actions: None.

Buy

  • Routine: BuySub

  • Meta: No

  • Grammar:

    Verb 'buy' 'purchase'
        * noun                                      -> Buy;
    
  • Default behavior:

    1. Prints L__M(##Buy, 1, noun).

    This is a pure stub. Override to implement commerce.

  • Checks performed: None.

  • World-model effects: None.

  • Library messages:

    Message Condition
    L__M(##Buy, 1, noun) Always
  • Related actions: None.

Climb

  • Routine: ClimbSub

  • Meta: No

  • Grammar:

    Verb 'climb' 'scale'
        * noun                                      -> Climb
        * 'up'/'over' noun                          -> Climb;
    
  • Default behavior:

    1. If noun has the animate attribute, prints L__M(##Climb, 2, noun) and returns.
    2. Otherwise prints L__M(##Climb, 1, noun).

    This is a stub. Override to let the player climb specific objects.

  • Checks performed:

    Check Detail
    animate Selects which refusal message to print
  • World-model effects: None.

  • Library messages:

    Message Condition
    L__M(##Climb, 1, noun) noun is not animate
    L__M(##Climb, 2, noun) noun has animate
  • Related actions: None.

Close

  • Routine: CloseSub
  • Meta: No
  • Grammar:
    Verb 'close' 'cover' 'shut'
        * noun                                      -> Close
        * 'up' noun                                 -> Close;
    
  • Default behavior:
    1. Calls ObjectIsUntouchable(noun) - aborts if the noun cannot be touched.
    2. If noun does not have the openable attribute, prints L__M(##Close, 1, noun) (can't be closed).
    3. If noun does not have the open attribute (already closed), prints L__M(##Close, 2, noun).
    4. Otherwise, gives noun ~open (clears the open attribute).
    5. Calls AfterRoutines(). If not intercepted and not keep_silent, prints L__M(##Close, 3, noun) (success confirmation).
  • Checks performed:
    Check Detail
    Touchability ObjectIsUntouchable(noun)
    openable Must be present to attempt closing
    open Must be set - object must currently be open
  • World-model effects:
    Effect Detail
    give noun ~open Clears the open attribute on noun
  • Library messages:
    Message Condition
    L__M(##Close, 1, noun) noun is not openable
    L__M(##Close, 2, noun) noun is already closed (hasnt open)
    L__M(##Close, 3, noun) Success - noun is now closed
  • Related actions: Open

Consult

  • Routine: ConsultSub

  • Meta: No

  • Grammar:

    Verb 'consult'
        * noun 'about' topic                        -> Consult
        * noun 'on' topic                           -> Consult;
    
  • Default behavior:

    1. Prints L__M(##Consult, 1, noun).

    This is a pure stub. The topic text the player types is available via the globals consult_from (the word number where the topic begins) and consult_words (the number of words in the topic). Override the object's before property to implement look-up behavior (e.g., consulting a book about a subject).

  • Checks performed: None.

  • World-model effects: None.

  • Library messages:

    Message Condition
    L__M(##Consult, 1, noun) Always
  • Related actions: None.

Cut

  • Routine: CutSub

  • Meta: No

  • Grammar:

    Verb 'cut' 'chop' 'prune' 'slice'
        * noun                                      -> Cut;
    
  • Default behavior:

    1. If noun has the animate attribute, prints L__M(##Cut, 2, noun) and returns.
    2. Otherwise prints L__M(##Cut, 1, noun).

    This is a stub. Override to implement cutting.

  • Checks performed:

    Check Detail
    animate Selects which refusal message to print
  • World-model effects: None.

  • Library messages:

    Message Condition
    L__M(##Cut, 1, noun) noun is not animate
    L__M(##Cut, 2, noun) noun has animate
  • Related actions: None.

Dig

  • Routine: DigSub

  • Meta: No

  • Grammar:

    Verb 'dig'
        * noun                                      -> Dig
        * noun 'with' held                          -> Dig
        * 'in' noun                                 -> Dig
        * 'in' noun 'with' held                     -> Dig;
    
  • Default behavior:

    1. Prints L__M(##Dig, 1, noun).

    This is a pure stub. Override to implement digging.

  • Checks performed: None.

  • World-model effects: None.

  • Library messages:

    Message Condition
    L__M(##Dig, 1, noun) Always
  • Related actions: None.

Disrobe

  • Routine: DisrobeSub
  • Meta: No
  • Grammar:
    Verb 'disrobe' 'doff' 'shed'
        * multi                                     -> Disrobe;
    
    Verb 'remove'
        * worn                                      -> Disrobe;
    
    Verb 'take'
        * 'off' multiheld                           -> Disrobe;
    
  • Default behavior:
    1. Calls ObjectIsUntouchable(noun) - aborts if the noun cannot be touched.
    2. If noun hasnt clothing, prints L__M(##Disrobe, 1, noun).
    3. If noun has clothing but hasnt worn, also prints L__M(##Disrobe, 1, noun).
    4. Otherwise, gives noun ~worn (clears the worn attribute).
    5. Calls AfterRoutines(). If not intercepted and not keep_silent, prints L__M(##Disrobe, 2, noun) (success).
  • Checks performed:
    Check Detail
    Touchability ObjectIsUntouchable(noun)
    clothing Must be present - object must be a garment
    worn Must be set - object must currently be worn
  • World-model effects:
    Effect Detail
    give noun ~worn Clears the worn attribute on noun
  • Library messages:
    Message Condition
    L__M(##Disrobe, 1, noun) noun hasnt clothing, or noun has clothing && hasnt worn (the same message handles both refusals)
    L__M(##Disrobe, 2, noun) Success - noun was taken off
  • Related actions: Wear

Drink

  • Routine: DrinkSub

  • Meta: No

  • Grammar:

    Verb 'drink' 'sip' 'swallow'
        * noun                                      -> Drink;
    
  • Default behavior:

    1. Prints L__M(##Drink, 1, noun).

    This is a pure stub. Override to implement drinking.

  • Checks performed: None.

  • World-model effects: None.

  • Library messages:

    Message Condition
    L__M(##Drink, 1, noun) Always
  • Related actions: None.

Drop

  • Routine: DropSub
  • Meta: No
  • Grammar:
    Verb 'drop' 'discard'
        * multiheld                                 -> Drop;
    
    Verb 'put'
        * 'down' multiheld                          -> Drop
        * multiheld 'down'                          -> Drop;
    
  • Default behavior:
    1. If noun == actor, prints L__M(##PutOn, 4, noun) (you can't drop yourself) and returns.
    2. If noun is already in parent(actor) (already on the floor / in the current location), prints L__M(##Drop, 1, noun).
    3. If noun has the worn attribute and no_implicit_actions is set, prints L__M(##Disrobe, 4, noun) and stops. Otherwise, if noun has worn, calls ImplicitDisrobe(noun) to silently remove the garment first.
    4. If noun is not in the actor after implicit operations, prints L__M(##Drop, 4, noun, parent(noun)) or L__M(##Miscellany, 58).
    5. Moves noun to parent(actor) (drops it into the actor's immediate environment).
    6. Calls AfterRoutines(). If not intercepted and not keep_silent, prints L__M(##Drop, 3, noun) (success confirmation).
  • Checks performed:
    Check Detail
    Self-reference noun == actor
    Already dropped noun in parent(actor)
    worn If set, triggers implicit disrobing
    Possession noun must still be in actor after implicit actions
  • World-model effects:
    Effect Detail
    move noun to parent(actor) Object is placed in the actor's containing room or object
    give noun ~worn (via ImplicitDisrobe, if applicable)
  • Library messages:
    Message Condition
    L__M(##PutOn, 4, noun) Trying to drop yourself
    L__M(##Drop, 1, noun) noun is already in parent(actor)
    L__M(##Disrobe, 4, noun) noun is worn and no_implicit_actions is set
    L__M(##Drop, 4, noun, parent(noun)) noun is not held after implicit operations (when no_implicit_actions is set)
    L__M(##Miscellany, 58) noun is not held after implicit operations (when implicit actions are allowed)
    L__M(##Drop, 3, noun) Success - object dropped
  • Related actions: Take, PutOn, Insert, Transfer

Eat

  • Routine: EatSub
  • Meta: No
  • Grammar:
    Verb 'eat'
        * held                                      -> Eat;
    
  • Default behavior:
    1. Calls ObjectIsUntouchable(noun) - aborts if the noun cannot be touched.
    2. If noun does not have the edible attribute, prints L__M(##Eat, 1, noun) (not edible).
    3. If noun has the worn attribute, calls ImplicitDisrobe() to silently remove the garment first.
    4. Removes noun from the game entirely (remove noun - the object is destroyed/consumed).
    5. Calls AfterRoutines(). If not intercepted and not keep_silent, prints L__M(##Eat, 2, noun) (success confirmation).
  • Checks performed:
    Check Detail
    Touchability ObjectIsUntouchable(noun)
    edible Must be present - object must be edible
    worn If set, triggers implicit disrobing
  • World-model effects:
    Effect Detail
    remove noun Object is removed from the object tree (destroyed)
    give noun ~worn (via ImplicitDisrobe, if applicable)
  • Library messages:
    Message Condition
    L__M(##Eat, 1, noun) noun is not edible
    L__M(##Eat, 2, noun) Success - object has been eaten
  • Related actions: None.

Empty

  • Routine: EmptySub

  • Meta: No

  • Grammar:

    Verb 'empty'
        * noun                                      -> Empty
        * 'out' noun                                -> Empty
        * noun 'out'                                -> Empty;
    
  • Default behavior:

    1. Sets second to d_obj (the default object representing the ground/floor).
    2. Falls through to EmptyTSub to perform the actual emptying.

    This routine is a thin wrapper that supplies a default destination (the ground) before delegating to EmptyT.

  • Checks performed: None (delegated to EmptyTSub).

  • World-model effects: None directly (delegated to EmptyTSub).

  • Library messages: None directly (all messages are produced by EmptyTSub).

  • Related actions: EmptyT

EmptyT

  • Routine: EmptyTSub
  • Meta: No
  • Grammar:
    Verb 'empty'
        * noun 'to'/'into'/'on'/'onto' noun         -> EmptyT;
    
  • Default behavior:
    1. If noun == second, prints L__M(##EmptyT, 4) (can't empty something into itself) and stops.
    2. Calls ObjectIsUntouchable(noun) - aborts if the noun cannot be touched.
    3. If noun does not have the container attribute, prints L__M(##EmptyT, 1, noun) (not a container) and stops.
    4. If noun does not have the open attribute, calls ImplicitOpen(noun) to try to open the container; if the open attempt fails, prints L__M(##EmptyT, 2, noun) (container is closed) and stops.
    5. Validates second as a legal destination: if second ~= d_obj, checks that second has supporter or container (and is open), printing L__M(##EmptyT, 1, second) or L__M(##EmptyT, 2, second) on failure.
    6. If noun has no children (is already empty), prints L__M(##EmptyT, 3, noun).
    7. Otherwise, loops through all children of noun and issues <Transfer child second, actor> (a single-bracket invocation, so the loop continues) for each, moving every item to the destination.
  • Checks performed:
    Check Detail
    Self-reference noun == second
    Touchability ObjectIsUntouchable(noun) on the source container
    container noun must be a container
    open noun must be open (or implicitly openable)
    supporter / container second must be a valid destination
    Children noun must have at least one child
  • World-model effects:
    Effect Detail
    Transfer all children Each child of noun is moved to second via the Transfer action
  • Library messages:
    Message Condition
    L__M(##EmptyT, 1, noun) noun is not a container
    L__M(##EmptyT, 2, noun) noun is closed and ImplicitOpen failed
    L__M(##EmptyT, 3, noun) noun is already empty (no children)
    L__M(##EmptyT, 4) noun == second (emptying into itself)
  • Related actions: Empty, Transfer

Enter

  • Routine: EnterSub
  • Meta: No
  • Grammar:
    Verb 'enter' 'cross'
        * noun                                      -> Enter;
    
    Verb 'get'
        * 'in'/'into'/'on'/'onto' noun              -> Enter;
    
    Verb 'sit' 'lie'
        * 'on' 'top' 'of' noun                      -> Enter
        * 'on'/'in'/'inside' noun                   -> Enter;
    
    Verb 'stand'
        * 'on' noun                                 -> Enter;
    
  • Default behavior:
    1. If noun has the door attribute or is in the Compass (a direction object): when the verb was stand/sit/lie, print L__M(##Enter, 2, noun, verb_word); otherwise redirect to <<Go noun>>.
    2. If the actor is already inside noun, print L__M(##Enter, 1, noun).
    3. If noun does not have the enterable attribute, print L__M(##Enter, 2, noun, verb_word).
    4. If the actor and noun have different parents, navigate the object tree via CommonAncestor(). If there is no usable ancestor, print L__M(##Enter, 4, noun) ("can only get into something free-standing"); otherwise step the actor out of nested objects (printing L__M(##Enter, 6, ...), "getting off/out of") and into intermediate objects (printing L__M(##Enter, 7, ...), "getting onto/into") as needed.
    5. If noun has container but not open, call ImplicitOpen(noun); if it cannot be opened, print L__M(##Enter, 3, noun) ("can't get into the closed ...") and stop.
    6. Move the actor into noun (move actor to noun).
    7. Run AfterRoutines(); if it does not intercept (and the action is not silent), print L__M(##Enter, 5, noun) ("gets onto/into ...") and, when the actor is the player, call Locale(noun).
  • Checks performed:
    Check Detail
    door Redirects to Go if present
    Compass membership Redirects to Go if noun is a direction
    Already inside Actor's parent is noun
    enterable Must be present on noun
    container If present, open must also be set (or implicitly opened)
    Ancestry CommonAncestor() navigates nested containment
  • World-model effects:
    Effect Detail
    move actor to noun Actor is placed inside or on top of noun
  • Library messages:
    Message Condition
    L__M(##Enter, 1, noun) Actor is already in/on noun
    L__M(##Enter, 2, noun) noun is not enterable (or a door/direction with sit/stand/lie)
    L__M(##Enter, 3, noun) noun is a closed container that could not be opened
    L__M(##Enter, 4, noun) noun is not free-standing (no usable common ancestor)
    L__M(##Enter, 5, noun) Success - actor gets onto/into noun (supporter or container)
    L__M(##Enter, 6, noun) Implicit-exit message while leaving a nested object ("getting off/out of")
    L__M(##Enter, 7, noun) Implicit-entry message while entering an intermediate object ("getting onto/into")
  • Related actions: Exit, GetOff, Go

Examine

  • Routine: ExamineSub
  • Meta: No
  • Grammar:
    Verb 'examine' 'x//' 'check' 'describe' 'watch'
        * noun                                      -> Examine;
    
    Verb 'read'
        * noun                                      -> Examine;
    
    Verb 'look' 'l//'
        * 'at' noun                                 -> Examine
        * noun=ADirection                           -> Examine
        * 'to' noun=ADirection                      -> Examine;
    
  • Default behavior:
    1. If location == thedark, prints L__M(##Examine, 1, noun) (too dark to see) and returns.
    2. If noun provides a description property, calls PrintOrRun(noun, description) to display it, then calls AfterRoutines() and returns.
    3. If noun has the container attribute:
      • If noun is open or transparent, redirects to <<Search noun>> to list the container's contents.
      • Otherwise (the container is closed and not transparent), prints L__M(##Search, 5, noun) ("you can't see inside, since it is closed") and stops.
    4. If noun has the switchable attribute, prints L__M(##Examine, 3, noun) reporting whether the device is switched on or off.
    5. Otherwise prints L__M(##Examine, 2, noun) (nothing special about the noun).
  • Checks performed:
    Check Detail
    Darkness location == thedark
    description property Checked first - if provided, it is printed
    container + (open or transparent) Triggers <<Search noun>> to list contents
    container (closed and opaque) Prints L__M(##Search, 5, noun) - "can't see inside"
    switchable Reports on/off state if no description is provided
  • World-model effects: None (purely informational).
  • Library messages:
    Message Condition
    L__M(##Examine, 1, noun) Too dark to examine anything
    L__M(##Examine, 2, noun) No description property and no special attributes
    L__M(##Examine, 3, noun) noun has switchable - reports on/off state
    L__M(##Search, 5, noun) noun is a closed, opaque container - "can't see inside, since it is closed"
  • Related actions: Search, LookUnder

Exit

  • Routine: ExitSub
  • Meta: No
  • Grammar:
    Verb 'exit' 'out' 'outside'
        *                                           -> Exit
        * noun                                      -> Exit;
    
    Verb 'stand'
        *                                           -> Exit
        * 'up'                                      -> Exit;
    
  • Default behavior:
    1. If noun is specified and does not match the actor's current container (noun ~= parent(actor)), prints L__M(##Exit, 4, noun) and stops.
    2. Determines the actor's immediate container p = parent(actor).
    3. If p == location (actor is directly in the room, not inside any object):
      • If the actor has a posture set, clears it and prints L__M(##Exit, 6).
      • If real_location provides an out_to property, redirects to <<Go out_obj>>.
      • Otherwise prints L__M(##Exit, 1) (no obvious exit).
    4. If p has container but not open, calls ImplicitOpen(p) to silently open the container; if that fails, prints L__M(##Exit, 2, p) and stops.
    5. Calls RunRoutines(p, before) with the action set to ##Exit to let the container run before-rules.
    6. Moves the actor to parent(p) (one level up in the object tree).
    7. Clears the player's posture property if the player provides one (player.posture = 0).
    8. Calls AfterRoutines() (returning early if it or keep_silent is true). Otherwise prints L__M(##Exit, 3, p), then - only when actor == player and p has container - calls LookSub(1) to redisplay the room description.
  • Checks performed:
    Check Detail
    noun specified If so, delegates to noun's handler
    p == location Determines room-exit vs. object-exit behavior
    out_to property On real_location, used for room exits
    container + open If p is a closed container, attempts implicit open
    posture property Cleared on exit (player.posture = 0)
  • World-model effects:
    Effect Detail
    move actor to parent(p) Actor moves out of the current container/supporter
    Clear posture Posture property reset if present
  • Library messages:
    Message Condition
    L__M(##Exit, 1) In a room with no out_to - no obvious exit
    L__M(##Exit, 2) Cannot exit closed container (implicit open failed)
    L__M(##Exit, 3) Leaving a container - narration
    L__M(##Exit, 4, noun) noun is specified but is not the actor's current container - "[Actor] isn't in/on [the noun]."
    L__M(##Exit, 5, p) Implicit-exit narration (printed when leaving p as a side-effect)
    L__M(##Exit, 6) Actor had a posture set and it was cleared on standing up
  • Related actions: Enter, GetOff, Go

Fill

  • Routine: FillSub

  • Meta: No

  • Grammar:

    Verb 'fill'
        * noun                         -> Fill
        * noun 'from' noun             -> Fill;
    
  • Default behavior:

    1. If second == nothing, print L__M(##Fill, 1, noun).
    2. Otherwise print L__M(##Fill, 2, noun, second).

    This is a pure stub action - it performs no world-model changes and exists only to provide a default refusal message that the author can override with before or react_before rules.

  • Checks performed: none

  • World-model effects: none

  • Library messages:

    Message Condition
    L__M(##Fill, 1) No second noun specified - default refusal
    L__M(##Fill, 2) A second noun was specified - default refusal
  • Related actions: -

GetOff

  • Routine: GetOffSub
  • Meta: No
  • Grammar:
    Verb 'get'
        * 'off' noun                   -> GetOff;
    
  • Default behavior:
    1. If parent(actor) == noun (the actor is on/in the noun), redirect to <<Exit, actor>>.
    2. Otherwise print L__M(##GetOff, 1, noun) ("But you aren't on that.").
  • Checks performed: parent(actor) relationship
  • World-model effects: none (delegates to Exit)
  • Library messages:
    Message Condition
    L__M(##GetOff, 1) Actor is not on/in the noun
  • Related actions: Exit, Enter

Give

  • Routine: GiveSub

  • Meta: No

  • Grammar:

    Verb 'give' 'feed' 'offer' 'pay'
        * creature held                -> Give reverse
        * held 'to' creature           -> Give
        * 'over' held 'to' creature    -> Give;
    

    The reverse token on the first grammar line swaps noun and second so that internally the held object is always noun and the creature is always second.

  • Default behavior:

    1. If noun is not in actor, call ImplicitTake(noun); if that fails to acquire it, print L__M(##Give, 1, noun) ("[Actor] isn't holding [the noun].") and stop.
    2. If second == actor (trying to give an object to oneself), print L__M(##Give, 2, noun) ("[Actor] juggles [the noun] for a while, but doesn't achieve much.") and stop.
    3. If noun has worn, call ImplicitDisrobe(noun); if the object must still be removed, stop.
    4. If second == player (an NPC giving to the player), move noun to player and print L__M(##Give, 4, noun) ("[Actor] hands over [the noun].").
    5. Otherwise call RunLife(second, ##Give); if it does not handle the action, print L__M(##Give, 3, second) ("[recipient] doesn't seem interested.").
  • Checks performed: parent relationships, worn attribute

  • World-model effects: move noun to player (when an NPC gives to the player)

  • Library messages:

    Message Condition
    L__M(##Give, 1) noun not held and the implicit take failed
    L__M(##Give, 2) Trying to give an object to oneself (second == actor)
    L__M(##Give, 3) Recipient's life routine did not handle the action
    L__M(##Give, 4) NPC successfully gives object to the player
  • Related actions: GiveR, Show, AskFor

GiveR

  • Routine: GiveRSub
  • Meta: No
  • Grammar: (no direct grammar - reached via internal routing when the reverse token swaps arguments)
  • Default behavior:
    1. Redirect to <Give second noun, actor> (swap the two arguments back and re-enter GiveSub).
  • Checks performed: none
  • World-model effects: none (delegates to Give)
  • Library messages: none
  • Related actions: Give

Go

  • Routine: GoSub
  • Meta: No
  • Grammar:
    Verb 'go' 'run' 'walk'
        * noun=ADirection              -> Go;
    
  • Default behavior:
    1. If second is set, is not in Compass, and is untouchable, stop (a reachability check used by PushDir).
    2. If the actor is inside another object (not directly in the location), run that object's before; then call ImplicitExit() to extract the actor. If the exit fails, print L__M(##Go, 1, container) ("[Actor] will have to get off/out of [it] first") and stop. (If before returned 1, the actor instead travels together with that object.)
    3. Determine the destination. If the direction object noun has a door_dir, follow it to the relevant map property; otherwise use noun directly. Evaluate that direction property on the location.
    4. If the destination is a string, print it and stop. If it is a routine, run it (a return of 1 stops silently).
    5. If the destination is nothing/0: if the location has a cant_go, print it via PrintOrRun; otherwise print L__M(##Go, 2) ("[Actor] can't go that way"). Stop.
    6. If the destination is a door:
      • If the door has concealed, print L__M(##Go, 2) and stop.
      • If the door is not open, attempt ImplicitOpen; if that fails, print L__M(##Go, 3) when noun is u_obj ("unable to climb"), L__M(##Go, 4) when noun is d_obj ("unable to descend by"), or otherwise L__M(##Go, 5) ("...is in the way"), and stop.
      • Evaluate door_to; if it yields 0, print L__M(##Go, 6) ("...leads nowhere") and stop; a return of 1 stops silently; otherwise it becomes the destination.
    7. Set action to the ##Going fake action and run the destination's before. If intercepted, restore action and stop; otherwise restore action to ##Go.
    8. Move the actor (or the object it travels with) to the destination. If the actor is not the player, print L__M(##Go, 7) ("[Actor] departs") and stop.
    9. Update location, call MoveFloatingObjects(), handle light/darkness transitions (including DarkToDark()). Then, with action temporarily set to ##Going, call RunRoutines(prev_location, after) to let the departure room intercept via its after property; if that returns true, restore action to ##Go and stop. Otherwise restore action to ##Go, run AfterRoutines(), and print the new room with LookSub(1).
  • Checks performed: door, concealed, open attributes; direction properties (n_to, s_to, etc.); cant_go; door_to; door_dir; parent relationships
  • World-model effects: moves actor to next_loc; updates location/real_location; may trigger darkness
  • Library messages:
    Message Condition
    L__M(##Go, 1) Actor can't first leave a nested container/supporter (implicit exit failed)
    L__M(##Go, 2) No exit that way (or the connecting door is concealed)
    L__M(##Go, 3) A u_obj (up) door won't open - "unable to climb"
    L__M(##Go, 4) A d_obj (down) door won't open - "unable to descend by"
    L__M(##Go, 5) Some other unopenable door is in the way
    L__M(##Go, 6) The door's door_to leads nowhere
    L__M(##Go, 7) An NPC departs (actor is not the player)
  • Related actions: GoIn, VagueGo, Enter, Exit

GoIn

  • Routine: GoInSub
  • Meta: No
  • Grammar:
    Verb 'enter' 'cross'
        *                              -> GoIn
        * noun                         -> Enter;
    Verb 'go' 'run' 'walk'
        * 'in'/'inside'               -> GoIn;
    Verb 'in' 'inside'
        *                              -> GoIn;
    
  • Default behavior:
    1. Redirect to <<Go in_obj, actor>>.
  • Checks performed: none
  • World-model effects: none (delegates to Go)
  • Library messages: none
  • Related actions: Go, Enter

Insert

  • Routine: InsertSub
  • Meta: No
  • Grammar:
    Verb 'drop' 'discard'
        * multiexcept 'in'/'into'/'down' noun  -> Insert;
    Verb 'insert'
        * multiexcept 'in'/'into' noun          -> Insert;
    Verb 'put'
        * multiexcept 'in'/'inside'/'into' noun -> Insert;
    
  • Default behavior:
    1. Sets receive_action = ##Insert.
    2. If second == d_obj (the "down" direction object) or actor in second, redirect to <<Drop noun, actor>>.
    3. If parent(noun) == second (already inside), print L__M(##Drop, 1, noun).
    4. Call ImplicitTake(noun). If the actor still does not hold noun, print L__M(##Insert, 1, noun).
    5. Compute ancestor = CommonAncestor(noun, second). If ancestor == noun (recursive containment), print L__M(##Insert, 5, noun).
    6. Call ObjectIsUntouchable(second) - if untouchable, stop.
    7. If second is outside the common ancestor, temporarily set action to ##Receive and call RunRoutines(second, before). Restore action to ##Insert. If second has container && second hasnt open, call ImplicitOpen(second); if it returns true, print L__M(##Insert, 3, second) (the container is closed).
    8. If second hasnt container, print L__M(##Insert, 2, second).
    9. If noun has worn and no_implicit_actions is set, print L__M(##Disrobe, 4, noun).
    10. If noun has worn, call ImplicitDisrobe(noun).
    11. Call ObjectDoesNotFit(noun, second) (and the extension hook); if either returns true, stop.
    12. If AtFullCapacity(noun, second), print L__M(##Insert, 7, second).
    13. Move noun to second.
    14. Call AfterRoutines(). If intercepted, return.
    15. If second is outside the common ancestor, temporarily set action to ##Receive and call RunRoutines(second, after).
    16. If multiflag is set, print L__M(##Insert, 8, noun) ("Done."). Otherwise print L__M(##Insert, 9, noun, second) (success).
  • Checks performed: container, open, worn attributes; parent relationships; capacity
  • World-model effects: move noun to second; sets receive_action = ##Insert
  • Library messages:
    Message Condition
    L__M(##Drop, 1, noun) noun is already inside second
    L__M(##Insert, 1, noun) Implicit take of noun failed; actor is not holding it
    L__M(##Insert, 2, second) second is not a container
    L__M(##Insert, 3, second) second is a closed container (after a failed implicit-open)
    L__M(##Insert, 5, noun) Trying to put noun inside itself
    L__M(##Insert, 7, second) second is at full capacity
    L__M(##Insert, 8, noun) Multi-object success ("Done.")
    L__M(##Insert, 9, noun, second) Single-object success
    L__M(##Disrobe, 4, noun) noun is worn and no_implicit_actions is set
  • Related actions: PutOn, Drop, Transfer, Remove, Receive (fake)

Inv

  • Routine: InvSub
  • Meta: No
  • Grammar:
    Verb 'inventory' 'inv' 'i//'
        *                              -> Inv;
    Verb 'carry'
        * 'inventory'                  -> Inv;
    Verb 'hold'
        * 'inventory'                  -> Inv;
    Verb 'take'
        * 'inventory'                  -> Inv;
    
  • Default behavior:
    1. If child(actor) == 0 (nothing carried), print L__M(##Inv, 1) ("[Actor] is carrying nothing") and return.
    2. If inventory_style == 0, redirect to InvTallSub() when actor == player, or InvWideSub() for an NPC, and return.
    3. Print L__M(##Inv, 2) ("[Actor] is carrying") as the header.
    4. If inventory_style & NEWLINE_BIT, print L__M(##Inv, 3) (a ":" separator); otherwise print a space.
    5. Call WriteListFrom(child(actor), inventory_style, 1) to list the actor's possessions.
    6. If inventory_style & ENGLISH_BIT, print L__M(##Inv, 4) (a "." footer).
    7. Update pronouns via PronounNotice(), then call AfterRoutines().
  • Checks performed: child(actor), inventory_style, actor == player
  • World-model effects: none (informational only)
  • Library messages:
    Message Condition
    L__M(##Inv, 1) Actor is carrying nothing
    L__M(##Inv, 2) Inventory header ("[Actor] is carrying")
    L__M(##Inv, 3) ":" separator (printed when inventory_style & NEWLINE_BIT)
    L__M(##Inv, 4) "." footer (printed when inventory_style & ENGLISH_BIT)
  • Related actions: InvTall, InvWide

InvTall

  • Routine: InvTallSub
  • Meta: No
  • Grammar:
    Verb 'inventory' 'inv' 'i//'
        * 'tall'                       -> InvTall;
    
  • Default behavior:
    1. Set inventory_style to NEWLINE_BIT + INDENT_BIT + FULLINV_BIT + RECURSE_BIT (or a variant if actor ~= player).
    2. Redirect to <Inv, actor>.
  • Checks performed: none
  • World-model effects: sets inventory_style
  • Library messages: none (delegates to Inv)
  • Related actions: Inv, InvWide

InvWide

  • Routine: InvWideSub
  • Meta: No
  • Grammar:
    Verb 'inventory' 'inv' 'i//'
        * 'wide'                       -> InvWide;
    
  • Default behavior:
    1. Set inventory_style to ENGLISH_BIT + FULLINV_BIT + RECURSE_BIT (or a variant if actor ~= player).
    2. Redirect to <Inv, actor>.
  • Checks performed: none
  • World-model effects: sets inventory_style
  • Library messages: none (delegates to Inv)
  • Related actions: Inv, InvTall

Jump

  • Routine: JumpSub

  • Meta: No

  • Grammar:

    Verb 'jump' 'hop' 'skip'
        *                              -> Jump;
    
  • Default behavior:

    1. Print L__M(##Jump, 1, noun).

    This is a pure stub action - it performs no world-model changes and exists only to provide a default refusal message.

  • Checks performed: none

  • World-model effects: none

  • Library messages:

    Message Condition
    L__M(##Jump, 1) Default refusal
  • Related actions: JumpIn, JumpOn, JumpOver

JumpIn

  • Routine: JumpInSub
  • Meta: No
  • Grammar:
    Verb 'jump' 'hop' 'skip'
        * 'in' noun                    -> JumpIn
        * 'into' noun                  -> JumpIn;
    
  • Default behavior:
    1. If noun has animate, print L__M(##JumpIn, 2, noun).
    2. If noun has enterable, redirect to <<Enter noun>>.
    3. Otherwise print L__M(##JumpIn, 1, noun).
  • Checks performed: animate, enterable attributes
  • World-model effects: none (may delegate to Enter)
  • Library messages:
    Message Condition
    L__M(##JumpIn, 1) Noun is not enterable
    L__M(##JumpIn, 2) Noun is animate
  • Related actions: JumpOn, JumpOver, Enter

JumpOn

  • Routine: JumpOnSub
  • Meta: No
  • Grammar:
    Verb 'jump' 'hop' 'skip'
        * 'on' noun                    -> JumpOn
        * 'upon' noun                  -> JumpOn;
    
  • Default behavior:
    1. If noun has animate, print L__M(##JumpOn, 2, noun).
    2. If noun has enterable and noun has supporter, redirect to <<Enter noun>>.
    3. Otherwise print L__M(##JumpOn, 1, noun).
  • Checks performed: animate, enterable, supporter attributes
  • World-model effects: none (may delegate to Enter)
  • Library messages:
    Message Condition
    L__M(##JumpOn, 1) Noun is not an enterable supporter
    L__M(##JumpOn, 2) Noun is animate
  • Related actions: JumpIn, JumpOver, Enter

JumpOver

  • Routine: JumpOverSub

  • Meta: No

  • Grammar:

    Verb 'jump' 'hop' 'skip'
        * 'over' noun                  -> JumpOver;
    
  • Default behavior:

    1. If noun has animate, print L__M(##JumpOver, 2, noun).
    2. Otherwise print L__M(##JumpOver, 1, noun).

    This is a pure stub action; it provides default refusal messages and makes no world-model changes.

  • Checks performed: animate attribute

  • World-model effects: none

  • Library messages:

    Message Condition
    L__M(##JumpOver, 1) Default refusal
    L__M(##JumpOver, 2) Noun is animate
  • Related actions: JumpIn, JumpOn

Kiss

  • Routine: KissSub
  • Meta: No
  • Grammar:
    Verb 'kiss' 'embrace' 'hug'
        * creature                     -> Kiss;
    
  • Default behavior:
    1. Call ObjectIsUntouchable(noun) - if untouchable, stop.
    2. Call RunLife(noun, ##Kiss); if it handles the action, stop.
    3. If noun == actor, print L__M(##Touch, 3, noun) (self-interaction message shared with Touch).
    4. Otherwise print L__M(##Kiss, 1, noun).
  • Checks performed: self-reference (noun == actor)
  • World-model effects: none
  • Library messages:
    Message Condition
    L__M(##Touch, 3) Kissing yourself
    L__M(##Kiss, 1) Creature's life routine did not handle the action
  • Related actions: Touch

Listen

  • Routine: ListenSub

  • Meta: No

  • Grammar:

    Verb 'listen' 'hear'
        *                              -> Listen
        * noun                         -> Listen
        * 'to' noun                    -> Listen;
    
  • Default behavior:

    1. Print L__M(##Listen, 1, noun).

    This is a pure stub action - it performs no world-model changes and exists only to provide a default refusal message.

  • Checks performed: none

  • World-model effects: none

  • Library messages:

    Message Condition
    L__M(##Listen, 1) Default refusal
  • Related actions: -

Lock

  • Routine: LockSub
  • Meta: No
  • Grammar:
    Verb 'lock'
        * noun 'with' held             -> Lock;
    
  • Default behavior:
    1. Call ObjectIsUntouchable(noun) - if untouchable, stop.
    2. If noun hasnt lockable, print L__M(##Lock, 1, noun).
    3. If noun has locked, print L__M(##Lock, 2, noun) ("It's already locked.").
    4. If noun has open, call ImplicitClose(noun).
    5. Check the with_key property of noun:
      • If it is an Object, it must match second; otherwise print L__M(##Lock, 4, second) ("That doesn't seem to fit.").
      • If it is a Routine, call it to validate the key.
    6. Give noun the locked attribute.
    7. Call AfterRoutines().
    8. If not intercepted, print L__M(##Lock, 5, noun) ("You lock ...").
  • Checks performed: lockable, locked, open attributes; with_key property
  • World-model effects: gives noun the locked attribute; may call ImplicitClose()
  • Library messages:
    Message Condition
    L__M(##Lock, 1) Noun is not lockable
    L__M(##Lock, 2) Noun is already locked
    L__M(##Lock, 3) Implicit close failed
    L__M(##Lock, 4) Key does not match
    L__M(##Lock, 5) Success - noun is now locked
  • Related actions: Unlock, Open, Close

Look

  • Routine: LookSub
  • Meta: No
  • Grammar:
    Verb 'look' 'l//'
        *                              -> Look;
    
  • Default behavior:
    1. If parent(player) == 0, signal a runtime error and stop.
    2. Call NoteArrival().
    3. Call FindVisibilityLevels() to determine the visibility_ceiling.
    4. Print the room name directly: if in darkness, print (name) thedark; otherwise print (name) visibility_ceiling (or print (The) visibility_ceiling for a nested ceiling). The room name is not wrapped in a L__M call.
    5. For each intermediate container or supporter between the player and the visibility ceiling, print L__M(##Look, 1, i) (if i is a supporter) or L__M(##Look, 2, i) (if i is a container) - these are the nesting suffixes appended to the room-name header line.
    6. If print_player_flag == 1, print L__M(##Look, 3, player) - the actor-name suffix.
    7. Determine whether to print the long room description based on lookmode and the visited attribute.
    8. Print the location's description property via PrintOrRun().
    9. For each visibility level, call SayWhatsOn() which prints L__M(##Look, 4, descon) listing items on supporters.
    10. Call Locale() to list visible objects in scope; Locale prints L__M(##Look, 5, descin) when "also" is needed, or L__M(##Look, 6, descin) when it is not.
    11. Call ScoreArrival(), which gives location the visited attribute (if not already set) and awards any first-visit points.
    12. Call AfterRoutines().
  • Checks performed: visibility levels; container, open, transparent, supporter, visited attributes; lookmode; darkness
  • World-model effects: gives location the visited attribute (if not already set); may award score via ScoreArrival()
  • Library messages:
    Message Condition
    L__M(##Look, 1, i) Nesting suffix " (on X)" - printed for each supporter between player and visibility ceiling
    L__M(##Look, 2, i) Nesting suffix " (in X)" - printed for each container between player and visibility ceiling
    L__M(##Look, 3, player) Actor-name suffix " (as ActorName)" - printed when print_player_flag == 1
    L__M(##Look, 4, descon) "On the X ..." supporter-contents listing, printed by SayWhatsOn()
    L__M(##Look, 5, descin) "you can also see ..." listing, printed by Locale() when "also" is needed
    L__M(##Look, 6, descin) "you can see ..." listing, printed by Locale() without "also"
    L__M(##Look, 7) "You see nothing unexpected in that direction." - direction-examine stub
  • Related actions: Examine, Search, LMode1, LMode2, LMode3

LookUnder

  • Routine: LookUnderSub

  • Meta: No

  • Grammar:

    Verb 'look' 'l//'
        * 'under' noun                 -> LookUnder;
    
  • Default behavior:

    1. If location == thedark, print L__M(##LookUnder, 1, noun) ("But it's dark.").
    2. Otherwise print L__M(##LookUnder, 2) ("You find nothing of interest.").

    This is a pure stub action - it performs no world-model changes and exists only to provide a default refusal message that the author can override.

  • Checks performed: darkness (location == thedark)

  • World-model effects: none

  • Library messages:

    Message Condition
    L__M(##LookUnder, 1) Too dark to look under anything
    L__M(##LookUnder, 2) Default refusal - nothing found
  • Related actions: Look, Examine, Search

Mild

  • Routine: MildSub
  • Meta: No
  • Grammar:
    Verb 'bother' 'curses' 'darn' 'drat'
        * -> Mild
        * topic -> Mild;
    
  • Default behavior:
    1. Prints L__M(##Mild, 1, noun).
  • Checks performed: None.
  • World-model effects: None (pure stub).
  • Library messages:
    Message Condition
    L__M(##Mild, 1) Always
  • Related actions: Strong

No

  • Routine: NoSub
  • Meta: No
  • Grammar:
    Verb 'no'
        * -> No;
    
  • Default behavior:
    1. Prints L__M(##No).
  • Checks performed: None.
  • World-model effects: None (pure stub).
  • Library messages:
    Message Condition
    L__M(##No) Always
  • Related actions: Yes

Open

  • Routine: OpenSub
  • Meta: No
  • Grammar:
    Verb 'open' 'uncover' 'undo' 'unwrap'
        * noun -> Open;
    
  • Default behavior:
    1. Calls ObjectIsUntouchable(noun).
    2. If noun hasnt openable, prints L__M(##Open, 1, noun).
    3. If noun has locked and ImplicitUnlock(noun) fails to unlock it, prints L__M(##Open, 2, noun).
    4. If noun has open, prints L__M(##Open, 3, noun).
    5. Gives noun open.
    6. Calls AfterRoutines().
    7. If not intercepted: if noun is not a container, prints L__M(##Open, 5, noun). Otherwise, if noun is opaque (not transparent) and not a door and the actor cannot already see inside it - that is, it is not simultaneously true that the room is lit, noun has visible contents, and IndirectlyContains(noun, player) - prints L__M(##Open, 4, noun), which lists the newly revealed contents (or "nothing"). In all other cases prints L__M(##Open, 5, noun).
  • Checks performed: openable, locked, open, container, transparent, door attributes; visible contents.
  • World-model effects: Gives noun open; may call ImplicitUnlock().
  • Library messages:
    Message Condition
    L__M(##Open, 1) noun is not openable
    L__M(##Open, 2) noun is locked (after a failed implicit unlock)
    L__M(##Open, 3) noun is already open
    L__M(##Open, 4) Opened successfully, revealing contents
    L__M(##Open, 5) Opened successfully, nothing special to reveal
  • Related actions: Close, Lock, Unlock

Pray

  • Routine: PraySub
  • Meta: No
  • Grammar:
    Verb 'pray'
        * -> Pray;
    
  • Default behavior:
    1. Prints L__M(##Pray, 1, noun).
  • Checks performed: None.
  • World-model effects: None (pure stub).
  • Library messages:
    Message Condition
    L__M(##Pray, 1) Always

Pull

  • Routine: PullSub
  • Meta: No
  • Grammar:
    Verb 'pull' 'drag'
        * noun -> Pull;
    
  • Default behavior:
    1. Calls ObjectIsUntouchable(noun).
    2. If noun == player, prints L__M(##Pull, 1, noun).
    3. If noun == actor, prints L__M(##Pull, 6, noun).
    4. If noun has static, prints L__M(##Pull, 2, noun).
    5. If noun has scenery, prints L__M(##Pull, 3, noun).
    6. If noun has animate, prints L__M(##Pull, 5, noun).
    7. Otherwise prints L__M(##Pull, 4, noun).
  • Checks performed: static, scenery, animate attributes; self-reference.
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##Pull, 1) Pulling the player object
    L__M(##Pull, 2) noun is static
    L__M(##Pull, 3) noun is scenery
    L__M(##Pull, 4) Default refusal
    L__M(##Pull, 5) noun is animate
    L__M(##Pull, 6) noun == actor (and actor is not the player)
  • Related actions: Push, Turn

Push

  • Routine: PushSub
  • Meta: No
  • Grammar:
    Verb 'push' 'clear' 'move' 'press' 'shift'
        * noun -> Push;
    
  • Default behavior:
    1. Calls ObjectIsUntouchable(noun).
    2. If noun == player, prints L__M(##Push, 1, noun).
    3. If noun == actor, prints L__M(##Push, 5, noun).
    4. If noun has static, prints L__M(##Push, 2, noun).
    5. If noun has scenery, prints L__M(##Push, 3, noun).
    6. If noun has animate, prints L__M(##Push, 5, noun).
    7. Otherwise prints L__M(##Push, 4, noun).
  • Checks performed: static, scenery, animate attributes; self-reference.
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##Push, 1) Pushing the player object
    L__M(##Push, 2) noun is static
    L__M(##Push, 3) noun is scenery
    L__M(##Push, 4) Default refusal
    L__M(##Push, 5) noun is animate, or noun == actor (and actor is not the player)
  • Related actions: Pull, Turn, PushDir

PushDir

  • Routine: PushDirSub

  • Meta: No

  • Grammar:

    Verb 'push' 'clear' 'move' 'press' 'shift'
        * noun noun -> PushDir;
    
  • Default behavior:

    1. Prints L__M(##PushDir, 1, noun).

    This is always the default response. The game must provide a before rule calling AllowPushDir() for pushing objects between rooms to work.

  • Checks performed: None.

  • World-model effects: None (unless the game provides a before rule using AllowPushDir()).

  • Library messages:

    Message Condition
    L__M(##PushDir, 1) Default response from PushDirSub (no purpose served)
    L__M(##PushDir, 2) Via AllowPushDir: second is not a compass direction
    L__M(##PushDir, 3) Via AllowPushDir: the direction is up or down
  • Related actions: Push, Go

PutOn

  • Routine: PutOnSub
  • Meta: No
  • Grammar:
    Verb 'drop' 'discard'
        * multiexcept 'on'/'onto' noun -> PutOn;
    Verb 'put'
        * multiexcept 'on'/'onto' noun -> PutOn;
    
  • Default behavior:
    1. Sets receive_action = ##PutOn.
    2. If second == d_obj or actor in second, redirects to <<Drop noun, actor>>.
    3. If parent(noun) == second (already on the supporter), prints L__M(##Drop, 1, noun).
    4. Calls ImplicitTake(noun). If the actor still does not hold noun, prints L__M(##PutOn, 1, noun).
    5. Computes ancestor = CommonAncestor(noun, second). If ancestor == noun (would create a recursive container), prints L__M(##PutOn, 2, noun).
    6. Calls ObjectIsUntouchable(second) - if untouchable, stops.
    7. If second is outside the common ancestor, temporarily sets action to ##Receive and calls RunRoutines(second, before). Restores action to ##PutOn.
    8. If second hasnt supporter, prints L__M(##PutOn, 3, second).
    9. If noun has worn and no_implicit_actions is set, prints L__M(##Disrobe, 4, noun).
    10. If noun has worn, calls ImplicitDisrobe(noun).
    11. Calls ObjectDoesNotFit(noun, second); if it returns true (or the extension hook does), stops.
    12. If AtFullCapacity(noun, second), prints L__M(##PutOn, 6, second).
    13. Moves noun to second.
    14. Calls AfterRoutines(). If intercepted, returns.
    15. If second is outside the common ancestor, temporarily sets action to ##Receive and calls RunRoutines(second, after).
    16. If multiflag is set, prints L__M(##PutOn, 7) ("Done."). Otherwise prints L__M(##PutOn, 8, noun, second) (success).
  • Checks performed: supporter, worn attributes; parent relationships; capacity.
  • World-model effects: Moves noun to second; sets receive_action to ##PutOn.
  • Library messages:
    Message Condition
    L__M(##Drop, 1, noun) noun is already on second
    L__M(##PutOn, 1, noun) Implicit take of noun failed; the actor is not holding it
    L__M(##PutOn, 2, noun) Trying to put noun on itself (or inside its own container chain)
    L__M(##PutOn, 3, second) second is not a supporter
    L__M(##PutOn, 6, second) second is at full capacity
    L__M(##PutOn, 7) Multi-object success ("Done.")
    L__M(##PutOn, 8, noun, second) Single-object success
    L__M(##Disrobe, 4, noun) noun is worn and no_implicit_actions is set
  • Related actions: Insert, Drop, Transfer, Receive (fake)

Remove

  • Routine: RemoveSub
  • Meta: No
  • Grammar:
    Verb 'carry'
        * multiinside 'from'/'off' noun -> Remove;
    Verb 'get'
        * multiinside 'from'/'off' noun -> Remove;
    Verb 'remove'
        * multi -> Remove
        * multiinside 'from' noun -> Remove;
    Verb 'take'
        * multiinside 'from'/'off' noun -> Remove;
    
  • Default behavior:
    1. Gets the parent of noun (stored as i).
    2. If i is a container that is not open and ImplicitOpen(i) fails to open it, prints L__M(##Remove, 1, i).
    3. If noun has clothing: if it also has worn, redirects to <<Disrobe noun, actor>>; otherwise, if its parent is the actor (i == actor), prints L__M(##Disrobe, 1, noun). (If i is a container or supporter, the clothing checks are skipped.)
    4. If i hasnt container and i hasnt supporter, prints L__M(##Remove, 4, noun).
    5. If a container was named (second) that is not the object's actual parent (i ~= second && second ~= nothing), prints L__M(##Remove, 2, noun).
    6. If i has animate, prints L__M(##Take, 6, i, noun).
    7. Calls AttemptToTakeObject(noun), then AfterRoutines() (as ##Remove, then as ##Take).
    8. If not intercepted, prints L__M(##Remove, 3, noun).
  • Checks performed: container, open, clothing, worn, supporter, animate attributes; parent relationships.
  • World-model effects: Takes noun from its container/supporter into the actor's inventory.
  • Library messages:
    Message Condition
    L__M(##Remove, 1) Parent is a closed container and the implicit open failed
    L__M(##Remove, 2) A container was named that is not the object's actual parent
    L__M(##Remove, 3) Success ("Removed.")
    L__M(##Remove, 4) Parent is neither a container nor a supporter
    L__M(##Disrobe, 1) Item is unworn clothing held by the actor
    L__M(##Take, 6) Parent is animate
  • Related actions: Take, Insert, PutOn

Rub

  • Routine: RubSub
  • Meta: No
  • Grammar:
    Verb 'rub' 'clean' 'dust' 'polish' 'scrub' 'shine' 'sweep' 'wipe'
        * noun -> Rub;
    
  • Default behavior:
    1. Calls ObjectIsUntouchable(noun).
    2. If noun has animate, prints L__M(##Rub, 2, noun).
    3. Otherwise prints L__M(##Rub, 1, noun).
  • Checks performed: animate attribute.
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##Rub, 1) Default (inanimate object)
    L__M(##Rub, 2) noun is animate
  • Routine: SearchSub
  • Meta: No
  • Grammar:
    Verb 'look' 'l//'
        * 'inside'/'in'/'into'/'through'/'on' noun -> Search;
    Verb 'search'
        * noun -> Search;
    
  • Default behavior:
    1. If location == thedark, prints L__M(##Search, 1, noun).
    2. If noun is untouchable (ObjectIsUntouchable), stop. Compute the visible contents count once with VisibleContents(noun).
    3. If noun has supporter: if the contents are empty, prints L__M(##Search, 2, noun) ("nothing on it"); otherwise prints L__M(##Search, 3, noun) with the contents listing.
    4. If noun hasnt container, prints L__M(##Search, 4, noun) ("[Actor] finds nothing of interest").
    5. If noun is neither transparent nor open and ImplicitOpen() fails to open it, prints L__M(##Search, 5, noun) ("can't see inside, since it is closed").
    6. Calls AfterRoutines(); if it intercepts, stop. Otherwise, if the visible contents are empty, prints L__M(##Search, 6, noun) ("is empty"); otherwise prints L__M(##Search, 7, noun) with the contents listing.
  • Checks performed: supporter, container, transparent, open attributes; darkness.
  • World-model effects: May call ImplicitOpen().
  • Library messages:
    Message Condition
    L__M(##Search, 1) In darkness
    L__M(##Search, 2) Supporter is empty
    L__M(##Search, 3) Supporter has visible contents
    L__M(##Search, 4) noun is not a container
    L__M(##Search, 5) Container is closed and cannot be opened
    L__M(##Search, 6) Container is empty
    L__M(##Search, 7) Container has visible contents
  • Related actions: Examine, Look, LookUnder

Set

  • Routine: SetSub
  • Meta: No
  • Grammar:
    Verb 'set' 'adjust'
        * noun -> Set;
    
  • Default behavior:
    1. Prints L__M(##Set, 1, noun).
  • Checks performed: None.
  • World-model effects: None (pure stub).
  • Library messages:
    Message Condition
    L__M(##Set, 1) Always
  • Related actions: SetTo

SetTo

  • Routine: SetToSub

  • Meta: No

  • Grammar:

    Verb 'set' 'adjust'
        * noun 'to' special -> SetTo;
    
  • Default behavior:

    1. Prints L__M(##SetTo, 1, noun).

    The special_word and special_number globals contain the parsed value.

  • Checks performed: None.

  • World-model effects: None (pure stub).

  • Library messages:

    Message Condition
    L__M(##SetTo, 1) Always
  • Related actions: Set

Show

  • Routine: ShowSub

  • Meta: No

  • Grammar:

    Verb 'show' 'display' 'present'
        * creature held -> Show reverse
        * held 'to' creature -> Show;
    
  • Default behavior:

    1. If noun is not in actor, calls ImplicitTake().
    2. If second == player, redirects to <<Examine noun, actor>>.
    3. Calls RunLife(second, ##Show).
    4. If RunLife returns false, prints L__M(##Show, 2, second).

    The grammar uses reverse so that "show creature held" swaps noun and second.

  • Checks performed: Parent relationships.

  • World-model effects: None.

  • Library messages:

    Message Condition
    L__M(##Show, 1) noun not held (implicit take failed)
    L__M(##Show, 2) second is uninterested
  • Related actions: ShowR, Give, Examine

ShowR

  • Routine: ShowRSub
  • Meta: No
  • Grammar: (No direct grammar - reached via internal routing.)
  • Default behavior:
    1. Redirects to <Show second noun, actor> (reverses arguments).
  • Checks performed: None.
  • World-model effects: None.
  • Library messages: None.
  • Related actions: Show

Sing

  • Routine: SingSub
  • Meta: No
  • Grammar:
    Verb 'sing'
        * -> Sing;
    
  • Default behavior:
    1. Prints L__M(##Sing, 1, noun).
  • Checks performed: None.
  • World-model effects: None (pure stub).
  • Library messages:
    Message Condition
    L__M(##Sing, 1) Always

Sleep

  • Routine: SleepSub
  • Meta: No
  • Grammar:
    Verb 'sleep' 'nap'
        * -> Sleep;
    
  • Default behavior:
    1. Prints L__M(##Sleep, 1, noun).
  • Checks performed: None.
  • World-model effects: None (pure stub).
  • Library messages:
    Message Condition
    L__M(##Sleep, 1) Always

Smell

  • Routine: SmellSub
  • Meta: No
  • Grammar:
    Verb 'smell' 'sniff'
        * -> Smell
        * noun -> Smell;
    
  • Default behavior:
    1. If noun is not nothing and noun has animate, prints L__M(##Smell, 2, noun).
    2. Otherwise prints L__M(##Smell, 1, noun).
  • Checks performed: animate attribute (only when noun is specified).
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##Smell, 1) Default (no noun, or inanimate noun)
    L__M(##Smell, 2) noun is animate

Sorry

  • Routine: SorrySub
  • Meta: No
  • Grammar:
    Verb 'sorry'
        * -> Sorry;
    
  • Default behavior:
    1. Prints L__M(##Sorry, 1, noun).
  • Checks performed: None.
  • World-model effects: None (pure stub).
  • Library messages:
    Message Condition
    L__M(##Sorry, 1) Always

Squeeze

  • Routine: SqueezeSub
  • Meta: No
  • Grammar:
    Verb 'squeeze' 'squash'
        * noun -> Squeeze;
    
  • Default behavior:
    1. Calls ObjectIsUntouchable(noun).
    2. If noun has animate and noun ~= player, prints L__M(##Squeeze, 1, noun).
    3. Otherwise prints L__M(##Squeeze, 2, noun).
  • Checks performed: animate attribute; self-reference (allows self-squeezing).
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##Squeeze, 1) noun is animate (and not the player)
    L__M(##Squeeze, 2) Default (inanimate, or squeezing yourself)

Strong

  • Routine: StrongSub
  • Meta: No
  • Grammar:
    Verb 'shit' 'damn' 'fuck' 'sod'
        * -> Strong
        * topic -> Strong;
    
  • Default behavior:
    1. Prints L__M(##Strong, 1, noun).
  • Checks performed: None.
  • World-model effects: None (pure stub).
  • Library messages:
    Message Condition
    L__M(##Strong, 1) Always
  • Related actions: Mild

Swim

  • Routine: SwimSub
  • Meta: No
  • Grammar:
    Verb 'swim' 'dive'
        * -> Swim;
    
  • Default behavior:
    1. Prints L__M(##Swim, 1, noun).
  • Checks performed: None.
  • World-model effects: None (pure stub).
  • Library messages:
    Message Condition
    L__M(##Swim, 1) Always

Swing

  • Routine: SwingSub
  • Meta: No
  • Grammar:
    Verb 'swing'
        * noun -> Swing
        * 'on' noun -> Swing;
    
  • Default behavior:
    1. Prints L__M(##Swing, 1, noun).
  • Checks performed: None.
  • World-model effects: None (pure stub).
  • Library messages:
    Message Condition
    L__M(##Swing, 1) Always

SwitchOff

  • Routine: SwitchOffSub
  • Meta: No
  • Grammar:
    Verb 'close' 'cover' 'shut'
        * 'off' noun                        -> SwitchOff;
    
    Verb 'switch'
        * noun 'off'                        -> SwitchOff
        * 'off' noun                        -> SwitchOff;
    
    Verb 'turn' 'rotate' 'screw' 'twist' 'unscrew'
        * noun 'off'                        -> SwitchOff
        * 'off' noun                        -> SwitchOff;
    
  • Default behavior:
    1. Calls ObjectIsUntouchable(noun) - if untouchable, stops.
    2. If noun hasnt switchable, prints L__M(##SwitchOff, 1, noun) and stops.
    3. If noun hasnt on, prints L__M(##SwitchOff, 2, noun) and stops.
    4. Gives noun ~on.
    5. Calls AfterRoutines(). If not intercepted, prints L__M(##SwitchOff, 3, noun).
  • Checks performed: switchable, on attributes.
  • World-model effects: Gives noun ~on.
  • Library messages:
    Message Condition
    L__M(##SwitchOff, 1) noun is not switchable
    L__M(##SwitchOff, 2) noun is already off
    L__M(##SwitchOff, 3) Successfully switched off
  • Related actions: SwitchOn

SwitchOn

  • Routine: SwitchOnSub
  • Meta: No
  • Grammar:
    Verb 'switch'
        * noun                              -> SwitchOn
        * noun 'on'                         -> SwitchOn
        * 'on' noun                         -> SwitchOn;
    
    Verb 'turn' 'rotate' 'screw' 'twist' 'unscrew'
        * noun 'on'                         -> SwitchOn
        * 'on' noun                         -> SwitchOn;
    
  • Default behavior:
    1. Calls ObjectIsUntouchable(noun) - if untouchable, stops.
    2. If noun hasnt switchable, prints L__M(##SwitchOn, 1, noun) and stops.
    3. If noun has on, prints L__M(##SwitchOn, 2, noun) and stops.
    4. Gives noun on.
    5. Calls AfterRoutines(). If not intercepted, prints L__M(##SwitchOn, 3, noun).
  • Checks performed: switchable, on attributes.
  • World-model effects: Gives noun on.
  • Library messages:
    Message Condition
    L__M(##SwitchOn, 1) noun is not switchable
    L__M(##SwitchOn, 2) noun is already on
    L__M(##SwitchOn, 3) Successfully switched on
  • Related actions: SwitchOff

Take

  • Routine: TakeSub
  • Meta: No
  • Grammar:
    Verb 'carry'
        * multi                             -> Take;
    
    Verb 'get'
        * multi                             -> Take;
    
    Verb 'peel'
        * noun                              -> Take
        * 'off' noun                        -> Take;
    
    Verb 'pick'
        * 'up' multi                        -> Take
        * multi 'up'                        -> Take;
    
    Verb 'take'
        * multi                             -> Take;
    
  • Default behavior:
    1. If noun is in actor and has worn, redirects to <<Disrobe noun, actor>>.
    2. If onotheld_mode == 0 or noun is not in actor, calls AttemptToTakeObject(noun). If that routine returns true (it printed an error message), stops.
    3. Calls AfterRoutines(). If intercepted, stops.
    4. Sets notheld_mode = onotheld_mode.
    5. If notheld_mode == 1 or keep_silent is set, stops.
    6. Prints L__M(##Take, 1, noun) ("Taken.").
  • Checks performed: worn attribute; parent relationships; notheld_mode/onotheld_mode.
  • World-model effects: Moves noun to actor and gives noun ~worn (via AttemptToTakeObject); gives noun moved at end of turn (via NoteObjectAcquisitions).
  • Library messages:
    Message Condition
    L__M(##Take, 1, noun) Default success message ("Taken.")
  • Related actions: Drop, Remove, PutOn, Insert, Give
  • Notes: AttemptToTakeObject() handles the complex taking logic - capacity checks, the LetGo fake action, and most Take error messages (L__M(##Take, 2-13), e.g. "always self-possessed", "would care for that", "fixed in place", capacity-exceeded, etc.).

Taste

  • Routine: TasteSub
  • Meta: No
  • Grammar:
    Verb 'taste'
        * noun                              -> Taste;
    
  • Default behavior:
    1. Calls ObjectIsUntouchable(noun) - if untouchable, stops.
    2. If noun has animate, prints L__M(##Taste, 2, noun) and stops.
    3. Otherwise prints L__M(##Taste, 1, noun).
  • Checks performed: animate attribute.
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##Taste, 1) noun is inanimate
    L__M(##Taste, 2) noun is animate
  • Related actions: -

Tell

  • Routine: TellSub
  • Meta: No
  • Grammar:
    Verb 'tell'
        * creature 'about' topic           -> Tell
        * creature 'to' topic              -> AskTo;
    
  • Default behavior:
    1. If noun == actor, prints L__M(##Tell, 1, noun) and stops.
    2. Calls RunLife(noun, ##Tell). If RunLife returns false, prints L__M(##Tell, 2, noun).
  • Checks performed: Self-reference.
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##Tell, 1) Talking to yourself
    L__M(##Tell, 2) noun's life routine did not handle the action
  • Related actions: Ask, Answer

Think

  • Routine: ThinkSub
  • Meta: No
  • Grammar:
    Verb 'think'
        *                                   -> Think;
    
  • Default behavior:
    1. Prints L__M(##Think, 1, noun).
  • Checks performed: None.
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##Think, 1) Always (stub response)
  • Related actions: -

ThrowAt

  • Routine: ThrowAtSub
  • Meta: No
  • Grammar:
    Verb 'throw'
        * noun                              -> ThrowAt
        * held 'at'/'against'/'on'/'onto' noun -> ThrowAt;
    
  • Default behavior:
    1. Calls ObjectIsUntouchable(noun) - if untouchable, stops.
    2. If second == nothing, prints L__M(##ThrowAt, 1, noun) and stops.
    3. If second > 1:
      • Temporarily sets action to ##ThrownAt and calls RunRoutines(second, before).
      • If intercepted, restores action to ##ThrowAt and returns.
      • Restores action to ##ThrowAt.
    4. If noun has worn, calls ImplicitDisrobe().
    5. If second hasnt animate, prints L__M(##ThrowAt, 1, noun) and stops.
    6. Calls RunLife(second, ##ThrowAt). If RunLife returns false, prints L__M(##ThrowAt, 2, noun).
  • Checks performed: animate attribute on second; worn attribute on noun; validity of second.
  • World-model effects: May call ImplicitDisrobe() on noun.
  • Library messages:
    Message Condition
    L__M(##ThrowAt, 1) second is nothing, or second is not animate
    L__M(##ThrowAt, 2) Target's life routine did not handle the action
  • Related actions: ThrownAt (fake), Give
  • Notes: Uses the ThrownAt fake action to let inanimate targets intercept the throw via their before property.

Tie

  • Routine: TieSub
  • Meta: No
  • Grammar:
    Verb 'tie' 'attach' 'connect' 'fasten' 'fix'
        * noun                              -> Tie
        * noun 'to' noun                    -> Tie;
    
  • Default behavior:
    1. If noun has animate, prints L__M(##Tie, 2, noun) and stops.
    2. Otherwise prints L__M(##Tie, 1, noun).
  • Checks performed: animate attribute.
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##Tie, 1) noun is inanimate (stub: impractical)
    L__M(##Tie, 2) noun is animate (stub: impractical)
  • Related actions: -

Touch

  • Routine: TouchSub
  • Meta: No
  • Grammar:
    Verb 'touch' 'feel' 'fondle' 'grope'
        * noun                              -> Touch;
    
  • Default behavior:
    1. If noun == actor, prints L__M(##Touch, 3, noun) and stops.
    2. Calls ObjectIsUntouchable(noun) - if untouchable, stops.
    3. If noun has animate, prints L__M(##Touch, 1, noun) and stops.
    4. Otherwise prints L__M(##Touch, 2, noun).
  • Checks performed: animate attribute; self-reference.
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##Touch, 1) noun is animate
    L__M(##Touch, 2) noun is inanimate
    L__M(##Touch, 3) Touching yourself
  • Related actions: Kiss, Squeeze

Transfer

  • Routine: TransferSub
  • Meta: No
  • Grammar:
    Verb 'push' 'clear' 'move' 'press' 'shift'
        * noun 'to' noun                    -> Transfer;
    
    Verb 'transfer'
        * noun 'to' noun=NotPlayer          -> Transfer
        * noun 'to' noun=IsPlayer           -> Take;
    
  • Default behavior:
    1. If noun is not in actor, calls AttemptToTakeObject(noun) to attempt an implicit take. If the take fails and noun is still not in actor, does rfalse (returns silently - no message).
    2. If second == actor (giving it to oneself while already holding it), prints L__M(##Take, 5, noun) (the "already have it" message) and stops.
    3. Delegates based on second (each with a single-bracket <...> invocation, so control returns to TransferSub afterward):
      • second has supporter → <PutOn noun second, actor>.
      • second == d_obj → <Drop noun, actor>.
      • otherwise → <Insert noun second, actor>.
    4. If the delegation failed and noun is still in actor (meaning it was implicitly taken but could not be placed), prints L__M(##Transfer, 1, noun).
  • Checks performed: Parent relationships; supporter attribute on second; identity of second against d_obj and actor.
  • World-model effects: Delegates to PutOn, Drop, or Insert (effects depend on the redirected action).
  • Library messages:
    Message Condition
    L__M(##Take, 5, noun) second == actor and noun is already held - "already have it"
    L__M(##Transfer, 1, noun) Noun was implicitly taken but the placement delegation failed - still in hand
  • Related actions: PutOn, Insert, Drop, Give

Turn

  • Routine: TurnSub
  • Meta: No
  • Grammar:
    Verb 'turn' 'rotate' 'screw' 'twist' 'unscrew'
        * noun                              -> Turn;
    
  • Default behavior:
    1. Calls ObjectIsUntouchable(noun) - if untouchable, stops.
    2. If noun == player, prints L__M(##Turn, 1, noun) and stops.
    3. If noun == actor, prints L__M(##Turn, 5, noun) and stops.
    4. If noun has static, prints L__M(##Turn, 2, noun) and stops.
    5. If noun has scenery, prints L__M(##Turn, 3, noun) and stops.
    6. If noun has animate, prints L__M(##Turn, 5, noun) and stops.
    7. Otherwise prints L__M(##Turn, 4, noun).
  • Checks performed: static, scenery, animate attributes; self-reference.
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##Turn, 1) Trying to turn the player object
    L__M(##Turn, 2) noun is static
    L__M(##Turn, 3) noun is scenery
    L__M(##Turn, 4) Default stub response
    L__M(##Turn, 5) noun is animate, or noun == actor (and actor is not the player)
  • Related actions: Pull, Push

Unlock

  • Routine: UnlockSub
  • Meta: No
  • Grammar:
    Verb 'open' 'uncover' 'undo' 'unwrap'
        * noun 'with' held                  -> Unlock;
    
    Verb 'pry' 'prise' 'prize' 'lever' 'jemmy' 'force'
        * noun 'with' held                  -> Unlock
        * 'apart'/'open' noun 'with' held   -> Unlock
        * noun 'apart'/'open' 'with' held   -> Unlock;
    
    Verb 'unlock'
        * noun 'with' held                  -> Unlock;
    
  • Default behavior:
    1. Calls ObjectIsUntouchable(noun) - if untouchable, stops.
    2. If noun hasnt lockable, prints L__M(##Unlock, 1, noun) and stops.
    3. If noun hasnt locked, prints L__M(##Unlock, 2, noun) and stops.
    4. Checks the with_key property:
      • If it is an Object, second must match it; otherwise prints L__M(##Unlock, 3, second) and stops.
      • If it is a Routine, calls it to validate the key.
    5. Gives noun ~locked.
    6. Calls AfterRoutines(). If not intercepted, prints L__M(##Unlock, 4, noun) (success).
  • Checks performed: lockable, locked attributes; with_key property.
  • World-model effects: Gives noun ~locked.
  • Library messages:
    Message Condition
    L__M(##Unlock, 1) noun is not lockable
    L__M(##Unlock, 2) noun is already unlocked
    L__M(##Unlock, 3) Wrong key (second does not match with_key)
    L__M(##Unlock, 4) Success (the object is unlocked)
  • Related actions: Lock, Open, Close

VagueGo

  • Routine: VagueGoSub
  • Meta: No
  • Grammar:
    Verb 'go' 'run' 'walk'
        *                                   -> VagueGo;
    
    Verb 'leave'
        *                                   -> VagueGo
        * noun=ADirection                   -> Go
        * noun                              -> Exit
        * 'into'/'in'/'inside'/'through' noun -> Enter;
    
  • Default behavior:
    1. Prints L__M(##VagueGo).
  • Checks performed: None.
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##VagueGo) Always (no direction specified)
  • Related actions: Go, GoIn
  • Notes: Triggered when the player types "go" without specifying a direction.

Wait

  • Routine: WaitSub
  • Meta: No
  • Grammar:
    Verb 'wait' 'z//'
        *                                   -> Wait;
    
  • Default behavior:
    1. Calls AfterRoutines() first (allowing each_turn processing to be intercepted).
    2. If not intercepted, prints L__M(##Wait, 1, noun).
  • Checks performed: None.
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##Wait, 1) Default "Time passes" message
  • Related actions: -
  • Notes: Calling AfterRoutines() before the default message is unusual - it allows location.after or other after handlers to replace the "Time passes" message.

Wake

  • Routine: WakeSub
  • Meta: No
  • Grammar:
    Verb 'wake' 'awake' 'awaken'
        *                                   -> Wake
        * 'up'                              -> Wake;
    
  • Default behavior:
    1. Prints L__M(##Wake, 1, noun).
  • Checks performed: None.
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##Wake, 1) Always (stub: waking self)
  • Related actions: WakeOther

WakeOther

  • Routine: WakeOtherSub
  • Meta: No
  • Grammar:
    Verb 'wake' 'awake' 'awaken'
        * creature                          -> WakeOther
        * creature 'up'                     -> WakeOther
        * 'up' creature                     -> WakeOther;
    
  • Default behavior:
    1. Calls ObjectIsUntouchable(noun) - if untouchable, stops.
    2. Calls RunLife(noun, ##WakeOther). If RunLife returns false, prints L__M(##WakeOther, 1, noun).
  • Checks performed: None (beyond touchability).
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##WakeOther, 1) noun's life routine did not handle the action
  • Related actions: Wake

Wave

  • Routine: WaveSub
  • Meta: No
  • Grammar:
    Verb 'wave'
        * noun                              -> Wave
        * noun 'at' noun                    -> Wave;
    
  • Default behavior:
    1. If noun == player, prints L__M(##Wave, 2, noun, second) (success) and stops.
    2. If noun == actor (the acting NPC), prints L__M(##Wave, 3, noun, second), which calls DecideAgainst() to refuse, and stops.
    3. Calls ImplicitTake(noun); if noun is still not held by the actor, prints L__M(##Wave, 1, noun) and stops.
    4. Otherwise prints L__M(##Wave, 2, noun, second) (success).
  • Checks performed: Self-reference; whether the actor holds noun.
  • World-model effects: None (may call ImplicitTake()).
  • Library messages:
    Message Condition
    L__M(##Wave, 1) The actor is not holding noun (implicit take failed)
    L__M(##Wave, 2) Success - the actor looks ridiculous waving noun (also used when noun is the player)
    L__M(##Wave, 3) noun is the actor; the action is refused
  • Related actions: WaveHands

WaveHands

  • Routine: WaveHandsSub
  • Meta: No
  • Grammar:
    Verb 'wave'
        *                                   -> WaveHands
        * 'at' noun                         -> WaveHands;
    
  • Default behavior:
    1. If noun is specified (non-zero), prints L__M(##WaveHands, 2, noun).
    2. Otherwise prints L__M(##WaveHands, 1, noun).
  • Checks performed: None.
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##WaveHands, 1) Waving hands (no target)
    L__M(##WaveHands, 2) Waving hands at noun
  • Related actions: Wave

Wear

  • Routine: WearSub
  • Meta: No
  • Grammar:
    Verb 'put'
        * 'on' multiheld                    -> Wear;
    
    Verb 'wear' 'don'
        * multiheld                         -> Wear;
    
  • Default behavior:
    1. Calls ObjectIsUntouchable(noun) - if untouchable, stops.
    2. If noun hasnt clothing, prints L__M(##Wear, 1, noun) and stops.
    3. If noun is not in actor and is not already worn:
      • If noun is reachable (IndirectlyContains(actor, noun), or its parent is a container/supporter): when no_implicit_actions is set, prints L__M(##Wear, 5) and stops; otherwise prints the implicit-take announcement L__M(##Miscellany, 58) and calls AttemptToTakeObject() - execution continues whether or not the take succeeds.
      • Otherwise prints L__M(##Wear, 2) and stops.
    4. If noun has worn, prints L__M(##Wear, 3, noun) and stops.
    5. Gives noun worn.
    6. Calls AfterRoutines(). If not intercepted, prints L__M(##Wear, 4, noun).
  • Checks performed: clothing, worn attributes; parent relationships; no_implicit_actions.
  • World-model effects: Gives noun worn; may call AttemptToTakeObject().
  • Library messages:
    Message Condition
    L__M(##Wear, 1) noun is not clothing
    L__M(##Wear, 2) noun is not held
    L__M(##Wear, 3) noun is already worn
    L__M(##Wear, 4) Successfully put on
    L__M(##Wear, 5) An implicit take is needed but no_implicit_actions is set
    L__M(##Miscellany, 58) Announces the implicit take ("(first taking ...)")
  • Related actions: Disrobe, Take

Yes

  • Routine: YesSub
  • Meta: No
  • Grammar:
    Verb 'yes' 'y//'
        *                                   -> Yes;
    
  • Default behavior:
    1. Prints L__M(##Yes).
  • Checks performed: None.
  • World-model effects: None.
  • Library messages:
    Message Condition
    L__M(##Yes) Always (stub response)
  • Related actions: No

§H.4 Meta Actions

Meta actions are game-control commands that do not consume a game turn. Declare them with Verb meta. The action processing pipeline skips BeforeRoutines() for meta actions - the *Sub routine is called directly.

This section covers standard meta actions (§H.4.1) and debug-only meta actions (§H.4.2).

§H.4.1 Standard Meta Actions

CommandsOff

  • Routine: CommandsOffSub
  • Meta: Yes
  • Grammar: Verb meta 'recording', * 'off' -> CommandsOff
  • Default behavior: [Z-machine] If xcommsdir == 1, calls @output_stream -4. Sets xcommsdir = 0. Prints L__M(##CommandsOff, 1). [Glulx] If gg_commandstr is not active, prints L__M(##CommandsOff, 2). Otherwise, if a command replay is in progress (gg_command_reading), prints L__M(##CommandsRead, 5) and returns without closing; otherwise closes the stream, clears gg_commandstr and gg_command_reading, and prints L__M(##CommandsOff, 1).
  • Library messages: L__M(##CommandsOff, 1), L__M(##CommandsOff, 2)
  • Related actions: CommandsOn, CommandsRead

CommandsOn

  • Routine: CommandsOnSub
  • Meta: Yes
  • Grammar: Verb meta 'recording', * -> CommandsOn, * 'on' -> CommandsOn
  • Default behavior: [Z-machine] Calls @output_stream 4. Sets xcommsdir = 1. Prints L__M(##CommandsOn, 1). [Glulx] Uses Glk file dialogs to open command recording file. Prints L__M(##CommandsOn, 1-4).
  • Library messages: L__M(##CommandsOn, 1-4)
  • Related actions: CommandsOff, CommandsRead

CommandsRead

  • Routine: CommandsReadSub
  • Meta: Yes
  • Grammar: Verb meta 'replay', * -> CommandsRead
  • Default behavior: [Z-machine] Calls @input_stream 1. Sets xcommsdir = 2. Prints L__M(##CommandsRead, 1). [Glulx] Uses Glk file dialogs to open command replay file. Sets gg_command_reading = true. Prints L__M(##CommandsRead, 1-4) (message 5 is printed by CommandsOffSub).
  • Library messages: L__M(##CommandsRead, 1-5)
  • Related actions: CommandsOn, CommandsOff

FullScore

  • Routine: FullScoreSub
  • Meta: Yes
  • Grammar: Verb meta 'fullscore' 'full', * -> FullScore, * 'score' -> FullScore
  • Default behavior: Calls ScoreSub() to print the current score, then returns with no further breakdown when score is 0 or TASKS_PROVIDED is 1 (its default; a game enables the breakdown by setting TASKS_PROVIDED = 0). Otherwise prints L__M(##FullScore, 1) (the "made up as follows:" header), iterates the tasks and prints each completed one via TaskScore()/PrintTaskName(), then prints things_score labelled by L__M(##FullScore, 2) ("finding sundry items") and places_score labelled by L__M(##FullScore, 3) ("visiting various places"), and finally the total labelled by L__M(##FullScore, 4).
  • Library messages: L__M(##FullScore, 1-4)
  • Related actions: Score

LMode1

  • Routine: LMode1Sub
  • Meta: Yes
  • Grammar: Verb meta 'brief', * -> LMode1
  • Default behavior: Sets lookmode = 1. Prints L__M(##LMode1).
  • World-model effects: lookmode = 1 (brief - full descriptions only on first visit)
  • Library messages: L__M(##LMode1)
  • Related actions: LMode2, LMode3, LModeNormal

LMode2

  • Routine: LMode2Sub
  • Meta: Yes
  • Grammar: Verb meta 'verbose' 'long', * -> LMode2
  • Default behavior: Sets lookmode = 2. Prints L__M(##LMode2).
  • World-model effects: lookmode = 2 (verbose - always print full descriptions)
  • Library messages: L__M(##LMode2)
  • Related actions: LMode1, LMode3, LModeNormal

LMode3

  • Routine: LMode3Sub
  • Meta: Yes
  • Grammar: Verb meta 'superbrief' 'short', * -> LMode3
  • Default behavior: Sets lookmode = 3. Prints L__M(##LMode3).
  • World-model effects: lookmode = 3 (superbrief - never print full descriptions automatically)
  • Library messages: L__M(##LMode3)
  • Related actions: LMode1, LMode2, LModeNormal

LModeNormal

  • Routine: LModeNormalSub
  • Meta: Yes
  • Grammar: Verb meta 'normal', * -> LModeNormal
  • Default behavior: Checks initial_lookmode. If 1, redirects to <<LMode1>>. If 3, redirects to <<LMode3>>. Otherwise, redirects to <<LMode2>>.
  • World-model effects: Resets lookmode to initial_lookmode value
  • Related actions: LMode1, LMode2, LMode3

NotifyOff

  • Routine: NotifyOffSub
  • Meta: Yes
  • Grammar: Verb meta 'notify', * 'off' -> NotifyOff
  • Default behavior: Sets notify_mode = false. Prints L__M(##NotifyOff).
  • World-model effects: notify_mode = false
  • Library messages: L__M(##NotifyOff)
  • Related actions: NotifyOn

NotifyOn

  • Routine: NotifyOnSub
  • Meta: Yes
  • Grammar: Verb meta 'notify', * -> NotifyOn, * 'on' -> NotifyOn
  • Default behavior: Sets notify_mode = true. Prints L__M(##NotifyOn).
  • World-model effects: notify_mode = true
  • Library messages: L__M(##NotifyOn)
  • Related actions: NotifyOff

Objects

  • Routine: ObjectsSub; Objects1Sub
  • Meta: Yes
  • Grammar: Verb meta 'objects', * -> Objects
  • Default behavior: ObjectsSub delegates to Objects1Sub. Lists all objects that have been moved, showing current locations. For each moved object, shows where it is (carried, worn, in/on something, in a room, etc.).
  • Checks performed: moved, worn, animate, visited, container, supporter, enterable attributes
  • Library messages: L__M(##Objects, 1-10)
  • Related actions: ObjectsTall, ObjectsWide, Places

ObjectsTall

  • Routine: ObjectsTallSub; Objects1TallSub
  • Meta: Yes
  • Grammar: Verb meta 'objects', * 'tall' -> ObjectsTall
  • Default behavior: Sets objects_style = NEWLINE_BIT+INDENT_BIT+FULLINV_BIT. Calls <Objects>.
  • Related actions: Objects, ObjectsWide

ObjectsWide

  • Routine: ObjectsWideSub; Objects1WideSub
  • Meta: Yes
  • Grammar: Verb meta 'objects', * 'wide' -> ObjectsWide
  • Default behavior: Sets objects_style = ENGLISH_BIT+FULLINV_BIT. Calls <Objects>.
  • Related actions: Objects, ObjectsTall

Places

  • Routine: PlacesSub; Places1Sub
  • Meta: Yes
  • Grammar: Verb meta 'places', * -> Places
  • Default behavior: PlacesSub delegates to Places1Sub. Lists all rooms with the visited attribute, or reports that nothing has been visited if there are none.
  • Checks performed: visited attribute
  • Library messages: L__M(##Places, 1-3)
  • Related actions: PlacesTall, PlacesWide, Objects

PlacesTall

  • Routine: PlacesTallSub; Places1TallSub
  • Meta: Yes
  • Grammar: Verb meta 'places', * 'tall' -> PlacesTall
  • Default behavior: Sets places_style = NEWLINE_BIT+INDENT_BIT+FULLINV_BIT. Calls <Places>.
  • Related actions: Places, PlacesWide

PlacesWide

  • Routine: PlacesWideSub; Places1WideSub
  • Meta: Yes
  • Grammar: Verb meta 'places', * 'wide' -> PlacesWide
  • Default behavior: Sets places_style = ENGLISH_BIT+FULLINV_BIT. Calls <Places>.
  • Related actions: Places, PlacesTall

Pronouns

  • Routine: PronounsSub
  • Meta: Yes
  • Grammar: Verb meta 'pronouns' 'nouns', * -> Pronouns
  • Default behavior: Iterates through the LanguagePronouns table and prints current pronoun bindings. Shows what "it", "him", "her", "them" refer to. Also shows "me" → player.
  • Notes: Routine is defined in the parser, not the verb library.

Quit

  • Routine: QuitSub
  • Meta: Yes
  • Grammar: Verb meta 'quit' 'q//' 'die', * -> Quit
  • Default behavior: Prints L__M(##Quit, 2) (confirmation prompt). Calls YesOrNo(). If yes, calls quit opcode.
  • Library messages: L__M(##Quit, 2)

Restart

  • Routine: RestartSub
  • Meta: Yes
  • Grammar: Verb meta 'restart', * -> Restart
  • Default behavior: Prints L__M(##Restart, 1) (confirmation). If YesOrNo(), calls @restart. If restart fails, prints L__M(##Restart, 2).
  • Library messages: L__M(##Restart, 1), L__M(##Restart, 2)

Restore

  • Routine: RestoreSub
  • Meta: Yes
  • Grammar: Verb meta 'restore', * -> Restore
  • Default behavior: [Z-machine] Calls @restore opcode. On failure prints L__M(##Restore, 1). On success, calls AfterRestore(). [Glulx] Uses Glk file dialogs for file selection and the @restore opcode.
  • Library messages: L__M(##Restore, 1), L__M(##Restore, 2)
  • Notes: Calls AfterRestore(), LibraryExtensions.RunAll(ext_afterrestore).

Save

  • Routine: SaveSub
  • Meta: Yes
  • Grammar: Verb meta 'save', * -> Save
  • Default behavior: [Z-machine] Calls @save opcode. On failure prints L__M(##Save, 1). On success prints L__M(##Save, 2). Also detects restore-after-save (prints L__M(##Restore, 2)). [Glulx] Uses Glk file dialogs. Similar save/restore detection.
  • Library messages: L__M(##Save, 1), L__M(##Save, 2), L__M(##Restore, 2)
  • Notes: Calls AfterSave(), AfterRestore(), RestoreColours(), LibraryExtensions.RunAll(ext_aftersave/ext_afterrestore).

Score

  • Routine: ScoreSub
  • Meta: Yes
  • Grammar: Verb meta 'score', * -> Score
  • Default behavior: If NO_SCORE defined, prints L__M(##Score, 2). Otherwise prints L__M(##Score, 1). Calls PrintRank() and LibraryExtensions.RunAll(ext_printrank).
  • Library messages: L__M(##Score, 1), L__M(##Score, 2)
  • Related actions: FullScore

ScriptOff

  • Routine: ScriptOffSub
  • Meta: Yes
  • Grammar: Verb meta 'script' 'transcript' * 'off' -> ScriptOff ; Verb meta 'noscript' 'unscript' * -> ScriptOff
  • Default behavior: [Z-machine] Checks transcript_mode. If not on, prints L__M(##ScriptOff, 1). Otherwise calls @output_stream -2, sets transcript_mode = false, prints L__M(##ScriptOff, 2). [Glulx] Checks gg_scriptstr. Closes stream. Prints L__M(##ScriptOff, 1) or L__M(##ScriptOff, 2).
  • Library messages: L__M(##ScriptOff, 1-3)
  • Related actions: ScriptOn

ScriptOn

  • Routine: ScriptOnSub
  • Meta: Yes
  • Grammar: Verb meta 'script' 'transcript' * -> ScriptOn, * 'on' -> ScriptOn
  • Default behavior: [Z-machine] Checks transcript_mode and HDR_GAMEFLAGS. If already on, prints L__M(##ScriptOn, 1). Otherwise calls @output_stream 2, sets transcript_mode = true, prints L__M(##ScriptOn, 2) or L__M(##ScriptOn, 3). [Glulx] Uses Glk file dialogs.
  • Library messages: L__M(##ScriptOn, 1-3)
  • Related actions: ScriptOff

Verify

  • Routine: VerifySub
  • Meta: Yes
  • Grammar: Verb meta 'verify', * -> Verify
  • Default behavior: [Z-machine] Calls @verify opcode. Prints L__M(##Verify, 1) on success or L__M(##Verify, 2) on failure. [Glulx] Calls the @verify opcode-same messages.
  • Library messages: L__M(##Verify, 1), L__M(##Verify, 2)

Version

  • Routine: VersionSub
  • Meta: Yes
  • Grammar: Verb meta 'version', * -> Version
  • Default behavior: Calls Banner(). Prints interpreter and VM information. Prints library serial number and language version. Includes Z-machine- and Glulx-specific output sections.
  • Notes: Does not use L__M() - prints directly using internal text constants.

§H.4.2 Debug Meta Actions

The following actions are only available when the game is compiled with the DEBUG flag set. They provide interactive debugging tools.

ActionsOff

  • Routine: ActionsOffSub
  • Meta: Yes
  • Grammar: Verb meta 'actions' * 'off' -> ActionsOff
  • Default behavior: Clears DEBUG_ACTIONS from debug_flag. Prints "[Action listing off.]"

ActionsOn

  • Routine: ActionsOnSub
  • Meta: Yes
  • Grammar: Verb meta 'actions' * -> ActionsOn, * 'on' -> ActionsOn
  • Default behavior: Sets DEBUG_ACTIONS in debug_flag. Prints "[Action listing on.]"

ChangesOff

  • Routine: ChangesOffSub
  • Meta: Yes
  • Grammar: Verb meta 'changes' * 'off' -> ChangesOff
  • Default behavior: Clears DEBUG_CHANGES from debug_flag. Prints "[Changes listing off.]"

ChangesOn

  • Routine: ChangesOnSub
  • Meta: Yes
  • Grammar: Verb meta 'changes' * -> ChangesOn, * 'on' -> ChangesOn
  • Default behavior: Sets DEBUG_CHANGES in debug_flag. Prints "[Changes listing on.]"

GlkList

  • Routine: GlkListSub
  • Meta: Yes
  • Grammar: Verb meta 'glklist' * -> Glklist
  • Default behavior: Lists all Glk windows, streams, file references, and sound channels using Glk iteration functions.
  • Notes: Only compiled for Glulx target.

GoNear

  • Routine: GoNearSub
  • Meta: Yes
  • Grammar: Verb meta 'gonear' * anynumber -> GoNear, * noun -> GoNear
  • Default behavior: Finds the room containing noun by walking up the parent chain. Teleports player to that room via PlayerTo().

Goto

  • Routine: GotoSub
  • Meta: Yes
  • Grammar: Verb meta 'goto' * anynumber -> Goto
  • Default behavior: Teleports player directly to noun via PlayerTo(noun). Validates noun is an Object.

Predictable

  • Routine: PredictableSub
  • Meta: Yes
  • Grammar: Verb meta 'random' * -> Predictable
  • Default behavior: Seeds the random number generator to produce a predictable sequence. [Z-machine] Calls random(-100) (passing a negative argument to the Inform built-in seeds the RNG). [Glulx] Executes @setrandom 100.

RoutinesOff

  • Routine: RoutinesOffSub
  • Meta: Yes
  • Grammar: Verb meta 'routines' 'messages' * 'off' -> RoutinesOff
  • Default behavior: Clears DEBUG_MESSAGES from debug_flag. Prints "[Message listing off.]"

RoutinesOn

  • Routine: RoutinesOnSub
  • Meta: Yes
  • Grammar: Verb meta 'routines' 'messages' * -> RoutinesOn, * 'on' -> RoutinesOn
  • Default behavior: Sets DEBUG_MESSAGES in debug_flag. Prints "[Message listing on.]"

RoutinesVerbose

  • Routine: RoutinesVerboseSub
  • Meta: Yes
  • Grammar: Verb meta 'routines' 'messages' * 'verbose' -> RoutinesVerbose
  • Default behavior: Sets DEBUG_VERBOSE|DEBUG_MESSAGES in debug_flag. Prints "[Verbose message listing on.]"

Scope

  • Routine: ScopeSub
  • Meta: Yes
  • Grammar: Verb meta 'scope' * -> Scope, * anynumber -> Scope, * noun -> Scope
  • Default behavior: Calls LoopOverScope() to list all objects in scope of noun (or player if no noun). Prints count.

ShowDict

  • Routine: ShowDictSub
  • Meta: Yes
  • Grammar: Verb meta 'showdict' 'dict' * -> ShowDict, * topic -> ShowDict
  • Default behavior: Dumps dictionary entries with flag information (noun/verb/meta/plural/etc.). Can show all or filter by topic.
  • Notes: Routine is defined in the parser.

ShowObj

  • Routine: ShowObjSub
  • Meta: Yes
  • Grammar: Verb meta 'showobj' * -> ShowObj, * anynumber -> ShowObj, * multi -> ShowObj
  • Default behavior: Displays detailed object info: name, location, class, attributes, and property values.
  • Notes: Routine is defined in the parser.

ShowVerb

  • Routine: ShowVerbSub
  • Meta: Yes
  • Grammar: Verb meta 'showverb' * special -> ShowVerb
  • Default behavior: Looks up verb in grammar table and displays all grammar lines. Shows meta flag and all verb aliases.
  • Notes: Routine is defined in the parser. Has separate Z-machine and Glulx implementations.

TimersOff

  • Routine: TimersOffSub
  • Meta: Yes
  • Grammar: Verb meta 'timers' 'daemons' * 'off' -> TimersOff
  • Default behavior: Clears DEBUG_TIMERS from debug_flag. Prints "[Timers listing off.]"

TimersOn

  • Routine: TimersOnSub
  • Meta: Yes
  • Grammar: Verb meta 'timers' 'daemons' * -> TimersOn, * 'on' -> TimersOn
  • Default behavior: Sets DEBUG_TIMERS in debug_flag. Prints "[Timers listing on.]"

TraceLevel

  • Routine: TraceLevelSub
  • Meta: Yes
  • Grammar: Verb meta 'trace' * number -> TraceLevel
  • Default behavior: Sets parser_trace = noun. Prints "[Parser tracing set to level N.]"

TraceOff

  • Routine: TraceOffSub
  • Meta: Yes
  • Grammar: Verb meta 'trace' * 'off' -> TraceOff
  • Default behavior: Sets parser_trace = 0. Prints "Trace off."

TraceOn

  • Routine: TraceOnSub
  • Meta: Yes
  • Grammar: Verb meta 'trace' * -> TraceOn, * 'on' -> TraceOn
  • Default behavior: Sets parser_trace = 1. Prints "[Trace on.]"

XAbstract

  • Routine: XAbstractSub
  • Meta: Yes
  • Grammar: Verb meta 'abstract' * anynumber 'to' anynumber -> XAbstract, * noun 'to' noun -> XAbstract
  • Default behavior: Validates noun is an Object. Calls XTestMove(noun, second). Moves noun to second.

XPurloin

  • Routine: XPurloinSub
  • Meta: Yes
  • Grammar: Verb meta 'purloin' * anynumber -> XPurloin, * multi -> XPurloin
  • Default behavior: Validates noun is an Object. Calls XTestMove(noun, player). Moves noun to player. Gives noun moved, gives noun ~concealed.
  • World-model effects: move noun to player; give moved; give ~concealed

XTree

  • Routine: XTreeSub
  • Meta: Yes
  • Grammar: Verb meta 'tree' * -> XTree, * anynumber -> XTree, * noun -> XTree
  • Default behavior: If no noun, prints full object tree from all parentless objects. If noun is specified, prints subtree from noun.

§H.5 Fake Actions

Fake actions are declared with the Fake_Action directive and have no grammar lines, no *Sub handler routine, and no entry in the actions table. They exist solely as constants that can be checked in before, after, life, and orders property routines. The library generates fake actions internally to notify objects of events that are not directly triggered by player input.

The library declares all fake actions.

LetGo

  • Declaration: Fake_Action LetGo;

Purpose: Notifies a container or supporter that an object is being removed from it.

Generated by: AttemptToTakeObject() when taking an object from a container or supporter. The container's before property is called with action temporarily set to ##LetGo.

Where intercepted: before property of the container/supporter object.

Semantics: When the player takes an object from inside a container or off a supporter, the library temporarily sets action to ##LetGo and calls RunRoutines(parent, before). If the parent's before routine returns true, the take is blocked. noun is the object being removed. The receive_action global is not relevant here.

Receive

  • Declaration: Fake_Action Receive;

Purpose: Notifies a container or supporter that an object is being placed into or onto it.

Generated by: InsertSub and PutOnSub when inserting or placing objects. The container/supporter's before property is called with action temporarily set to ##Receive.

Where intercepted: before property of the container/supporter object.

Semantics: When the player puts an object into a container (Insert) or onto a supporter (PutOn), the library temporarily sets action to ##Receive and calls RunRoutines(second, before). The global receive_action is set to ##Insert or ##PutOn so the before routine can distinguish which operation triggered it. If the before routine returns true, it blocks the placement.

ThrownAt

  • Declaration: Fake_Action ThrownAt;

Purpose: Notifies a target that something is being thrown at it.

Generated by: ThrowAtSub, for any non-trivial target (second > 1), whether animate or inanimate.

Where intercepted: before property of the target (second) object.

Semantics: When the player throws an object at a target (second > 1), the library temporarily sets action to ##ThrownAt and calls RunRoutines(second, before). If the before routine returns true, the throw is blocked. Otherwise the action reverts to ##ThrowAt: an inanimate target prints L__M(##ThrowAt, 1), while an animate target is dispatched via RunLife(second, ##ThrowAt), printing L__M(##ThrowAt, 2) if the life routine does not handle it.

Order

  • Declaration: Fake_Action Order;

Purpose: Represents a command given to an NPC (e.g., "Fred, take the lamp").

Generated by: The parser when it detects creature, command syntax. The NPC's orders property and life property are checked.

Where intercepted: orders property of the NPC, then life property with reason_code set to ##Order.

Semantics: When the player addresses an NPC with a command, the parser sets actor to the NPC. The library first calls RunRoutines(actor, orders). If orders returns false, it calls RunLife(actor, ##Order). The action, noun, and second globals contain the parsed command. If neither handles it, prints L__M(##Order, 1).

TheSame

  • Declaration: Fake_Action TheSame;

Purpose: Allows objects to declare themselves identical for disambiguation purposes.

Generated by: The parser during disambiguation when two objects have the same name words.

Where intercepted: parse_name property of one of the identical objects.

Semantics: When the parser finds two objects with identical name words and cannot distinguish them, it sets parser_action to ##TheSame, parser_one to the first object, and parser_two to the second object, then calls RunRoutines(parser_one, parse_name) (the first object's parse_name routine). If the routine returns -1, the objects are treated as genuinely indistinguishable. If it returns -2, they are treated as distinguishable. Any other return value is ignored.

PluralFound

  • Declaration: Fake_Action PluralFound;

Purpose: Lets a parse_name routine tell the parser that the words it matched included a plural.

Generated by: A parse_name routine, which sets parser_action to ##PluralFound when it matches a plural word. (The library never assigns ##PluralFound itself.)

Where intercepted: The parser, which reads parser_action after each parse_name call.

Semantics: Before calling an object's parse_name routine the parser sets parser_action to NULL. A parse_name routine that matches a plural word sets parser_action to ##PluralFound; after parse_name returns, the parser checks parser_action == ##PluralFound and, if so, marks the matched noun as plural (DICT_PLUR).

ListMiscellany

  • Declaration: Fake_Action ListMiscellany;

Purpose: Used by the list-writing module to generate miscellaneous list formatting messages.

Generated by: WriteListFrom() and related list-writing routines in the library.

Where intercepted: Via L__M(##ListMiscellany, N) calls - not directly intercepted by game objects.

Semantics: This fake action serves as a message namespace for the list-writing subsystem. L__M(##ListMiscellany, 1-22) provide various list formatting phrases like "providing light", "which is open", "which is closed and locked", etc.

Miscellany

  • Declaration: Fake_Action Miscellany;

Purpose: General-purpose message namespace for miscellaneous library messages.

Generated by: Various library routines.

Where intercepted: Via L__M(##Miscellany, N) calls - not directly intercepted by game objects.

Semantics: Acts as a catch-all message namespace. L__M(##Miscellany, 1-60) cover a wide range of messages including parser errors, disambiguation prompts, implicit action reports, game-over messages, and other library communications.

RunTimeError

  • Declaration: Fake_Action RunTimeError;

Purpose: Message namespace for runtime error diagnostics.

Generated by: the library's RunTimeError routine (verblib.h), called from library error-checking code.

Where intercepted: Via L__M(##RunTimeError, N) calls - can be customized via LibraryMessages.

Semantics: L__M(##RunTimeError, 1-16) provide runtime error messages such as property access errors, object tree violations, and other diagnostic messages. The library's RunTimeError routine emits them only in a DEBUG build (the descriptive L__M line is compiled under #Ifdef DEBUG); the compiler's RT__Err veneer routine is a separate facility that prints its own terse diagnostics.

Prompt

  • Declaration: Fake_Action Prompt;

Purpose: Customizes the command prompt.

Generated by: The parser's main loop, just before reading player input.

Where intercepted: Via the L__M(##Prompt) call - customizable via LibraryMessages.

Semantics: Each turn, before the parser reads input, it calls L__M(##Prompt) (with no message number) to print the command prompt (default: >). Games can customize this by intercepting ##Prompt in a LibraryMessages object.

NotUnderstood

  • Declaration: Fake_Action NotUnderstood;

Purpose: Notifies an NPC's orders routine that a command directed at them was not understood.

Generated by: The parser when an NPC command cannot be parsed.

Where intercepted: orders property of the addressed NPC.

Semantics: When the player gives an NPC a command that the parser cannot match to any grammar line, the library sets action to ##NotUnderstood. The addressed NPC's orders property is run; if it does not handle the command, the library converts it into an ##Answer action addressed from the player (actor is reset to the player) and aborts order processing. The consult_from and consult_words globals contain the unparsed text.

Going

  • Declaration: Fake_Action Going;

Purpose: Lets the destination room veto a pending move before the player enters it, and lets the room just left react after departure.

Generated by: GoSub during the Go action processing.

Where intercepted: the destination room's before property (before the move), then the departure room's (prev_location) after property (after the move).

Semantics: During the Go action, after determining the destination room next_loc but before moving the player, the library temporarily sets action to ##Going and calls RunRoutines(next_loc, before) on the destination. If that returns true, the movement is blocked. Once the player has moved, it sets action to ##Going again and calls RunRoutines(prev_location, after) on the room just left. The noun variable holds the direction object; the door, if the route passes through one, is resolved internally into next_loc and is not placed in second. The Going fake action lets before/after rules examine the pending movement without reproducing the full complexity of the Go action's direction lookup.

Places

  • Declaration: Fake_Action Places; - conditional

Purpose: When the game defines NO_PLACES, the Places action and its grammar are not compiled. The fake action declaration prevents compiler errors if game code references ##Places.

Generated by: Not generated at runtime; exists only as a compile-time safeguard.

Where intercepted: N/A under NO_PLACES. Under normal compilation (without NO_PLACES), Places is a real meta action handled by PlacesSub.

Semantics: This declaration is conditional. It appears inside an #Ifdef NO_PLACES block. When NO_PLACES is defined, the normal Places verb grammar and PlacesSub routine are omitted. Declaring Places as a fake action ensures that any ##Places references in game code still compile, even though the action has no effect.

Objects

  • Declaration: Fake_Action Objects; - conditional

Purpose: Same as Places - prevents compiler errors when NO_PLACES removes the real Objects action.

Generated by: Not generated at runtime; exists only as a compile-time safeguard.

Where intercepted: N/A under NO_PLACES. Under normal compilation (without NO_PLACES), Objects is a real meta action handled by ObjectsSub.

Semantics: This declaration is conditional, appearing inside the same #Ifdef NO_PLACES block as Places. When NO_PLACES is defined, the normal Objects verb grammar and ObjectsSub routine are omitted. Declaring Objects as a fake action ensures that any ##Objects references in game code still compile, even though the action has no effect.

§H.6 Verb Synonym Quick-Reference Table

This table lists every verb word defined in the library alphabetically, showing which action(s) it maps to. Verb words marked with // are abbreviations (e.g., 'i//' matches just the letter "i").

Verb Word Action(s) Meta
'abstract' XAbstract ✓ debug
'actions' ActionsOn, ActionsOff ✓ debug
'adjust' Set, SetTo
'answer' Answer
'ask' Ask, AskFor, AskTo
'attach' Tie
'attack' Attack
'awake' Wake, WakeOther
'awaken' Wake, WakeOther
'blow' Blow
'bother' Mild
'break' Attack
'brief' LMode1 ✓
'burn' Burn
'buy' Buy
'carry' Take, Remove, Inv
'changes' ChangesOn, ChangesOff ✓ debug
'check' Examine
'chop' Cut
'clean' Rub
'clear' Push, PushDir, Transfer
'climb' Climb
'close' Close, SwitchOff
'connect' Tie
'consult' Consult
'cover' Close, SwitchOff
'crack' Attack
'cross' Enter, GoIn
'curses' Mild
'cut' Cut
'daemons' TimersOn, TimersOff ✓ debug
'damn' Strong
'darn' Mild
'describe' Examine
'destroy' Attack
'dict' ShowDict ✓ debug
'die' Quit ✓
'dig' Dig
'discard' Drop, Insert, PutOn
'disrobe' Disrobe
'display' Show
'dive' Swim
'doff' Disrobe
'don' Wear
'drag' Pull
'drat' Mild
'drink' Drink
'drop' Drop, Insert, PutOn
'dust' Rub
'eat' Eat
'embrace' Kiss
'empty' Empty, EmptyT
'enter' Enter, GoIn
'examine' Examine
'exit' Exit
'fasten' Tie
'feed' Give
'feel' Touch
'fight' Attack
'fill' Fill
'fix' Tie
'fondle' Touch
'force' Unlock
'fuck' Strong
'full' FullScore ✓
'fullscore' FullScore ✓
'get' Take, Remove, GetOff, Enter, Exit
'give' Give
'glklist' Glklist ✓ debug
'go' Go, GoIn, VagueGo, Enter, Exit
'gonear' GoNear ✓ debug
'goto' Goto ✓ debug
'grope' Touch
'hear' Listen
'hit' Attack
'hold' Take, Remove, Inv
'hop' Jump, JumpIn, JumpOn, JumpOver
'hug' Kiss
'i//' Inv, InvTall, InvWide
'in' GoIn
'insert' Insert
'inside' GoIn
'inv' Inv, InvTall, InvWide
'inventory' Inv, InvTall, InvWide
'jemmy' Unlock
'jump' Jump, JumpIn, JumpOn, JumpOver
'kill' Attack
'kiss' Kiss
'l//' Look, Search, LookUnder, Examine, Consult
'leave' VagueGo, Go, Exit, Enter
'lever' Unlock
'lie' Enter
'light' Burn
'listen' Listen
'lock' Lock
'long' LMode2 ✓
'look' Look, Search, LookUnder, Examine, Consult
'messages' RoutinesOn, RoutinesOff, RoutinesVerbose ✓ debug
'move' Push, PushDir, Transfer
'murder' Attack
'nap' Sleep
'no' No
'normal' LModeNormal ✓
'noscript' ScriptOff ✓
'nouns' Pronouns ✓
'notify' NotifyOn, NotifyOff ✓
'objects' Objects, ObjectsTall, ObjectsWide ✓
'offer' Give
'open' Open, Unlock
'out' Exit
'outside' Exit
'pay' Give
'peel' Take
'pick' Take
'places' Places, PlacesTall, PlacesWide ✓
'polish' Rub
'pray' Pray
'present' Show
'press' Push, PushDir, Transfer
'prise' Unlock
'prize' Unlock
'pronouns' Pronouns ✓
'prune' Cut
'pry' Unlock
'pull' Pull
'punch' Attack
'purchase' Buy
'purloin' XPurloin ✓ debug
'push' Push, PushDir, Transfer
'put' Insert, PutOn, Wear, Drop
'q//' Quit ✓
'quit' Quit ✓
'random' Predictable ✓ debug
'read' Examine, Consult
'recording' CommandsOn, CommandsOff ✓
'remove' Disrobe, Remove
'replay' CommandsRead ✓
'restart' Restart ✓
'restore' Restore ✓
'rotate' Turn, SwitchOn, SwitchOff
'routines' RoutinesOn, RoutinesOff, RoutinesVerbose ✓ debug
'rub' Rub
'run' Go, GoIn, VagueGo, Enter, Exit
'save' Save ✓
'say' Answer
'scale' Climb
'scope' Scope ✓ debug
'score' Score ✓
'script' ScriptOn, ScriptOff ✓
'scrub' Rub
'screw' Turn, SwitchOn, SwitchOff
'search' Search
'set' Set, SetTo
'shed' Disrobe
'shift' Push, PushDir, Transfer
'shine' Rub
'shit' Strong
'short' LMode3 ✓
'shout' Answer
'show' Show
'showdict' ShowDict ✓ debug
'showobj' ShowObj ✓ debug
'showverb' ShowVerb ✓ debug
'shut' Close, SwitchOff
'sing' Sing
'sip' Drink
'sit' Enter
'skip' Jump, JumpIn, JumpOn, JumpOver
'sleep' Sleep
'slice' Cut
'smash' Attack
'smell' Smell
'sniff' Smell
'sod' Strong
'sorry' Sorry
'speak' Answer
'squash' Squeeze
'squeeze' Squeeze
'stand' Exit, Enter
'superbrief' LMode3 ✓
'swallow' Drink
'sweep' Rub
'swim' Swim
'swing' Swing
'switch' SwitchOn, SwitchOff
'take' Take, Remove, Inv, Disrobe
'taste' Taste
'tell' Tell, AskTo
'think' Think
'throw' ThrowAt
'thump' Attack
'tie' Tie
'timers' TimersOn, TimersOff ✓ debug
'torture' Attack
'touch' Touch
'trace' TraceOn, TraceOff, TraceLevel ✓ debug
'transcript' ScriptOn, ScriptOff ✓
'transfer' Transfer, Take
'tree' XTree ✓ debug
'turn' Turn, SwitchOn, SwitchOff
'twist' Turn, SwitchOn, SwitchOff
'uncover' Open, Unlock
'undo' Open, Unlock
'unlock' Unlock
'unscrew' Turn, SwitchOn, SwitchOff
'unscript' ScriptOff ✓
'unwrap' Open, Unlock
'verbose' LMode2 ✓
'verify' Verify ✓
'version' Version ✓
'wait' Wait
'wake' Wake, WakeOther
'walk' Go, GoIn, VagueGo, Enter, Exit
'watch' Examine
'wave' Wave, WaveHands
'wear' Wear
'wipe' Rub
'wreck' Attack
'x//' Examine
'y//' Yes
'yes' Yes
'z//' Wait

Total: 222 verb words mapping to 131 distinct actions.

§H.7 Actions by Category

This section groups all standard library actions by functional category for quick reference. Each action name links to its detailed entry in §H.3, §H.4, or §H.5.

Movement

Action Description
Go Move the player to an adjacent room via a compass direction or door.
GoIn Move the player inside an enterable object or through an in_to property.
Enter Enter or get into/onto a container, supporter, or enterable object.
Exit Leave the current container/supporter, or leave the room via out_to.
GetOff Get off a specific supporter (as opposed to generic Exit).
VagueGo Player typed "go" or "leave" without specifying a direction.

Object Manipulation

Action Description
Take Pick up an object and add it to the player's inventory.
Drop Remove an object from inventory and place it in the current room.
PutOn Place a held object on top of a supporter.
Insert Place a held object inside a container.
Remove Take an object out of a container.
Transfer Move an object from one place to another (internal; rarely triggered directly).
Empty Empty the contents of a container onto the ground.
EmptyT Empty the contents of a container into/onto another object.

Giving and Showing

Action Description
Give Hand an object to an NPC.
GiveR Reverse form: NPC gives an object to the player (internal redirect).
Show Show an object to an NPC without giving it away.
ShowR Reverse form of Show (internal redirect).
ThrowAt Throw a held object at a target.
Action Description
Look Display the full room description and list visible objects.
Examine Examine an object closely, printing its description text.
LookUnder Look underneath an object.
Search Search inside a container or on a supporter.

Container and Lock

Action Description
Open Open a container or door.
Close Close a container or door.
Lock Lock a lockable object with the correct key.
Unlock Unlock a locked object with the correct key.

Switching

Action Description
SwitchOn Turn on a switchable device.
SwitchOff Turn off a switchable device.

Clothing

Action Description
Wear Put on a piece of clothing from inventory.
Disrobe Take off a worn piece of clothing.

Consumption

Action Description
Eat Eat an edible object, removing it from play.
Drink Drink a drinkable object.

Communication

Action Description
Answer Reply to an NPC with a topic (e.g., "say hello to troll").
Ask Ask an NPC about a topic.
AskFor Ask an NPC for a specific object.
AskTo Order an NPC to act (e.g., "ask Bob to open door").
Tell Tell an NPC about a topic.

Physical Interaction

Action Description
Attack Attack or fight an object or NPC.
Blow Blow on or into something.
Burn Set fire to an object, optionally with a second held object.
Buy Attempt to purchase something.
Climb Climb an object such as a wall or tree.
Consult Consult an object (e.g., a book) about a topic.
Cut Cut or chop an object.
Dig Dig in or at something.
Fill Fill a container with something.
Jump Jump in place (intransitive).
JumpIn Jump into something.
JumpOn Jump onto something.
JumpOver Jump over an obstacle.
Kiss Kiss or embrace an NPC.
Listen Listen to ambient sounds or a specific object.
Pull Pull or drag an object.
Push Push or press an object.
PushDir Push an object in a compass direction.
Rub Rub, clean, polish, or wipe an object.
Set Set an object to a particular state.
SetTo Set an object to a specific named value.
Sing Sing (intransitive).
Sleep Go to sleep or take a nap.
Smell Smell an object or the room in general.
Squeeze Squeeze or squash an object.
Swim Attempt to swim.
Swing Swing on or at something.
Taste Taste an object.
Think Think (intransitive).
Tie Tie, attach, fasten, or connect an object to something.
Touch Touch or feel an object.
Turn Turn, twist, rotate, screw, or unscrew an object.
Wait Wait and let time pass (one turn).
Wake Wake up (intransitive - the player wakes themselves).
WakeOther Wake up an NPC.
Wave Wave a held object.
WaveHands Wave hands (intransitive).

Exclamations and Social

Action Description
Mild Player typed a mild expletive ("bother", "darn", "drat", "curses").
Strong Player typed a strong expletive ("damn", "shit", "fuck", "sod").
Sorry Player typed "sorry".
Yes Player typed "yes" or "y".
No Player typed "no".
Pray Player typed "pray".

Inventory and Display

Action Description
Inv Display the player's inventory.
InvTall Display the player's inventory in tall (vertical list) format.
InvWide Display the player's inventory in wide (sentence) format.
LMode1 Set room descriptions to brief mode (short on revisit).
LMode2 Set room descriptions to verbose mode (always long).
LMode3 Set room descriptions to superbrief mode (always short).
LModeNormal Reset room description mode to the default (verbose).

Scoring (Meta)

Action Description
Score Display the player's current score and turn count.
FullScore Display a detailed breakdown of how the score was earned.
NotifyOn Enable automatic score-change notifications.
NotifyOff Disable automatic score-change notifications.

Game Control (Meta)

Action Description
Quit Quit the game.
Restart Restart the game from the beginning.
Save Save the current game state to a file.
Restore Restore a previously saved game state.
Verify Verify the integrity of the story file.
Version Display the game's version and compiler information.
ScriptOn Begin transcripting game output to a file.
ScriptOff Stop transcripting.
CommandsOn Begin recording player commands to a file.
CommandsOff Stop recording player commands.
CommandsRead Replay commands from a previously recorded file.
Pronouns Display the current pronoun assignments (it, him, her, them).
Places List all rooms the player has visited.
PlacesTall List visited rooms in tall (vertical list) format.
PlacesWide List visited rooms in wide (sentence) format.
Objects List all objects the player has handled.
ObjectsTall List handled objects in tall (vertical list) format.
ObjectsWide List handled objects in wide (sentence) format.

Debug (Meta)

These actions are only available when the game is compiled in debug mode.

Action Description
TraceOn Turn on parser tracing (level 1).
TraceOff Turn off parser tracing.
TraceLevel Set parser tracing to a specific numeric level.
RoutinesOn Trace routine entry (print routine names as they execute).
RoutinesOff Turn off routine tracing.
RoutinesVerbose Enable verbose routine tracing with additional detail.
ActionsOn Trace actions (print each action as it is processed).
ActionsOff Turn off action tracing.
TimersOn Trace timers and daemons each turn.
TimersOff Turn off timer/daemon tracing.
ChangesOn Trace object property changes.
ChangesOff Turn off property-change tracing.
Predictable Seed the random-number generator for repeatable behavior.
Goto Teleport the player to a room by internal object number.
GoNear Teleport the player to the room containing a named object.
Scope Display all objects currently in scope.
ShowVerb Show the grammar lines for a given verb.
ShowObj Display the internal details of an object.
ShowDict Display the game dictionary.
XAbstract Move one object into another (debug object tree manipulation).
XPurloin Acquire any object in the game, bypassing all rules.
XTree Display the full object tree.
GlkList List all active Glk objects (Glulx target only).

Fake Actions

Fake actions are never triggered by player input. The library generates them internally so before/after rules can intercept them.

Action Description
LetGo Fired on a container or supporter when an object is removed from it.
Receive Fired on a container/supporter when an object is placed in/on it.
ThrownAt Fired on the target of a ThrowAt action.
Order Fired when the player gives a command to an NPC (e.g., "troll, go north").
TheSame Fired when the parser cannot distinguish two objects and needs help.
PluralFound Fired when the parser encounters a plural word (e.g., "take all").
ListMiscellany Used internally when printing object lists to generate stock messages.
Miscellany Used internally for miscellaneous library messages.
RunTimeError Generated when a library run-time error occurs (the descriptive message form fires only in a DEBUG build).
Prompt Fired each turn just before printing the command prompt.
NotUnderstood Fired when the parser cannot understand the player's command at all.
Going Fired during movement to allow before rules to intercept room changes.