mob/verb/TextSpeed()
set hidden = 1
if(usr.Talking==TRUE)
for(var/HUD/Text/Te in client.screen)
Te.maptext = null
usr.Talking=FALSE
del(Te)
Problem description:
For some reason I keep getting this runtime error when trying to delete text-boxes after to skip dialog/close the dialog box. It deletes fine, but for some reason the runtime error still happens.
I can't figure out how to fix it.
runtime error: Cannot modify null.maptext.
proc name: Text (/proc/Text)
usr: Peter Mayhew (/mob)
src: null
usr.loc: (6,8,3) (/turf/floors/floor1)
call stack:
Text(Peter Mayhew (/mob), "Doctor Montgomery: Plea...")
Montgomery (/mob/NPC/Montgomery): Interact()