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.

Pixi’VN saves all dialogues, choices, responses and more, at every step executed during the game.

Get

The narration timeline is a list of all dialogues and choices shown to the player.
To get the narrative history, use stepHistory.narrativeHistory. It returns a list of NarrativeHistory<T>[].

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