This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dragengine:modules:dragonscript:behavior_actortransmission [2021/11/04 17:48] – created dragonlord | dragengine:modules:dragonscript:behavior_actortransmission [2025/03/13 17:08] (current) – dragonlord | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
<WRAP youarehere> | <WRAP youarehere> | ||
- | [[: | + | [[: |
</ | </ | ||
Line 13: | Line 13: | ||
For doing sub title text output conversation scripts have to be used. This allow for the highest control over the conversation. For first person only self conversation or receiving transmissions using conversation scripts can be cumbersome. For this situation this behavior provides a simpler solution. | For doing sub title text output conversation scripts have to be used. This allow for the highest control over the conversation. For first person only self conversation or receiving transmissions using conversation scripts can be cumbersome. For this situation this behavior provides a simpler solution. | ||
- | The behavior acts similar to [[https:// | + | The behavior acts similar to # |
- | This behavior uses [[behavior_conversationactor|ECBehaviorConversationActor]]. Calls [[https:// | + | This behavior uses [[behavior_conversationactor|ECBehaviorConversationActor]]. Calls # |
====== Instance Counts ====== | ====== Instance Counts ====== | ||
- | This behavior can be added only once to an element | + | This behavior can be used only once on an element. |
====== Element Class Properties ====== | ====== Element Class Properties ====== | ||
- | Element class properties have the prefix | + | Element class properties have the prefix |
===== waitInConversation ===== | ===== waitInConversation ===== | ||
If enabled causes conversation scripts to wait for the transmission to end. | If enabled causes conversation scripts to wait for the transmission to end. | ||
- | * Full name: "transmission.waitInConversation" | + | * Full name: '' |
- | * Type boolean | + | * Type: boolean |
- | * Default Value false | + | * Default Value: '' |
* Example (*.deeclass) <code xml>< | * Example (*.deeclass) <code xml>< | ||
===== style ===== | ===== style ===== | ||
Style identifier to use. Same as style identifiers used in sub title boxes. | Style identifier to use. Same as style identifiers used in sub title boxes. | ||
- | * Full name: "transmission.style" | + | * Full name: '' |
- | * Type string | + | * Type: string |
- | * Default Value //null// | + | * Default Value: '' |
* Example (*.deeclass) <code xml>< | * Example (*.deeclass) <code xml>< | ||
===== timeout ===== | ===== timeout ===== | ||
Timeout in seconds to display individual transmission parts. | Timeout in seconds to display individual transmission parts. | ||
- | * Full name: "transmission.timeout" | + | * Full name: '' |
- | * Type float | + | * Type: float |
- | * Default Value 5 | + | * Default Value: '' |
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
+ | |||
+ | ===== clearEnterConversation ===== | ||
+ | Set clear transmission upon entering conversation. | ||
+ | * Full name: '' | ||
+ | * Type: boolean | ||
+ | * Default Value: false | ||
+ | * Example (*.deeclass) <code xml>< | ||
+ | |||
+ | ====== Events ====== | ||
+ | This behavior has no events. | ||
====== Required Behaviors ====== | ====== Required Behaviors ====== | ||
Line 60: | Line 70: | ||
====== API Documentation ====== | ====== API Documentation ====== | ||
- | [[https:// | + | # |
- | Since DragonScript Module Version | + | Since DragonScript Module Version |
====== Use Cases ====== | ====== Use Cases ====== | ||
Line 112: | Line 122: | ||
end | end | ||
</ | </ | ||
+ | |||
+ | ====== Behavior Factory ====== | ||
+ | |||
+ | Using element class supporting adding behaviors the behavior can be added like this: | ||
+ | <code xml> | ||
+ | <?xml version=' | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | < | ||
+ | <!-- optional: use BaseGameApp sub title. game can add more supported values. | ||
+ | | ||
+ | <string name=' | ||
+ | | ||
+ | <!-- set element properties. omit property prefix if used inside behavior tag --> | ||
+ | <float name=' | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ====== Live Examples ====== | ||
+ | |||
+ | * [[https:// | ||
+ |