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
*Subroutine. §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
Verblines that can trigger this action, or "None (Fake_Action)" for internally generated actions.- Default behavior: What the handler routine does when no
beforerule 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):
- Save state - The current values of
action,noun, andsecondare saved onto temporary variables. - Set new values - The new action, noun, and second are installed into the globals.
- Debug trace - If
debug_flagis set, the action and its arguments are printed to aid debugging. - 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. - Action handler - If
BeforeRoutines()returns false (action not intercepted),ActionPrimitive()is called to execute the handler. - 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:
GamePreRoutine()- game-wide pre-action hook.LibraryExtensions.RunWhile(ext_gamepreroutine)- extension hook.RunRoutines(player, orders)- the player object'sordersproperty.SearchScopewithREACT_BEFORE_REASON- runs thereact_beforeproperty on every object currently in scope.RunRoutines(location, before)- the current location'sbeforeproperty.RunRoutines(inp1, before)- the first noun'sbeforeproperty, but only wheninp1 > 1(i.e.,inp1refers 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:
SearchScopewithREACT_AFTER_REASON- runs thereact_afterproperty on every object currently in scope.RunRoutines(location, after)- the current location'safterproperty.RunRoutines(inp1, after)- the first noun'safterproperty.GamePostRoutine()- game-wide post-action hook.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>- callsR_Process(action, noun, second), which savesinp1/inp2/actor, setsactorto the player, callsbegin_action, then restores the saved state.<action noun second, actor>- callsR_Process(action, noun, second, actor), which does the same but setsactorto the given actor before callingbegin_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:
- Set
reason_codeto the action or fake action passed as an argument. - Call
RunRoutines(object, life)on the target NPC. - If the
liferoutine returns true, the action is considered handled. - 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:
- If
secondis non-zero, callsRunLife(second, ##Answer)to invoke thelifeproperty of the creature addressed by the player. IfRunLifereturns true, it handles the action and stops. - If
secondis zero, or ifRunLifereturned false (the creature'slifeproperty did not handle the action), printsL__M(##Answer, 1, noun)- the default "there is no reply" message.
- If
- Checks performed: Whether
secondis non-zero before callingRunLife. - World-model effects: None.
- Library messages:
Message Condition L__M(##Answer, 1, noun)RunLifereturned false - nolifehandler consumed the action - Related actions:
Ask,AskFor,AskTo,Tell
Ask
- Routine:
AskSub - Meta: No
- Grammar:
Verb 'ask' * creature 'about' topic -> Ask; - Default behavior:
- Calls
RunLife(noun, ##Ask)to invoke thelifeproperty of the creature being asked. - If
RunLifereturns false, printsL__M(##Ask, 1, noun)- the default "there is no reply" message.
- Calls
- Checks performed: None beyond
RunLifedelegation to thelifeproperty. - World-model effects: None.
- Library messages:
Message Condition L__M(##Ask, 1, noun)RunLifereturned false - nolifehandler consumed the action - Related actions:
AskFor,AskTo,Answer,Tell
AskFor
- Routine:
AskForSub - Meta: No
- Grammar:
Verb 'ask' * creature 'for' noun -> AskFor; - Default behavior:
- If
noun == player, the action is redirected to<<Inv, actor>>- the player is effectively asking for their own inventory. - Otherwise, prints
L__M(##Order, 1, noun)- the default refusal message (shared with the Order mechanism).
- If
- Checks performed: Compares
nounagainstplayer. - World-model effects: None (may redirect to Inv).
- Library messages:
Message Condition L__M(##Order, 1, noun)nounis 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:
- Prints
L__M(##Order, 1, noun)- the default refusal message (shared with the Order mechanism).
- Prints
- 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:
- Calls
ObjectIsUntouchable(noun)- if the noun cannot be touched, the action stops early. - If
nounhas theanimateattribute, callsRunLife(noun, ##Attack)to let the creature'slifeproperty respond. - If
RunLifereturns false (or the noun is not animate), printsL__M(##Attack, 1, noun).
- Calls
- Checks performed:
Check Detail Touchability ObjectIsUntouchable(noun)animateDetermines whether RunLifeis called - World-model effects: None.
- Library messages:
Message Condition L__M(##Attack, 1, noun)RunLifereturned false, or noun is notanimate - Related actions: None directly; creature responses are handled via
life.
Blow
-
Routine:
BlowSub -
Meta: No
-
Grammar:
Verb 'blow' * held -> Blow; -
Default behavior:
- Prints
L__M(##Blow, 1, noun).
This is a pure stub - it performs no checks and changes no state. Override it in a
beforerule or the object'sbeforeproperty to implement custom behavior (e.g., blowing a whistle). - Prints
-
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:
- If
nounhas theanimateattribute, printsL__M(##Burn, 2, noun)(you can't set fire to a living creature) and returns. - Otherwise prints
L__M(##Burn, 1, noun)(a generic refusal).
This is a stub - it does not actually burn anything. Override to implement combustion.
- If
-
Checks performed:
Check Detail animateSelects which refusal message to print -
World-model effects: None.
-
Library messages:
Message Condition L__M(##Burn, 1, noun)nounis notanimateL__M(##Burn, 2, noun)nounhasanimate -
Related actions: None.
Buy
-
Routine:
BuySub -
Meta: No
-
Grammar:
Verb 'buy' 'purchase' * noun -> Buy; -
Default behavior:
- Prints
L__M(##Buy, 1, noun).
This is a pure stub. Override to implement commerce.
- Prints
-
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:
- If
nounhas theanimateattribute, printsL__M(##Climb, 2, noun)and returns. - Otherwise prints
L__M(##Climb, 1, noun).
This is a stub. Override to let the player climb specific objects.
- If
-
Checks performed:
Check Detail animateSelects which refusal message to print -
World-model effects: None.
-
Library messages:
Message Condition L__M(##Climb, 1, noun)nounis notanimateL__M(##Climb, 2, noun)nounhasanimate -
Related actions: None.
Close
- Routine:
CloseSub - Meta: No
- Grammar:
Verb 'close' 'cover' 'shut' * noun -> Close * 'up' noun -> Close; - Default behavior:
- Calls
ObjectIsUntouchable(noun)- aborts if the noun cannot be touched. - If
noundoes not have theopenableattribute, printsL__M(##Close, 1, noun)(can't be closed). - If
noundoes not have theopenattribute (already closed), printsL__M(##Close, 2, noun). - Otherwise, gives
noun~open(clears theopenattribute). - Calls
AfterRoutines(). If not intercepted and notkeep_silent, printsL__M(##Close, 3, noun)(success confirmation).
- Calls
- Checks performed:
Check Detail Touchability ObjectIsUntouchable(noun)openableMust be present to attempt closing openMust be set - object must currently be open - World-model effects:
Effect Detail give noun ~openClears the openattribute onnoun - Library messages:
Message Condition L__M(##Close, 1, noun)nounis notopenableL__M(##Close, 2, noun)nounis already closed (hasnt open)L__M(##Close, 3, noun)Success - nounis now closed - Related actions:
Open
Consult
-
Routine:
ConsultSub -
Meta: No
-
Grammar:
Verb 'consult' * noun 'about' topic -> Consult * noun 'on' topic -> Consult; -
Default behavior:
- 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) andconsult_words(the number of words in the topic). Override the object'sbeforeproperty to implement look-up behavior (e.g., consulting a book about a subject). - Prints
-
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:
- If
nounhas theanimateattribute, printsL__M(##Cut, 2, noun)and returns. - Otherwise prints
L__M(##Cut, 1, noun).
This is a stub. Override to implement cutting.
- If
-
Checks performed:
Check Detail animateSelects which refusal message to print -
World-model effects: None.
-
Library messages:
Message Condition L__M(##Cut, 1, noun)nounis notanimateL__M(##Cut, 2, noun)nounhasanimate -
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:
- Prints
L__M(##Dig, 1, noun).
This is a pure stub. Override to implement digging.
- Prints
-
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:
- Calls
ObjectIsUntouchable(noun)- aborts if the noun cannot be touched. - If
noun hasnt clothing, printsL__M(##Disrobe, 1, noun). - If
noun has clothingbuthasnt worn, also printsL__M(##Disrobe, 1, noun). - Otherwise, gives
noun ~worn(clears thewornattribute). - Calls
AfterRoutines(). If not intercepted and notkeep_silent, printsL__M(##Disrobe, 2, noun)(success).
- Calls
- Checks performed:
Check Detail Touchability ObjectIsUntouchable(noun)clothingMust be present - object must be a garment wornMust be set - object must currently be worn - World-model effects:
Effect Detail give noun ~wornClears the wornattribute onnoun - Library messages:
Message Condition L__M(##Disrobe, 1, noun)noun hasnt clothing, ornoun has clothing && hasnt worn(the same message handles both refusals)L__M(##Disrobe, 2, noun)Success - nounwas taken off - Related actions:
Wear
Drink
-
Routine:
DrinkSub -
Meta: No
-
Grammar:
Verb 'drink' 'sip' 'swallow' * noun -> Drink; -
Default behavior:
- Prints
L__M(##Drink, 1, noun).
This is a pure stub. Override to implement drinking.
- Prints
-
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:
- If
noun == actor, printsL__M(##PutOn, 4, noun)(you can't drop yourself) and returns. - If
nounis already inparent(actor)(already on the floor / in the current location), printsL__M(##Drop, 1, noun). - If
nounhas thewornattribute andno_implicit_actionsis set, printsL__M(##Disrobe, 4, noun)and stops. Otherwise, ifnounhasworn, callsImplicitDisrobe(noun)to silently remove the garment first. - If
nounis not in the actor after implicit operations, printsL__M(##Drop, 4, noun, parent(noun))orL__M(##Miscellany, 58). - Moves
nountoparent(actor)(drops it into the actor's immediate environment). - Calls
AfterRoutines(). If not intercepted and notkeep_silent, printsL__M(##Drop, 3, noun)(success confirmation).
- If
- Checks performed:
Check Detail Self-reference noun == actorAlready dropped noun in parent(actor)wornIf set, triggers implicit disrobing Possession nounmust still be inactorafter 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)nounis already inparent(actor)L__M(##Disrobe, 4, noun)nounis worn andno_implicit_actionsis setL__M(##Drop, 4, noun, parent(noun))nounis not held after implicit operations (whenno_implicit_actionsis set)L__M(##Miscellany, 58)nounis 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:
- Calls
ObjectIsUntouchable(noun)- aborts if the noun cannot be touched. - If
noundoes not have theedibleattribute, printsL__M(##Eat, 1, noun)(not edible). - If
nounhas thewornattribute, callsImplicitDisrobe()to silently remove the garment first. - Removes
nounfrom the game entirely (remove noun- the object is destroyed/consumed). - Calls
AfterRoutines(). If not intercepted and notkeep_silent, printsL__M(##Eat, 2, noun)(success confirmation).
- Calls
- Checks performed:
Check Detail Touchability ObjectIsUntouchable(noun)edibleMust be present - object must be edible wornIf set, triggers implicit disrobing - World-model effects:
Effect Detail remove nounObject is removed from the object tree (destroyed) give noun ~worn(via ImplicitDisrobe, if applicable) - Library messages:
Message Condition L__M(##Eat, 1, noun)nounis notedibleL__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:
- Sets
secondtod_obj(the default object representing the ground/floor). - Falls through to
EmptyTSubto perform the actual emptying.
This routine is a thin wrapper that supplies a default destination (the ground) before delegating to
EmptyT. - Sets
-
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:
- If
noun == second, printsL__M(##EmptyT, 4)(can't empty something into itself) and stops. - Calls
ObjectIsUntouchable(noun)- aborts if the noun cannot be touched. - If
noundoes not have thecontainerattribute, printsL__M(##EmptyT, 1, noun)(not a container) and stops. - If
noundoes not have theopenattribute, callsImplicitOpen(noun)to try to open the container; if the open attempt fails, printsL__M(##EmptyT, 2, noun)(container is closed) and stops. - Validates
secondas a legal destination: ifsecond ~= d_obj, checks thatsecondhassupporterorcontainer(and is open), printingL__M(##EmptyT, 1, second)orL__M(##EmptyT, 2, second)on failure. - If
nounhas no children (is already empty), printsL__M(##EmptyT, 3, noun). - Otherwise, loops through all children of
nounand issues<Transfer child second, actor>(a single-bracket invocation, so the loop continues) for each, moving every item to the destination.
- If
- Checks performed:
Check Detail Self-reference noun == secondTouchability ObjectIsUntouchable(noun)on the source containercontainernounmust be a containeropennounmust be open (or implicitly openable)supporter/containersecondmust be a valid destinationChildren nounmust have at least one child - World-model effects:
Effect Detail Transfer all children Each child of nounis moved tosecondvia theTransferaction - Library messages:
Message Condition L__M(##EmptyT, 1, noun)nounis not acontainerL__M(##EmptyT, 2, noun)nounis closed andImplicitOpenfailedL__M(##EmptyT, 3, noun)nounis 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:
- If
nounhas thedoorattribute or is in theCompass(a direction object): when the verb was stand/sit/lie, printL__M(##Enter, 2, noun, verb_word); otherwise redirect to<<Go noun>>. - If the actor is already inside
noun, printL__M(##Enter, 1, noun). - If
noundoes not have theenterableattribute, printL__M(##Enter, 2, noun, verb_word). - If the actor and
nounhave different parents, navigate the object tree viaCommonAncestor(). If there is no usable ancestor, printL__M(##Enter, 4, noun)("can only get into something free-standing"); otherwise step the actor out of nested objects (printingL__M(##Enter, 6, ...), "getting off/out of") and into intermediate objects (printingL__M(##Enter, 7, ...), "getting onto/into") as needed. - If
nounhascontainerbut notopen, callImplicitOpen(noun); if it cannot be opened, printL__M(##Enter, 3, noun)("can't get into the closed ...") and stop. - Move the actor into
noun(move actor to noun). - Run
AfterRoutines(); if it does not intercept (and the action is not silent), printL__M(##Enter, 5, noun)("gets onto/into ...") and, when the actor is the player, callLocale(noun).
- If
- Checks performed:
Check Detail doorRedirects to Goif presentCompassmembershipRedirects to Goif noun is a directionAlready inside Actor's parent is nounenterableMust be present on nouncontainerIf present, openmust also be set (or implicitly opened)Ancestry CommonAncestor()navigates nested containment - World-model effects:
Effect Detail move actor to nounActor is placed inside or on top of noun - Library messages:
Message Condition L__M(##Enter, 1, noun)Actor is already in/on nounL__M(##Enter, 2, noun)nounis notenterable(or a door/direction with sit/stand/lie)L__M(##Enter, 3, noun)nounis a closed container that could not be openedL__M(##Enter, 4, noun)nounis 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:
- If
location == thedark, printsL__M(##Examine, 1, noun)(too dark to see) and returns. - If
nounprovides adescriptionproperty, callsPrintOrRun(noun, description)to display it, then callsAfterRoutines()and returns. - If
nounhas thecontainerattribute:- If
nounisopenortransparent, 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.
- If
- If
nounhas theswitchableattribute, printsL__M(##Examine, 3, noun)reporting whether the device is switched on or off. - Otherwise prints
L__M(##Examine, 2, noun)(nothing special about the noun).
- If
- Checks performed:
Check Detail Darkness location == thedarkdescriptionpropertyChecked first - if provided, it is printed container+ (openortransparent)Triggers <<Search noun>>to list contentscontainer(closed and opaque)Prints L__M(##Search, 5, noun)- "can't see inside"switchableReports 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 descriptionproperty and no special attributesL__M(##Examine, 3, noun)nounhasswitchable- reports on/off stateL__M(##Search, 5, noun)nounis 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:
- If
nounis specified and does not match the actor's current container (noun ~= parent(actor)), printsL__M(##Exit, 4, noun)and stops. - Determines the actor's immediate container
p = parent(actor). - If
p == location(actor is directly in the room, not inside any object):- If the actor has a
postureset, clears it and printsL__M(##Exit, 6). - If
real_locationprovides anout_toproperty, redirects to<<Go out_obj>>. - Otherwise prints
L__M(##Exit, 1)(no obvious exit).
- If the actor has a
- If
phascontainerbut notopen, callsImplicitOpen(p)to silently open the container; if that fails, printsL__M(##Exit, 2, p)and stops. - Calls
RunRoutines(p, before)with the action set to##Exitto let the container run before-rules. - Moves the actor to
parent(p)(one level up in the object tree). - Clears the player's
postureproperty if the player provides one (player.posture = 0). - Calls
AfterRoutines()(returning early if it orkeep_silentis true). Otherwise printsL__M(##Exit, 3, p), then - only whenactor == playerandphascontainer- callsLookSub(1)to redisplay the room description.
- If
- Checks performed:
Check Detail nounspecifiedIf so, delegates to noun's handler p == locationDetermines room-exit vs. object-exit behavior out_topropertyOn real_location, used for room exitscontainer+openIf pis a closed container, attempts implicit openposturepropertyCleared on exit ( player.posture = 0) - World-model effects:
Effect Detail move actor to parent(p)Actor moves out of the current container/supporter Clear posturePosture property reset if present - Library messages:
Message Condition L__M(##Exit, 1)In a room with no out_to- no obvious exitL__M(##Exit, 2)Cannot exit closed container (implicit open failed) L__M(##Exit, 3)Leaving a container - narration L__M(##Exit, 4, noun)nounis 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 pas 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:
- If
second == nothing, printL__M(##Fill, 1, noun). - 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
beforeorreact_beforerules. - If
-
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:
- If
parent(actor) == noun(the actor is on/in the noun), redirect to<<Exit, actor>>. - Otherwise print
L__M(##GetOff, 1, noun)("But you aren't on that.").
- If
- 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
reversetoken on the first grammar line swapsnounandsecondso that internally the held object is alwaysnounand the creature is alwayssecond. -
Default behavior:
- If
nounis not inactor, callImplicitTake(noun); if that fails to acquire it, printL__M(##Give, 1, noun)("[Actor] isn't holding [the noun].") and stop. - If
second == actor(trying to give an object to oneself), printL__M(##Give, 2, noun)("[Actor] juggles [the noun] for a while, but doesn't achieve much.") and stop. - If
noun has worn, callImplicitDisrobe(noun); if the object must still be removed, stop. - If
second == player(an NPC giving to the player), movenountoplayerand printL__M(##Give, 4, noun)("[Actor] hands over [the noun]."). - Otherwise call
RunLife(second, ##Give); if it does not handle the action, printL__M(##Give, 3, second)("[recipient] doesn't seem interested.").
- If
-
Checks performed:
parentrelationships,wornattribute -
World-model effects:
move noun to player(when an NPC gives to the player) -
Library messages:
Message Condition L__M(##Give, 1)nounnot held and the implicit take failedL__M(##Give, 2)Trying to give an object to oneself ( second == actor)L__M(##Give, 3)Recipient's liferoutine did not handle the actionL__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
reversetoken swaps arguments) - Default behavior:
- Redirect to
<Give second noun, actor>(swap the two arguments back and re-enterGiveSub).
- Redirect to
- 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:
- If
secondis set, is not inCompass, and is untouchable, stop (a reachability check used byPushDir). - If the actor is inside another object (not directly in the location), run
that object's
before; then callImplicitExit()to extract the actor. If the exit fails, printL__M(##Go, 1, container)("[Actor] will have to get off/out of [it] first") and stop. (Ifbeforereturned 1, the actor instead travels together with that object.) - Determine the destination. If the direction object
nounhas adoor_dir, follow it to the relevant map property; otherwise usenoundirectly. Evaluate that direction property on the location. - If the destination is a string, print it and stop. If it is a routine, run it (a return of 1 stops silently).
- If the destination is
nothing/0: if the location has acant_go, print it viaPrintOrRun; otherwise printL__M(##Go, 2)("[Actor] can't go that way"). Stop. - If the destination is a door:
- If the door
has concealed, printL__M(##Go, 2)and stop. - If the door is not
open, attemptImplicitOpen; if that fails, printL__M(##Go, 3)whennounisu_obj("unable to climb"),L__M(##Go, 4)whennounisd_obj("unable to descend by"), or otherwiseL__M(##Go, 5)("...is in the way"), and stop. - Evaluate
door_to; if it yields 0, printL__M(##Go, 6)("...leads nowhere") and stop; a return of 1 stops silently; otherwise it becomes the destination.
- If the door
- Set
actionto the##Goingfake action and run the destination'sbefore. If intercepted, restoreactionand stop; otherwise restoreactionto##Go. - 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. - Update
location, callMoveFloatingObjects(), handle light/darkness transitions (includingDarkToDark()). Then, withactiontemporarily set to##Going, callRunRoutines(prev_location, after)to let the departure room intercept via itsafterproperty; if that returns true, restoreactionto##Goand stop. Otherwise restoreactionto##Go, runAfterRoutines(), and print the new room withLookSub(1).
- If
- Checks performed:
door,concealed,openattributes; direction properties (n_to,s_to, etc.);cant_go;door_to;door_dir;parentrelationships - World-model effects: moves
actortonext_loc; updateslocation/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_toleads nowhereL__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:
- Redirect to
<<Go in_obj, actor>>.
- Redirect to
- 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:
- Sets
receive_action = ##Insert. - If
second == d_obj(the "down" direction object) oractor in second, redirect to<<Drop noun, actor>>. - If
parent(noun) == second(already inside), printL__M(##Drop, 1, noun). - Call
ImplicitTake(noun). If the actor still does not holdnoun, printL__M(##Insert, 1, noun). - Compute
ancestor = CommonAncestor(noun, second). Ifancestor == noun(recursive containment), printL__M(##Insert, 5, noun). - Call
ObjectIsUntouchable(second)- if untouchable, stop. - If
secondis outside the common ancestor, temporarily setactionto##Receiveand callRunRoutines(second, before). Restoreactionto##Insert. Ifsecond has container && second hasnt open, callImplicitOpen(second); if it returns true, printL__M(##Insert, 3, second)(the container is closed). - If
second hasnt container, printL__M(##Insert, 2, second). - If
noun has wornandno_implicit_actionsis set, printL__M(##Disrobe, 4, noun). - If
noun has worn, callImplicitDisrobe(noun). - Call
ObjectDoesNotFit(noun, second)(and the extension hook); if either returns true, stop. - If
AtFullCapacity(noun, second), printL__M(##Insert, 7, second). - Move
nountosecond. - Call
AfterRoutines(). If intercepted, return. - If
secondis outside the common ancestor, temporarily setactionto##Receiveand callRunRoutines(second, after). - If
multiflagis set, printL__M(##Insert, 8, noun)("Done."). Otherwise printL__M(##Insert, 9, noun, second)(success).
- Sets
- Checks performed:
container,open,wornattributes;parentrelationships; capacity - World-model effects:
move noun to second; setsreceive_action = ##Insert - Library messages:
Message Condition L__M(##Drop, 1, noun)nounis already insidesecondL__M(##Insert, 1, noun)Implicit take of nounfailed; actor is not holding itL__M(##Insert, 2, second)secondis not a containerL__M(##Insert, 3, second)secondis a closed container (after a failed implicit-open)L__M(##Insert, 5, noun)Trying to put nouninside itselfL__M(##Insert, 7, second)secondis at full capacityL__M(##Insert, 8, noun)Multi-object success ("Done.") L__M(##Insert, 9, noun, second)Single-object success L__M(##Disrobe, 4, noun)nounis worn andno_implicit_actionsis 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:
- If
child(actor) == 0(nothing carried), printL__M(##Inv, 1)("[Actor] is carrying nothing") and return. - If
inventory_style == 0, redirect toInvTallSub()whenactor == player, orInvWideSub()for an NPC, and return. - Print
L__M(##Inv, 2)("[Actor] is carrying") as the header. - If
inventory_style & NEWLINE_BIT, printL__M(##Inv, 3)(a ":" separator); otherwise print a space. - Call
WriteListFrom(child(actor), inventory_style, 1)to list the actor's possessions. - If
inventory_style & ENGLISH_BIT, printL__M(##Inv, 4)(a "." footer). - Update pronouns via
PronounNotice(), then callAfterRoutines().
- If
- 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:
- Set
inventory_styletoNEWLINE_BIT + INDENT_BIT + FULLINV_BIT + RECURSE_BIT(or a variant ifactor ~= player). - Redirect to
<Inv, actor>.
- Set
- 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:
- Set
inventory_styletoENGLISH_BIT + FULLINV_BIT + RECURSE_BIT(or a variant ifactor ~= player). - Redirect to
<Inv, actor>.
- Set
- 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:
- 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.
- Print
-
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:
- If
noun has animate, printL__M(##JumpIn, 2, noun). - If
noun has enterable, redirect to<<Enter noun>>. - Otherwise print
L__M(##JumpIn, 1, noun).
- If
- Checks performed:
animate,enterableattributes - 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:
- If
noun has animate, printL__M(##JumpOn, 2, noun). - If
noun has enterableandnoun has supporter, redirect to<<Enter noun>>. - Otherwise print
L__M(##JumpOn, 1, noun).
- If
- Checks performed:
animate,enterable,supporterattributes - 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:
- If
noun has animate, printL__M(##JumpOver, 2, noun). - Otherwise print
L__M(##JumpOver, 1, noun).
This is a pure stub action; it provides default refusal messages and makes no world-model changes.
- If
-
Checks performed:
animateattribute -
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:
- Call
ObjectIsUntouchable(noun)- if untouchable, stop. - Call
RunLife(noun, ##Kiss); if it handles the action, stop. - If
noun == actor, printL__M(##Touch, 3, noun)(self-interaction message shared with Touch). - Otherwise print
L__M(##Kiss, 1, noun).
- Call
- 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 liferoutine 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:
- 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.
- Print
-
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:
- Call
ObjectIsUntouchable(noun)- if untouchable, stop. - If
noun hasnt lockable, printL__M(##Lock, 1, noun). - If
noun has locked, printL__M(##Lock, 2, noun)("It's already locked."). - If
noun has open, callImplicitClose(noun). - Check the
with_keyproperty ofnoun:- If it is an Object, it must match
second; otherwise printL__M(##Lock, 4, second)("That doesn't seem to fit."). - If it is a Routine, call it to validate the key.
- If it is an Object, it must match
- Give
nounthelockedattribute. - Call
AfterRoutines(). - If not intercepted, print
L__M(##Lock, 5, noun)("You lock ...").
- Call
- Checks performed:
lockable,locked,openattributes;with_keyproperty - World-model effects: gives
nounthelockedattribute; may callImplicitClose() - 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:
- If
parent(player) == 0, signal a runtime error and stop. - Call
NoteArrival(). - Call
FindVisibilityLevels()to determine thevisibility_ceiling. - Print the room name directly: if in darkness,
print (name) thedark; otherwiseprint (name) visibility_ceiling(orprint (The) visibility_ceilingfor a nested ceiling). The room name is not wrapped in aL__Mcall. - For each intermediate container or supporter between the player and the
visibility ceiling, print
L__M(##Look, 1, i)(ifiis a supporter) orL__M(##Look, 2, i)(ifiis a container) - these are the nesting suffixes appended to the room-name header line. - If
print_player_flag == 1, printL__M(##Look, 3, player)- the actor-name suffix. - Determine whether to print the long room description based on
lookmodeand thevisitedattribute. - Print the location's
descriptionproperty viaPrintOrRun(). - For each visibility level, call
SayWhatsOn()which printsL__M(##Look, 4, descon)listing items on supporters. - Call
Locale()to list visible objects in scope;LocaleprintsL__M(##Look, 5, descin)when "also" is needed, orL__M(##Look, 6, descin)when it is not. - Call
ScoreArrival(), which giveslocationthevisitedattribute (if not already set) and awards any first-visit points. - Call
AfterRoutines().
- If
- Checks performed: visibility levels;
container,open,transparent,supporter,visitedattributes;lookmode; darkness - World-model effects: gives
locationthevisitedattribute (if not already set); may award score viaScoreArrival() - Library messages:
Message Condition L__M(##Look, 1, i)Nesting suffix " (on X)"- printed for each supporter between player and visibility ceilingL__M(##Look, 2, i)Nesting suffix " (in X)"- printed for each container between player and visibility ceilingL__M(##Look, 3, player)Actor-name suffix " (as ActorName)"- printed whenprint_player_flag == 1L__M(##Look, 4, descon)"On the X ..."supporter-contents listing, printed bySayWhatsOn()L__M(##Look, 5, descin)"you can also see ..."listing, printed byLocale()when "also" is neededL__M(##Look, 6, descin)"you can see ..."listing, printed byLocale()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:
- If
location == thedark, printL__M(##LookUnder, 1, noun)("But it's dark."). - 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.
- If
-
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:
- Prints
L__M(##Mild, 1, noun).
- Prints
- 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:
- Prints
L__M(##No).
- Prints
- 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:
- Calls
ObjectIsUntouchable(noun). - If
nounhasntopenable, printsL__M(##Open, 1, noun). - If
nounhaslockedandImplicitUnlock(noun)fails to unlock it, printsL__M(##Open, 2, noun). - If
nounhasopen, printsL__M(##Open, 3, noun). - Gives
nounopen. - Calls
AfterRoutines(). - If not intercepted: if
nounis not acontainer, printsL__M(##Open, 5, noun). Otherwise, ifnounis opaque (nottransparent) and not adoorand the actor cannot already see inside it - that is, it is not simultaneously true that the room is lit,nounhas visible contents, andIndirectlyContains(noun, player)- printsL__M(##Open, 4, noun), which lists the newly revealed contents (or "nothing"). In all other cases printsL__M(##Open, 5, noun).
- Calls
- Checks performed:
openable,locked,open,container,transparent,doorattributes; visible contents. - World-model effects: Gives
nounopen; may callImplicitUnlock(). - Library messages:
Message Condition L__M(##Open, 1)nounis not openableL__M(##Open, 2)nounis locked (after a failed implicit unlock)L__M(##Open, 3)nounis already openL__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:
- Prints
L__M(##Pray, 1, noun).
- Prints
- 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:
- Calls
ObjectIsUntouchable(noun). - If
noun == player, printsL__M(##Pull, 1, noun). - If
noun == actor, printsL__M(##Pull, 6, noun). - If
nounhasstatic, printsL__M(##Pull, 2, noun). - If
nounhasscenery, printsL__M(##Pull, 3, noun). - If
nounhasanimate, printsL__M(##Pull, 5, noun). - Otherwise prints
L__M(##Pull, 4, noun).
- Calls
- Checks performed:
static,scenery,animateattributes; self-reference. - World-model effects: None.
- Library messages:
Message Condition L__M(##Pull, 1)Pulling the player object L__M(##Pull, 2)nounis staticL__M(##Pull, 3)nounis sceneryL__M(##Pull, 4)Default refusal L__M(##Pull, 5)nounis animateL__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:
- Calls
ObjectIsUntouchable(noun). - If
noun == player, printsL__M(##Push, 1, noun). - If
noun == actor, printsL__M(##Push, 5, noun). - If
nounhasstatic, printsL__M(##Push, 2, noun). - If
nounhasscenery, printsL__M(##Push, 3, noun). - If
nounhasanimate, printsL__M(##Push, 5, noun). - Otherwise prints
L__M(##Push, 4, noun).
- Calls
- Checks performed:
static,scenery,animateattributes; self-reference. - World-model effects: None.
- Library messages:
Message Condition L__M(##Push, 1)Pushing the player object L__M(##Push, 2)nounis staticL__M(##Push, 3)nounis sceneryL__M(##Push, 4)Default refusal L__M(##Push, 5)nounis animate, ornoun == 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:
- Prints
L__M(##PushDir, 1, noun).
This is always the default response. The game must provide a
beforerule callingAllowPushDir()for pushing objects between rooms to work. - Prints
-
Checks performed: None.
-
World-model effects: None (unless the game provides a
beforerule usingAllowPushDir()). -
Library messages:
Message Condition L__M(##PushDir, 1)Default response from PushDirSub(no purpose served)L__M(##PushDir, 2)Via AllowPushDir:secondis not a compass directionL__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:
- Sets
receive_action = ##PutOn. - If
second == d_objoractor in second, redirects to<<Drop noun, actor>>. - If
parent(noun) == second(already on the supporter), printsL__M(##Drop, 1, noun). - Calls
ImplicitTake(noun). If the actor still does not holdnoun, printsL__M(##PutOn, 1, noun). - Computes
ancestor = CommonAncestor(noun, second). Ifancestor == noun(would create a recursive container), printsL__M(##PutOn, 2, noun). - Calls
ObjectIsUntouchable(second)- if untouchable, stops. - If
secondis outside the common ancestor, temporarily setsactionto##Receiveand callsRunRoutines(second, before). Restoresactionto##PutOn. - If
secondhasntsupporter, printsL__M(##PutOn, 3, second). - If
nounhaswornandno_implicit_actionsis set, printsL__M(##Disrobe, 4, noun). - If
nounhasworn, callsImplicitDisrobe(noun). - Calls
ObjectDoesNotFit(noun, second); if it returns true (or the extension hook does), stops. - If
AtFullCapacity(noun, second), printsL__M(##PutOn, 6, second). - Moves
nountosecond. - Calls
AfterRoutines(). If intercepted, returns. - If
secondis outside the common ancestor, temporarily setsactionto##Receiveand callsRunRoutines(second, after). - If
multiflagis set, printsL__M(##PutOn, 7)("Done."). Otherwise printsL__M(##PutOn, 8, noun, second)(success).
- Sets
- Checks performed:
supporter,wornattributes; parent relationships; capacity. - World-model effects: Moves
nountosecond; setsreceive_actionto##PutOn. - Library messages:
Message Condition L__M(##Drop, 1, noun)nounis already onsecondL__M(##PutOn, 1, noun)Implicit take of nounfailed; the actor is not holding itL__M(##PutOn, 2, noun)Trying to put nounon itself (or inside its own container chain)L__M(##PutOn, 3, second)secondis not a supporterL__M(##PutOn, 6, second)secondis at full capacityL__M(##PutOn, 7)Multi-object success ("Done.") L__M(##PutOn, 8, noun, second)Single-object success L__M(##Disrobe, 4, noun)nounis worn andno_implicit_actionsis 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:
- Gets the parent of
noun(stored asi). - If
iis acontainerthat is notopenandImplicitOpen(i)fails to open it, printsL__M(##Remove, 1, i). - If
nounhasclothing: if it also hasworn, redirects to<<Disrobe noun, actor>>; otherwise, if its parent is the actor (i == actor), printsL__M(##Disrobe, 1, noun). (Ifiis a container or supporter, the clothing checks are skipped.) - If
ihasntcontainerandihasntsupporter, printsL__M(##Remove, 4, noun). - If a container was named (
second) that is not the object's actual parent (i ~= second && second ~= nothing), printsL__M(##Remove, 2, noun). - If
ihasanimate, printsL__M(##Take, 6, i, noun). - Calls
AttemptToTakeObject(noun), thenAfterRoutines()(as##Remove, then as##Take). - If not intercepted, prints
L__M(##Remove, 3, noun).
- Gets the parent of
- Checks performed:
container,open,clothing,worn,supporter,animateattributes; parent relationships. - World-model effects: Takes
nounfrom 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:
- Calls
ObjectIsUntouchable(noun). - If
nounhasanimate, printsL__M(##Rub, 2, noun). - Otherwise prints
L__M(##Rub, 1, noun).
- Calls
- Checks performed:
animateattribute. - World-model effects: None.
- Library messages:
Message Condition L__M(##Rub, 1)Default (inanimate object) L__M(##Rub, 2)nounis animate
Search
- Routine:
SearchSub - Meta: No
- Grammar:
Verb 'look' 'l//' * 'inside'/'in'/'into'/'through'/'on' noun -> Search; Verb 'search' * noun -> Search; - Default behavior:
- If
location == thedark, printsL__M(##Search, 1, noun). - If
nounis untouchable (ObjectIsUntouchable), stop. Compute the visible contents count once withVisibleContents(noun). - If
nounhassupporter: if the contents are empty, printsL__M(##Search, 2, noun)("nothing on it"); otherwise printsL__M(##Search, 3, noun)with the contents listing. - If
nounhasntcontainer, printsL__M(##Search, 4, noun)("[Actor] finds nothing of interest"). - If
nounis neithertransparentnoropenandImplicitOpen()fails to open it, printsL__M(##Search, 5, noun)("can't see inside, since it is closed"). - Calls
AfterRoutines(); if it intercepts, stop. Otherwise, if the visible contents are empty, printsL__M(##Search, 6, noun)("is empty"); otherwise printsL__M(##Search, 7, noun)with the contents listing.
- If
- Checks performed:
supporter,container,transparent,openattributes; 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)nounis not a containerL__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:
- Prints
L__M(##Set, 1, noun).
- Prints
- 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:
- Prints
L__M(##SetTo, 1, noun).
The
special_wordandspecial_numberglobals contain the parsed value. - Prints
-
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:
- If
nounis not in actor, callsImplicitTake(). - If
second == player, redirects to<<Examine noun, actor>>. - Calls
RunLife(second, ##Show). - If
RunLifereturns false, printsL__M(##Show, 2, second).
The grammar uses
reverseso that "show creature held" swapsnounandsecond. - If
-
Checks performed: Parent relationships.
-
World-model effects: None.
-
Library messages:
Message Condition L__M(##Show, 1)nounnot held (implicit take failed)L__M(##Show, 2)secondis uninterested -
Related actions:
ShowR,Give,Examine
ShowR
- Routine:
ShowRSub - Meta: No
- Grammar: (No direct grammar - reached via internal routing.)
- Default behavior:
- Redirects to
<Show second noun, actor>(reverses arguments).
- Redirects to
- Checks performed: None.
- World-model effects: None.
- Library messages: None.
- Related actions:
Show
Sing
- Routine:
SingSub - Meta: No
- Grammar:
Verb 'sing' * -> Sing; - Default behavior:
- Prints
L__M(##Sing, 1, noun).
- Prints
- 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:
- Prints
L__M(##Sleep, 1, noun).
- Prints
- 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:
- If
nounis notnothingandnounhasanimate, printsL__M(##Smell, 2, noun). - Otherwise prints
L__M(##Smell, 1, noun).
- If
- Checks performed:
animateattribute (only whennounis specified). - World-model effects: None.
- Library messages:
Message Condition L__M(##Smell, 1)Default (no noun, or inanimate noun) L__M(##Smell, 2)nounis animate
Sorry
- Routine:
SorrySub - Meta: No
- Grammar:
Verb 'sorry' * -> Sorry; - Default behavior:
- Prints
L__M(##Sorry, 1, noun).
- Prints
- 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:
- Calls
ObjectIsUntouchable(noun). - If
nounhasanimateandnoun ~= player, printsL__M(##Squeeze, 1, noun). - Otherwise prints
L__M(##Squeeze, 2, noun).
- Calls
- Checks performed:
animateattribute; self-reference (allows self-squeezing). - World-model effects: None.
- Library messages:
Message Condition L__M(##Squeeze, 1)nounis 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:
- Prints
L__M(##Strong, 1, noun).
- Prints
- 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:
- Prints
L__M(##Swim, 1, noun).
- Prints
- 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:
- Prints
L__M(##Swing, 1, noun).
- Prints
- 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:
- Calls
ObjectIsUntouchable(noun)- if untouchable, stops. - If
nounhasntswitchable, printsL__M(##SwitchOff, 1, noun)and stops. - If
nounhasnton, printsL__M(##SwitchOff, 2, noun)and stops. - Gives
noun~on. - Calls
AfterRoutines(). If not intercepted, printsL__M(##SwitchOff, 3, noun).
- Calls
- Checks performed:
switchable,onattributes. - World-model effects: Gives
noun~on. - Library messages:
Message Condition L__M(##SwitchOff, 1)nounis not switchableL__M(##SwitchOff, 2)nounis already offL__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:
- Calls
ObjectIsUntouchable(noun)- if untouchable, stops. - If
nounhasntswitchable, printsL__M(##SwitchOn, 1, noun)and stops. - If
nounhason, printsL__M(##SwitchOn, 2, noun)and stops. - Gives
nounon. - Calls
AfterRoutines(). If not intercepted, printsL__M(##SwitchOn, 3, noun).
- Calls
- Checks performed:
switchable,onattributes. - World-model effects: Gives
nounon. - Library messages:
Message Condition L__M(##SwitchOn, 1)nounis not switchableL__M(##SwitchOn, 2)nounis already onL__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:
- If
nounis inactorand hasworn, redirects to<<Disrobe noun, actor>>. - If
onotheld_mode == 0ornounis not inactor, callsAttemptToTakeObject(noun). If that routine returns true (it printed an error message), stops. - Calls
AfterRoutines(). If intercepted, stops. - Sets
notheld_mode = onotheld_mode. - If
notheld_mode == 1orkeep_silentis set, stops. - Prints
L__M(##Take, 1, noun)("Taken.").
- If
- Checks performed:
wornattribute; parent relationships;notheld_mode/onotheld_mode. - World-model effects: Moves
nountoactorand givesnoun~worn(viaAttemptToTakeObject); givesnounmovedat end of turn (viaNoteObjectAcquisitions). - 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, theLetGofake 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:
- Calls
ObjectIsUntouchable(noun)- if untouchable, stops. - If
nounhasanimate, printsL__M(##Taste, 2, noun)and stops. - Otherwise prints
L__M(##Taste, 1, noun).
- Calls
- Checks performed:
animateattribute. - World-model effects: None.
- Library messages:
Message Condition L__M(##Taste, 1)nounis inanimateL__M(##Taste, 2)nounis animate - Related actions: -
Tell
- Routine:
TellSub - Meta: No
- Grammar:
Verb 'tell' * creature 'about' topic -> Tell * creature 'to' topic -> AskTo; - Default behavior:
- If
noun == actor, printsL__M(##Tell, 1, noun)and stops. - Calls
RunLife(noun, ##Tell). IfRunLifereturns false, printsL__M(##Tell, 2, noun).
- If
- Checks performed: Self-reference.
- World-model effects: None.
- Library messages:
Message Condition L__M(##Tell, 1)Talking to yourself L__M(##Tell, 2)noun'sliferoutine did not handle the action - Related actions:
Ask,Answer
Think
- Routine:
ThinkSub - Meta: No
- Grammar:
Verb 'think' * -> Think; - Default behavior:
- Prints
L__M(##Think, 1, noun).
- Prints
- 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:
- Calls
ObjectIsUntouchable(noun)- if untouchable, stops. - If
second == nothing, printsL__M(##ThrowAt, 1, noun)and stops. - If
second > 1:- Temporarily sets
actionto##ThrownAtand callsRunRoutines(second, before). - If intercepted, restores
actionto##ThrowAtand returns. - Restores
actionto##ThrowAt.
- Temporarily sets
- If
nounhasworn, callsImplicitDisrobe(). - If
secondhasntanimate, printsL__M(##ThrowAt, 1, noun)and stops. - Calls
RunLife(second, ##ThrowAt). IfRunLifereturns false, printsL__M(##ThrowAt, 2, noun).
- Calls
- Checks performed:
animateattribute onsecond;wornattribute onnoun; validity ofsecond. - World-model effects: May call
ImplicitDisrobe()onnoun. - Library messages:
Message Condition L__M(##ThrowAt, 1)secondisnothing, orsecondis not animateL__M(##ThrowAt, 2)Target's liferoutine did not handle the action - Related actions:
ThrownAt(fake),Give - Notes: Uses the
ThrownAtfake action to let inanimate targets intercept the throw via theirbeforeproperty.
Tie
- Routine:
TieSub - Meta: No
- Grammar:
Verb 'tie' 'attach' 'connect' 'fasten' 'fix' * noun -> Tie * noun 'to' noun -> Tie; - Default behavior:
- If
nounhasanimate, printsL__M(##Tie, 2, noun)and stops. - Otherwise prints
L__M(##Tie, 1, noun).
- If
- Checks performed:
animateattribute. - World-model effects: None.
- Library messages:
Message Condition L__M(##Tie, 1)nounis inanimate (stub: impractical)L__M(##Tie, 2)nounis animate (stub: impractical) - Related actions: -
Touch
- Routine:
TouchSub - Meta: No
- Grammar:
Verb 'touch' 'feel' 'fondle' 'grope' * noun -> Touch; - Default behavior:
- If
noun == actor, printsL__M(##Touch, 3, noun)and stops. - Calls
ObjectIsUntouchable(noun)- if untouchable, stops. - If
nounhasanimate, printsL__M(##Touch, 1, noun)and stops. - Otherwise prints
L__M(##Touch, 2, noun).
- If
- Checks performed:
animateattribute; self-reference. - World-model effects: None.
- Library messages:
Message Condition L__M(##Touch, 1)nounis animateL__M(##Touch, 2)nounis inanimateL__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:
- If
nounis not inactor, callsAttemptToTakeObject(noun)to attempt an implicit take. If the take fails andnounis still not inactor, doesrfalse(returns silently - no message). - If
second == actor(giving it to oneself while already holding it), printsL__M(##Take, 5, noun)(the "already have it" message) and stops. - Delegates based on
second(each with a single-bracket<...>invocation, so control returns toTransferSubafterward):second has supporter→<PutOn noun second, actor>.second == d_obj→<Drop noun, actor>.- otherwise →
<Insert noun second, actor>.
- If the delegation failed and
nounis still inactor(meaning it was implicitly taken but could not be placed), printsL__M(##Transfer, 1, noun).
- If
- Checks performed: Parent relationships;
supporterattribute onsecond; identity ofsecondagainstd_objandactor. - 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 == actorandnounis 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:
- Calls
ObjectIsUntouchable(noun)- if untouchable, stops. - If
noun == player, printsL__M(##Turn, 1, noun)and stops. - If
noun == actor, printsL__M(##Turn, 5, noun)and stops. - If
nounhasstatic, printsL__M(##Turn, 2, noun)and stops. - If
nounhasscenery, printsL__M(##Turn, 3, noun)and stops. - If
nounhasanimate, printsL__M(##Turn, 5, noun)and stops. - Otherwise prints
L__M(##Turn, 4, noun).
- Calls
- Checks performed:
static,scenery,animateattributes; self-reference. - World-model effects: None.
- Library messages:
Message Condition L__M(##Turn, 1)Trying to turn the player object L__M(##Turn, 2)nounis staticL__M(##Turn, 3)nounis sceneryL__M(##Turn, 4)Default stub response L__M(##Turn, 5)nounis animate, ornoun == 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:
- Calls
ObjectIsUntouchable(noun)- if untouchable, stops. - If
nounhasntlockable, printsL__M(##Unlock, 1, noun)and stops. - If
nounhasntlocked, printsL__M(##Unlock, 2, noun)and stops. - Checks the
with_keyproperty:- If it is an Object,
secondmust match it; otherwise printsL__M(##Unlock, 3, second)and stops. - If it is a Routine, calls it to validate the key.
- If it is an Object,
- Gives
noun~locked. - Calls
AfterRoutines(). If not intercepted, printsL__M(##Unlock, 4, noun)(success).
- Calls
- Checks performed:
lockable,lockedattributes;with_keyproperty. - World-model effects: Gives
noun~locked. - Library messages:
Message Condition L__M(##Unlock, 1)nounis not lockableL__M(##Unlock, 2)nounis already unlockedL__M(##Unlock, 3)Wrong key ( seconddoes not matchwith_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:
- Prints
L__M(##VagueGo).
- Prints
- 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:
- Calls
AfterRoutines()first (allowingeach_turnprocessing to be intercepted). - If not intercepted, prints
L__M(##Wait, 1, noun).
- Calls
- 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 allowslocation.afteror other after handlers to replace the "Time passes" message.
Wake
- Routine:
WakeSub - Meta: No
- Grammar:
Verb 'wake' 'awake' 'awaken' * -> Wake * 'up' -> Wake; - Default behavior:
- Prints
L__M(##Wake, 1, noun).
- Prints
- 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:
- Calls
ObjectIsUntouchable(noun)- if untouchable, stops. - Calls
RunLife(noun, ##WakeOther). IfRunLifereturns false, printsL__M(##WakeOther, 1, noun).
- Calls
- Checks performed: None (beyond touchability).
- World-model effects: None.
- Library messages:
Message Condition L__M(##WakeOther, 1)noun'sliferoutine did not handle the action - Related actions:
Wake
Wave
- Routine:
WaveSub - Meta: No
- Grammar:
Verb 'wave' * noun -> Wave * noun 'at' noun -> Wave; - Default behavior:
- If
noun == player, printsL__M(##Wave, 2, noun, second)(success) and stops. - If
noun == actor(the acting NPC), printsL__M(##Wave, 3, noun, second), which callsDecideAgainst()to refuse, and stops. - Calls
ImplicitTake(noun); ifnounis still not held by the actor, printsL__M(##Wave, 1, noun)and stops. - Otherwise prints
L__M(##Wave, 2, noun, second)(success).
- If
- 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 whennounis the player)L__M(##Wave, 3)nounis the actor; the action is refused - Related actions:
WaveHands
WaveHands
- Routine:
WaveHandsSub - Meta: No
- Grammar:
Verb 'wave' * -> WaveHands * 'at' noun -> WaveHands; - Default behavior:
- If
nounis specified (non-zero), printsL__M(##WaveHands, 2, noun). - Otherwise prints
L__M(##WaveHands, 1, noun).
- If
- 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:
- Calls
ObjectIsUntouchable(noun)- if untouchable, stops. - If
nounhasntclothing, printsL__M(##Wear, 1, noun)and stops. - If
nounis not inactorand is not alreadyworn:- If
nounis reachable (IndirectlyContains(actor, noun), or its parent is acontainer/supporter): whenno_implicit_actionsis set, printsL__M(##Wear, 5)and stops; otherwise prints the implicit-take announcementL__M(##Miscellany, 58)and callsAttemptToTakeObject()- execution continues whether or not the take succeeds. - Otherwise prints
L__M(##Wear, 2)and stops.
- If
- If
nounhasworn, printsL__M(##Wear, 3, noun)and stops. - Gives
nounworn. - Calls
AfterRoutines(). If not intercepted, printsL__M(##Wear, 4, noun).
- Calls
- Checks performed:
clothing,wornattributes; parent relationships;no_implicit_actions. - World-model effects: Gives
nounworn; may callAttemptToTakeObject(). - Library messages:
Message Condition L__M(##Wear, 1)nounis not clothingL__M(##Wear, 2)nounis not heldL__M(##Wear, 3)nounis already wornL__M(##Wear, 4)Successfully put on L__M(##Wear, 5)An implicit take is needed but no_implicit_actionsis setL__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:
- Prints
L__M(##Yes).
- Prints
- 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. Setsxcommsdir = 0. PrintsL__M(##CommandsOff, 1). [Glulx] Ifgg_commandstris not active, printsL__M(##CommandsOff, 2). Otherwise, if a command replay is in progress (gg_command_reading), printsL__M(##CommandsRead, 5)and returns without closing; otherwise closes the stream, clearsgg_commandstrandgg_command_reading, and printsL__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. Setsxcommsdir = 1. PrintsL__M(##CommandsOn, 1). [Glulx] Uses Glk file dialogs to open command recording file. PrintsL__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. Setsxcommsdir = 2. PrintsL__M(##CommandsRead, 1). [Glulx] Uses Glk file dialogs to open command replay file. Setsgg_command_reading = true. PrintsL__M(##CommandsRead, 1-4)(message 5 is printed byCommandsOffSub). - 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 whenscoreis 0 orTASKS_PROVIDEDis 1 (its default; a game enables the breakdown by settingTASKS_PROVIDED = 0). Otherwise printsL__M(##FullScore, 1)(the "made up as follows:" header), iterates the tasks and prints each completed one viaTaskScore()/PrintTaskName(), then printsthings_scorelabelled byL__M(##FullScore, 2)("finding sundry items") andplaces_scorelabelled byL__M(##FullScore, 3)("visiting various places"), and finally the total labelled byL__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. PrintsL__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. PrintsL__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. PrintsL__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
lookmodetoinitial_lookmodevalue - Related actions:
LMode1,LMode2,LMode3
NotifyOff
- Routine:
NotifyOffSub - Meta: Yes
- Grammar:
Verb meta 'notify', * 'off' -> NotifyOff - Default behavior: Sets
notify_mode = false. PrintsL__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. PrintsL__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:
ObjectsSubdelegates toObjects1Sub. 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,enterableattributes - 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:
PlacesSubdelegates toPlaces1Sub. Lists all rooms with thevisitedattribute, or reports that nothing has been visited if there are none. - Checks performed:
visitedattribute - 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
LanguagePronounstable 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). CallsYesOrNo(). If yes, callsquitopcode. - Library messages:
L__M(##Quit, 2)
Restart
- Routine:
RestartSub - Meta: Yes
- Grammar:
Verb meta 'restart', * -> Restart - Default behavior: Prints
L__M(##Restart, 1)(confirmation). IfYesOrNo(), calls@restart. If restart fails, printsL__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
@restoreopcode. On failure printsL__M(##Restore, 1). On success, callsAfterRestore(). [Glulx] Uses Glk file dialogs for file selection and the@restoreopcode. - 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
@saveopcode. On failure printsL__M(##Save, 1). On success printsL__M(##Save, 2). Also detects restore-after-save (printsL__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_SCOREdefined, printsL__M(##Score, 2). Otherwise printsL__M(##Score, 1). CallsPrintRank()andLibraryExtensions.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, printsL__M(##ScriptOff, 1). Otherwise calls@output_stream -2, setstranscript_mode = false, printsL__M(##ScriptOff, 2). [Glulx] Checksgg_scriptstr. Closes stream. PrintsL__M(##ScriptOff, 1)orL__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_modeandHDR_GAMEFLAGS. If already on, printsL__M(##ScriptOn, 1). Otherwise calls@output_stream 2, setstranscript_mode = true, printsL__M(##ScriptOn, 2)orL__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
@verifyopcode. PrintsL__M(##Verify, 1)on success orL__M(##Verify, 2)on failure. [Glulx] Calls the@verifyopcode-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_ACTIONSfromdebug_flag. Prints"[Action listing off.]"
ActionsOn
- Routine:
ActionsOnSub - Meta: Yes
- Grammar:
Verb meta 'actions' * -> ActionsOn, * 'on' -> ActionsOn - Default behavior: Sets
DEBUG_ACTIONSindebug_flag. Prints"[Action listing on.]"
ChangesOff
- Routine:
ChangesOffSub - Meta: Yes
- Grammar:
Verb meta 'changes' * 'off' -> ChangesOff - Default behavior: Clears
DEBUG_CHANGESfromdebug_flag. Prints"[Changes listing off.]"
ChangesOn
- Routine:
ChangesOnSub - Meta: Yes
- Grammar:
Verb meta 'changes' * -> ChangesOn, * 'on' -> ChangesOn - Default behavior: Sets
DEBUG_CHANGESindebug_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
nounby walking up the parent chain. Teleports player to that room viaPlayerTo().
Goto
- Routine:
GotoSub - Meta: Yes
- Grammar:
Verb meta 'goto' * anynumber -> Goto - Default behavior: Teleports player directly to
nounviaPlayerTo(noun). Validatesnounis 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_MESSAGESfromdebug_flag. Prints"[Message listing off.]"
RoutinesOn
- Routine:
RoutinesOnSub - Meta: Yes
- Grammar:
Verb meta 'routines' 'messages' * -> RoutinesOn, * 'on' -> RoutinesOn - Default behavior: Sets
DEBUG_MESSAGESindebug_flag. Prints"[Message listing on.]"
RoutinesVerbose
- Routine:
RoutinesVerboseSub - Meta: Yes
- Grammar:
Verb meta 'routines' 'messages' * 'verbose' -> RoutinesVerbose - Default behavior: Sets
DEBUG_VERBOSE|DEBUG_MESSAGESindebug_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 ofnoun(orplayerif 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_TIMERSfromdebug_flag. Prints"[Timers listing off.]"
TimersOn
- Routine:
TimersOnSub - Meta: Yes
- Grammar:
Verb meta 'timers' 'daemons' * -> TimersOn, * 'on' -> TimersOn - Default behavior: Sets
DEBUG_TIMERSindebug_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
nounis an Object. CallsXTestMove(noun, second). Movesnountosecond.
XPurloin
- Routine:
XPurloinSub - Meta: Yes
- Grammar:
Verb meta 'purloin' * anynumber -> XPurloin, * multi -> XPurloin - Default behavior: Validates
nounis an Object. CallsXTestMove(noun, player). Movesnountoplayer. Givesnounmoved, givesnoun~concealed. - World-model effects:
move noun to player; givemoved; 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. Ifnounis specified, prints subtree fromnoun.
§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. |
Examination and Search
| 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. |