Time of Day

Can be used in calculations only (not displayed directly).

ValueWhen true
time.morningBefore 6 o’clock
time.dayBetween 6 and 19 o’clock
time.eveningAfter 19 o’clock

Affects

Can be used in calculations only. Returns true if the observer is currently affected.

  • affect.blind
  • affect.invisible
  • affect.detect-align
  • affect.detect-invis
  • affect.detect-magic
  • affect.detect-hidden
  • affect.snare
  • affect.sanctuary
  • affect.faerie-fire
  • affect.infrared
  • affect.curse
  • affect.change-sex
  • affect.poison
  • affect.protect
  • affect.polymorph
  • affect.sneak
  • affect.hide
  • affect.sleep
  • affect.charm
  • affect.flying
  • affect.pass-door
  • affect.waterwalk
  • affect.plague
  • affect.mute
  • affect.gills
  • affect.vamp-bite
  • affect.ghoul
  • affect.flaming
  • affect.camouflage
  • affect.explore
  • affect.animate

Race

Can be used in calculations only. To display the observer’s race use {race}. To check it use [{race} == {race.elf}].

  • race.human
  • race.elf
  • race.halfelf
  • race.drow
  • race.dwarf
  • race.halfdwarf
  • race.hobbit
  • race.bird
  • race.aarakocra
  • race.giant
  • race.ogre
  • race.halfogre
  • race.orc
  • race.kobold
  • race.minotaur
  • race.troll
  • race.hobgoblin
  • race.insect
  • race.dragon
  • race.animal
  • race.god
  • race.demon
  • race.undead
  • race.harpy
  • race.bear
  • race.githyanki
  • race.elemental
  • race.bat
  • race.plant
  • race.rat
  • race.vampire
  • race.werewolf
  • race.goblin
  • race.faerie
  • race.arachnid
  • race.mindflayer
  • race.object
  • race.mist
  • race.snake
  • race.worm
  • race.fish
  • race.hydra
  • race.lizard
  • race.gnome
  • race.halfkobold
  • race.merfolk

String Lookups (display only)

VariableDisplays
resultResult of the last calculation, formatted for display.
nameShort description of the observer.
opponentShort description of whoever the observer is fighting (or “someone”).
his/herhis, her, or its based on observer gender.
his/hershis, hers, or its.
him/herhim, her, or it.
he/shehe, she, or it.
opponent.his/herAs above for opponent.
opponent.his/hersAs above for opponent.
opponent.him/herAs above for opponent.
opponent.he/sheAs above for opponent.

String or Number Lookups

These can be printed with { } (string form) or used in calculations with [ ] (numeric form).

VariableNotes
hp, max.hpCurrent and maximum hitpoints.
mana, max.manaCurrent and maximum mana.
move, max.moveCurrent and maximum moves.
stam, max.stamCurrent and maximum stamina.
genderString: male / female / neuter.
gender.male, gender.female, gender.neuterTrue or false.
raceRace name string or numeric race ID.
class1, class2Primary and secondary class. See Class List.
languageLanguage the observer is speaking.
levelObserver’s level.
dir.fromDirection the observer last traveled. See Directions.
goldGold carried.
position, tpositionObserver’s and target’s position. See Positions.
save.throwSaving throw.
alignmentAlignment.
hit.roll, dam.rollTo-hit and damage rolls.
metalMetal worn.
wimpyWimpy threshold.
strength, intelligence, wisdom, dexterity, constitutionStat values.
sizeSize value 1–15. See Size List.
time.hour, time.day, time.monthMud clock values.
percent, percent.storeCurrent and last percentage.
weather.skySee Weather List.
weather.changebetter or worse.
weather.sunlightDark, rise (dawn), light, or set (dusk).
wear.<LOCATION>String: item short description; numeric: true if slot occupied. See Equipment Locations.

Directions

  • dir.north
  • dir.northeast
  • dir.east
  • dir.southeast
  • dir.south
  • dir.southwest
  • dir.west
  • dir.northwest
  • dir.up
  • dir.down
  • dir.other — teleport/summon

Weather

ValueMeaning
weather.cloudlessClear sky
weather.cloudyCloudy sky
weather.rainingRaining
weather.lightningLightning storm
weather.darkNight
weather.riseDawn
weather.lightDaytime
weather.setSunset

Classes

ValueClass
class.magMage
class.cleCleric
class.thiThief
class.warWarrior
class.palPaladin
class.ninNinja
class.ranRanger
class.tdrTrader
class.wriWright
class.trvTraveler
class.supSupplier
class.smiSmith
class.alcAlchemist / Cook

Size

Size values correspond to races. Used in comparisons like [{size} <= {size.dwarf}].

  • size.human
  • size.elf
  • size.halfelf
  • size.drow
  • size.dwarf
  • size.halfdwarf
  • size.hobbit
  • size.bird
  • size.aarakocra
  • size.giant
  • size.ogre
  • size.halfogre
  • size.orc
  • size.kobold
  • size.minotaur
  • size.troll
  • size.hobgoblin
  • size.insect
  • size.dragon
  • size.animal
  • size.god
  • size.demon
  • size.undead
  • size.harpy
  • size.bear
  • size.githyanki
  • size.elemental
  • size.bat
  • size.plant
  • size.rat
  • size.vampire
  • size.werewolf
  • size.goblin
  • size.faerie
  • size.arachnid
  • size.mindflayer
  • size.object
  • size.mist
  • size.snake
  • size.worm
  • size.fish
  • size.hydra
  • size.lizard
  • size.gnome
  • size.halfkobold
  • size.merfolk

Positions

ValueString formNotes
position.deaddead
position.mortalmortally wounded
position.incapincapacitated
position.stunnedstunned
position.sleepingsleeping
position.restingresting
position.fightingfighting
position.standingstanding
position.flyingtrue / falseFlying is not a separate position; it is true when standing and affected by flying or a flying race. Must be tested with [{position.flying} == true] or false, not compared to {position}.

Equipment Locations

ValueSlot
wear.lightHeld as a light
wear.headOn head
wear.faceOn face
wear.neck1, wear.neck2Around neck
wear.armsOn arms
wear.wrist.left, wear.wrist.rightOn wrists
wear.handsOn hands
wear.finger.left, wear.finger.rightOn fingers
wear.wield.primaryWeapon in main hand
wear.wield.secondaryWeapon in off hand
wear.shieldUsed as shield
wear.holdHeld
wear.bodyOn body
wear.aboutAbout body
wear.waistAround waist
wear.legsOn legs
wear.feetOn feet
wear.prideWorn with pride
wear.onOn back