How Do i make this MUI? just trying to make it revive dead heroes with a timer.
Trigger:
- Events
- Unit - A unit Dies
- Conditions
- ((Dying unit) is A Hero) Equal to True
- (Player number of (Owner of (Dying unit))) Greater than or equal to 3
- (Player number of (Owner of (Dying unit))) Less than or equal to 12
- Actions
- Countdown Timer - Start ReviveTimer as a One-shot timer that will expire in ((Real((Hero level of (Dying unit)))) x 5.00) seconds
- Countdown Timer - Create a timer window for (Last started timer) with title Your Revival.
- Countdown Timer - Show (Last created timer window) for Player 1 (Red)
- Set Revive_Timer[(Player number of (Owner of (Dying unit)))] = ReviveTimer
- Wait until ((Remaining time for Revive_Timer[(Player number of (Owner of (Picked unit)))]) Equal to 0.00), checking every 1.00 seconds
- Countdown Timer - Destroy (Last created timer window)
- Hero - Instantly revive (Dying unit) at (Center of (Playable map area)), Show revival graphics