B
Blademaster_X
Guest
I need a fast way to make this trigger work for every player in the game. I tried doing "Set Target[Player number of (Owner of Target of Ability Being Cast)] = Target of Ability Being Cast", but then I realized after 480 seconds you can't refer to the target of the ability being cast anymore. So is there a more efficient way than making this trigger for every player(replacing the numbers in the arrays with the number of the player)?
Code:
Event:
Unit - A unit Starts the effect of an ability
Condition:
(Ability being cast) Equal to Storm Bolt
Action:
Set Target[1] = (Target unit of ability being cast)
Wait 480.00 seconds
Unit - Create 1 Dummy Unit 1 for Player 12 (Brown) at (Position of Target[1]) facing Default building facing degrees
Unit - Hide (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Sleep Target[1]
Wait 0.01 seconds
Unit - Remove (Last created unit) from the game
Wait 20.00 seconds
Game - Display to player group(Owner of Target[1]) lots of text...
Wait 20.00 seconds
Unit - Add Avatar to Target[1]
...


