| 01-23-2004, 04:46 PM | #1 |
I made a dialoug voting but it didnt work correctly, I tried to explain what happend etc but noone knew whats wrong so I take this simple way: How do I make a dialoug button voting? And NO THX I dont want a chat string voting, it looks much better with a dialoug menu... |
| 01-23-2004, 11:44 PM | #2 |
Ok. Create a dialogue with two buttons, Yes and No... Set Yes to dialoguevariable (if you don't know what this is, i'm not going to help you, lol) Now create an integer variable: Votes, with a default value of Zero. Then do if button is clicked for your dialogue, then do: If (Clicked Dialogue Button) is equal to dialoguevaribale Then: Set Votes to Votes + 1 Else : Set Votes to Votes - 1 Then after the voting period is over you would count up the votes: If Votes is greater then 0 Then <ACTIONS OF SUCESS> Else: If Votes is Less then 0 Then: <ACTIONS OF FAILURE Else: <ACTIONS OF TIE> |
| 01-23-2004, 11:57 PM | #3 |
Waaargh, thats why I did, but something seems to be wrong with the time system...Because when my vote time is over it w8s double time and when I say hide dialoug nothing happends... Hide is if u dont vote in time....and the worst thing is that if u vote too late it counts in the votes...but it still finishes, its WEIRD! |
| 01-23-2004, 11:59 PM | #4 |
well without the triggers being posted, We cant help you because we dont know what you are doing wrong |
| 01-23-2004, 11:59 PM | #5 |
OK I give triggers...in screenshots...tomorrow |
