XDogg
New Member
- Reaction score
- 0
Hey I'm trying to add in a Choice to chose the hero you want right now its just two (Leaving it open for more later)
I got it working so that the hero picking portion works, but its suppose to run the game starting trigger when all players pick...
This line here wont seem to work.
I've tried to make it so when players choose a Hero type, they are then added into a player group when the player group equals the amount of users playing the game should start. However its not working...
I got it working so that the hero picking portion works, but its suppose to run the game starting trigger when all players pick...
Trigger:
- Spawn All Test
- Events
- Dialog - A dialog button is clicked for HeroChoice
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Clicked dialog button) Equal to HumanMarine
- Then - Actions
- Unit - Create 1 BlastManX for (Triggering player) at (Random point in Spawn Zone <gen>) facing (Random point in (Playable map area))
- Camera - Lock camera target for (Triggering player) to (Random unit from (Units owned by (Picked player) of type BlastManX)), offset by (0.00, 0.00) using Default rotation
- Hero - Make (Triggering player) Heroes gain 200.00% experience from future kills
- Player Group - Add (Triggering player) to HeroChoiceGroup
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Clicked dialog button) Equal to OrcMarine
- Then - Actions
- Unit - Create 1 BlastOrcX for (Triggering player) at (Random point in Spawn Zone <gen>) facing (Random point in (Playable map area))
- Camera - Lock camera target for (Triggering player) to (Random unit from (Units owned by (Picked player) of type BlastOrcX)), offset by (0.00, 0.00) using Default rotation
- Hero - Make (Triggering player) Heroes gain 200.00% experience from future kills
- Player Group - Add (Triggering player) to HeroChoiceGroup
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Number of players in HeroChoiceGroup) Equal to (Number of players in (All players controlled by a User player))
- Then - Actions
- Trigger - Run CountDown Timer <gen> (ignoring conditions)
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
This line here wont seem to work.
Trigger:
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Number of players in HeroChoiceGroup) Equal to (Number of players in (All players controlled by a User player))
- Then - Actions
- Trigger - Run CountDown Timer <gen> (ignoring conditions)
- Else - Actions
- Do nothing
- If - Conditions
I've tried to make it so when players choose a Hero type, they are then added into a player group when the player group equals the amount of users playing the game should start. However its not working...