Ok, when I hit a Pbag, It raises the HP, not the maxHP, and it does that only, and nothing else in the coding. please help. Here is the coding:
mob
verb
Punch(mob/M in oview (1))
set category = "Attacks"
if(usr.stam <= 0.5)
usr << "Too Tired!"
if(usr.stam >= 0.5)
if(istype(src, /mob/pbag/pbag1))
flick("punch",usr)
new /mob/pbag/pbag1
usr.exp += 2
usr.maxPL += 1
usr.str += 1
usr.def += 1
usr.maxHP += 1
usr.maxstam += 2
Copyright © 2025 BYOND Software.
All rights reserved.
2. Replace src with M in <code>if(istype(src, /mob/pbag/pbag1))</code>
3. I assume your indentation got messed up on the forums.
4. You should really put <code>else</code> there instead of <code>if(usr.stam >= 0.5)</code>