Few 'problems'

bonelessseal
admittedly it may be my coding so yeah.

first off I have two status variables "Hit points" and "Mana points" Now the thing I am finding is these values are going below 0 into negatives and I don't want that to happen so is there a way to stop it from going into the negative values?

and 2nd problem. I have a room set that when you enter it you take $rand(50; 90)$ damage, I wrote "If Hit points = less than or equal to 0 then make player loose" the problem here is that you loose even if you have 500 hit points after you take the damage.

what should I be doing?

Alex
Use "script to run when value is changed" in your status variable. If value is less than 0, set it to zero.

Make sure in your "if" script, you use "%hit points%" so it actually reads the value of the variable.

If that doesn't help please attach your .asl file (use "Upload attachment" under the submit/reply buttons)

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums