Standard Actions Reference

All standard actions are provided by @sharpee/stdlib. Actions follow a four-phase pattern: validateexecutereportblocked.

Movement

Action IDVerbsDescriptionRequired Traits
if.action.goinggo, north/n, south/s, east/e, west/w, ne, nw, se, sw, up/u, down/d, in, outMove to adjacent location— (room exits)
if.action.enteringenter, get in, climb in, board, get onEnter an enterable object or vehicleEnterableTrait
if.action.exitingexit, get out, leave, climb out, disembark, get offExit current container or vehicle— (player location)
if.action.climbingclimbClimb an object— (validated by action)

Observation

Action IDVerbsDescriptionRequired Traits
if.action.lookinglook, lDescribe current location and visible items
if.action.examiningexamine, x, inspect, look atExamine an object in detail— (must be visible)
if.action.searchingsearch, look in, rummageSearch containers for items
if.action.listeninglisten, listen toListen to surroundings or object
if.action.smellingsmellSmell surroundings or object
if.action.touchingtouch, rub, feel, pat, stroke, poke, prodTouch or feel an object— (must be reachable)
if.action.readingread, peruse, studyRead text on an object— (must be visible)

Object Manipulation

Action IDVerbsDescriptionRequired Traits
if.action.takingtake, get, grab, pick upPick up an object— (SceneryTrait blocks)
if.action.droppingdrop, discard, put downPut down a held object— (must be held)
if.action.puttingput onPlace item on a supporterSupporterTrait (target)
if.action.insertingput in, insertPlace item in a containerContainerTrait (target)
if.action.removingremove fromRemove item from container/supporter
if.action.throwingthrow at, throw toThrow an object at a target— (must be held)

Containers & Doors

Action IDVerbsDescriptionRequired Traits
if.action.openingopenOpen a container, door, or openableOpenableTrait
if.action.closingcloseClose a container or doorOpenableTrait
if.action.lockinglock, lock withLock a door or containerLockableTrait
if.action.unlockingunlock, unlock withUnlock a door or containerLockableTrait

Devices

Action IDVerbsDescriptionRequired Traits
if.action.switching_onturn on, switch on, flip onTurn on a deviceSwitchableTrait
if.action.switching_offturn off, switch off, flip offTurn off a deviceSwitchableTrait
if.action.pushingpush, press, shove, movePush or press an object
if.action.pullingpull, drag, yankPull an object

Wearing

Action IDVerbsDescriptionRequired Traits
if.action.wearingwear, put onPut on a wearable itemWearableTrait
if.action.taking_offtake off, remove, doffRemove a worn itemWearableTrait

Consumption

Action IDVerbsDescriptionRequired Traits
if.action.eatingeatEat a food item
if.action.drinkingdrink, quaffDrink a liquid

Communication

Action IDVerbsDescriptionRequired Traits
if.action.talkingtalk, talk toTalk to an NPC
if.action.givinggive to, offer toGive an item to an NPCActorTrait (recipient)
if.action.showingshow toShow an item to an NPCActorTrait (recipient)
if.action.askingask aboutAsk an NPC about a topicActorTrait (NPC)
if.action.tellingtell aboutTell an NPC about a topicActorTrait (NPC)

Combat

Action IDVerbsDescriptionRequired Traits
if.action.attackingattack, kill, fight, slay, murder, hit, strikeAttack a creature or object

Capability Dispatch

These actions have no standard semantics — the target entity’s trait determines what happens. See Capability Dispatch for details.

Action IDVerbsDescription
if.action.loweringlowerLower an object (entity-specific behavior)
if.action.raisingraise, liftRaise or lift an object (entity-specific behavior)

Meta / System

Action IDVerbsDescription
if.action.inventoryinventory, inv, iDisplay player inventory
if.action.waitingwait, zWait one turn
if.action.sleepingsleepAttempt to sleep
if.action.scoringscoreDisplay current score
if.action.savingsaveSave game state
if.action.restoringrestoreRestore saved game
if.action.restartingrestartRestart the game
if.action.undoingundoUndo last command
if.action.againagain, gRepeat last command
if.action.quittingquit, qExit the game
if.action.helphelpShow help information
if.action.aboutaboutShow game information
if.action.versionversionShow version number