Comments

Log in with itch.io to leave a comment.

Oh my, this is PERFECT, exactly what I have been waiting for. You're a genius, thank you so much!!

Tell you what though, I think I've encountered a bug of some sort? Let's say I have this:

var1: var1 + 1

--

As of the time I'm writing this I've seen that, whenever you save in a passage with a var section laid out like this, then load that save file, the variable increases by exactly 1 from the value it held at the time of the save.

Continuing to load that save file does not make the variable continue to increase - it only increases it by 1.

Honestly? It's not too bad: I can always set a passage to act like a save point, and only have the SAVE and LOAD there, without any mathematics mumbo jumbo. I'm just wondering if there's a way we could get around this, because if there is, then I could just keep the SAVE/LOAD in the footer, and have the player save whenever they want!

(+1)

I can’t take the credit for the actual Saving code >.< It’s all Maliface!

Do you mean the variable goes like this? Previous passage: var = 1 Current Passage: var = 2 Loaded save: var = 3 (and it just does 3 every time you load?)

(1 edit)

Ah, I did not catch that! Both of your usernames start with "ma", I guess my brain assumed you guys were the same person lmao

But yes, that's basically it! Provided that the var + 1 is in the Current Passage, the passage you're saving in.

(+1)

Thanks for letting me know! I’ll see if we can find where this comes from, but lol it’s so weird

(+1)

Maliface’s re-scripted it: https://github.com/MalifaciousGames/Mali-s-Scripts/tree/main/chapbook-scripts/save-system

Update with fixes on the template will come some time today/tomorrow.

(+1)

Nice! I tested the new script out - the issue does seem to have been solved. I also like how it now uses chapbook's custom inserts as well for the export and import functions, that's cool to see! My compliments to the chef :)