State table format

Plato keeps the state of each dialogue in an associated state table, that can be accessed through plato.get_state_table. The format of this table is the following:

{
    once = {
        -- table containing the state of the calls
        -- to plato.once
    },
    option_once = {
        -- table containing the state of whether the
        -- plato.option_once options have been chosen
    },
    other = {
        -- custom state save through plato.set_state
    }
}

This table is useful as it can be used to save the state of the dialogues and restore it when loading a game.

generated by LDoc 1.5.0