Object 3892

Mob Progs Manual: C3 Variables

Chapter 3  Variables

In the game, variables are needed to reference stuff.  You cannot
reference  anything without a variable.  Therefore, here is a
list of possible variables:


$i      the first of the names 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 (i.e 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.
$e      he,she,it based on sex of $n.
$E      he,she,it based on sex of $t.
$J      he,she,it based on sex of $r.
$k      him,her,it based on sex of $i.
$m      him,her,it based on sex of $n.
$M      him,her,it based on sex of $t.
$K      him,her,it based on sex of $r.
$l      his,hers,its based on sex of $i.
$s      his,hers,its based on sex of $n.
$S      his,hers,its based on sex of $t.
$L      his,hers,its based on sex of $r.
$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
        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)


Extra Descriptions: manual mob progs C1 create type IN_FILE_PROG ACT_PROG BRIBE_PROG ENTRY_PROG GIVE_PROG GREET_PROG ALL_GREET_PROG FIGHT_PROG HITPERCENT_PROG HITPRCNT_PROG DEATH_PROG RAND_PROG SPEECH_PROG ARGS commands destroy C2 C3 Variables C4 Reference mobcommands
Back to the Main Builder Resources Page
© World of Pain, All rights reserved.