save
icon='clientscreen.dmi'
icon_state = "save"
layer = MOB_LAYER + 5
Click()
call(/mob/verb/Save)()
src << "<font color=yellow><i><center>Now Saving..."
sleep(10)
src << "<font color=yellow><i><center>Saving Complete"
New(client/C)
screen_loc = "2,1"
C.screen+=src
mob
verb
Save()
set hidden = 1
src.client.base_SaveMob()
Problem description:
runtime error: Cannot read null.client
proc name: Save (/mob/verb/Save)
usr: Mic (/mob/namek)
src: null
call stack:
Save()
the save (/obj/hud/save): Click(the grass (27,176,1) (/turf/basicturf/grass))
this isn't really about the runtime error.
I want the save inside the save hud, but for now I want to call it.
but I get this runtime error when I call the Save Verb...
Any ideas on how to fix the calling issue.. or better yet on how to place the verb into the Save hud?
I suggest using a proc instead.