This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dragengine:modules:dragonscript:behavior_conversation [2025/03/12 19:41] – [Required Behaviors] dragonlord | dragengine:modules:dragonscript:behavior_conversation [2025/09/15 10:24] (current) – [Behavior Tree Actions] dragonlord | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
<WRAP youarehere> | <WRAP youarehere> | ||
- | [[: | + | [[: |
</ | </ | ||
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 | + | Another way to start a conversation is using the triggerConversation. If this 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. | 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: '' | * Full name: '' | ||
* Type: string | * Type: string | ||
Line 109: | Line 109: | ||
This behavior has no events. | This behavior has no events. | ||
+ | |||
+ | ====== Behavior Tree Actions ====== | ||
+ | |||
+ | This behavior adds these behavior tree actions if behavior tree is present. | ||
+ | |||
+ | ===== conversation.start ===== | ||
+ | |||
+ | Start conversation. Behavior tree will not run while the actor owning this behavior is part of the conversation. After the actor left the conversation the behavior tree continues with the next action. | ||
+ | |||
+ | This is an example of using this action: | ||
+ | <code xml> | ||
+ | <action name=' | ||
+ | </ | ||
====== Required Behaviors ====== | ====== Required Behaviors ====== | ||
Line 159: | Line 172: | ||
| | ||
<string name=' | <string name=' | ||
+ | | ||
+ | <!-- optional: identifier of ECBehaviorTriggered to synchronize with or empty | ||
+ | | ||
+ | <string name=' | ||
| | ||
<!-- optional: use BaseGameApp player controllable actor. | <!-- optional: use BaseGameApp player controllable actor. |