mob/proc/highblock(M)
alert(src,"Do you wish to block [M]'s head strike?","Yes,","No")) //Both errors flag this line
if("Yes")
if(src.bodydefense == 1)
src.bodydefense == 0
src.headdefense == 1
else
src.headdefense == 1
Out of that code, I get the following errors:
combat.dm:2:error: ): expected }
combat.dm:2:error: location of top-most unmatched {
The weirdest thing is that a have another proc defined that is the same code except with different variables, but that proc gets no errors.
alert(src,"Do you wish to block [M]'s head strike?","Yes,","No")) //Both errors flag this line
if("Yes")
if(src.bodydefense == 1)
src.bodydefense == 0
src.headdefense == 1
else
src.headdefense == 1
You have an extra )