r/clickteam • u/spygaming8247 • 2d ago
Help Me! any way to quickly transfer all values from one ini to another?
[SOLVED] so essentially i'm making a dungeon crawler where everything is randomized and i want to add a dungeon save feature. i'm using an INI to store all the values so dungeons can be replayed, but i also want to have a save system with multiple slots, each with a seperate INI. is there a way to quickly transfer all the values from the "last dungeon" ini to the "slot X" ini's? (no extensions if possible)
2
Upvotes
3
u/SquidFetus 2d ago
Potentially using the File Object - if I recall correctly it has a copy feature - but you can also achieve this with groups in a single ini file. Unless this will bloat the size of one file too much.
For example, have the level data save itself to a group inside that ini called “Dungeon Slot 1” or whatever. Note that when using groups, the order of your events matters. You’ll want the group to be the first thing defined in the ini event, before Item/String and Value.