Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "step":
- int
- REQUIRED
- A number representing what step of the dialogue this section represents. All dialogue scripts start at step 0, and unless told otherwise, increment 1 step at a time until reaching a point where the next step number does not exist in the file.
- "text":
- String
- Not Required
- What text should be displayed for this step of dialogue.
- "name":
- String
- Not Required
- The name which should be displayed above the dialogue box to indicate what character is speaking.
- "portrait":
- String file path to image file
- Not Required
- What image should be displayed in the portrait box beside the dialogue box.
- "bg":
- String file path to image file
- Not Required
- What image should be displayed in the background of the dialogue scene.
- "bg_options":
- Dictionary
- Not Required
- Optional settings that change how the background is displayed. Currently only supports one option:
- {"fade_time": float that indicates how long it takes for the background to fade in from the previous background}
- "screen_effect":
- String, one of: "shockwave", "shake1", "shake3", "shake8", "stop_shake"
- Not Required
- Effect that plays on screen when this dialogue step is reached.
- "cutin":
- String file path to image file
- Not Required
- What image should be displayed as a cut-in in the center of the screen. Having a value of "clear" causes any existing cut-in to disappear.
- "cutin_options":
- Dictionary
- Not Required
- Optional settings that change how the background is displayed. Currently only supports one option:
- {"fade_time": float that indicates how long it takes for the background to fade in from the previous background}
- "music":
- String file path to sound file
- Not Required
- What music should be played in the background of the dialogue scene. Having a value of "stop" causes any existing music to stop playing. Music loops until stopped or the dialogue ends.
- "sound":
- String file path to sound file
- Not Required
- What sound should be played when this dialogue step is reached. The sound is played only once.
- "ambient":
- String file path to sound file
- Not Required
- What sound should be played in the background when this dialogue step is reached. Having a value of "stop" causes any existing ambient sound to stop playing. Ambient sound is looped until stopped or the dialogue ends.
- "goto":
- int
- Not Required
- Causes the dialogue to go to the given step, rather than the automatic behavior of the current step number +1.
- "onconditiongoto":
- Dictionary or array of dictionaries with the specific format of: {"requirements": requirement dictionary, "goto": int}
- Not Required
- For every dictionary supplied, evaluates the requirement dictionary inside. If the dictionary evaluates to true, the dialogue's next step is set to the "goto" value rather than the automatic behavior of the current step number +1. If multiple dictionaries have requirement dictionaries that evaluate to true, the LAST dictionary's goto value is chosen.
- "onconditiongotorandom"
- Same as "onconditiongoto", but if multiple dictionaries have requirement dictionaries that evaluate to true, a random goto value from the pool of valid gotos is picked.
- "choice":
- TODO: The formatting on how this field is set up is very strange and probably needs to change.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement