Difference between pages "TRIGEDIT-TRIGGER-TYPES" and "TRIGEDIT-ROOM-CAST"

From 4Dimensions
(Difference between pages)
Jump to: navigation, search
(Bot: Automated import of articles)
 
m
 
Line 1: Line 1:
'''TRIGEDIT-TRIGGER-TYPES'''
+
'''TRIGEDIT-ROOM-CAST'''
 
[[Category:Help Files]]
 
[[Category:Help Files]]
 +
[[Category:Building]]
  
TRIGEDIT-TRIGGER-TYPES
+
Activated if a spell is cast in the room.
  
TRIGEDIT-TRIGGER-TYPES
 
  
TRIGEDIT-TRIGGER-TYPES
 
  
 +
Numeric Arg : percent chance this trigger will be activated.
  
 +
Argument    : not used.
  
3) Trigger types: {cyGreet{c0
 
  
This is a bitvector  of which kind of events this trigger is triggered by. This
 
  
is the most important part of the trigger. It's here you decide if you want the
+
Used with return 0 will cause the spell not to be cast.
  
trigger to react on people dying in the room, dropping objects, saying stuff,
 
  
entering, jumping insanely up and down or whatever else you might think of.
 
  
 +
Variables:
  
 +
%actor%    - the caster of the spell
  
This part is also the most important, in the sense that the rest of the triggers'
+
%spell%    - the number of the spell
  
info means different things, depending on what trigger type the trigger has.
+
%spellname% - the name of the spell
  
 +
%vict%      - the target (mob/player) of the spell, if any.
  
 +
%obj%      - the target (object) of the spell, if any.
  
For a full listing of types see: {cRHELP TRIGEDIT-TYPES{c0
+
 
 +
 
 +
Example: {cRTSTAT 57{c0

Latest revision as of 11:47, 14 July 2017

TRIGEDIT-ROOM-CAST

Activated if a spell is cast in the room.


Numeric Arg : percent chance this trigger will be activated.

Argument  : not used.


Used with return 0 will cause the spell not to be cast.


Variables:

%actor% - the caster of the spell

%spell% - the number of the spell

%spellname% - the name of the spell

%vict% - the target (mob/player) of the spell, if any.

%obj% - the target (object) of the spell, if any.


Example: {cRTSTAT 57{c0