This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dragengine:modules:dragonscript:behavior_actortransmission [2024/03/14 16:49] – dragonlord | dragengine:modules:dragonscript:behavior_actortransmission [2025/03/13 17:08] (current) – dragonlord | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
<WRAP youarehere> | <WRAP youarehere> | ||
- | [[: | + | [[: |
</ | </ | ||
Line 19: | Line 19: | ||
====== 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 62: | Line 72: | ||
# | # | ||
- | 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:// | ||
+ |