and question 2 how do i make a countdown timer that show how much death time i have on my champs?
1: When unit dies
Unit type of dying unit = BOSS
wait 50 second
create 1 BOSS at dying unit position
OR
Use reincarnation ability from tauran cheif if i am correct...
2: Show timer action
Thanks!!
but if the boss is using items? like a neckle of spell immunity, how do i make it respawn?
If its a unit
Trigger:
- Trigger Event
- Events
- Unit - A unit Dies
- Conditions
- (Unit-type of (Triggering unit)) Equal to BOSS(Zombie)
- Actions
- Set TempUnitType = (Unit-type of (Triggering unit))
- Set TempPoint = (Position of (Triggering unit))
- Countdown Timer - Start gameTimer as a One-shot timer that will expire in 30.00 seconds
Trigger:
- Unit Revive
- Events
- Time - gameTimer expires
- Conditions
- Actions
- -------- If its a normal unit --------
- Unit - Create 1 TempUnitType for Neutral Hostile at TempPoint facing Default building facing degrees
- Custom script: call RemoveLocation(udg_TempPoint)
If its a hero
Trigger:
- Trigger Event
- Events
- Unit - A unit Dies
- Conditions
- (Unit-type of (Triggering unit)) Equal to BOSS(Zombie)
- Actions
- Set TempUnit = (Triggering unit)
- Set TempPoint = (Position of (Triggering unit))
- Countdown Timer - Start gameTimer as a One-shot timer that will expire in 30.00 seconds
Trigger:
- Hero Revive
- Events
- Time - gameTimer expires
- Conditions
- Actions
- -------- If its a hero --------
- Hero - Instantly revive TempUnit at TempPoint, Hide revival graphics
- Custom script: call RemoveLocation(udg_TempPoint)