ItsMods
switch(RandomInt(9)) Help - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: switch(RandomInt(9)) Help (/Thread-switch-RandomInt-9-Help.html)



switch(RandomInt(9)) Help - bastard016017 - 03-27-2011

instead of random 0 - 9 how do i make it like switch 1 2 3 4 5 6 to 9 then 0 back


RE: switch(RandomInt(9)) Help - SuperNovaAO - 03-27-2011

Code:
level.superSwitch = 0; function doMagic() { switch(level.superSwitch) { case 0: case 1: ... case 9: } level.superSwitch++; }



RE: switch(RandomInt(9)) Help - zxz0O0 - 03-27-2011

(03-27-2011, 15:45)SuperNovaAO Wrote:
Code:
level.superSwitch = 0; function doMagic() { switch(level.superSwitch) { case 0: case 1: ... case 9: } level.superSwitch++; if(level.superSwitch==10) level.superSwitch=0; }

Fixed Wink



RE: switch(RandomInt(9)) Help - SuperNovaAO - 03-27-2011

Yeah, forgot.