switch(statement) {} ? (suggestion)

Started by edmundito, Tue 14/10/2003 00:37:15

Previous topic - Next topic

edmundito

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
The Tween Module now supports AGS 3.6.0!

SSH

12

josephdiperlascellphone

yeah i like the switch idea too. it would look less messy.    jd

Pumaman

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.


DoorKnobHandle

So ... is OVER 10 years a new bump record?

Andail

I think so. I'm going to go celebrate right after I've locked this topic.

SMF spam blocked by CleanTalk