Hey all, i have this script
I was wondering if there is a code i can use to replace the 10 with a random number between say 1-10.on (release) {
health -= 10;
if (health>500) {
health = 500;
}
if (health<1) {
_root.gotoAndPlay("gameover");
}
}
(Ergo when the script triggers the health is decreased with something between 1-10 instead of the set nr 10)
Thanks!