Welcome to the Builder Academy

Question Trigger of the Day - Mob Fight Example

More
19 Feb 2013 14:28 #1529 by Rumble
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
If this was helpful please vote or leave a review for TBA.

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com

Please Log in or Create an account to join the conversation.

Time to create page: 0.205 seconds