Another strange story...
Is there a way to save the Character variables, like atributes, gold, from one story to other?
i.e: If i have 2 or more stories in diferent html files, can i set the name in first story and load somehow in the rest of stories?
Any ideas?
Comments
But appears an error: Cannot execute macro...
As the idea is to autosave the character on hard disk without asking about slot, this will be correct? Create one slot more, save, remove slot.
And im worried about SaveSystem.exportSave() becouse the documentation explains that "Saves the story to disk." not a part of it and SaveSystem.save(slot [, title [, metadata]])->metadata "The data to be stored in the save object's metadata property." but not the only value. I think if i try to load in other story, would be an error because the story is not the same.
Depending on what you actually want to do, it may be possible to use the save system to achieve it. If you want to save some state which would be used as the seed of another story, then it is possible to pare down a save to the barest essentials for later loading by another story to use as its seed. If, on the other hand, you want to save some state which can be moved freely back and forth between stories, then you'll want to look for another method.
PS: The macros are incorrect on multiple levels. Beyond the purely functional issues, neither is going to do what you want, so I won't bother going into details now about why they're incorrect. However, if you'd like, I could do so.
Couldn't you just link them back to a menu screen at the end of the game? That way their variables stay the same, but you play through passages again.
In a first try, I've use <<SagaSave $Name>> in a story and in other <<SagaLoad>><<print $Name>> and it works.
With some investigation and work i thing it can be used as a real solution.
Thanks all!!