Jump to content

Moosh NPC: Dialogue Branch Add-on

Overview
Creator: Moosh Updated: 18 Apr 2023 Tags: FFC Downloads: 107
Rating[?]: Rating: 4.33/5 (2 ratings)
View Script Download Example
(1.2 MB)
Information

Description Setup Reviews Comments

First there's a couple constants you need to set:
  • FONT_DIALOGUE_BRANCH: This is the font used by the dialogue branches. See FONT_ in std_constants.zh for the list.
  • C_FONT_DIALOGUE_BRANCH: This is the color used for the font
Next is the arguments for the two scripts. I'm gonna assume you know how to set up the NPCScript to call add-ons from that script's setup instructions.

DialogueBranch_Simple
This version only works on NPCScript_Simple because of the number of arguments, but it should be good enough for most basic applications.
  • D0: The string for the first option in the dialogue branch
  • D1: The string for the second option in the dialogue branch
  • D2: The string for the third option in the dialogue branch (set to 0 if no third option)
  • D3: The string for the first response in the dialogue branch
  • D4: The string for the second response in the dialogue branch
  • D5: The string for the third response in the dialogue branch (once again, optional)
DialogueBranch_Advanced
This version of the script can work on either version of the NPC script, but requires much more setup in the string editor itself.
  • D0: The string for the control string to run. See DialogueBranch_Advanced - Usage.txt for an explanation of what these are and how they're used.
Requires std.zh, ffcscript.zh, and DialogueBox.zh