Someone plz tell me where i am going wrong, ive been looking at it for hours.
It comes in 2 parts. (N.B i have a seperate trigger for part 2 for each player)
Human Part 1
Events
Unit - A unit owned by Player 2 (Blue) Dies
Unit - A unit owned by Player 3 (Teal) Dies
Unit - A unit owned by Player 4 (Purple) Dies
Unit - A unit owned by Player 5 (Yellow) Dies
Unit - A unit owned by Player 6 (Orange) Dies
Conditions
((Triggering unit) is A Hero) Equal to True
((Dying unit) belongs to an ally of Player 1 (Red)) Equal to True
Actions
Game - Display to (Player group((Owner of (Triggering unit)))) the text: ( Your hero has fallen and will be revived in + ((String(((Hero level of (Dying unit)) x 5))) + seconds.))
Countdown Timer - Start HeroTimer[(Player number of (Owner of (Dying unit)))] as a One-shot timer that will expire in (5.00 x (Real((Hero level of (Dying unit))))) seconds
Set Hero[(Player number of (Owner of (Dying unit)))] = (Dying unit)
HUman Part 2
Events
Time - HeroTimer[2] expires
Conditions
Actions
Hero - Instantly revive Hero[2] at (Center of Human Spawn <gen>), Show revival graphics
I had something similar to this before and it worked fine (the only difference being that there was no array on the timer, which meant that as soon as the timer finished all waiting heroes were respawned. Now i have added an array it doesnt work.)
And as per usual i am on RoC, but i shouldnt think that would effect such a simple trigger.
Peng-
It comes in 2 parts. (N.B i have a seperate trigger for part 2 for each player)
Human Part 1
Events
Unit - A unit owned by Player 2 (Blue) Dies
Unit - A unit owned by Player 3 (Teal) Dies
Unit - A unit owned by Player 4 (Purple) Dies
Unit - A unit owned by Player 5 (Yellow) Dies
Unit - A unit owned by Player 6 (Orange) Dies
Conditions
((Triggering unit) is A Hero) Equal to True
((Dying unit) belongs to an ally of Player 1 (Red)) Equal to True
Actions
Game - Display to (Player group((Owner of (Triggering unit)))) the text: ( Your hero has fallen and will be revived in + ((String(((Hero level of (Dying unit)) x 5))) + seconds.))
Countdown Timer - Start HeroTimer[(Player number of (Owner of (Dying unit)))] as a One-shot timer that will expire in (5.00 x (Real((Hero level of (Dying unit))))) seconds
Set Hero[(Player number of (Owner of (Dying unit)))] = (Dying unit)
HUman Part 2
Events
Time - HeroTimer[2] expires
Conditions
Actions
Hero - Instantly revive Hero[2] at (Center of Human Spawn <gen>), Show revival graphics
I had something similar to this before and it worked fine (the only difference being that there was no array on the timer, which meant that as soon as the timer finished all waiting heroes were respawned. Now i have added an array it doesnt work.)
And as per usual i am on RoC, but i shouldnt think that would effect such a simple trigger.
Peng-


