A
Adry
Guest
Hi everyone! I'm completely new to the
(p.s. the flag is set to 0 within my NPC, and then 1 when the dialogue is altered, that # value is what I'm trying to save and load)
I created a persistent object controller that I want to have house that information within a global list. this is in the create event:
I'm trying to load it with this code, this isn't the full code, but it works because I've saved/loaded things before but never a nested list within one global variable..
Also I've posted on Reddit. I got replies that said I need to use ds_list_write and ds_list_read? also ds_list_mark_as_list!? I have no idea where to put these functions.. I can't get it to work. Anyone have any ideas? Help would be so greatly appreciated! Thank you
list
function but I figured this would be a good way to store multiple dialogue flags to save.. Can anyone offer some insight? I have the saving function of:
GML:
ds_map_add(_map, "Dialogue_flags", global.dialogue_flags);
I created a persistent object controller that I want to have house that information within a global list. this is in the create event:
Code:
global.dialogue_flags = ds_list_create();
ds_list_add(global.dialogue_flags,
obj_edison_phone.dialogue_flag
);
Code:
global.dialogue_flags = _map [? "Dialogue_flags"];
ds_list_find_value(global.dialogue_flags, 0)