if (M.health <= 0)
if (M.npc=1)
del(M)
else
M.loc=locate (130,200,1)
M.health = M.maxhealth
world << "[M] has been slain by [usr]!"
usr.exp += (rand(1,5))
levelup()
Problem description:
It shows the "if (M.npc=1)" as a missing expression. Anyone know what I can do to correct it?
Though, if it is a boolean var, you should do: <code>if(M.npc)</code> (and to check if it's 0/false: <code>if(!M.npc)</code>).
And boolean vars are vars that only can be 1(TRUE) or 0(FALSE). TRUE/FALSE vars... get it?
O-matic