Hey, i have array variables. Variable [1-5]. how can i define an event that fires when (in this case dialog buttons) dialog buttons index 1-5 is clicked. do i have to make an or condition and copy it or is there a smooth way too?
When checking for dialogs used, especially when in an array, you have to specify directly to which one the player used. So there is no way for the editor to react to a range of buttons.
If by the player pressing any of the 5 buttons there is a single reaction, then in the conditions just make the used dialog button must be equal to button[1]. Then add an OR condition, that says the button used must be equal to button[2].. and so on.
But if each button does something different, and you want to have If statements or a switch in one trigger, I would recommend against it. Make different triggers for each button, makes the code much cleaner, in my opinion anyways.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey, i have array variables. Variable [1-5]. how can i define an event that fires when (in this case dialog buttons) dialog buttons index 1-5 is clicked. do i have to make an or condition and copy it or is there a smooth way too?
@PsychoMC: Go
When checking for dialogs used, especially when in an array, you have to specify directly to which one the player used. So there is no way for the editor to react to a range of buttons.
If by the player pressing any of the 5 buttons there is a single reaction, then in the conditions just make the used dialog button must be equal to button[1]. Then add an OR condition, that says the button used must be equal to button[2].. and so on.
But if each button does something different, and you want to have If statements or a switch in one trigger, I would recommend against it. Make different triggers for each button, makes the code much cleaner, in my opinion anyways.