- Joined
- Nov 5, 2008
- Messages
- 536
I have these triggers.
I have also created 2 regions.
For some reason, player A always spawns at Location 1 and player B always spawns at location 2. (It is supposed to be random spawn)
What am I doing wrong with these triggers?
I would rather have 2 start-locations instead of 2 regions, and once the race is selected ingame, the appropriate units for the race spawns at a start-location. Can this be made?
I have also created 2 regions.
For some reason, player A always spawns at Location 1 and player B always spawns at location 2. (It is supposed to be random spawn)
What am I doing wrong with these triggers?
-
Select Race
-
Events
- Time - Elapsed game time is 2.00 seconds
- Conditions
-
Actions
- Dialog - Clear DialogSelectRace
- Dialog - Change the title of DialogSelectRace to Select your race:
- Dialog - Create a dialog button for DialogSelectRace labelled Goblins
- Set DialogButton[1] = (Last created dialog Button)
- Dialog - Create a dialog button for DialogSelectRace labelled Elves
- Set DialogButton[2] = (Last created dialog Button)
- Dialog - Show DialogSelectRace for Player 1 (Red)
- Dialog - Show DialogSelectRace for Player 2 (Blue)
-
Events
-
Selected Goblin
-
Events
- Dialog - A dialog button is clicked for DialogSelectRace
-
Conditions
- (Clicked dialog button) Equal to DialogButton[1]
-
Actions
- Set DialogInteger = (Random integer number between 1 and 2)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- DialogInteger Equal to 2
-
Then - Actions
- Set StartPoint2 = (Center of StartRegion2 <gen>)
- Unit - Create 1 Goblin Fortress for (Triggering player) at StartPoint2 facing Default building facing degrees
- Unit - Create 5 Worker for (Triggering player) at StartPoint2 facing Default building facing degrees
- Unit - Create 1 Unit for (Triggering player) at StartPoint2 facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- DialogInteger Equal to 1
-
Then - Actions
- Set StartPoint1 = (Center of StartRegion1 <gen>)
- Unit - Create 1 Goblin Fortress for (Triggering player) at StartPoint1 facing Default building facing degrees
- Unit - Create 5 Worker for (Triggering player) at StartPoint1 facing Default building facing degrees
- Unit - Create 1 Unit for (Triggering player) at StartPoint1 facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
Events
-
Selected Elves
-
Events
- Dialog - A dialog button is clicked for DialogSelectRace
-
Conditions
- (Clicked dialog button) Equal to DialogButton[2]
-
Actions
- Set DialogInteger = (Random integer number between 1 and 2)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- DialogInteger Equal to 2
-
Then - Actions
- Set StartPoint2 = (Center of StartRegion2 <gen>)
- Unit - Create 1 Elven Roost for (Triggering player) at StartPoint2 facing Default building facing degrees
- Unit - Create 5 Sprite for (Triggering player) at StartPoint2 facing Default building facing degrees
- Unit - Create 1 Unit for (Triggering player) at StartPoint2 facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- DialogInteger Equal to 1
-
Then - Actions
- Set StartPoint1 = (Center of StartRegion1 <gen>)
- Unit - Create 1 Elven Roost for (Triggering player) at StartPoint1 facing Default building facing degrees
- Unit - Create 5 Sprite for (Triggering player) at StartPoint1 facing Default building facing degrees
- Unit - Create 1 Unit for (Triggering player) at StartPoint1 facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
Events
Last edited: