If the game is freezing, then maybe you've set up your HP status variable's "on change" script to change the value of the HP variable, causing an infinite loop. If you attach your .asl file here or email it to me at
[email protected] I can take a look into this for you.
You can make Quest generate a random number between 1 and 5 by typing:
$rand(1;5)$