Code:
Name: 'Mob Fight Example', VNum: [ 70], RNum: [ 70]
Trigger Intended Assignment: Mobiles
Trigger Type: Fight , Numeric Arg: 100, Arg list: None
Commands:
* By Rumble of The Builder Academy tbamud.com 9091
* Set the context to this specific mob so more than one can use this trig.
context %self.id%
* Only cast the spell every 30 seconds.
if %already_cast%
wait 30 s
unset already_cast
else
dg_cast 'magic missile' %actor.name%
set already_cast 1
* By globalling the variable it can be accessed by other triggers or when
* this trigger fires a second time.
global already_cast
end
for TBA.