- Joined
- Feb 3, 2009
- Messages
- 3,292
Hello, I tried making a trigger where when ever any hero gets a level, all heroes by that player would become equal to the level of the highest hero level that player controls.
For some reason however it just sets one hero to level 1 and the others are fine.
For some reason however it just sets one hero to level 1 and the others are fine.
-
Gain Level
-
Events
-
Unit - A unit Gains a level
-
-
Conditions
-
Actions
-
Set TempGroup = (Units owned by (Owner of (Triggering unit)) matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) is alive) Equal to True)))
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of (Picked unit)) Greater than or equal to TempInt
-
-
Then - Actions
-
Set TempInt = (Level of (Picked unit))
-
-
Else - Actions
-
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
TempInt Not equal to 0
-
-
Then - Actions
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
-
Hero - Set (Picked unit) Hero-level to TempInt, Show level-up graphics
-
-
-
-
Else - Actions
-
-
Game - Display to (All players) for 30.00 seconds the text: (String(TempInt))
-
Set TempInt = 0
-
Custom script: call DestroyGroup(udg_TempGroup)
-
-