mob/Stat() var/Weight = 0 if(locate(/obj) in src.contents) for(var/obj/O in src.contents) Weight += O:itemWeight if(Weight > 0) stat("Weight: [Weight]") src.PackWeight = Weight ..() mob/Move() if(src.AllowMove == 0) return if(src.PackWeight > src.Strength * 2) usr << "[BadMessage]Your pack is too heavy!" return ..()
I'm trying to make it so if your packweight var is greater than your strength times 2 you can't move. Above is the code I use. My problem is that you can't move after you drop stuff. It lets you move right up until it gets too heavy to move and then you can't move again. Any help would be appreciated. Thanks.
Insayne