Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: edmundito on Tue 14/10/2003 00:37:15

Title: switch(statement) {} ? (suggestion)
Post by: edmundito on Tue 14/10/2003 00:37:15
I'm sure you have thought of this, Pumaman, but I was wondering if you have considered addding a switch () statement to the script editor recently. I think it would be pretty useful, specially  for scripts like dialog_request which require zillion of if/else if statements, and on_mouse_click would even look prettier :P
Title: Re:switch(statement) {} ? (suggestion)
Post by: SSH on Tue 14/10/2003 12:48:57
And a for loop, come to that
Title: Re:switch(statement) {} ? (suggestion)
Post by: on Tue 14/10/2003 21:09:14
yeah i like the switch idea too. it would look less messy.    jd
Title: Re:switch(statement) {} ? (suggestion)
Post by: Pumaman on Tue 14/10/2003 22:04:34
I see where you're coming from - "switch" and "for" were never implemented because they can be done other ways (else ifs and while loops).

In a way, I'm rather nervous about modifying the scripting engine since it is now very stable and I don't want to risk upsetting things by adding a load of new code in. However I'll definately take a look at some point.
Title: Re: switch(statement) {} ? (suggestion)
Post by: Jubei23 on Sat 23/11/2013 06:17:03
a vote for switch!
Title: Re: switch(statement) {} ? (suggestion)
Post by: DoorKnobHandle on Sat 23/11/2013 10:25:06
So ... is OVER 10 years a new bump record?
Title: Re: switch(statement) {} ? (suggestion)
Post by: Andail on Sat 23/11/2013 10:57:18
I think so. I'm going to go celebrate right after I've locked this topic.