TOKEN |
REV |
PARAMETERS |
DESCRIPTION |
S |
D |
N |
ACT (action) |
1 |
<hex1>
"ACT 15" |
Make the player perform a certain action like fall down backwards for instance. |
Yes |
Yes |
Yes |
CALCUSES |
1 |
<value>
"CALCUSES -1" |
Performs math on the items uses. If the uses reaches 0 then the trigger will
flow on otherwise a use is calculated and the trigger is aborted. Use this in
conjuction with the "RNDUSES" and the "SETUSES" tokens. |
No |
Yes |
No |
COLOR |
1 |
<hex1> <hex2>
"COLOR 04 81" |
Tells the trigger to also make a color check on a NEED check. Use this token
before the NEED token. *NOTE* This token is coded but not yet functional. |
Yes |
Yes |
Yes |
CSKL (Check Skill) |
2 |
<skill>
"CSKL 7" |
Performs a check on the players specified skill. This function will select a
random number between 1 and 1000. If the value is below the players current skill,
then the trigger will continue flow otherwise the trigger is aborted. |
Yes |
Yes |
Yes |
DEX (Dexterity) |
1 |
<value>
"DEX 1" |
Performs math on the dexterity of the player that fired the trigger. See
"HEA" |
Yes |
Yes |
Yes |
DISABLE |
1 |
<seconds>
"DISABLE 10" |
Disabled the item or the NPC for n seconds. This means that the trigger
cannot be fired until the disabled timer reached zero. |
No |
Yes |
Yes |
EMT (Emote) |
1 |
<string>
"EMT Hail stranger!" |
Make the player that fired the trigger emote something to all the other players around
them. |
Yes |
Yes |
Yes |
FMSG (Fail Message) |
1 |
<message>
"FMSG That did not work." |
Set a Fail Message variable that can be used in conjunction witht he CSKL token to
display a specific message if the skill check fails. |
Yes |
Yes |
Yes |
HEA (Health) |
1 |
<value>
"HEA -5" <-subtract 5
"HEA 5" <-add 5 |
Performs math on the health of the player that fired the trigger. Specifying a
negative number will subtract that value from the players health. A positive value will
add that value to the players health. |
Yes |
Yes |
Yes |
IADD (Add Item) |
1 |
<script>
"IADD 5004" |
Add a item according to the script number as defined in the "items.scp"
file. Item is placed at the players location depending on the direction they are facing. |
Yes |
Yes |
Yes |
IDADD (add item by ID) |
2 |
<hex1> < hex2> <amt>
"IDADD 19 b9 1" |
Add a item to the players pack according to the ID specified here. If the item
is already in the pack, the item will be stacked. This token is used to add items
not scripted in the "items.scp" file. |
Yes |
Yes |
Yes |
IDFX (Effect by ID) |
2 |
<hex1> <hex2>
"IDFX 37 1a" |
Make a special effect occur from the players location to the target location. If
token is used in a NPC trigger, then the effect will go from the NPCs location to the
players location. |
Yes |
Yes |
Yes |
IFOWNER |
1 |
"IFOWNER" |
If triggered item or NPC is owned by the triggering character, then fire trigger or
else abort the trigger. |
No |
Yes |
Yes |
IFSKL
(If Skill) |
1 |
<skill> <value>
"IFSKL 7 -100" |
Does a specific check on the skill of the player. A negative value will make the
check under the specified skill, a positive value will make the check above the specified
skill.
For example, "IFSKL 7 -100" will continue flow of the trigger if the players
Blacksmithy skill is below or equal to 10.0. "IFSKL 7 300" will continue flow of
the trigger if the skill is 30.0 or above. |
Yes |
Yes |
Yes |
INT (Intelligence) |
1 |
<value>
"INT 1" |
Perform math on the intelligence of the player that fired the trigger. See
"HEA" |
Yes |
Yes |
Yes |
MAKE |
2 |
<script> <skill>
"MAKE 1 7" |
This will make a item menu pop up for the player to select from as according to the
script number in the "create.scp" file and by skill. |
Yes |
Yes |
Yes |
MAN (Mana) |
1 |
<value>
"MANA -5" |
Perform math on the mana of the player that fired the trigger. See "HEA" |
Yes |
Yes |
Yes |
MISC |
1 |
<function>
"MISC BANK" |
This token is used to be able to perform a miscellaneous gaming function. The
functions currently coded in the token are: BANK |
Yes |
Yes |
Yes |
MSG (Message) |
1 |
<string>
"MSG You eat the bread" |
Sends a message to the players client that is displayed at the bottom. |
Yes |
Yes |
Yes |
NADD (Add NPC) |
1 |
<script>
"NADD 7021" |
Add an NPC according to thier script number as defined in the "npc.scp"
file. Static will add NPC at envoked location. Dynamic adds NPC at items location if on
ground or in front of player if item is in the pack. NPC will add the NPC in front of
player. |
Yes |
Yes |
Yes |
NEED |
1 |
<xHex1Hex2>
"NEED x19b7" |
Specifies that the player must contain at least one item in thier pack that matches
the specfied ID's. If the item exists then the triggers flow will continue otherwise
the trigger is aborted. |
Yes |
Yes |
Yes |
NEWNAME |
1 |
<name>
"NEWNAME a bottle of apple cider" |
Set the name of the newly created item or NPC to a different name. |
Yes |
Yes |
Yes |
NEWOWNER |
1 |
"NEWOWNER" |
Set the newly created item or NPC to be owned by the triggering character. Use
after a NADD, IADD or a IDADD. |
Yes |
Yes |
Yes |
NEWTRIG |
1 |
<trigger>
"NEWTRIG" |
Use after a NADD, IADD or IDADD to assign a dynamic trigger number to the newly
created item or NPC. |
Yes |
Yes |
Yes |
SETTYPE & NEWTYPE |
2 |
<type>
"NEWTYPE 14" |
Used to set the type of the current item. If used after the IDADD, then it will
set the type of the item just created. If the trigger containing this token was
fired by an item, will set the type of that item. |
Yes |
Yes |
No |
NEWWORD |
1 |
<word>
"NEWWORD Im thristy" |
Used after a NADD to set a new trigger word to the newly created NPC. Not to be
confused with "SETWORD". |
Yes |
Yes |
Yes |
NPCACT
(NPC Action) |
1 |
<hex1>
"NPCACT 15" |
Makes the triggered NPC perform a certain action like falling down for instance. |
No |
No |
Yes |
PUT |
1 |
<x> <y> <z>
"PUT 560 2173 0" |
Teleport the player that fired the trigger to a specified location. |
Yes |
Yes |
Yes |
RAND (Random) |
1 |
<hival> <failval>
"RAND 1000 200" |
Chooses a random number between 1 and <hival> and will abort the trigger if the
value chosen is above the <failval>. |
Yes |
Yes |
Yes |
RANGE |
1 |
<range>
"RANGE 2" |
Use at the beginning of a trigger to determine if the character is close enough to use
the trigger. If the character is not within the range specified here, then a message
is displayed indicating so and the trigger is aborted. Ommiting this token indicates
that there is no range required to activate the trigger |
Yes |
Yes |
No |
REMOVE |
2 |
"REMOVE" |
Remove one of the triggered items from the game. If the item is stacked, one
will be removed from the stack otherwise the item is removed from the game. |
No |
Yes |
No |
REQ (Requires Item) |
1 |
<xHex1Hex2>
"REQ xf43" |
Specifies that the trigger can only be fired by triggering it with an evoked item that
contains the hex id if the evoked item. If the condition is met then flow will
continue otherwise the trigger is aborted. |
Yes |
Yes |
No |
RNDUSES (random uses) |
1 |
<lowvalue> <hivalue>
"RNDUSES 5 20" |
Will calculate a random amount of uses for the item from 1 to <hivalue> then
adding <lowvalue>. |
No |
Yes |
No |
SETID |
1 |
<hex1> <hex2>
"SETID 10 72" |
Set the items or NPCs graphical ID to a new value. For morphing characters or
making flipping switches. |
No |
Yes |
Yes |
SETEVID
(Set evoked items ID) |
1 |
<hex1> <hex2>
"SETEVID 10 72" |
Changes the ID of the item that evoked the trigger. |
Yes |
Yes |
No |
SETOWNER |
2 |
"SETOWNER" |
Sets the triggered item or NPC to be owned by triggereing character. If the
trigger is an NPC trigger, it will set the NPC to be owned by the triggering player. Not
to be confused by NEWOWNER. |
No |
Yes |
Yes |
SETTRG (Set Trigger) |
1 |
<trigger>
"SETTRG 20" |
Sets the items or NPC's trigger to a new trigger assignment to enable you to chain
triggers together. |
No |
Yes |
Yes |
SETUSES |
1 |
<value>
"SETUSES 10" |
Sets the items uses to the specified value. You can also have the item have a
predetermined amount of uses upon creation by adding the "USES #" token to the
items section in the "items.scp" file |
No |
Yes |
No |
SETWORD |
1 |
<string>
"SETWORD Hail" |
Used to change the trigger word of an NPC. |
No |
No |
Yes |
SKL (Skill Math) |
2 |
<skill> <value>
"SKL 7 5" |
Performs math on the specified skill of the player that fired the trigger. If the
<value> is '0' (zero) then this will force this token to call the advanceskill
routine to perform more conplex skill calculations. |
Yes |
Yes |
Yes |
SND (Play Sound) |
1 |
<hex1> <hex2>
"SND 00 42" |
Plays a sound at the players location and to all players within ear shot. |
Yes |
Yes |
Yes |
STAM (Stamina) |
1 |
<value>
"STAM 10" |
Perform math of the stamina of the player that fired the trigger. See
"HEA" |
Yes |
Yes |
Yes |
STR (Strength) |
1 |
<value>
"STR 1" |
Perform math on the strength of the player that fired the trigger. See
"HEA" |
Yes |
Yes |
Yes |
TARG
(Target location) |
1 |
<dynamic trigger>
"TARG 22" |
Gives the player a targeting cursor and assigns a dynamic trigger number to the
targeter that gets fired when the user clicks the targeting cursor at some desination. |
Yes |
Yes |
No |
USEUP |
1 |
<xHex1Hex2>
"USEUP x19b7" |
Will use up one item in the players pack that matches the ID specified here. Use
this in conjunction with the "NEED" token to make sure the item exists before
using it up. If the Item is stacked, then one will be removed from the stack otherwise the
item is removed. |
Yes |
Yes |
Yes |