HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Vote System HELP

08-24-2003, 09:59 PM#1
LAlakers126
i am making a vote system for my new map. The vote is going to determine whether the opening cinematic is played or not. I have structured the vote system to be based upon dialog buttons. The first set of triggers checks if a player slot is in use. There is 1 trigger per player(there are 10 player slots). Each trigger is:
Event: Time - Elapsed game time is 1 sec.
Condition: Player 1 slot status not equal to "is playing"
Action: Set "slot used"(1)="false"
There are 9 more triggers, each corresponding to the correct player. Then i have another set of triggers which display the dialog:
Event: Time - Elapsed game time is 2 sec.
Condition: "slotused"(1)="true"
Action: Show dialog "ViewCinematic" to player 1 red
There are 9 more corresponding triggers. For each time a player presses one of the dialog buttons, there is this trigger:
Event: Dialog button is clicked
Action: If-dialog button clicked="Yes",
Then-set "voteYES"="voteYES"+1,
Else-set "voteNO"="voteNO"+1
After all dialog buttons are clicked, then it is supposed to either display cinematic or go straight to game but it does neither.