PixiVNJson Model
PixiVNJson is the main template. It contains the following properties:
initialOperations(Optional): An array of initial operations to run when the project starts.labels(Optional): A dictionary oflabels.
PixiVNJsonLabels Model
To add labels you need to use PixiVNJsonLabels. This is a dictionary where the key is the label ID and the value is an array of PixiVNJsonLabelStep.
type PixiVNJsonLabels = {
[labelId: string]: PixiVNJsonLabelStep[];
};PixiVNJsonLabelStep Model
PixiVNJsonLabelStep corresponds to the label steps, so a set of actions that are performed at each continue. It contains the following properties:
operations(Optional): An array of operations to run when the step is executed. You can use the condition pattern to use a certain pattern based on a condition.choices(Optional): A choices object that contains the choices available in this step. You can use the condition pattern to use a certain pattern based on a condition.dialogue(Optional):glueEnabled(Optional): It is a boolean that corresponds toglue. You can use the condition pattern to use a certain pattern based on a condition.labelToOpen(Optional): An item or an array ofPixiVNJsonLabelToOpenobjects that correspond to theopen labels. You can use the condition pattern to use a certain pattern based on a condition.goNextStep(Optional): It is a boolean that corresponds tocontinue. You can use the condition pattern to use a certain pattern based on a condition.end(Optional): It is a string that can begame_endorlabel_end. If it isgame_end, the game ends. If it islabel_end, the current label ends and the game continues with the next step of the previous label. You can use the condition pattern to use a certain pattern based on a condition.