Skip to content

Dialogue

In the simulation of communication software, the dialogue list is logically different from events. Dialogue lists typically do not have an unclickable state,
so the script functionality for dialogues does not include an activation condition. The show condition is the same as for events.

Open Dialogue

According to the operational logic of communication software, opening a dialogue box usually does not involve navigating to another page or scene. Therefore, this function does not accept a return value.

js
export default {
    ...otherParameters(ignore),
    /**
     * Open Dialogue
     *
     * @function run
     * @param {object} save  Save - The story save data
     * @param {object} story  Story - The story object, which can be used for prompts, pop-ups, and other modifications to the story
     * @param {object} loader Loader - The Vue node of the event loader
     * @return {Promise<void>}
     */
    async run(save, story, loader) {
        console.log('Save:\n', save);
        console.log('Story:\n', story);

        // You can modify the save data or perform other actions here


    }
}