Code:
world
maxx = 20
maxy = 20
maxz = 1
// This is basically the spotlight example from the reference
obj
darkness
screen_loc = "1,1"
color = list(null,null,null,null,"#333")
plane = 2
blend_mode = BLEND_MULTIPLY
appearance_flags = PLANE_MASTER | NO_CLIENT_COLOR
light
icon = 'light.dmi'
pixel_x = -48
pixel_y = -48
plane = 2
rock
icon = 'rock.dmi'
turf
icon = 'turf.dmi'
Click()
new /obj/rock (src)
var
obj
darkness
darkness
mob
icon = 'mob.dmi'
New()
overlays += new /obj/light
Login()
.=..()
if(!darkness) darkness = new
client.screen += darkness
verb
set_darkness(s as text)
darkness.color = list(null, null, null, null, "#[s]")
Problem description:
Every time I use set_darkness anything on the plane disappears completely. Am I doing something wrong?