User Tools

Site Tools


dragengine:modules:dragonscript:behavior_conversation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dragengine:modules:dragonscript:behavior_conversation [2025/05/01 10:38] dragonlorddragengine:modules:dragonscript:behavior_conversation [2025/09/15 10:24] (current) – [Behavior Tree Actions] dragonlord
Line 40: Line 40:
 It checks if a behavior element has the ECBehaviorConversation behavior present. If this is the case it checks if the conversation can be started and starts it. It checks if a behavior element has the ECBehaviorConversation behavior present. If this is the case it checks if the conversation can be started and starts it.
  
-Another way to start a conversation is using the triggerConversation. If this trigger  expression is not empty it will be used to start the conversation if the trigger expression evaluates to true. The method canStartConversation() is used to not check if the conversation is possible. If the check fails an exception is thrown to not silently not start a conversation.+Another way to start a conversation is using the triggerConversation. If this trigger  expression is not empty it will be used to start the conversation if the trigger expression evaluates to true. The method canStartConversation() is used to check if the conversation is possible. If the check fails an exception is thrown to not silently not start a conversation.
  
 This method is typically used to trigger conversation if the player enters a TriggerTouch or he finished a sequence of actions ending in firing a trigger. This method is typically used to trigger conversation if the player enters a TriggerTouch or he finished a sequence of actions ending in firing a trigger.
Line 86: Line 86:
  
 ===== topic ===== ===== topic =====
-Set topic.+Set topic. Using simple conversation this is the snippet identifier.
   * Full name: ''customColor.topic'' or ''customColor({id}).topic''   * Full name: ''customColor.topic'' or ''customColor({id}).topic''
   * Type: string   * Type: string
Line 112: Line 112:
 ====== Behavior Tree Actions ====== ====== Behavior Tree Actions ======
  
-This behavior adds these behavior tree actions if behavior tree is present. If behavior has non-empty identifier replace ''conversation'' with ''conversation(id)''.+This behavior adds these behavior tree actions if behavior tree is present.
  
 ===== conversation.start ===== ===== conversation.start =====
dragengine/modules/dragonscript/behavior_conversation.1746095929.txt.gz · Last modified: 2025/05/01 10:38 by dragonlord