CHAR-VARS
The following fields can be used with the %actor% global variable. Fields are addressed with the ".<field>" nomenclature:
%actor.<field>%
For example:
%actor.level%
Omitting the subfield name returns the value. Adding a subfield modifies the value.
| Field | Returns |
|---|---|
| str(), stradd(), int(), wis(),
dex(), con(), cha() |
<field>() check stat value
<field>(integer) modify stat value |
| alias | list of aliases of the mob or the player name. |
| align | actor alignment |
| affect() | actor affect(s) |
| armor | actor AC |
| canbeseen | checks if the the mob can see the actor |
| class | string value |
| drunk() | 0 - sober
10 - drunk 12 - shitfaced -1 - OFF |
| exp() | experience |
| eq() | ID of first object equipped |
| fighting | unique id of mob fighting actor |
| follower(<name>) | unique id of follower |
| gold() | gold in inventory |
| has_item(<id>) | check if actor has an object in inventory or equipment |
| hasattached(<context>) | check if specified trigger is attached |
| height() | actor height |
| heshe | subjective pronoun (he/she/it) |
| himher | objective pronoun (him/her/it) |
| hitp() | hit points |
| hunger(<value>) | 0 - hungry
24 - full -1 - OFF |
| id | actor id |
| inventory() | returns id of first item in inventory |
| is_killer() | checks actor KILLER flag |
| is_pc | 0 - actor is a mob
1 - actor is a player character |
| is_thief() | check actor THIEF flag |
| level | current level |
| mana() | actor's current mana points |
| master | id of master (charmer) of the actor |
| maxhitp() | max hit points |
| maxmana() | max mana points |
| maxmove() | max movement points |
| move() | movement points |
| name | name for pcs or short description for npcs |
| next_in_room | next mob/player in the room as a variable (id)
TSTAT 23 |
| pos() | position string (sleeping, resting, sitting, fighting, standing, flying)
TSTAT 1399,20997 |
| prac() | remaining practices |
| pref() | PRF enabled = 1
TSTAT 1210 |
| quest | current quest |
| questdone(<quest vnum>) | TRUE if vnum completed |
| questpoint() | questpoints earned |
| room | current room vnum |
| saving_para() | save vs paralysis |
| saving_rod() | save vs staff/wand |
| saving_petri() | save vs petrification |
| saving_breath() | save vs breath |
| saving_spell() | save vs magic |
| sex | male , female or neutral |
| skill("<skill>") | skill proficiency % |
| skillset("<skill>" <proficiency %>) | set proficiency % for a skill or spell (1-100)
i.e. %actor.skillset("magic missile" 95) |
| thirst() | thirst value (0-24)
0 - thirsty 24 - full |
| title() | PC title |
| varxists() | 1 = global variable subfield exists
0 = missing |
| vnum() | actor vnum
%self.vnum(#)% == !%self.vnum% |
| weight() | actor weight |
