First, love the Stargate location reference!
Second, if you come on these forums to ask for help. Listen to what experienced coders like Grog and Baxslash have to say.
Third, I would also look into the 'randomize' command, or else you'll get the same sequence of numbers each time your program runs.
[EDIT] I just realized. You wouldn't randomize HP damage for an FPS or RTS... You're doing an RPG aren't you?
*huff* *sets face in hands*
I tried the same thing. I had to start with a Pong remake. That was about 8 years, 7 demos, and 2 programming languages ago. And, I'm just now looking at making an RPG. Which appears to be going swimmingly this time!
If life were like a box of chocolates, I'd know what I would get... The one that got dropped on the floor and put back in the box.
Iye nehvur yoose spehl chehk, ahn mie tippyng izz fiyne.