Battle[StFh]
New Member
- Reaction score
- 6
Hey Guys,
I've just made up a Trigger for a Duel System, but it won't work, and I don't know why, here's the Trigger:
Note:
I hope anyone sees what I'm doing wrong here .
Thanks in Advance,
Battle[StFh]
I've just made up a Trigger for a Duel System, but it won't work, and I don't know why, here's the Trigger:
Code:
Duel Over
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
((Dying unit) is in Team1) Equal to True
Actions
Set UnitsInTeam1 = (UnitsInTeam1 - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
UnitsInTeam1 Equal to 0
Then - Actions
Trigger - Turn on Help Trigger <gen>
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero[(Integer A)] is alive) Equal to True
Then - Actions
Unit - Set life of Hero[(Integer A)] to 100.00%
Unit - Set mana of Hero[(Integer A)] to 100.00%
Unit - Move Hero[(Integer A)] instantly to PositionOfTheHeroes[(Integer A)]
Custom script: call RemoveLocation (udg_PositionOfTheHeroes[GetForLoopIndexA()])
Else - Actions
Hero - Instantly revive Hero[(Integer A)] at PositionOfTheHeroes[(Integer A)], Hide revival graphics
Custom script: call RemoveLocation (udg_PositionOfTheHeroes[GetForLoopIndexA()])
Else - Actions
Do nothing
Unit - Unpause all units
Trigger - Turn off (This trigger)
Trigger - Turn on Help Trigger <gen>
- I've got another trigger like this for the units in team 2, but it won't work either
- Team1 is a unit group containing all the heroes of team 1
- UnitsInTeam1 is an integer which has been set by the Count Units in Unit Group action in a nother trigger
- Hero is an array Integer, Hero[1] is the hero of Red, Hero[2] is the hero of Blue and so on
I hope anyone sees what I'm doing wrong here .
Thanks in Advance,
Battle[StFh]