Does Ags support switch statements ? If so how are they used in ags? are they just like c?
no. you have to use nested if's.
Nested ifs are messy and ineffecient compared to switch statements. Are there any plans to include it in future versions? mabye I could write a function that will help.
It's on the to-do list, but I think it's not of high priority.
If you must, you can do something with an array of structs, and search as per a binary tree. Scripts aren't particularly efficient, but then 95% of AGS's processor time is spent updating the screen, so it doesn't bother people even on a 300 MHz machine.
Yes I suppose I could do that, but I was just looking for a ready made easy way to do it.
Not in AGS. It isn't important to CJ (Pumaman) because there's a workaround that we all use (if's).