- Joined
- Apr 13, 2017
- Messages
- 157
So now, I'm currently working on hero revival system, and I just got the craziest idea: here is it
The Array of the Countdown Timer is 10 so that when a unit Dies, it enters the Player number of the owner which is from 1 to 10. This is an automatic system HAHAHAHA
For the Revival:
So, I need to ask if anybody can polish this? @IcemanBo , @Ralle, @millzy and other who are expert at GUI and JASS, please help me
-
HeroRevival
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Dying unit)) Equal to Player 1 (Red)
-
(Owner of (Dying unit)) Equal to Player 4 (Purple)
-
(Owner of (Dying unit)) Equal to Player 5 (Yellow)
-
(Owner of (Dying unit)) Equal to Player 6 (Orange)
-
(Owner of (Dying unit)) Equal to Player 7 (Green)
-
-
-
-
Actions
-
Countdown Timer - Start RevivalTime[(Player number of (Owner of (Dying unit)))] as a One-shot timer that will expire in 15.00 seconds
-
Countdown Timer - Create a timer window for RevivalTime[(Player number of (Owner of (Dying unit)))] with title Revive in:
-
Set RevivalTimeWindow = (Last created timer window)
-
Set PlayerNumberRevivalSystem[(Player number of (Owner of (Dying unit)))] = (Player number of (Owner of (Dying unit)))
-
Set HeroDied[PlayerNumberRevivalSystem[(Player number of (Owner of (Dying unit)))]] = (Dying unit)
-
Countdown Timer - Show RevivalTimeWindow for (Owner of (Dying unit))
-
-
The Array of the Countdown Timer is 10 so that when a unit Dies, it enters the Player number of the owner which is from 1 to 10. This is an automatic system HAHAHAHA
For the Revival:
-
HeroRevivalExpires
-
Events
-
Time - RevivalTime[1] expires
-
Time - RevivalTime[4] expires
-
Time - RevivalTime[5] expires
-
Time - RevivalTime[6] expires
-
Time - RevivalTime[7] expires
-
-
Conditions
-
Actions
-
Set RevivalPoint = (Center of SpawnHeroes <gen>)
-
Hero - Instantly revive HeroDied[1] at RevivalPoint, Show revival graphics
-
Hero - Instantly revive HeroDied[4] at RevivalPoint, Show revival graphics
-
Hero - Instantly revive HeroDied[5] at RevivalPoint, Show revival graphics
-
Hero - Instantly revive HeroDied[6] at RevivalPoint, Show revival graphics
-
Hero - Instantly revive HeroDied[7] at RevivalPoint, Show revival graphics
-
Custom script: call RemoveLocation(udg_RevivalPoint)
-
-
So, I need to ask if anybody can polish this? @IcemanBo , @Ralle, @millzy and other who are expert at GUI and JASS, please help me