- Joined
- May 7, 2008
- Messages
- 334
EDIT: Seems that this Custom Value for Units loop is working for now, but I'd still like if someone could check it out please.
Hero_Loop is set to 3 cause that's the number of heroes in the map at the moment :I
Hero_Loop is set to 3 cause that's the number of heroes in the map at the moment :I
- Init Heroes
- Set VariableSet Hero_Type[1] = Peewee
- Set VariableSet Hero_Type[2] = Forest Sentinel
- Set VariableSet Hero_Type[3] = Zandalari Troll
-
Pick a Hero Dota Style
-
Events
- Unit - A unit Sells a unit
-
Conditions
- (Unit-type of (Selling unit)) Equal to Hero Tavern
-
Actions
- -------- Setting up basic Variables --------
- Set VariableSet Hero_Picker = (Buying unit)
- Set VariableSet Temp_Player = (Owner of Hero_Picker)
- Set VariableSet Player_Number = (Player number of Temp_Player)
- Set VariableSet Hero = (Sold unit)
- -------- --------
- -------- Set Custom Values for Each Hero --------
- -------- --------
- Set VariableSet Hero_Loop = 3
-
Events
-
For each (Integer A) from 1 to Hero_Loop, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of Hero) Equal to Hero_Type[(Integer A)]
-
Then - Actions
- Set VariableSet Hero_Unit_ID[(Custom value of Hero)] = (Integer A)
- Game - Display to (All players) the text: (String((Integer A)))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
Last edited: