Attack()
set category= "Combat"
set src in oview(1)
if(usr.str<=2)
usr << "You killed the spider! You gain 10 XP for Strength!"
usr.strxp+=10
del src
else
usr.hea-=5
usr << "You have a low Strength! You lose 5 health!"
Problem description:I get no errors when I compile it, I tried an code like this:
else
if(usr.str>=1)
usr.hea-=5
usr << "You have low Strength! You lose 5 health!"
But this ends up as an error ("if" statement is not needed, then, statement is not needed). I tried switching src with usr, still doesn't work. Any help?