KIND Behavior-Template
From TrainzOnline
(Difference between revisions)
(Created page with "KIND Behavior-Template assets are best described as a saved group of Behavior assets and their configured properties. They're one of the small group of a...") |
Revision as of 15:02, 11 October 2019
KIND Behavior-Template assets are best described as a saved group of Behavior assets and their configured properties. They're one of the small group of assets that's created and edited entirely 'in game', specifically in the Surveyor Rules interface on the Edit Session dialog. If you are not familiar with Session rules, it's recommended you read the KIND_Behavior and Session Rules Overview pages first.
Contents |
KIND Hierarchy
Parent Classes
Child Classes
- none.
Supported Tags
Each Behavior asset supports the following tags. Each tag is shown here with its default value.
- none.
Example Config.txt
Sample config.txt file for a behavior-template asset:
username "End Session on Derailment" kind "behavior-template" kuid <kuid:401543:20020> trainz-build 3.4 category-class "YR" description "Waits for a derailment to occur, then shows an failure dialog and ends the session when it's closed." string-table { template-description "End Session on Derailment" } template-properties { } rule-properties { 0 { kuid <kuid:-25:1262> indent 0 rule-template-bindings { } data { configassethandler.configprefix "derail-run-once" configassethandler.assetkuid <kuid:-25:1262> genericboolhandler.boolvalue 1 scenariobehavior.stateflags 1 conditionalscenariobehavior.isflagged 0 conditionalscenariobehavior.doeshavechildrulesrunning 0 } } 1 { kuid <kuid:-25:1050> indent 1 rule-template-bindings { } data { scenariobehavior.stateflags 9 modifyscorerule.modifiervariable "derailed" modifyscorerule.modifieramount 1 modifyscorerule.modifieraction 0 modifyscorerule.minimum 100 modifyscorerule.maximum 100 modifyscorerule.hasminimum 0 modifyscorerule.hasmaximum 0 modifyscorerule.undoaction 0 } } 2 { kuid <kuid:-25:1273> indent 1 rule-template-bindings { } data { scenariobehavior.stateflags 1 pause 0 location 1 mode 0 html-page-name html-text-name session-icon-asset <kuid2:523:19721244:2> session-string-fallback "There has been a derailment. This session will now be terminated." wave-name autoplay 0 browser-open 0 children-running 0 } } 3 { kuid <kuid:401543:1186> indent 2 rule-template-bindings { } data { scenariobehavior.stateflags 1 conditionalscenariobehavior.isflagged 0 conditionalscenariobehavior.doeshavechildrulesrunning 0 } } 4 { kuid <kuid:-25:1267> indent 3 rule-template-bindings { } data { scenariobehavior.stateflags 9 endscenariorule.fadetime 5 wait-for-completion 1 } } } thumbnails { 0 { width 64 height 64 image "default-generic-icon.tga" } 1 { width 240 height 180 image "default-generic-thumbnail.jpg" } }
Downloads
Attach sample files here?