To make things come alive, variables are needed. Here is the list of known variables.

$i

the first of the keywords of the mobile itself.

$I

the short description of the mobile itself.

$n

the name of whomever caused the trigger to happen.

$N

the name and title of whomever caused the trigger to happen.

$t

the name of a secondary character target (e.g. A smiles at B)

$T

the short description, or name and title of target (NPC vs PC)

$r

the name of a random char in the room with the mobile (never == $i)

$R

the short description, or name and title of the random char

 

 

$j

he, she, it based on sex of $i.

$J

he, she, it based on sex of $r.

$e

he, she, it based on sex of $n.

$E

he, she, it based on sex of $t.

 

 

$k

him, her, it based on sex of $i.

$K

him, her, it based on sex of $r.

$m

him, her, it based on sex of $n.

$M

him, her, it based on sex of $t.

 

 

$l

his, hers, its based on sex of $i.

$L

his, hers, its based on sex of $r.

$s

his, hers, its based on sex of $n.

$S

his, hers, its based on sex of $t.

 

 

$o

the first of the names of the primary object (i.e A drops B)

$O

the short description of the primary object

$p

the first of the names of the secondary object (i.e A puts B in C)

$P

the short description of the secondary object

 

 

$a 

a,an based on first character of $o

$A

a,an based on first character of $p

NOTE: Usually, it is best to use the short descriptions of mobiles and the names of players when speaking to them, but if you are performing an                         action to someone, almost always you want the name. The title field for players is an extra that probably won't often be used.

Also, in if_checks, the accepted variables are the basic ones (i,n,t,r,o,p). If a variable is referenced that doesnt exist, then the value is simply left                         blank. (i.e referring to $o when the trigger is: A kisses B)

The only problem with the variables is that the secondary object and the secondary target are passed by act() in the same location. This means that                            if you reference $t in an A puts B in C situation, the result will probably be a happy mud crash or some weird side effect, especially if $t is used in an               if_check (i.e. if isnpc($t) in the above situation).