unreal.ConversationTaskNode
¶
- class unreal.ConversationTaskNode(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
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 color of the node.has_dynamic_choices
(bool): [Read-Write] EDITOR ONLY VISUALS: Does this task generate dynamic choices?has_requirements
(bool): [Read-Write] EDITOR ONLY VISUALS: Does this task internally have requirements?ignore_requirements_while_advancing_conversations
(bool): [Read-Write] This setting is designed for requirements that only matter when option is generatednode_name
(str): [Read-Write] node nameshow_property_details
(bool): [Read-Write] show detailed information about propertiesshow_property_editors
(bool): [Read-Write] 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:
- gather_static_extra_data(context) Array[ConversationNodeParameterPair] ¶
Gather Static Extra Data
- Parameters:
context (ConversationContext) –
- Returns:
out_extra_data (Array[ConversationNodeParameterPair]):
- Return type:
- 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: