I do not know much or really any javascript, and as such do most of my code work with event commands. For the sake of efficient code, it would be so, so useful if I could use switch case.
However, I see no options for doing so using MV's event commands. The closest thing I could think of is some kind of label-based list, as labels are, to my limited knowledge, the only way to jump forwards and backwards in the code. I'm not sure how, or even if, this could actually be implemented though.
Is there a way to write a switch case script in a common event, or must I choose between sub-optimal code, or a java for dummies book?
Also sorry if this is the wrong place to post this. It's kind of a multifaceted problem so I wasn't sure whether it was more of a script issue or an engine issue.
However, I see no options for doing so using MV's event commands. The closest thing I could think of is some kind of label-based list, as labels are, to my limited knowledge, the only way to jump forwards and backwards in the code. I'm not sure how, or even if, this could actually be implemented though.
Is there a way to write a switch case script in a common event, or must I choose between sub-optimal code, or a java for dummies book?
Also sorry if this is the wrong place to post this. It's kind of a multifaceted problem so I wasn't sure whether it was more of a script issue or an engine issue.
