runtime error: Cannot modify null.lib.
proc name: Battle (/mob/proc/Battle)
source file: BattleRevised.dm,8
usr: Metroid (/mob/blue)
src: Dark Slime (/mob/monster/Dark_Slime)
call stack:
Dark Slime (/mob/monster/Dark_Slime): Battle(null)
Dark Slime (/mob/monster/Dark_Slime): Bumped(Metroid (/mob/blue))
Metroid (/mob/blue): Bump(Dark Slime (/mob/monster/Dark_Slime))
Metroid (/mob/blue): Move( (36,82,4) (/turf/grass2), 1)
Metroid (/mob/blue): Move( (36,82,4) (/turf/grass2), 1)
If you need My Battle() then here it is
mob
proc
Battle(mob/M)
M.lib = 1
M.battle = 1
if(M.defend == 1)
M.defense /= 2
M.defend = 0
switch(alert("[src] encountered! Command?",,"Commence Battle","Defend","Run"))
if("Commence Battle")
CommencedBattle(M)
if("Defend")
M.defense *= 2
M.defend = 1
NPCDeathCheck(M)
if("Run")
Run(M)
Whats wrong?
Lummox JR