Reply To: Override Actor in DTree task

NodeCanvas Forums Support Override Actor in DTree task Reply To: Override Actor in DTree task

#12548
Gavalakis
Keymaster

Hello and welcome 🙂

This is a follow up from your post on the Unity forums…

Actually I want to use “DialogueActor” variables that was defined before. so for now there is no way to use those variables ?

For inConnections, I’ve created a custom task like MultiChoiceNode, there are multi input field in dialogue tree flow, I need to know the previous node is StamentNode or not and if it is, show last statement, I think I can use GetParentNodes and do these stuffs.

Unfortunately using the DialogueActor variables defined on the DialogueTreeController insepctor directly within an ‘ActionTask’ is not possible right now, but it is something I am looking at supporting. DialogueActor variables defined in the inspector of the DialogueTreeController component, are only possible to be used in the DialogueTree Nodes derived from the ‘DTNode’ class.

If you have created a custom Dialogue Tree Node (deriving from DTNode) with multiple inputs and want to access the parent nodes, then indeed, using the ‘Node.GetParentNodes’ method is probably the easiest way to do so 🙂

Please let me know if that works for you.
Thank you.

Join us on Discord: https://discord.gg/97q2Rjh