> As a suggestion, for an user friendly engine as construct, it would be nice a new type of string variable on wich we can store predefined strings, kind of a 'multi-choice' text variable.
> This way, when checking or setting this variable we could choose from this predefined value from a drop-down menu, improving readability and ease of use.
> This would be very useful when checking events based on stuff like difficulty level ('if difficulty is hard') or any other multi choice option, or when a character has a 'state' variable ('if state is taking cover').
Isn't that what arrays are for?
Kinda overkill and not really what I was talking about, with arrays you have to mess around with indexes and all that stuff, and fill them via event sheet actions, and you can't have an instance array for objects (well, you could use a single array for a type of object and tinker around with dimensions, assigning UIDs, besides my point of simplicity anyways) what Im talking about is...well, a picture is worth a thousand words, right?
Pretty much that, but custom made. Simply put, a variable with custom fixed values accesible via dropdown menu.
Think about a complex character on wich you need to check a lot of special cases, so you make a 'state' string instance variable for him and events for every value to see if he is "crouching", "jumping", "blocking", "atacking", etc.
If for some reason you want to change the wording of some of those states ("crouching" for "ducking" for example) or correct a typo, you would need to change every event wich checks the prior wording in order to match the current one, and in every case remember whatever you called a specific state.
Now, with what Im talking about, you could define this fixed values in-editor when creating the variable and simply pick them out of a dropdown later, or change the 'name' of this predefined values anytime with the events automatically updating it. It's pretty much a regular string under the hood but with the editor working with you to make things a little bit easier (less typing and not having to remember specific values).
It doesn't even need to be a new type of variable now that I think of it, it could be just some "Add predefined values" option to numerical and string current variables, while they still could function normally and take non-predefined values too.
I hope this explains it better.