LogoPixi’VN

History

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

Pantalla UI

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.

Obtener

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;

Eliminar

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);

Otras funcionalidades

On this page