
Re: RANDOM AND ARRAY (Final JAM)
Not too sure if I am understanding correctly, but you are talking about the number of characters and when the enter key is needed or not, correct?
If so, I encountered a similar issue and Promethius was kind enough to teach me about this. I can show you an example from my OCSBot Patrol script.
Code:
readtoarray $SentryFile $SentryCount
setVar $i 2
while ($i <= $SentryCount)
send "s"
WaitFor "Sector number (0="
send $SentryCount[$i]
getLength $sentryCount[$i] $len
if ($len < 5)
send "*"
I have the course from Sector 1 to StarDock going into a file called SentryList.txt which gets read into the $SentryCount var. I had to use the getLength command, then tell it if the length was less than 5 characters (ex: sector 10001), then send the enter key.