Hunter_destruction
New Member
I am making a dialog voting system. People have to vote for whatever difficulty they see fit. My problem is, what if there is a tie?
If there is a tie I rerun the dialog, as to change some votes around. Once there are no ties. The game will start.
Here is my trigger:
Only problem is if all of them vote for the 'easy' difficulty the trigger will count it as a tie, with itself. (It will actually count ANYTHING as a tie, because everythng will be tieing with each other)
This problem is fixed after everyone votes twice, whether or not there is a tie, (offical tie)
So my question is, how do I make it that the Interger A doesn't make it so it ties with itself.
I beleive it's the Integer itself but if I were to do it the way I know, it would take forever to do it.
I would have to go
DifficultyINT[1] Equal to DifficultyINT[2] - rerun trigger
DifficultyINT[1] Equal to DifficultyINT[3] - rerun trigger
DifficultyINT[1] Equal to DifficultyINT[4] - rerun trigger
......
DifficultyINT[2] Equal to DifficultyINT[3] - rerun trigger
DifficultyINT[2] Equal to DifficultyINT[4] - rerun trigger
...ect. This is unnessicary space in my opionion. Please if you have a fats and effictient way. Tell me.
(There are other tirggers working with this one, but this is the one causing the trouble)
Any help appriciated.
If there is a tie I rerun the dialog, as to change some votes around. Once there are no ties. The game will start.
Here is my trigger:
Code:
For each (Integer A) from 1 to 5, do (Actions)
????Loop - Actions
????????If (All Conditions are True) then do (Then Actions) else do (Else Actions)
????????????If - Conditions
????????????????DifficultyINT[(Integer A)] Equal to (Integer A)
????????????Then - Actions
????????????????Trigger - Run Difficulty <gen> (checking conditions)
????????????????Skip remaining actions
????????????Else - Actions
????????????????Do nothing
Only problem is if all of them vote for the 'easy' difficulty the trigger will count it as a tie, with itself. (It will actually count ANYTHING as a tie, because everythng will be tieing with each other)
This problem is fixed after everyone votes twice, whether or not there is a tie, (offical tie)
So my question is, how do I make it that the Interger A doesn't make it so it ties with itself.
I beleive it's the Integer itself but if I were to do it the way I know, it would take forever to do it.
I would have to go
DifficultyINT[1] Equal to DifficultyINT[2] - rerun trigger
DifficultyINT[1] Equal to DifficultyINT[3] - rerun trigger
DifficultyINT[1] Equal to DifficultyINT[4] - rerun trigger
......
DifficultyINT[2] Equal to DifficultyINT[3] - rerun trigger
DifficultyINT[2] Equal to DifficultyINT[4] - rerun trigger
...ect. This is unnessicary space in my opionion. Please if you have a fats and effictient way. Tell me.
(There are other tirggers working with this one, but this is the one causing the trouble)
Any help appriciated.