Well... I'm not sure how much you learn by accidentally pressing the wrong key, but not noticing it, and then spending hours trying to figure out why your script won't work because of it
Quite...
The Chris' script editor won't automatically type you anything, it won't make you a script automatically if you type in "I want a script that xxxxx..."...
It just shows all functions, labels, comments etc in different colors...
It's much much much clearer that way... Absolutely great tool...
Even all pro (or proish) software, like for example Borland C++ builder etc use that same kind of colorization...
(Only people I know who won't use any enhanced editor are the html/etc enthusiasts who insist in proving something by typing ALL of their code in notepad
;D )
Oh, and Planck is quite right...
When using random values to get and random index (to get stuff from an array in this case) you need to use the
mod function... It makes the value as integer instead of floating point...
Also, when using
count you must remember that an array of 12 elements returns 12 with
count but the indexes start from 0 and end up in 11, so usually the zero divisor pops up when the script tries to use an element from the array that does not exist...
The 12th element in an array of 12 is
array select 11, NOT
array select 12...