Hey guys, my problem is the next: In my new map I've got a dialog wich pops up when game starts, which is a difficult choice dialog. I want to know a way of picking difficult via triggers, becuase there are 4 players and everyone can pick difficult. So I want a way on making a voting system for selecting difficult based on number of votes. Please explain really well because I'm not the best on the editor and it's hard to me togo no by myself.
Basically you'll want something like an array with each index representing your difficulty levels. When a player presses/picks the options they want modify the variable at the correct index. After voting is all done have a loop that compares the max value for each index in your array compared to a something like a local variable and set it to the max value. After the loop, check if your local variable matches one of the index in the array and use a switch to set the difficulty based on the match. You can always use presets to actually represent your levels more clearly and there are other ways to do this but this should get you started. In the event of a tie you'll have to decide with diffculty you want it to default to which can simple controlled by the loop counts up or down.
Hey guys, my problem is the next: In my new map I've got a dialog wich pops up when game starts, which is a difficult choice dialog. I want to know a way of picking difficult via triggers, becuase there are 4 players and everyone can pick difficult. So I want a way on making a voting system for selecting difficult based on number of votes. Please explain really well because I'm not the best on the editor and it's hard to me togo no by myself.
Thank you in advanced.
Basically you'll want something like an array with each index representing your difficulty levels. When a player presses/picks the options they want modify the variable at the correct index. After voting is all done have a loop that compares the max value for each index in your array compared to a something like a local variable and set it to the max value. After the loop, check if your local variable matches one of the index in the array and use a switch to set the difficulty based on the match. You can always use presets to actually represent your levels more clearly and there are other ways to do this but this should get you started. In the event of a tie you'll have to decide with diffculty you want it to default to which can simple controlled by the loop counts up or down.
If you don't mind, could you do a tutorial with images please? I'm not really good at understanding text tutorials haha. Thanks in advanced.