[Plugin] Simple Dialogue Plugin

This is a dialogue plugin invoked by VS scripts. You can edit a dialogue without touching any code. Simple dialogue plugins support displaying dialogues with avatars and character sprites. You can adjust node sizes to match character sprite files of different dimensions, or add a Sprite2D node to display dialogue boxes of different materials. However, if you are not familiar with how Godot nodes work, it is recommended that you do not arbitrarily change the node directory structure.

Plugin download:
AGMExpansionPlugin.zip (3.0 MB)

How to install:

  1. Download the plugin and extract it. Copy the addons folder from the archive into your project directory. (If you already have an addons folder, it will only add the required folders and will not overwrite any existing content.)

  2. Enable it in the plugin options.

  3. Instantiate the dialogueUI.tscn node under your desired GameScene. (Its path is located at res://addons/AGMExpansionPlugin/AGMDialogue/DialogueUI.tscn.)

  1. In the left navigation panel, click “Open in Editor.” This is the main interface for editing dialogues.
    image

  2. You can create a new resource by right-clicking in the path res://addons/AGMExpansionPlugin/AGMDialogue/Dialogues/ or any other path you have defined. Typically, this is done by right-clicking the dialogue folder → New → Resource, and then selecting dialogueGroup from the popup dialog.


  3. After creation, you can edit the DialogueList in the right navigation panel, add elements, and when creating a new dialogue, input the character name, dialogue content, avatar, character sprite, whether to flip it, and whether to display it on the left (by default, it displays on the right).

  4. After creating your dialogue content, you can select the AnimationPlayer node. In the animation options of the editor below, choose “Manage Animations,” copy and paste a dialogue group, and rename it to your desired name. Then, return to the animation editor, click the first keyframe in mine_dialogue, right-click “Value” in the right navigation panel, click “Load,” and select the dialogue resource you created in step 5.




  5. After saving the animation, click the scene root node, dialogue, select “Batch Load Animation,” and then you can edit it in the VS script by choosing the animation you created in the actions list.


  6. When the game is running, execute the action, and the dialogue will appear. Click on the dialogue box to interact.


8 Likes