Hi !
In my game at one point I have an even that chooses a random number, then displays a picture according to that number.
To save up on event space, I programmed it using a switch statement in a script block, but it crashes...
^ Here's my code for choosing the random number, and the switch statement
^ And here's the error I get...
My guess is that probably I bungled the statement by trying to have it be as compact as possible... But I really don't know !! Thank you for your help !
In my game at one point I have an even that chooses a random number, then displays a picture according to that number.
To save up on event space, I programmed it using a switch statement in a script block, but it crashes...
^ Here's my code for choosing the random number, and the switch statement
^ And here's the error I get...
My guess is that probably I bungled the statement by trying to have it be as compact as possible... But I really don't know !! Thank you for your help !