Limit history states in Harlowe

(Twine 2.3.5, Harlowe 3.1.0)

how do you limit the number of history states saved in local storage, like Config.history.maxStates in SugarCube?

Harlowe doesn’t include the ability to use configuration settings to control the functionality of its engine, and the story format is deliberately designed to restrict an Author’s access to that engine’s components.

Also its History system is Hierarchical / Object Prototype based, and not Collection based like SugarCube’s is, so simply limiting the number of elements allows in a collection isn’t going to work.

2 Likes