Subtracting #

First of all for an example… i created an dynamic text with a variable called “BobHP”… Then when it reaches to a frame with an actionscrip which i don’t know which one to pick… so this is my problem… how do I subtract numbers from BobHP? That should be an easy question if u know how… and one more thing when you subtracting the numbers, how do you do it randomly when subracting in a specific range of 2 numbers (eg. 10 - 20, it has to be a number between those 2 numbers.)

Well if your variable is a number you can just do…

BobHP-yourNumber

And for random numbers, read up on Kirupas great tutorial…

http://www.kirupa.com/developer/actionscript/tricks/random.asp