View Single Post
Old 04-15-2004, 01:35 AM   #8 (permalink)
Garthrs
BattleForums Junior Member
 
Garthrs's Avatar
 
Join Date: Aug 2003
Location: Usually buried at work
Posts: 130
Agrees: 0
Agreed with 0 times
Majority vote is done with dialog buttons.

Variables required for each button are Integer and dialog button name

Event
Dialog button clicked
Condition
Dialog button equal Easy(or what ever)
Action
Set Easy = (Easy)+1

Get it?

Then after a set time you run a find max If then Esle.. like

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Easy Greater than or Equal to (Max(Easy, Medium, Hard)
Then - Actions
Set difficulty level actions (blah blah)
Else - Actions
Do nothing
If - Conditions
Medium Greater than or Equal to (Max(Easy, Medium, Hard)
Then - Actions
Set difficulty level actions (blah blah)
Else - Actions
Do nothing
If - Conditions
Hard Greater than or Equal to (Max(Easy, Medium, Hard)
Then - Actions
Set difficulty level actions (blah blah)
Else - Actions
Do nothing

That is just how you would do a vote for difficulty, but you can apply similiar triggers to any vote, including Player types a chat message....
Questions?
Garthrs is offline   Reply With Quote