Jump to content
Sign in to follow this  

Trouble with random generation

Recommended Posts



while 1

$walk = random(1, 100)



if $walk > 50 Then


elseif $walk < 50 Then




this is a snippet off of my functioning script, $walk IS being assigned a randomly generated number, but the if statement isn't working.. any ideas why this wouldn't work?

the same controlsends work in all other cases with the rest of the script, just not in regards to the random string...

Edited by crazedwombat

Share this post

Link to post
Share on other sites

sorry guys, now it does work, was some sort of bug.. i've been messing with it for like an hour and now after taking a break and no further changes it works..

must be something bugging with controlsend and window focus or something...

again, sorry.

btw ty for the point about the = 50.. even though it works without it i'm sure it would've frozen up or killed the script had it managed to hit 50...

Edited by crazedwombat

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.