Footman16
Community Moderator
- Joined
- Jul 14, 2012
- Messages
- 3,542
Right, I've made these two triggers very quickly and would like to make sure they're 1) MUI and 2) Efficient and leak free. Both of these are very unlikely at the moment so rather than put the effort in myself I would like your guy's advice/Expertise.
The Spell does this: Creates a banner at a location (based off of Healing Ward), the banner gives off an aura that decreases nearby units attack damage and every 8 seconds deals 50 damage to units around it. To do the 50 damage I made a stomp spell with 8 second cooldown and 50 damage. I've given it to a dummy unit which these triggers create, remove and order to cast.
[Trigger=Standard of the Alliance]Standard of the Alliance
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Banner of the Alliance
Actions
Unit - Create 1 Dummy for (Owner of (Casting unit)) at (Target point of ability being cast) facing Default building facing degrees
Wait 32.00 seconds
Unit - Remove (Last created unit) from the game
[/trigger]
[Trigger=Stomp Cast]Stomp Cast
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units of type Dummy) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Orc Tauren Chieftain - War Stomp
[/Trigger]
The Spell does this: Creates a banner at a location (based off of Healing Ward), the banner gives off an aura that decreases nearby units attack damage and every 8 seconds deals 50 damage to units around it. To do the 50 damage I made a stomp spell with 8 second cooldown and 50 damage. I've given it to a dummy unit which these triggers create, remove and order to cast.
[Trigger=Standard of the Alliance]Standard of the Alliance
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Banner of the Alliance
Actions
Unit - Create 1 Dummy for (Owner of (Casting unit)) at (Target point of ability being cast) facing Default building facing degrees
Wait 32.00 seconds
Unit - Remove (Last created unit) from the game
[/trigger]
[Trigger=Stomp Cast]Stomp Cast
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units of type Dummy) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Orc Tauren Chieftain - War Stomp
[/Trigger]