Question: Is it possible to auto-generate memory slots?
synthesis
Member Posts: 1,693
When using save and load attribute behaviors...is there a way to assign or call the memory slot (ie...via an attribute definition or an expression)?
If so...how?
If not...CRAP! So much for saving any progress.
If so...how?
If not...CRAP! So much for saving any progress.
Comments
To save in a loop...where as the loop counts...an integer counts with it and assigns the unique name to the memory slot...
[ loop start ]
self.saveID = self.saveID+1
self.nextMemorySlotName = "memorySlot"..self.saveID
save attribute to "nextMemorySlotName"
[ end loop ]
Correct!!! I can't think of a way to do it...I was hoping someone else discovered a way...if possible.
It'd be great if Gendai just added the expression option to the key field...
Which is why some of my Rules have literally 600 behaviors in them.
Something I could do with 5 lines of code...
crap!
Dynamic memory slots sure would be nice.
We are referring to the save and load attribute behavior.
Currently you can only save or load data by manually creating a slot to store the data via the behavior. If you have 100s of pieces of data to store (such as saving the progress of a data driven game...like a matching game or card game), there is no way to script a routine to do that automatically...it would require you to build each and every memory slot by hand within an actor....which could take days...vs an hour if you could script it or create a looping rule that saves in a sequence...such as memoryItem1...memoryItem2...memoryItem3...with the rule changing the number incrementally in each save loop....until you reach memoryItem468 (or whatever number) where the loop would stop.
Until GS implements an expression field in the save and load behaviors for the memory slot's name...that isn't possible...unfortunately. Because if it were...it would be HUGE for data storage handling and make arrays possible (kinda).
But thanks to you and some other community members GS becomes the #1 engine despite its insufficiency in some areas.
I hope they take care of this "saving" stuff before I need it!
Thanks for explaining..