How to Use Track Triggers
(→Creating a Track Trigger Event: reorganised section) |
(→Adding a Child Rule: reorganised) |
||
Line 308: | Line 308: | ||
==Adding a Child Rule== | ==Adding a Child Rule== | ||
− | + | <table cellpadding="4" bgcolor=#ffffff> <!-- BEGIN Step table --> | |
− | + | ||
− | + | ||
− | + | ||
− | <table cellpadding="4" bgcolor=#ffffff> | + | |
<tr> | <tr> | ||
<td colspan="2"> | <td colspan="2"> | ||
Line 318: | Line 314: | ||
</tr> | </tr> | ||
<tr valign="top"> | <tr valign="top"> | ||
− | <td>[[file:Steps.PNG|link=]]</td> | + | <td>[[file:Steps.PNG|link=]]<br><br> |
− | <td><span style="font-size: 17px;"> | + | <span style="font-size: 17px; font-weight: 700;">Steps</span></td> |
− | When you are back in the '''Session Editor''' window:- | + | <td>[[file:DotPoint1.JPG|link=]] <span style="font-size: 17px; font-weight: 700;">Add A Message Popup Rule:</span><br> |
+ | <table> <!-- BEGIN Step 1 table --> | ||
+ | <tr valign="top"> | ||
+ | <td>When you are back in the '''Session Editor''' window:- | ||
#Click the '''Add''' button to add a new rule | #Click the '''Add''' button to add a new rule | ||
#Scroll down the rule selection window to find and select the '''Message Popup''' rule | #Scroll down the rule selection window to find and select the '''Message Popup''' rule | ||
− | #Click on the [[file:Tick.PNG|link=]] icon</td> | + | #Click on the [[file:Tick.PNG|link=]] icon |
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top"> | ||
+ | <td>[[file:TriggerAddMesPopup.JPG|link=]]</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td | + | <td>The '''Message Popup Rule''' should now appear directly below the '''Trigger Check''' rule. It will display a red cross because it has not yet been configured. |
− | + | </td> | |
</tr> | </tr> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<tr> | <tr> | ||
<td colspan="2"> | <td colspan="2"> | ||
----</td> | ----</td> | ||
+ | </tr> | ||
+ | </table> <!-- END Step 1 table --> | ||
+ | </td> | ||
</tr> | </tr> | ||
<tr valign="top"> | <tr valign="top"> | ||
− | <td>[[file: | + | <td> </td> |
− | + | <td>[[file:DotPoint2.JPG|link=]] <span style="font-size: 17px; font-weight: 700;">Indent the Popup Message Rule:</span><br> | |
− | With the '''Message Popup Rule''' highlighted | + | <table> <!-- BEGIN Step 2 table --> |
+ | <tr valign="top"> | ||
+ | <td>The '''Message Popup Rule''' has to be ''indented'' so that it becomes a ''Child'' of the '''Trigger Check Rule''' and is controlled by that rule.<br> | ||
+ | [[file:SessionRuleIndent.JPG|link=]]<br> | ||
+ | With the '''Message Popup Rule''' highlighted:- | ||
*Click the '''''Indent''''' (''right arrow'') button. | *Click the '''''Indent''''' (''right arrow'') button. | ||
− | This should indent the '''Message Popup''' rule one level inwards (shown below).</td> | + | This should indent the '''Message Popup''' rule one level inwards (as shown below). |
+ | </td> | ||
+ | </tr> | ||
+ | <tr valign="top"> | ||
+ | <td>[[file:SessionRuleIndented.JPG|link=]]</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td><br> | ||
+ | This '''Message Popup Rule''' is now a '''Child Rule''' of the '''Trigger Check Rule''' and will only be executed ''after'' the track trigger has been activated by a train.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 358: | Line 362: | ||
----</td> | ----</td> | ||
</tr> | </tr> | ||
− | </table> | + | </table> <!-- END Step 2 table --> |
</td> | </td> | ||
</tr> | </tr> | ||
− | <tr> | + | </table> <!-- END Steps Table --> |
− | <td>[[file: | + | <table width="100%"> <!-- BEGIN Back-To-Top Table --> |
− | </td> | + | <tr valign="top"> |
+ | <td align="right">[[file:BackToTop.png|link=#top|alt=Top|Top]]</td> | ||
</tr> | </tr> | ||
− | </table> | + | </table> <!-- END Back-To-Top Table --> |
− | < | + | |
==Configuring the Message== | ==Configuring the Message== |
Revision as of 21:45, 12 February 2020
The information in this Wiki Page applies to TANE, TRS19 and Trainz Plus.
Contents |
What are Track Triggers?
Track triggers are track markers that are invisible in Driver Mode but visible in Surveyor Mode. They are used to activate Session Rules and some Driver Commands |
Track triggers can be programmed to respond when a train (any train or a specific train) passes over them in Driver Mode. The response comes from executing a set of Session Rules that have been attached to a Trigger Check Rule (or a similar rule) or a Driver Command that is monitoring the track trigger.
Shown at left is a Track Trigger placed on a track in Surveyor Mode. It is NOT visible in Driver Mode. The "5.00m" shown below the trigger name is the trigger detection radius |
Route or Session?
Track Triggers can be placed in a Route layer or in a Session layer |
Notes:
|
Information on Route and Session layers can be found at:- |
Adding a Track Trigger
|
Configuring a Track Trigger
As soon as a new track trigger has been placed, its properties window will open on the screen. It will be given a default name and assigned to the currently active layer.
|
|||||||||
Steps |
Name the Trigger:
|
||||||||
(Optional) Set the Trigger Detection Radius:
|
Creating a Track Trigger Event
Track trigger events are handled by the Trigger Check Rule (or a similar rule) which is added to a Session in the Session Editor.
More information on the Trigger Check Rule can be found on the Trainz Wiki Rules Page at:- |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
Steps |
Open the Session Editor:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
Add the Trigger Check Rule:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
Open the Trigger Check Rule Properties:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
Configure the Rule:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
Select the Trigger:
Adding an Instruction to the Trigger EventTo test your trigger event you will need to add at least one rule. Adding a Child Rule
Configuring the Message
Another example of using the Trigger Check Rule can be found in the Trainz Wiki Page How to Use Message Popup Rule (Applications).
Alternatives to the Trigger Check Rule
Related Links
Trainz Wiki
This page was created by Trainz user pware in May 2018 and was last updated as shown below. |