I know its possible because ive seen it in other custom games but i have no idea how it would be done. How do i create a "attribute" menu similar to race/difficulty/handcap drop down menus that are in the lobby, and have the option chosen the most "votes" activate a trigger? I could do this in-game but ive already made a set of triggers that wouldnt function properly if a dialog was to be in the way at the start of the game.
I kinda understood this... i made 3 local variables one is a array with the array value at 3, and two are integers titled Winner and Winning Count. I also made a Attribute ID(Player) array variable, other than that i have no idea what youre telling me. If i remeber correctly GUI is a way of viewing the triggers, or is that XML? EIther way i use tree view of whatever the simplest view is.
I dont know what it is but i cant understand what youre telling me, i assume the event is map initialization so there is no trouble there, but the two quotes... do they go in the same trigger or two different ones?
Pick each active player,
Pick each integer from 0 to 2,
If attribute player value for picked player = Difficulty[picked
integer],
then modify vote_count[picked integer] + 1.
What variables go in for "attribute player value " and "= Difficulty[picked integer],"
I just found out that the palyer attributes in the triggers cant check the VALUES which is where my difficulties are since each attribute must have a value, do i have to make 3 attributes with one value that does nothing?
EDIT: I just noticed that the trigger DOES look at attribute values... my bad. I still dont know what exactly i have to do for the "Value 2:"
- - IF
- - - - (GAME ATTRIBUTE) value for player (PICKED PLAYER) == (WHAT VARIABLE/ACTION???)
I know that but where does this picked integer come from? From how the trigger looks the "pick integer 0-2" wont have any effect on the outcome at all.
Well i added the part thats checks majority vote, but what do you do with "The trigger needs the difficulty or game mode array and their values"? Do i add a integer array with its array value at 3?
I believe i fixed those just now and about your edit, what do i need to do to do that? If there is a draw i want the result to be 45 Minute Rescue(The Default Setting). If making the result random between the draw isnt too complex then i would like to do that.
How exactly would i set its values? Responding to "Your attribute values variable is local so you need to set its values in that trigger before the player loop.".
Okay after all of that, how do i design a trigger that will now check the winning vote and fire a trigger based on the outcome?
EDIT: I forgot to add the set variable action but they are now added (Variable - Set Attribute Values[1] = 65 Minute Rescue) - - (Variable - Set Attribute Values[2] = No Rescue). They wont show up in the screenshot but they are there i'd just rather not edit another screenshot because having dual screens causes a screenshot to snap both monitors.
Would a "switch" instead of a "in then else" statement work better? I kinda understand what youre telling me, but how would i determine which will activate? I know what actions will be set once the choice is activated but not how the trigger would choose.
Nevermind about switches then, but the "Winner" variable is an integer and each result makes it 1 doesnt it? So checking the "Winner" variable would result in the same Game Length. Unless the "Winner" variable need to be a attribute value but that would change everything else. Im not quite sure what you mean by "1 trigger for each game mode". I want to "if then else" actions to check the winning vote, and fire a trigger(1 of 3) based off the winning attribute value. These 3 triggers will change the timer from 45 minutes, 65 minutes, and no timer. The trigger layout is still the same i havent added anything yet.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I know its possible because ive seen it in other custom games but i have no idea how it would be done. How do i create a "attribute" menu similar to race/difficulty/handcap drop down menus that are in the lobby, and have the option chosen the most "votes" activate a trigger? I could do this in-game but ive already made a set of triggers that wouldnt function properly if a dialog was to be in the way at the start of the game.
1) Map -> Attribrutes 2) Player specific attribute (condition, not action or function, condition).
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
I saw these once but i didnt consider that they would be for this, ill check it out.
This looks like the thing i want, but how would i go about counting this so the majority vote would result in a certain trigger being fired.
Could you please layout a trigger that would do this? It probably isnt super complicated but i hate dealing with array variables.
I kinda understood this... i made 3 local variables one is a array with the array value at 3, and two are integers titled Winner and Winning Count. I also made a Attribute ID(Player) array variable, other than that i have no idea what youre telling me. If i remeber correctly GUI is a way of viewing the triggers, or is that XML? EIther way i use tree view of whatever the simplest view is.
I dont know what it is but i cant understand what youre telling me, i assume the event is map initialization so there is no trouble there, but the two quotes... do they go in the same trigger or two different ones?
What variables go in for "attribute player value " and "= Difficulty[picked integer],"
I just found out that the palyer attributes in the triggers cant check the VALUES which is where my difficulties are since each attribute must have a value, do i have to make 3 attributes with one value that does nothing?
EDIT: I just noticed that the trigger DOES look at attribute values... my bad. I still dont know what exactly i have to do for the "Value 2:"
- - IF - - - - (GAME ATTRIBUTE) value for player (PICKED PLAYER) == (WHAT VARIABLE/ACTION???)
I know that but where does this picked integer come from? From how the trigger looks the "pick integer 0-2" wont have any effect on the outcome at all.
So is this how the trigger should look?
Well i added the part thats checks majority vote, but what do you do with "The trigger needs the difficulty or game mode array and their values"? Do i add a integer array with its array value at 3?
There are 3 attribute variable types : Game, Player, and Value. Which of these do i choose? In the mean time ill assume its value.
I juts added my trigger layout to my last comment, check it please because im not sure about everything.
I believe i fixed those just now and about your edit, what do i need to do to do that? If there is a draw i want the result to be 45 Minute Rescue(The Default Setting). If making the result random between the draw isnt too complex then i would like to do that.
How exactly would i set its values? Responding to "Your attribute values variable is local so you need to set its values in that trigger before the player loop.".
Okay after all of that, how do i design a trigger that will now check the winning vote and fire a trigger based on the outcome?
EDIT: I forgot to add the set variable action but they are now added (Variable - Set Attribute Values[1] = 65 Minute Rescue) - - (Variable - Set Attribute Values[2] = No Rescue). They wont show up in the screenshot but they are there i'd just rather not edit another screenshot because having dual screens causes a screenshot to snap both monitors.
Basic outline of what you've done.
Check player attribute and increase vote count
What you need to do now is
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
Would a "switch" instead of a "in then else" statement work better? I kinda understand what youre telling me, but how would i determine which will activate? I know what actions will be set once the choice is activated but not how the trigger would choose.
Nevermind about switches then, but the "Winner" variable is an integer and each result makes it 1 doesnt it? So checking the "Winner" variable would result in the same Game Length. Unless the "Winner" variable need to be a attribute value but that would change everything else. Im not quite sure what you mean by "1 trigger for each game mode". I want to "if then else" actions to check the winning vote, and fire a trigger(1 of 3) based off the winning attribute value. These 3 triggers will change the timer from 45 minutes, 65 minutes, and no timer. The trigger layout is still the same i havent added anything yet.