for(var/mob/V in world)
if(V.ckey == M)
V << output("<font color = blue>[A.name] is your word.", "gameLOG.output2")
drawing = V.ckey
world << output("<font color = blue>[V.name] is going to draw!", "gameLOG.output2")
for(var/turf/Blank/C in world)
V.coloring = V.defaultcc
V.DrawOn(C)
V.coloring = V.defaultcolor
started = 1
processing=0
Problem description:
On initiating the proc that contains the above, it gives me the following error:
{
runtime error: Cannot read null.coloring
proc name: DrawOn (/mob/proc/DrawOn)
}
and
{
runtime error: Cannot read null.coloring
proc name: DrawOn (/mob/proc/DrawOn)
usr: null
src: Alitron123 (/mob)
call stack:
Alitron123 (/mob): DrawOn(Blank (1,1,1) (/turf/Blank))
: NewRound()
: NewRound()
: New()
}
This proc uses the DrawOn() command on all turfs.
The DrawOn() command uses the blend function to change the color of the turf to the mob's coloring var.
Apparently it takes the mob as null. Any explanation?
I'd like to see more of what DrawOn() does.