mr_fj
New Member
- Reaction score
- 10
Trigger:
- Random hero
- Events
- Dialog - A dialog button is clicked for HeroChoosing
- Conditions
- (Clicked dialog button) Equal to Hero[7]
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Triggering player) is in Team1) Equal to True
- Then - Actions
- Unit - Create 1 Paladin for (Triggering player) at (Center of Team 1 Player Spawn <gen>) facing (Center of Team 2 Player Spawn <gen>)
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Triggering player) is in Team2) Equal to True
- Then - Actions
- Unit - Create 1 Archsorceress for (Triggering player) at (Center of Team 2 Player Spawn <gen>) facing (Center of Team 1 Player Spawn <gen>)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Right now, clicking on Random in my dialog just creates a Paladin for Team 1 and an Archsorceress for Team 2, as you can see ^^
What would i need to do to make it create a random hero? I have 6 different so what I am really asking is, how can i create one of 6 random units using a dialog?
My map: http://www.thehelper.net/forums/showthread.php?p=1029471