TRIGEDIT-VARIABLES-SPECIALS SPEC-VAR SELF RANDOM RANDOM TIME PEOPLE TRIGEDIT-SPEC-VAR RANDOM.CHAR SPEECH

From 4Dimensions
Revision as of 14:29, 14 July 2017 by Loran (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

TRIGEDIT-VARIABLES-SPECIALS SPEC-VAR SELF RANDOM RANDOM TIME PEOPLE TRIGEDIT-SPEC-VAR RANDOM.CHAR SPEECH

Special Variables When using field - The variable returns:


self - The mob, item, or room running the script. Normal fields may be

used with this.

time.<field> - Field may be hour, day, month, or year. The returned value will

be the current hour in the mud (0-23), day of the month (1-35),

month (1-16), or year respectively.

people.<vnum> - This variable returns the number of people in the room

specified via vnum.

random.<#> - This returns a number between 1 and the field value.

%random.10% would return a number between 1 and 10.

random.char - This returns a random character in the room.

speech - This variable is set to the complete phrase spoken by an actor

that triggers a speech trigger.


|%var% - name's, someone's, your

&%var% - it, you, he/she

  • %var% - it, you, him/her
  • object only

'%obj% - something, name


Example: {cRTSTAT 31{c0