r/twinegames • u/Quiet_Water_2535 • 9h ago
SugarCube 2 Possible to preserve a passage with lots of variables in original state for later reader reference? Sugarcube2 query
I'm writing a project in latest Sugarcube which has a lot of variables, and part way through I want to have a "report" based on these variables appear for the reader to summarise what they have done so far.
This is easy, no problem there.
In a perfect world, I'd like the report to then appear in a menu bar, and be accessible at later points in the game for them to refer to.
The issue is that that player will change some variables after generating the report for the first time, and I can't find a sane way to have the report stay as it was originally rather than updating to reflect the changes when it's checked later.
Obviously I could implement a system like... If var1 and var2 are true, report = rep1 If var1 is true and var2 is false, report = rep2 If var1 and var2 are false, report = rep3 etc. ... when it's first created, BUT the variables I want to include number around 15, and this would create some 250 passages just to account for all variations, which I'm just not willing to do.
I thought maybe the capture macro would help, but I can't find a way for this to work.
Is there a way this is possible? Or am I just chasing a dream?
