obj/Health
icon = 'health.dmi'
layer= MOB_LAYER+1
if(usr.HP == 100)
icon_state = "100"
else if(usr.HP == 75)
icon_state = "75"
else if(usr.HP == 50)
icon_state = "50"
else if(usr.HP == 25)
icon_state = "25"
else if(usr.HP == 0)
icon_state = "0"
The entire object has errors.
The errors are:
loading RoboWars.dme
loading Macro.dms
hud.dm:4:error:usr.HP:duplicate definition
hud.dm:4:error:100:duplicate definition
hud.dm:4:error:== :instruction not allowed here
hud.dm:4:error::empty type name (indentation error?)
hud.dm:5:error::empty type name (indentation error?)
hud.dm:6:error:usr.HP:duplicate definition
hud.dm:6:error:75:duplicate definition
hud.dm:6:error:== :instruction not allowed here
hud.dm:6:error::empty type name (indentation error?)
hud.dm:7:error::empty type name (indentation error?)
hud.dm:8:error:usr.HP:duplicate definition
hud.dm:8:error:50:duplicate definition
hud.dm:8:error:== :instruction not allowed here
hud.dm:8:error::empty type name (indentation error?)
hud.dm:9:error::empty type name (indentation error?)
hud.dm:10:error:usr.HP:duplicate definition
hud.dm:10:error:25:duplicate definition
hud.dm:10:error:== :instruction not allowed here
hud.dm:10:error::empty type name (indentation error?)
hud.dm:11:error::empty type name (indentation error?)
hud.dm:12:error:usr.HP:duplicate definition
hud.dm:12:error:0:duplicate definition
hud.dm:12:error:== :instruction not allowed here
hud.dm:12:error::empty type name (indentation error?)
hud.dm:13:error::empty type name (indentation error?)
RoboWars.dmb - 25 errors, 0 warnings (double-click on an error to jump to it)