Advanced Dialogue System + Node Editor

I can’t seem to link/connect nodes

Is anyone else having this problem? I can’t seem to get the dialogue tree to work. When I want to search for nodes, they don’t show up. I even ran the installation code to make sure I wasn’t doing anything wrong, but it still didn’t work.

Any help would be greatly appreciated.

You should change line 286 to this

if nextNode and nextNode:GetAttribute("Type") == "Prompt" then

This is because it tries finding the next node on the last dialogue node, and cannot do so since it does not exist.

Can you make a guide on how to use this because I’m so confused right now. It seems like a great plugin too.

This is an amazing dialogue system and plugin. However, I did end up reworking the conditional behavior slightly to be more intuitive (and to avoid soft-locks with random dialogue).
image

If anyone wants to do the same you can do so fairly easily by making the following modifications to LoadNode():

function LoadNode(Node)
    ...
	
	--if CheckForCondition(Node) then
	--	return
	--end

	...
	elseif Type == "Condition" then
		local PossibleNodes = GetOutputNodes(Node)

		local Function = require(Node:FindFirstChildWhichIsA("ModuleScript"))
		local Result = Function.Run()
		
		for _,OutputNode in ipairs(PossibleNodes) do
			if OutputNode:GetAttribute("Priority") == Result then 
				LoadNode(OutputNode)
				return -- Remove if you'd like multiple nodes to be ran if they all meet the same conditions
			end
		end
	elseif 
    ...
end

After you’ve done this you need to edit the presets folder so that the Node Editor will allow you to set input nodes to conditions:

Finally, you’ll need to refresh your Node Editor for the preset changes to show (you can do this by parenting a folder to the NodePresets folder and removing it or restarting studio).

9 Likes

I’m pretty sure I had fixed that back then, but forgot to update my post here lol. My bad.

1 Like

If you don’t mind me asking, how did u make it so the hello was a different colour compared to the rest of the text?

I’m not sure why I keep getting this error

I Have Put the test dialogue in the workspace and it didn’t work, I moved it to replicated first and it still didn’t.

I used rich text the dev wiki helped me figure it out and I made that

1 Like

Thanks, I’ll look into it

By any chance do you have the link to the dev forum post you’re referring to?

This is really great stuff! Perfect for my needs. Thanks for creating this.

Really cool! I’ve always wanted a dialog editor and this checks all the boxes. Reminds me a lot of my behavior tree node editor plugin but with a little bit of visual polish I was too lazy to do. Might inspire me to take that up again

All we need now is a visual scripting plugin

2 Likes

Does anyone know how to edit the command node so that it can change another script? I’m trying to make it so that after my NPC introduces themselves, their name appears in the “Speaker” frame

1 Like

This is amazing. I wanted to make a dialog system with tables similar to the default roblox dialog trees. This will save me a lot of time.

Gonna bookmark this for later! Well done!

This Node Editor is exactly what I’ve been looking for. Quick to iterate with, easily handles changes to the contents of nodes, with a deceptively simple method altering how we can connect nodes.

One thing I have noticed is that I can’t seem to move multiple nodes natively, I have to cut + paste or duplicate them into the folder in order to drag them as a group. It seems to work as if this is intended, but I can’t seem to figure out how to do it without adding steps.

It would be great to be able to filter in/out specific node types, or even to be able to group nodes within the editor.

Just in the midst of drafting out a different way of using these dialogue concepts!

I’m aiming to change Conditions and Commands from being Modules to string parsing, so I can “forget” about the contents when it’s no longer needed. Should still be able to use modules, but sparesly! :smiley:

This is a really powerful tool! Thank you so much!

I’m currently working on a new version of this plugin. The purpose of it is to fix all the issues this version has as well as imrpove the overall structure so that it is easier to work with and less buggy.
There will of course be new features added as well to assist you with node tree creation. Because of the drastic changes, the new version will be released separately. However, I will try my best to write a function to convert old nodes to new ones.

If you have any feedback of the current version or features you’d like to see then reply to this message. Thank you all for supporting this plugin!

Here’s a small look into some of the changes:

15 Likes

Love the aesthetic and fluidity of everything! Is there any updates on this newer version you are working on?

Hey there, currently having issues with the system. Dialogue just seems to disappear immediately? Any known reason as to why? There’s no errors being displayed in the output either.

EDIT: Nevermind, it was the dialogue params I set prior. All is fixed now!

Are you able to style the dialogue UI at all?