- May 20, 2019
- 156
- 322
Hullo!
I'm researching the "best" approach to coding a way to display dialogue and scenes depending on the top value of three different variables assigned to a character in my game.
Example:
The main character can have different values in A, B and C. Depending on what the player does during the game these can increase to different values.
I want to be able to display lines and scenes depending on which of these three variables are the highest (and if they are equal).
If A is 2, B is 1 and C is 3, anyone knows an efficient way to do this so that the character displays the text associated with C and not A or B? I'd also like to know a way to handle this if all three values are equal.
Hopefully, that made sense to somebody
I'm researching the "best" approach to coding a way to display dialogue and scenes depending on the top value of three different variables assigned to a character in my game.
Example:
The main character can have different values in A, B and C. Depending on what the player does during the game these can increase to different values.
I want to be able to display lines and scenes depending on which of these three variables are the highest (and if they are equal).
If A is 2, B is 1 and C is 3, anyone knows an efficient way to do this so that the character displays the text associated with C and not A or B? I'd also like to know a way to handle this if all three values are equal.
Hopefully, that made sense to somebody