I have a simple voting system I'm working on at the start of a map. It is handled by one trigger (see below). The players are all shown "ArenaChoiceDialog" dialog with two buttons on it: one is ac_Canyon.
arenaVoteCanyon and arenaVoteValley are integers that are set at 0 by default. I have checked the object editor and these are the only two triggers that these variables appear in. So they both start at zero.
NumberOfPlayers is correctly set at 2 during our playtest. In the next trigger it is used and works appropriately (and works appropriately in earlier triggers too).
Unfortunately, my friend and I can't playtest together very long, so I can't really hash this out. But somehow it seems that 1=2. I'm pretty sure that's not true, so I'm wondering if there isn't some desync problem when I play with more than one player. I don't know how desyncing works, but I'm getting some very strange bugs when I play the map with multiplayers (e.g. somehow I'm selecting a locust unit).
-
Arena Choice
-
Events
-
Dialog - A dialog button is clicked for ArenaChoiceDialog
-
-
Conditions
-
Actions
-
Dialog - Hide (Clicked dialog) for (Triggering player)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to ac_Canyon
-
-
Then - Actions
-
Set arenaVoteCanyon = (arenaVoteCanyon + 1)
-
-
Else - Actions
-
Set arenaVoteValley = (arenaVoteValley + 1)
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
NumberOfPlayers Equal to (arenaVoteCanyon + arenaVoteValley)
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
Trigger - Run Arena Decision Made <gen> (checking conditions)
-
-
Else - Actions
-
-
-
arenaVoteCanyon and arenaVoteValley are integers that are set at 0 by default. I have checked the object editor and these are the only two triggers that these variables appear in. So they both start at zero.
NumberOfPlayers is correctly set at 2 during our playtest. In the next trigger it is used and works appropriately (and works appropriately in earlier triggers too).
Unfortunately, my friend and I can't playtest together very long, so I can't really hash this out. But somehow it seems that 1=2. I'm pretty sure that's not true, so I'm wondering if there isn't some desync problem when I play with more than one player. I don't know how desyncing works, but I'm getting some very strange bugs when I play the map with multiplayers (e.g. somehow I'm selecting a locust unit).