LogoPixi’VN

History

Describes how Pixi’VN tracks and manages narrative history, including dialogue, choices, step counters, and save limits.

UI screen

You can find an example of the history UI screen in the interface examples section.

Nomenclature

In this documentation, the term "narrative history" refers to the list of all dialogues, choices, and more that have been shown to the player.

Pixi’VN saves all dialogues, choices, responses, and more at every step executed during the game. This makes it possible to navigate back to previous steps, letting the player review past events or revisit earlier choices.

Get

To get the narrative history, use stepHistory.narrativeHistory.

const dialogues: NarrativeHistory[] = stepHistory.narrativeHistory;

Remove

To delete all narrative history, use stepHistory.removeNarrativeHistory.

stepHistory.removeNarrativeHistory();

To delete part of the narrative history, pass a number to remove the first N elements:

// Delete the first 2 elements
stepHistory.removeNarrativeHistory(2);

Other features

On this page