Changed code
player:
player_turn=0 and enemy_turn=1
print "1 Attack"
print "2 Defend"
input choice
if choice=1 then rnd(30)=damage
enemy_health-damage=enemy_health
print "you deal"damage"points of damage to the enemy"
if choice=2 then rnd(15)=heal
heal+player_health=player_health
print "you heal yourself and gain "heal" points of health"
gosub life
I changed your
input "1=attack 2=defend",player_input
to choice and the Player_choice to choice
Tip Of The Day!: a new rouge anti-virus has risen in 2008 called xpantivirus 2008 don't download this. Please help spread the word.