{{tag>dragonscript behavior}} [[:start|Start Page]] >> [[main|DragonScript Scripting Language]] >> [[dragengine:modules:dragonscript:abstractions|Abstraction Layers: How you want to build your Game]] >> [[dragengine:modules:dragonscript:behavior_elements|Behavior Elements]] >> **ECBCTRRBindings** * [[behaviors_use_cases|Behaviors Explained: By Use-Case]] * [[behaviors_a_to_z|Behaviors Explained: From A to Z]] ====== ECBCTRRBindings ====== Behavior element behavior adding bindings tag resolving using CTRRBinding. Adds a CTRRBinding rule to [[behavior_conversationactor|ECBehaviorConversationActor]]. ====== Instance Counts ====== This behavior can be used only once on an element. ====== Element Class Properties ====== Element class properties have the prefix ''ctrrBinding.'' . ====== Events ====== This behavior has no events. ====== Required Behaviors ====== * [[behavior_conversationactor|ECBehaviorConversationActor]] ====== Optional Behaviors ====== This behavior does not support optional behaviors. ====== Persistency ====== This behavior does not required element class to be persistable (setPersistable). ====== API Documentation ====== #@LinkApiDocDEDS2_HTML~classDragengine_1_1Scenery_1_1ECBCTRRBindings.html,ECBCTRRBindings~@#. Since DragonScript Module Version ''1.0'' ====== Use Cases ====== * Add support to add rules to dynamically insert text in conversations. ====== Element Class Example ====== This example defines an element which support for conversation tag rules. class MyElement extends BehaviorElementClass public var ECBehaviorConversationActor conversationActor public var ECBCTRRBindings ctrrBindings func new() conversationActor = ECBehaviorConversationActor.new(this) ctrrBindings = ECBCTRRBindings.new(this, conversationActor) end end ====== Behavior Factory ====== Using element class supporting adding behaviors the behavior can be added like this: default default default value ====== Live Examples ====== * [[https://github.com/LordOfDragons/deexamples|DEExamples Repository]]