proc
setHP()
if (src:CHP >= src:MHP)
set src:CHP = src:MHP
Problem description:
(CHP is current HP; MHP is max HP.) So, I made this little line of code because I didn't want a mob's current HP to be higher than it's max HP (For obvious reasons). So, I revised this a few times, but every time I try to compile, it says: mobs.dm:36:error: src/:/CHP: can't assign to left-hand side
Can anyone help me?
Also, I have another problem (minor, for now).
I have this:
verb
healme
hidden = 1
set src:CHP = src:MHP
It gives me:
mobs.dm:29:error: healme: invalid proc definition
Any help, with either of these problems, please?
take the SET off and it'll work fine.