fgw
New Member
- Reaction score
- 1
So I have this code.
The problem is it ONLY works for red, I duplicated it for team two and anytime anyother player's hero dies it crashes. Someone care to point out whats making that happen or a simpler way to do this? Also, its not creating the revival effect for some reason. May as well nevermind, I've decided to try and make a different revive trigger. Still if someone can fix that one it would be awesome.
Trigger:
- Untitled Trigger 006
- Events
- Unit - A unit owned by Player 4 (Purple) Dies
- Unit - A unit owned by Player 5 (Yellow) Dies
- Unit - A unit owned by Player 3 (Teal) Dies
- Unit - A unit owned by Player 2 (Blue) Dies
- Unit - A unit owned by Player 1 (Red) Dies
- Conditions
- ((Dying unit) is A Hero) Equal to True
- Actions
- Countdown Timer - Show (Last created timer window) for (Owner of (Dying unit))
- Countdown Timer - Create a timer window for (Expiring timer) with title Will revive in:
- Countdown Timer - Start (Expiring timer) as a One-shot timer that will expire in 10.00 seconds
- Wait 10.00 game-time seconds
- Countdown Timer - Destroy (Last created timer window)
- Special Effect - Create a special effect at (Position of (Reviving Hero)) using Abilities\Spells\Other\Awaken\Awaken.mdl
- Hero - Instantly revive (Dying unit) at (Center of Region 001 <gen>), Hide revival graphics
- Special Effect - Destroy (Last created special effect)
- Events
The problem is it ONLY works for red, I duplicated it for team two and anytime anyother player's hero dies it crashes. Someone care to point out whats making that happen or a simpler way to do this? Also, its not creating the revival effect for some reason. May as well nevermind, I've decided to try and make a different revive trigger. Still if someone can fix that one it would be awesome.