Code:
MouseDrop(over_object,src_location,over_location,src_control,over_control,params)
..()
var/player/p = usr
if(istype(over_object, /obj/HotbarExtend))
var/obj/HotbarExtend/O = over_object
if(!O.jutsu)
O.jutsu = src
src.screen_loc = O.screen_loc
usr.client.screen += src
spawn()
for(var/i = 1; i <= length(p.hud.hotslot); i++)
var/obj/HotbarExtend/check = p.hud.hotslot[i]
if(check == O) continue
if(check.jutsu == src)
check.jutsu = null
This is where the list is set.
F["hotslots"] << p.hud.hotslot
Write(F)
// ... save ^ load v
F["hotslots"] >> p.hotslots
p.hud = new(p)
spawn()
for(var/obj/HotbarExtend/hotbar in client.screen)
for(var/skill/s in p.hotslots)
Problem description:
I'm trying to use lists to store my hotkeys, when dropping the hotkey into its slot its stored in an object list attatched to the actual slots. I'm trying to use the object list to save into the mob's list when saving/loading. Just can't figure out how to get it done in the loading process.
As you can see I have nothing for the load process, that's just what I assumed would be used. I'm sure this is very simple and I'm just overthinking it, thank you for the future help!
As example not for use intented!
then you do something like this to look for the save and load its content, Id say when the Players Login!