Error 1 + 2:
mob
proc
DeathCheck()
if(usr.HP == 0)
world << "[usr] dies!"
usr.loc = locate(1,2,4)
usr.HP = 100
if(global.defender == "[usr]")
global.challenger.upgrade += 1 // Line 9
else if(global.challenger == "[usr]")
global.defender.upgrade += 1 // Line 11
Error 3:
mob/verb/Challenge(M as mob in world)
if(!challenger)
if(!global.defender)
usr << "Challenging [M]."
M << "[usr] challenges you."
switch(alert(M,"Will you fight or flee?","Fight or flee... Fight or flee...","Flee","Fight"))
if("Flee")
return 0
if("Fight")
global.challenger = "[usr]"
global.defender = "[M]"
usr.loc = locate(/turf/arena/challenger)
M.loc = locate(/turf/arena/defender) // Line 13
world << "Fight started: [usr] vs. [M]! READY, FIGHT!"
All variables are defined, but the errors are:
loading RoboWars.dme
loading Macro.dms
challenge.dm:13:error:M.loc:undefined var
Death.dm:9:error:global.challenger.upgrade:undefined var
Death.dm:11:error:global.defender.upgrade:undefined var
RoboWars.dmb - 3 errors, 0 warnings (double-click on an error to jump to it)
All vars SHOULD be defined.