mob/var/list/hot_slots=list()
mob/proc
SaveSkills()
for(var/Skill/S in usr.client.screen)
if(S)
hot_slots[S] = S
LoadSkills()
for(var/Skill/T in usr.hot_slots)
if(T)
src.client.screen += T
Problem description:
Well i tried to make an hot key slots (0-9), it's worked but the problem is when i trying to save it, it's gives me an error (well the save works)
runtime error: Cannot read null.screen
proc name: New (/obj/Huds/Slots/Hud5/New)
usr: null
src: Hud5 (/obj/Huds/Slots/Hud5)
call stack:
Hud5 (/obj/Huds/Slots/Hud5): New(null)
i tried to fix it, but it just won't work..
#ZeroDay .
usr is what called the proc - in which case, usr could even be another proc.
src is the source of the proc, which is the mob.