I have a dialog that has 3 difficulties. However, when the timer runs out and it counts the votes, it runs all 3 difficulties if people clicked medium or hard. For some reason the easy in not affected by this. Here's what I have to count the votes:
Dialog-AnyDialogItemisusedbyPlayerAnyPlayerwitheventtypeClickedLocalVariablesmaxvoteddificulty=(Max((Max(Difficultyvotes[1], Difficulty votes[2])), Difficulty votes[3])) <Integer>
Conditions
Actions
Variable - Modify Difficulty votes[Lastpayervote[(Triggeringplayer)]]: - 1
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == Dificulty dialog item[0]
Then
Variable - Modify Difficulty votes[1]: + 1
Variable - Set Last payer vote[(Triggeringplayer)] = 1
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == Dificulty dialog item[1]
Then
Variable - Modify Difficulty votes[2]: + 1
Variable - Set Last payer vote[(Triggeringplayer)] = 2
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == Dificulty dialog item[2]
Then
Variable - Modify Difficulty votes[3]: + 1
Variable - Set Last payer vote[(Triggeringplayer)] = 3
Else
Then I have things like this after:
DifficultytimerendsEventsTimer-DifficultytimerexpiresLocalVariablesmaxvoteddificulty=(Max((Max(Difficultyvotes[0], Difficulty votes[1])), Difficulty votes[2])) <Integer>
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
max voted dificulty == Difficulty votes[1]
Then
UI - Display "The majority voted Easy" for (All players) to Chat area
Dialog - Hide Difficulty dialog for (All players)
I have a dialog that has 3 difficulties. However, when the timer runs out and it counts the votes, it runs all 3 difficulties if people clicked medium or hard. For some reason the easy in not affected by this. Here's what I have to count the votes:
Then I have things like this after:
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here
@fishy77: Go
anyone know?
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here
Looks like you difficultyvote arrays are off. It modifies array 1 but in the if then it checks for array 0.