obj
hud
buttons
icon='hud buttons.dmi'
icon_state="button"
var/val
New(client/C)
C.mob.buttons++ // Here.
src.overlays+=icon('hud buttons.dmi',"[C.mob.buttons]")
src.val=C.mob.buttons
C.screen+=src
var/pos=8+C.mob.buttons
src.screen_loc="2,[pos]"
if(C.mob.buttons<=4) new /obj/hud/buttons(src)
else C.mob.buttons=null
Problem description:
runtime error: undefined variable /obj/hud/buttons/var/mob proc name: New (/obj/hud/buttons/New) source file: Battle System.dm,164 usr: Nishiatsu (/mob/Player/White) src: the buttons (/obj/hud/buttons) call stack: the buttons (/obj/hud/buttons): New(the buttons (/obj/hud/buttons)) the buttons (/obj/hud/buttons): New(Mysame (/client)) Mysame (/mob/Player/White): begin fight(Mysame (/mob/Player/White)) Nishiatsu (/mob/Player/White): Challenge(Mysame (/mob/Player/White))