Difference between pages "TRIGEDIT-OBJ-COMMAND TRIGEDIT-OBJECT-COMMAND TRIG-OBJ-COMMAND" and "TRIGEDIT-MOB-LEAVE"

From 4Dimensions
(Difference between pages)
Jump to: navigation, search
(Bot: Automated import of articles)
 
m
 
Line 1: Line 1:
'''TRIGEDIT-OBJ-COMMAND TRIGEDIT-OBJECT-COMMAND TRIG-OBJ-COMMAND'''
+
'''TRIGEDIT-MOB-LEAVE '''
 
[[Category:Help Files]]
 
[[Category:Help Files]]
 +
[[Category:Building]]
  
TRIGEDIT-OBJ-COMMAND TRIGEDIT-OBJECT-COMMAND TRIG-OBJ-COMMAND
+
Activated when someone leaves the room the mob is in if the mob can see the person.
  
TRIGEDIT-OBJ-COMMAND TRIGEDIT-OBJECT-COMMAND TRIG-OBJ-COMMAND
 
  
TRIGEDIT-OBJ-COMMAND TRIGEDIT-OBJECT-COMMAND TRIG-OBJ-COMMAND
 
  
 +
Numeric Arg : percent chance this trigger will be activated.
  
 +
Argument    : not used.
  
Activates when commands are performed in the same room as the object.
 
  
This does not work for level 32 and above.
 
  
 +
Used with return 0 will prevent the player from leaving the room.
  
  
Numeric Arg : a bitfield to indicate where the object must be in order to cause
 
  
the trigger to activate.
+
Variables:
  
Bits: 1: In character's worn equipment.
+
%actor%    - the character leavering the room.  
  
2: In character's carried inventory.
+
%direction% - the direction the character is leaving to.
  
4: In same room with the character.
 
  
These bits can be set at once by adding the values.
 
  
7= worn, inv, room. 3 = worn, inv. 5 = worn, room.
+
Example: {cRTSTAT 77{c0
 
 
Argument    : text which must be part of the command typed to filter out
 
 
 
uninteresting commands.
 
 
 
 
 
 
 
If 0 is returned by the trigger, character will receive the same message as
 
 
 
if the trigger did not exist, and any other command triggers will be checked.
 
 
 
 
 
 
 
Variables:
 
 
 
%actor% - the character issuing the command
 
 
 
%cmd%  - the exact command (without arguments) issued
 
 
 
%arg%  - the arguments, if any, following the command
 
 
 
 
 
 
 
Example: {cRTSTAT 81{c0
 

Latest revision as of 12:35, 14 July 2017

TRIGEDIT-MOB-LEAVE

Activated when someone leaves the room the mob is in if the mob can see the person.


Numeric Arg : percent chance this trigger will be activated.

Argument  : not used.


Used with return 0 will prevent the player from leaving the room.


Variables:

%actor% - the character leavering the room.

%direction% - the direction the character is leaving to.


Example: {cRTSTAT 77{c0