obj/MagikPlates
var/obj/Cooldown/C
var/cooldown=100
New()
..()
src.overlays+=C
C.ontop=src
obj/Cooldown
icon='Cooldown.dmi'
var/cframe=124
var/ontop
New()
spawn for()
cframe=124/ontop.cooldown//this is line 182
icon_state="[cframe]"
Casting Procs.dm:182:error:ontop.cooldown:undefined var
Problem description:
My god this is confusing... I'm trying to make it so "magikplates" overlays "cooldown"and "cooldown" changes iconstate depending on "magikplates" cooldown var
I just can't get my brain to work right through this any help would be appreciated.
var/obj/MagikPlates/ontop