How to set stats and variable and make the game to remember each ending after finshed a ending on twine and which code do i have to use

Hi i been a lurker here and recently i decide to make a game its on the way and i need some guide for this question

Hey I may be able to help out (maybe not, test at your own risk since I haven’t tested this)! You can set a global variable in the initial startup for the game for each ending, then when the player triggers an ending, you can toggle the variable for that ending to show as completed. When the player gets sent back to the beginning (hopefully the 2nd “page” where you initialize your gameplay variables) and the flag for the ending should still be set, so you can enable showing that ending at this page.

I hope this works/helps!