unreal.ConversationTaskNode

class unreal.ConversationTaskNode(outer=None, name='None')

Bases: unreal.ConversationNodeWithLinks

The ConversationTaskNode is the basis of any task in the conversation graph, that task may be as simple as saying some text to the user, and providing some choices. However more complex tasks can fire off quests, can spawn actors, pretty much any arbitrary thing you want.

The conversation system is less about just a dialogue tree, and more about a graph of actions the NPC can take, and choices they can provide to the player.

C++ Source:

  • Plugin: CommonConversation

  • Module: CommonConversationRuntime

  • File: ConversationTaskNode.h

Editor Properties: (see get_editor_property/set_editor_property)

  • default_node_body_color (LinearColor): [Read-Write] Default Node Body Color: Default color of the node.

  • has_dynamic_choices (bool): [Read-Write] Has Dynamic Choices: EDITOR ONLY VISUALS: Does this task generate dynamic choices?

  • has_requirements (bool): [Read-Write] Has Requirements: EDITOR ONLY VISUALS: Does this task internally have requirements?

  • ignore_requirements_while_advancing_conversations (bool): [Read-Write] Ignore Requirements While Advancing Conversations: This setting is designed for requirements that only matter when option is generated

  • node_name (str): [Read-Write] Node Name: node name

  • show_property_details (bool): [Read-Write] Show Property Details: show detailed information about properties

  • show_property_editors (bool): [Read-Write] Show Property Editors: show detailed information about properties

execute_client_effects(context) None

Execute Client Effects

Parameters

context (ConversationContext) –

execute_task_node(context) ConversationTaskResult

Execute Task Node

Parameters

context (ConversationContext) –

Return type

ConversationTaskResult

gather_static_extra_data(context)

Gather Static Extra Data

Parameters

context (ConversationContext) –

Returns

out_extra_data (Array(ConversationNodeParameterPair)):

Return type

Array(ConversationNodeParameterPair)

get_node_body_color() LinearColor or None

Get Node Body Color

Returns

body_color (LinearColor):

Return type

LinearColor or None

is_requirement_satisfied(context) ConversationRequirementResult

Is Requirement Satisfied

Parameters

context (ConversationContext) –

Return type

ConversationRequirementResult