I keep on getting this error:
Harry Potter.dm:4: error: if: expected end of statement
for this code:
mob
verb
Attack(var/mob/M in oview(1))
var/DAMAGE=rand(usr.strength/4 - m.defense/2, usr.strength/2 - m.defense/4) + rand(usr.strength/4 - m.defense/2, usr.strength/2 - m.defense/4) if (DAMAGE > 0) M.HP -= DAMAGE
what did I do wrong?
Your if() statement needs to go on the next line down; you have it on the same line where var/DAMAGE is assigned. To make that work, you either need to put a semicolon after the end of that assignment, or move if() down a line.
Lummox JR