Saving Flowcharts, Variables, and Blocks, Oh My!
Ever had an NPC pop in mid-convo because you forgot to save a variable? Yeah, me too. That’s why we gave Flowcharts and Blocks way more save/load control. Let's start with...
New Flowchart Settings
Flag | What Happens When Off | What Happens When On |
---|---|---|
Include in Saves | Skips the entire Flowchart in your saves | Honors the other flags (Blocks & Variables) |
Save Blocks | Doesn’t save any Blocks | Saves only Blocks with “Include in Saves” checked |
Save Variables | Ignores all Flowchart variables | Saves every Flowchart variable |
Yeah, what she said.
How Blocks Come Back to Life
When you load, each Block picks up and reruns whatever Command it was on at save time.
if (!flowchart.IncludeInSaves) return;
foreach (var block in flowchart.Blocks)
{
if (block.IncludeInSaves && savedCommandIndex >= 0 && flowchart.SaveBlocks)
{
block.ExecuteCommandAtIndex(savedCommandIndex);
}
}
Don't worry, we accounted for that! We'll be adding options to Call Commands to avoid such issues:
- Reexecute
- Just reruns the call like normal.
- Stop
- Skip the rerun, stop the calling Block, and let the target do its own thing.
- Wait for Completion
- Hold up the caller until the target finishes. No double-ups
Pick Stop if you don’t want a dialogue block to fire twice, or Wait for Completion if you want perfect sequencing.
What's Next?
In the next update, we’ll explore version-tolerant serialization and a save-preview UI. Which one are you itching to try? Shout out in the comments or file an Issue on GitHub! If there's a feature you want to request, feel free to comment down below or (again) file an Issue on the repo.
Amanita
Toolkit for making Games with Unity
Status | In development |
Category | Tool |
Author | AtelierMycelia |
Genre | Visual Novel |
Tags | 2D, Point & Click, storygame, Unity |
More posts
- Hitting Pause for a Little Variable TLC2 days ago
- Overhauled Audio System through Myceliaudio Support17 days ago
- New Save System Plans26 days ago
Comments
Log in with itch.io to leave a comment.
this is really exciting and will be a huge time save! thank you so much for developing it :)
do you know if this system can use save profiles?
Glad you're looking forward to it! What do you mean by profiles, though?
oh like using the “set save profile” block
Ah, I see. We have no plans to support Save Profiles at the moment, since the new sys already has stuff that does SPs' job way better. But, if folks are still using SPs and want a migration option, we're open to exploring it!
i don’t think there’s a need! i’m open to just figuring out the new system in my next project – thank you !!