LogoPixi’VN

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 of labels.

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.

PixiVNJsonLabels.ts
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 to glue. You can use the condition pattern to use a certain pattern based on a condition.
  • labelToOpen (Optional): An item or an array of PixiVNJsonLabelToOpen objects that correspond to the open labels. You can use the condition pattern to use a certain pattern based on a condition.
  • goNextStep (Optional): It is a boolean that corresponds to continue. You can use the condition pattern to use a certain pattern based on a condition.
  • end (Optional): It is a string that can be game_end or label_end. If it is game_end, the game ends. If it is label_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.