Description of the Feature:
Most programmers know what a case structure is, so I describe this from the view of a casual user in eventing terms.
Basically this would be a structure similiar to a show choice structure, but with a very important difference:
a variable number would be used to select the correct branch instead of asking the player.
Adding a case command would show a window similiar to the show choice windows, but instead of placing possible answers, you'll enter numbers in these branches.
And additionally, you'll select one variable to check.
and when the command is executed, the branch with the number will be chosen to be executed.
Why is this feature good?
This makes an easy alternative to long lists of conditional branches checking if the variable is a certain number.
It is not only easier to use (only one selection of the variable for the entire structure instead of selecting and checking it in everyconditional branch command), it also means that there is less chance of an error (wrong variable or wrong value selected, especially if there is a series of conditional branches)
This would be especially good if you could set if the check is for equal or for "or less" or for "or greater".
Possible issues with this feature?
Theoretically it could be done with a series of conditional branches, so this command is not absolutely neccessary.
But there are anout other suggestions around this ("else-if" and similiar additions to conditional branches) that such an alternative is really wanted, and this might be easier to implement than some of the other requests.
Most programmers know what a case structure is, so I describe this from the view of a casual user in eventing terms.
Basically this would be a structure similiar to a show choice structure, but with a very important difference:
a variable number would be used to select the correct branch instead of asking the player.
Adding a case command would show a window similiar to the show choice windows, but instead of placing possible answers, you'll enter numbers in these branches.
And additionally, you'll select one variable to check.
and when the command is executed, the branch with the number will be chosen to be executed.
Why is this feature good?
This makes an easy alternative to long lists of conditional branches checking if the variable is a certain number.
It is not only easier to use (only one selection of the variable for the entire structure instead of selecting and checking it in everyconditional branch command), it also means that there is less chance of an error (wrong variable or wrong value selected, especially if there is a series of conditional branches)
This would be especially good if you could set if the check is for equal or for "or less" or for "or greater".
Possible issues with this feature?
Theoretically it could be done with a series of conditional branches, so this command is not absolutely neccessary.
But there are anout other suggestions around this ("else-if" and similiar additions to conditional branches) that such an alternative is really wanted, and this might be easier to implement than some of the other requests.