Session Rules By Categories With Properties

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
m (Ordered List Rule)
m (Progressive List Rule)
 
(459 intermediate revisions by 5 users not shown)
Line 1: Line 1:
'''TRAINZ A New Era SP2. List of Trainz Session Rules by Categories with Properties. All rules are the Copyright of N3V Games'''
+
The information in this Wiki Page applies to '''TANE''', '''TRS19''', '''TRS22''' and '''Trainz Plus'''. It provides a list of '''Trainz Session Rules''' in '''''Classification''''' or '''''Category Order''''' with their properties and notes.
  
'''This page is always under construction. As new rules appear they will be added to this list.'''
+
<table bgcolor=#ffff00>
 +
<tr>
 +
<td>
 +
<span style="color: black; font-weight: 700;">This page is always under construction. As new rules appear and are tested they will be added to this list. Current Count: 132</span></td>
 +
</tr>
 +
</table>
 +
'''Only rules supplied with Trainz or on the DLS are covered in this document.'''<br>
  
Also available '''[[Session Rule List with Parameters|Session Rule List (Alphabetical) with Parameters]]'''
+
<table width="100%" bgcolor=#ffffaa>
 +
<tr>
 +
<td>
 +
The rules listed in this page are all accessible in the [[file:WikiLink.PNG|link=]] '''[[How to Use Session Editor|Surveyor Session Editor]]'''. Those rules that are identified as '''DLS Rule''' must be downloaded and installed from the '''Trainz DLS''' first.</td>
 +
</tr>
 +
</table>
  
 +
Also available [[file:WikiLink.PNG|link=]] '''[[Session Rule List with Parameters|Session Rule List (Alphabetical) with Parameters]]'''
 +
 +
----
 +
'''Description Key:'''
 +
*'''<kuid number>''' is for the rule version at the time of writing. This number will change if the rule is updated.
 +
*'''DLS Rule''' must be downloaded and installed from the '''DLS'''.
 +
*'''Base Rule''' and '''Built-in Rule''' is installed with '''Trainz'''.
 +
*'''Minimum Trainz Build''' is the minimum version of Trainz required for the listed version of this rule to work. This can change to a higher build if the rule is updated. Older builds '''may''' be available on the '''DLS'''.
 +
*'''Parent Rule''' will execute child rules if it returns a ''true'' result.
 +
*'''Obsolete Rule''' is no longer required (explanation given).
 +
*'''Legacy Rule''' has been replaced by another rule (new rule will be identified).
 +
*Rules that are named '''TANE SP2''' or '''TANE SP3''' '''''should''''' also work in '''TRS19''', '''TRS22''' and '''Trainz Plus'''.
 
----
 
----
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Index"></span>&nbsp;</td>
 +
<td width=75>&nbsp;</td>
 +
<td width=75>[[file:NextDown.png|link=#Achievement|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
  
'''<KUID numbers>''' are for the current versions of each rule at the time of writing. These numbers can change as rules are updated.
+
__TOC__
  
Rules identified as a '''DLS Rule''' must be downloaded and installed from the '''DLS'''.
+
<table width="100%" bgcolor=#ffff88>
 +
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Achievement"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>&nbsp;</td>
 +
<td width=75>[[file:NextDown.png|link=#Camera|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''Achievement Rules'''=
 +
</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Achievement Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
Rules identified as a '''Base Rule''' or a '''Built-in Rule''' are installed with '''TANE'''.
+
Executes child rules when achievement conditions have been met
  
Rules identified as a '''Parent Rule''' will return a ''true'' or ''false'' result. A ''true'' result will execute any following indented child rules.
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
  
=='''Achievement Rules'''==
+
*'''<kuid:401543:1190>'''
  
==='''Achievement Check Rule'''===
+
*'''Built-in Rule'''
  
Executes child rules when achievement conditions have been met
+
*'''Minimum Trainz Build: 3.6 (TS12)'''
 
+
'''<kuid:401543:1190>'''
+
 
+
*'''Built-in Rule'''
+
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 
     '''''<Not configured, click here to select an achievement asset>''''' - click to select an '''Achievement Asset''' from those installed
 
     '''''<Not configured, click here to select an achievement asset>''''' - click to select an '''Achievement Asset''' from those installed
       When an '''Achievement Asset''' has been selected, the following will appear:-
+
       <span style="background-color: black; color: white; font-weight: 700;"> When an Achievement Asset has been selected, the following will appear:- </span>
 
       '''Achievement KUID: ''<selected asset name>''''' - click to change the selected '''Achievement Asset'''
 
       '''Achievement KUID: ''<selected asset name>''''' - click to change the selected '''Achievement Asset'''
 
       '''Achievement name: ''<not set>''''' - click to select the achievement name from the selected asset
 
       '''Achievement name: ''<not set>''''' - click to select the achievement name from the selected asset
       '''Trigger if achievement: ''<select>''''' - choose one of:-
+
       '''Trigger if achievement: ''<select>''''' - <span style="background-color: black; color: white; font-weight: 700;"> choose one of:- </span>
 
           '''has been gained''' - the rule will be triggered when this achievement has been gained
 
           '''has been gained''' - the rule will be triggered when this achievement has been gained
 
           '''has not been gained''' - the rule will be triggered when this achievement has '''NOT''' been gained
 
           '''has not been gained''' - the rule will be triggered when this achievement has '''NOT''' been gained
  
==='''Advanced Industry Load Configuration Rule'''===
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 
+
*'''[[How to Use Parent and Child Rules]]'''
Locks train controls when loading/unloading at an industry, overrides time settings for begin load and begin unload operations
+
  
'''<kuid:30501:100007>'''
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Consist Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
*'''Base Rule'''
+
Executes child rules when a matching consist is found. The order of the vehicles in the consists is not important.
  
'''Properties:'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
    '''Target object ''<select>''''' - select industry object from session list
+
    '''[Check Box] Lock the train's controls during a stopped load/unload operation''' - check to disable driver controls while train is stopped and loading/unloading
+
    '''[Check Box] Override 'begin load' and 'begin unload' durations to ''<value>'' seconds''' - if checked enter number of seconds to override
+
  
'''Note:''' Times are Trainz clock time, not real time
+
*'''<kuid:-25:1155>'''
  
==='''Consist Check Rule'''===
+
*'''Built-in Rule'''
  
Executes child rules when a matching consist is found. The order of the vehicles in the consists is not important.  
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
  
'''<kuid:-25:1068>'''
+
*'''Parent Rule'''
  
*'''Built-in Rule'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 
+
*'''Parent Rule'''
+
  
'''Properties:'''
+
     '''[x] Enforce strict exclusive testing''' - check to only accept an exact match with no unspecified vehicles in the consist.
     '''[Check Box] Enforce strict exclusive testing''' - check to only accept an exact match with no unspecified vehicles in the consist.
+
 
       - leave unchecked to accept any consist that contains the specified vehicles.  
 
       - leave unchecked to accept any consist that contains the specified vehicles.  
     Select one of two option buttons:-
+
     <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 
     '''( ) Rule disabled''' - select to disable the operation of this rule
 
     '''( ) Rule disabled''' - select to disable the operation of this rule
 
     '''( ) Complete whenever a train matching the description exists''' - When selected, enter the consist description:-
 
     '''( ) Complete whenever a train matching the description exists''' - When selected, enter the consist description:-
Line 77: Line 125:
 
           '''''x''''' - click to remove a ''driver'' from the rule
 
           '''''x''''' - click to remove a ''driver'' from the rule
  
'''Known Issues:'''
+
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
    This rule will continue to check all consists for a match even after it has been triggered.
+
:When used as a top level parent rule it does not terminate after triggering but will continue to check all consists for a match and will trigger every time another match is found.
    To disable this add another copy of the rule as a child rule with the '''Rule disabled''' option selected.
+
  
==='''Multiple Resource Check Rule'''===
+
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Variables in Sessions (Examples)#Example 3: Counting Consist Checks|How to Use Variables in Sessions (Examples): Counting Consist Checks]]'''
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Consist_Check_Rule</span>'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Multiple Resource Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules if industries or vehicles reach set commodity levels. This rule replaces the older '''Resource Check Rule'''  
 
Executes child rules if industries or vehicles reach set commodity levels. This rule replaces the older '''Resource Check Rule'''  
  
'''<kuid:-25:656>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1293>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (earlier builds are available)
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
     '''<Product Level>''' - click to select a product test from two choices:-
+
 
 +
     '''<Product Level>''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select a product test from two choices:- </span>
 
       '''''Reach/Exceed''''' - sets an upper limit for the resources being monitored.  
 
       '''''Reach/Exceed''''' - sets an upper limit for the resources being monitored.  
 
           For example: the rule will be triggered if the quantity of coal in a coal loader stockpile or a coal wagon reaches or exceeds a specified level.
 
           For example: the rule will be triggered if the quantity of coal in a coal loader stockpile or a coal wagon reaches or exceeds a specified level.
Line 104: Line 170:
 
     '''''<Add object>''''' - click to select a source or target object. Multiple objects and their queues can be added to the rule.  
 
     '''''<Add object>''''' - click to select a source or target object. Multiple objects and their queues can be added to the rule.  
 
       ALL the entered products must reach/exceed or fall below the specified value for the rule to be triggered.  
 
       ALL the entered products must reach/exceed or fall below the specified value for the rule to be triggered.  
       For each object:-
+
       <span style="background-color: black; color: white; font-weight: 700;"> For each object:- </span>
 
           '''''<Object>''''' - click to select session active industry or product enabled rail vehicle  
 
           '''''<Object>''''' - click to select session active industry or product enabled rail vehicle  
 
           '''''<Queue>''''' - select product queue (there may be only one available)
 
           '''''<Queue>''''' - select product queue (there may be only one available)
 
           '''''<Remove>''''' - removes the object and its product queue from the rule
 
           '''''<Remove>''''' - removes the object and its product queue from the rule
  
'''Related Rules:'''
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
    '''[[#Resource Check Rule|Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
+
:This rule only checks for ''changing'' commodity levels during loading and unloading operations. It cannot be used to test, for example, if a vehicle is ''full'' or ''empty''.
  
==='''Objective Add Rule'''===
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Resource Check Rule|Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
 +
*'''[[#Resource Verify Rule (fixed)|Resource Verify Rule (fixed)]]''' - executes child rules when a set resource (commodity) level is reached
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Navigation Point Rules (Applications)#Application 3: Wait for Loading to be Completed|How to Use Navigation Point Rules (Applications): Wait for Loading to be Completed]]'''
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Objective Add Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Sets up a game Objective with ID and display Name
 
Sets up a game Objective with ID and display Name
  
'''<kuid:401543:2001>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:401543:2001>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 3.8 (TANE)''' (the required version is built into each appliciable Trainz release)
     '''Priority ''<Select>''''' - select one of:-
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     '''Priority ''<Select>''''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of:- </span>
 
       '''''Above Normal'''''
 
       '''''Above Normal'''''
 
       '''''Below Normal'''''
 
       '''''Below Normal'''''
Line 133: Line 221:
 
     '''Custom Message ''<Text Box>''''' - insert typed message in text area
 
     '''Custom Message ''<Text Box>''''' - insert typed message in text area
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Objective Check Rule|Objective Check Rule]]''' - executes child rules if an objective is completed
+
*'''[[#Objective Check Rule|Objective Check Rule]]''' - executes child rules if an objective is completed
    '''[[#Objective Update Rule|Objective Update Rule]]''' - changes the progress of a game objective
+
*'''[[#Objective Update Rule|Objective Update Rule]]''' - changes the progress of a game objective
  
==='''Objective Check Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Objective Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules if an objective created with the '''Objective Add Rule''' is complete.
 
Executes child rules if an objective created with the '''Objective Add Rule''' is complete.
  
'''<kuid:401543:2003>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:401543:2003>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
 +
 +
*'''Minimum Trainz Build: 3.8 (TANE)''' (the required version is built into each appliciable Trainz release)
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''Unique Objective ID ''<value>''''' - enter the unique ID created with the '''Objective Add Rule'''  
 
     '''Unique Objective ID ''<value>''''' - enter the unique ID created with the '''Objective Add Rule'''  
     '''Mode ''<select>''''' - select one of three:-
+
     '''Mode ''<select>''''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of three:- </span>
 
       '''''Wait for completion'''''
 
       '''''Wait for completion'''''
 
       '''''Wait for failure'''''
 
       '''''Wait for failure'''''
 
       '''''Wait for progress'''''
 
       '''''Wait for progress'''''
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Objective Add Rule|Objective Add Rule]]''' - sets up a game objective
+
*'''[[#Objective Add Rule|Objective Add Rule]]''' - sets up a game objective
    '''[[#Objective Update Rule|Objective Update Rule]]''' - changes the progress of a game objective
+
*'''[[#Objective Update Rule|Objective Update Rule]]''' - changes the progress of a game objective
  
==='''Objective Update Rule'''===
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Objective Update Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Changes progress of an objective outcome created with the '''Objective Add Rule''' according to Property choices
 
Changes progress of an objective outcome created with the '''Objective Add Rule''' according to Property choices
  
'''<kuid:401543:2002>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:401543:2002>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 3.8 (TANE)''' (the required version is built into each appliciable Trainz release)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''Unique Objective ID ''<value>''''' - enter the unique ID created with the '''Objective Add Rule'''  
 
     '''Unique Objective ID ''<value>''''' - enter the unique ID created with the '''Objective Add Rule'''  
     '''Mode ''<select>''''' - select one from the following options
+
     '''Mode ''<select>''''' - <span style="background-color: black; color: white; font-weight: 700;"> select one from the following options:- </span>
 
       '''''Decrement progress'''''
 
       '''''Decrement progress'''''
 
       '''''Increment progress'''''
 
       '''''Increment progress'''''
Line 178: Line 293:
 
     '''Amount ''<value>''''' - click to enter a value
 
     '''Amount ''<value>''''' - click to enter a value
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Objective Add Rule|Objective Add Rule]]''' - sets up a game objective
+
*'''[[#Objective Add Rule|Objective Add Rule]]''' - sets up a game objective
    '''[[#Objective Check Rule|Objective Check Rule]]''' - executes child rules if an objective is completed
+
*'''[[#Objective Check Rule|Objective Check Rule]]''' - executes child rules if an objective is completed
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Ranked Session Begin Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
==='''Power Station Rule'''===
+
Begins a ranked Session
  
Sets up a Power Station and its electricity consumers
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
  
'''<kuid:-25:746>'''
+
*'''<kuid2:401543:2031:2>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 3.6 (TS12)''' (the required version is built into each appliciable Trainz release)
    '''Power station ''<select>''''' - select a Power Station from the session list.
+
    '''Consumers:'''
+
      '''''<add object>''''' - add power consumers from the session list
+
  
==='''Ranked Session Begin Rule'''===
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 
+
Begins a ranked Session
+
 
+
'''<kuid:401543:2031>'''
+
 
+
*'''Base Rule'''
+
  
'''Properties:'''
 
 
     '''Countdown Starting Value ''<value>'''''
 
     '''Countdown Starting Value ''<value>'''''
 
       '''''hrs:'''''
 
       '''''hrs:'''''
Line 209: Line 322:
 
       '''''sec:'''''
 
       '''''sec:'''''
 
     '''1 through 5 stars, points for each star ''<value>''''' - enter number of points for each star rating
 
     '''1 through 5 stars, points for each star ''<value>''''' - enter number of points for each star rating
     '''Session timer mode:''' - select one of three option buttons:-
+
     '''Session timer mode:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of three option buttons:- </span>
 
       '''( ) Timer'''
 
       '''( ) Timer'''
 
       '''( ) Countdown Starting value ''<value>''''' - enter time ''hh:mm:ss''
 
       '''( ) Countdown Starting value ''<value>''''' - enter time ''hh:mm:ss''
 
       '''( ) None'''
 
       '''( ) None'''
  
'''Note:''' Times are Trainz clock time, not real time
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Times are Trainz clock time, not real time
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Ranked Session Complete Rule|Ranked Session Complete Rule]]''' - completes the active ranked Session
+
*'''[[#Ranked Session Complete Rule|Ranked Session Complete Rule]]''' - completes the active ranked Session
  
==='''Ranked Session Complete Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Ranked Session Complete Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Completes the active ranked Session
 
Completes the active ranked Session
  
'''<kuid:401543:2032>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:401543:2032:2>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 3.6 (TS12)''' (the required version is built into each appliciable Trainz release)
     '''Set the active ranked session as:''' - select one of two option buttons:-
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     '''Set the active ranked session as:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of two option buttons:- </span>
 
       '''( ) Complete'''
 
       '''( ) Complete'''
 
       '''( ) Failed'''
 
       '''( ) Failed'''
     '''[Check Box] Customize the completion message ''<text>''''' - enter a text message
+
     '''[x] Customize the completion message ''<text>''''' - enter a text message
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Ranked Session Begin Rule|Ranked Session Begin Rule]]''' - begins a ranked Session
+
*'''[[#Ranked Session Begin Rule|Ranked Session Begin Rule]]''' - begins a ranked Session
  
==='''Resource Check Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Resource Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules if a selected industry or vehicle reaches a set commodity level. This rule has been superseded by the '''Multiple Resource Check Rule'''
 
Executes child rules if a selected industry or vehicle reaches a set commodity level. This rule has been superseded by the '''Multiple Resource Check Rule'''
  
'''<kuid:-25:1067>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1337>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (earlier builds are available)
 +
 +
*'''Legacy Rule''' (replaced by '''Multiple Resource Check Rule''')
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
     Select one of two option buttons:-
+
 
 +
     <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 
       '''( ) Watch industry queue'''
 
       '''( ) Watch industry queue'''
 
           '''Target Object ''<select>''''' - select an industry from the session list
 
           '''Target Object ''<select>''''' - select an industry from the session list
Line 253: Line 393:
 
           '''Product ''<select>''''' - select a product from the selected queue
 
           '''Product ''<select>''''' - select a product from the selected queue
 
           '''Amount ''<value>''''' - enter a quantity
 
           '''Amount ''<value>''''' - enter a quantity
           Select one of two option buttons:-
+
           <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 
             '''( ) Complete when designated queue equals or exceeds required amount'''
 
             '''( ) Complete when designated queue equals or exceeds required amount'''
 
             '''( ) Complete when designated queue falls below required amount'''
 
             '''( ) Complete when designated queue falls below required amount'''
Line 261: Line 401:
 
           '''Product ''<select>''''' - select a product from the selected queue
 
           '''Product ''<select>''''' - select a product from the selected queue
 
           '''Amount ''<value>''''' - enter a quantity
 
           '''Amount ''<value>''''' - enter a quantity
           Select one of two option buttons:-
+
           <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 
             '''( ) Complete when designated queue equals or exceeds required amount'''
 
             '''( ) Complete when designated queue equals or exceeds required amount'''
 
             '''( ) Complete when designated queue falls below required amount'''
 
             '''( ) Complete when designated queue falls below required amount'''
  
'''Related Rules:'''
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
    '''[[#Multiple Resource Check Rule|Multiple Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
+
:This rule only checks for ''changing'' commodity levels during loading and unloading operations. It cannot be used to test, for example, if a vehicle is ''full'' or ''empty''.
  
==='''Station Visited Check Rule'''===
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Multiple Resource Check Rule|Multiple Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
 +
*'''[[#Resource Verify Rule (fixed)|Resource Verify Rule (fixed)]]''' - executes child rules when a set resource (commodity) level is reached
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Resource_Check_Rule</span>'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Resource Verify Rule (fixed)'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Executes child rules if a selected industry or vehicle reaches a set commodity level. The rule resets when all child rules have completed.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:160293:10060>'''
 +
 
 +
*'''DLS Rule''' by '''trev999
 +
 
 +
*'''Minimum Trainz Build: 3.5 (TS12)'''
 +
 
 +
*'''Parent Rule'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
    '''( ) Watch industry queue'''
 +
      '''Target object ''<click to select>''''' - click to select an industry from the session list.
 +
      '''Product ''<click to select>''''' - click to select an industry product.
 +
      '''Amount ''<value>''''' - enter a quantity for the selected product.
 +
      <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
      '''( ) Complete when designated queue equals or exceeds designated amount'''
 +
      '''( ) Complete when designated queue falls below designated amount'''
 +
    '''( ) Watch vehicle queue'''
 +
      '''Target object ''<click to select>''''' - click to select a rolling stock vehicle from the session list.
 +
      '''Product ''<click to select>''''' - click to select a commodity product.
 +
      '''Amount ''<value>''''' - enter a quantity for the selected product.
 +
      <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
      '''( ) Complete when designated queue equals or exceeds designated amount'''
 +
      '''( ) Complete when designated queue falls below designated amount'''
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
#This rule will only monitor a single commodity in a single industry or vehicle.
 +
#This rule only checks for ''changing'' commodity levels during loading and unloading operations. It cannot be used to test, for example, if a vehicle is ''full'' or ''empty''.
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Multiple Resource Check Rule|Multiple Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
 +
*'''[[#Resource Check Rule|Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Station Visited Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules if specific trains call at set stations or industries
 
Executes child rules if specific trains call at set stations or industries
  
'''<kuid2:60850:89005:3>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:60850:89005:6>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 4.6 (TRS19)''' (earlier builds are available)
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
     '''Trigger: ''<select>''''' - click to select one of the following
+
 
 +
     '''Trigger: ''<select>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select one of the following:- </span>
 
       '''''Never''''' - stopping at the selected industries will never trigger the rule.
 
       '''''Never''''' - stopping at the selected industries will never trigger the rule.
 
       '''''Once only''''' - the rule is triggered on the first visit only to any one of the selected industries
 
       '''''Once only''''' - the rule is triggered on the first visit only to any one of the selected industries
Line 286: Line 496:
 
       '''''Once per vehicle''''' - each vehicle can only trigger the rule once.  
 
       '''''Once per vehicle''''' - each vehicle can only trigger the rule once.  
 
     '''''<select industry>''''' - select industry or industries from session list
 
     '''''<select industry>''''' - select industry or industries from session list
     Select one of two option buttons:-
+
     <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 
       '''( ) click to accept all trains'''
 
       '''( ) click to accept all trains'''
 
       '''( ) click to accept trains matching specific criteria'''
 
       '''( ) click to accept trains matching specific criteria'''
           Selecting the second option will produce the following selection controls:-        
+
           <span style="background-color: black; color: white; font-weight: 700;"> Selecting the second option will produce the following selection controls:- </span>       
 
           '''Specific vehicle''' - identify the specific vehicle or set of specific vehicles that will trigger the rule
 
           '''Specific vehicle''' - identify the specific vehicle or set of specific vehicles that will trigger the rule
 
             '''''+''''' - click to add a ''specific'' vehicle from the session list
 
             '''''+''''' - click to add a ''specific'' vehicle from the session list
Line 300: Line 510:
 
             '''''x''''' - click to remove a ''driver'' from the rule
 
             '''''x''''' - click to remove a ''driver'' from the rule
  
'''[[#top|Back to Top]]'''
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 
+
*'''[[How to Use Parent and Child Rules]]'''
=='''Camera Rules'''==
+
<br>
 
+
<table width="100%" bgcolor=#ffff88>
==='''Cinematic Camera Rule'''===
+
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Camera"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#Achievement|alt=Next Up|Next Up]]</td>
 +
<td width=75>[[file:NextDown.png|link=#Danger|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''Camera Rules'''=
 +
</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Cinematic Camera Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Provides several different cinematic style cameras with animations. Best used at the start of a session.  
 
Provides several different cinematic style cameras with animations. Best used at the start of a session.  
 
Use the '''Trackside Camera''' (tracking view) found in the '''Set Camera Rule''' during session play.
 
Use the '''Trackside Camera''' (tracking view) found in the '''Set Camera Rule''' during session play.
  
'''<kuid2:401543:1166:3>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:401543:1166:18>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.6 (TRS19)''' (earlier builds are available)
     '''[Check Box] Lock camera controls for the duration''' - if checked user cannot alter camera view
+
 
     '''[Check Box] Prevent train control for duration - if checked user cannot control train
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     '''[x] Lock camera controls for the duration''' - if checked user cannot alter camera view
 +
     '''[x] Prevent train control for duration - if checked user cannot control train
 
     '''Camera target: ''<click to select>''''' - click to select the object from the session list that will be the camera target
 
     '''Camera target: ''<click to select>''''' - click to select the object from the session list that will be the camera target
     '''Camera mode:''' - select one of three option buttons:-
+
     '''Camera mode:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of three option buttons:- </span>
 
       '''( ) Stationary'''
 
       '''( ) Stationary'''
 
       '''( ) Circle targeted object'''
 
       '''( ) Circle targeted object'''
 
       '''( ) Move from one point to another (zoom, pan, etc)'''
 
       '''( ) Move from one point to another (zoom, pan, etc)'''
 
     '''Initial camera values:'''
 
     '''Initial camera values:'''
       '''[Check Box] Pitch: ''<value>''''' - check to select then click ''value'' to enter a pitch value
+
       '''[x] Pitch: ''<value>''''' - check to select then click ''value'' to enter a pitch value
       '''[Check Box] Yaw:  ''<value>''''' - check to select then click ''value'' to enter a yaw value
+
       '''[x] Yaw:  ''<value>''''' - check to select then click ''value'' to enter a yaw value
       '''[Check Box] Zoom:  ''<value>''''' - check to select then click ''value'' to enter a zoom value
+
       '''[x] Zoom:  ''<value>''''' - check to select then click ''value'' to enter a zoom value
 
     '''Total time to animate:  ''<value>''''' - enter an animation time in seconds
 
     '''Total time to animate:  ''<value>''''' - enter an animation time in seconds
  
'''Note:''' Times are Trainz clock times, not real times
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Times are Trainz clock times, not real times
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Focus Camera Rule|Focus Camera Rule]]''' - sets the initial camera view and starting vehicle for a session
+
*'''[[#Focus Camera Rule|Focus Camera Rule]]''' - sets the initial camera view and starting vehicle for a session
    '''[[#Set Camera Rule|Set Camera Rule]]''' - sets the target object and properties of the camera
+
*'''[[#Set Camera Rule|Set Camera Rule]]''' - sets the target object and properties of the camera
    '''[[#Wait for Camera View Mode Rule|Wait for Camera View Mode Rule]]''' - executes child rules when the camera view is changed
+
*'''[[#Wait for Camera View Mode Rule|Wait for Camera View Mode Rule]]''' - executes child rules when the camera view is changed
  
==='''Focus Camera Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Focus Camera Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Sets the initial camera view and starting vehicle for a session.
 
Sets the initial camera view and starting vehicle for a session.
  
'''<kuid2:122381:10014:1>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:122381:10014:1>'''
  
 
*'''DLS Rule''' by '''mizi'''
 
*'''DLS Rule''' by '''mizi'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.4 (TRS2004 SP4)'''
     '''Focus camera to:''' - select one of two option buttons
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     '''Focus camera to:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of two option buttons:- </span>
 
       '''( ) Map object'''
 
       '''( ) Map object'''
 
       '''( ) Vehicle'''
 
       '''( ) Vehicle'''
 
     '''Named ''<?????>''''' - enter name of object or vehicle from session list
 
     '''Named ''<?????>''''' - enter name of object or vehicle from session list
     '''Additionally:'''
+
     <span style="background-color: black; color: white; font-weight: 700;"> Additionally: </span>
       '''[Check Box] set view mode to''' - check to select one of four option buttons
+
       '''[x] set view mode to''' - <span style="background-color: black; color: white; font-weight: 700;"> check to select one of four option buttons:- </span>
 
           '''( ) Internal view'''
 
           '''( ) Internal view'''
 
           '''( ) External view'''
 
           '''( ) External view'''
 
           '''( ) Tracking view'''
 
           '''( ) Tracking view'''
 
           '''( ) Roaming view'''
 
           '''( ) Roaming view'''
       '''[Check Box] restrict user to manipulate the camera''' - check to set user limits on camera controls
+
       '''[x] restrict user to manipulate the camera''' - check to set user limits on camera controls
           '''[Check Box] allow internal view'''
+
           '''[x] allow internal view'''
           '''[Check Box] allow external view'''
+
           '''[x] allow external view'''
           '''[Check Box] allow tracking view'''
+
           '''[x] allow tracking view'''
           '''[Check Box] allow roaming view'''
+
           '''[x] allow roaming view'''
           '''[Check Box] allow change of view mode'''
+
           '''[x] allow change of view mode'''
           '''[Check Box] allow change vehicle in train'''
+
           '''[x] allow change vehicle in train'''
           '''[Check Box] allow change trains'''
+
           '''[x] allow change trains'''
           '''[Check Box] allow adjust camera viewpoint'''
+
           '''[x] allow adjust camera viewpoint'''
       '''[Check Box] set camera angles''' - check to set the initial camera view point
+
       '''[x] set camera angles''' - check to set the initial camera view point
 
           '''Yaw (90 = look at front of train): ''<value>'' degrees''' - enter yaw angle  
 
           '''Yaw (90 = look at front of train): ''<value>'' degrees''' - enter yaw angle  
 
           '''Pitch (-90 = down, 90 = up): ''<value>'' degrees''' - enter pitch angle
 
           '''Pitch (-90 = down, 90 = up): ''<value>'' degrees''' - enter pitch angle
 
           '''Distance from the focused object: ''<value>'' metres''' - enter distance from camera to object
 
           '''Distance from the focused object: ''<value>'' metres''' - enter distance from camera to object
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Cinematic Camera Rule|Cinematic Camera Rule]]''' - provides several different cinematic style cameras with animations
+
*'''[[#Cinematic Camera Rule|Cinematic Camera Rule]]''' - provides several different cinematic style cameras with animations
    '''[[#Set Camera Rule|Set Camera Rule]]]''' - sets the target object and properties of the camera
+
*'''[[#Set Camera Rule|Set Camera Rule]]''' - sets the target object and properties of the camera
    '''[[#Wait for Camera View Mode Rule|Wait for Camera View Mode Rule]]''' - executes child rules when the camera view is changed
+
*'''[[#Wait for Camera View Mode Rule|Wait for Camera View Mode Rule]]''' - executes child rules when the camera view is changed
  
==='''Set Camera Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Set Camera Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Sets the target object and properties of the camera.
 
Sets the target object and properties of the camera.
  
'''<kuid:-25:179>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1486>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (earlier builds are available)
     '''[Check Box] Set the target object of the camera to:''' - if checked, select one of three option buttons:-
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     '''[x] Set the target object of the camera to:''' - <span style="background-color: black; color: white; font-weight: 700;"> if checked, select one of three option buttons:- </span>
 
       '''( ) Vehicle ''<click to select>''''' - select a vehicle from the Session list
 
       '''( ) Vehicle ''<click to select>''''' - select a vehicle from the Session list
 
       '''( ) Junction ''<click to select>''''' - select a junction from the Session list
 
       '''( ) Junction ''<click to select>''''' - select a junction from the Session list
 
       '''( ) Map Object ''<click to select>''''' - select a named map object from the Session list
 
       '''( ) Map Object ''<click to select>''''' - select a named map object from the Session list
     '''[Check Box] Change the camera view mode to ''<click to select>''''' - if checked, select one camera view mode from
+
     '''[x] Change the camera view mode to ''<click to select>''''' - <span style="background-color: black; color: white; font-weight: 700;"> if checked, select one camera view mode from:- </span>
 
       '''Cab View'''
 
       '''Cab View'''
 
       '''External View'''
 
       '''External View'''
 
       '''Tracking View'''
 
       '''Tracking View'''
 
       '''Free Roaming'''
 
       '''Free Roaming'''
     '''[Check Box] Set the camera flags to enable/disable user access to''' - if checked, select as many of the following check boxes as needed
+
     '''[x] Set the camera flags to enable/disable user access to''' - <span style="background-color: black; color: white; font-weight: 700;"> if checked, select as many of the following check boxes as needed:- </span>
       '''[Check Box] Internal view mode''' - check to enable, uncheck to disable
+
       '''[x] Internal view mode''' - check to enable, uncheck to disable
       '''[Check Box] External view mode''' - check to enable, uncheck to disable
+
       '''[x] External view mode''' - check to enable, uncheck to disable
       '''[Check Box] Tracking view mode''' - check to enable, uncheck to disable
+
       '''[x] Tracking view mode''' - check to enable, uncheck to disable
       '''[Check Box] Roaming view mode''' - check to enable, uncheck to disable
+
       '''[x] Roaming view mode''' - check to enable, uncheck to disable
       '''[Check Box] View switching''' - check to enable, uncheck to disable
+
       '''[x] View switching''' - check to enable, uncheck to disable
       '''[Check Box] Vehicle view switching''' - check to enable, uncheck to disable
+
       '''[x] Vehicle view switching''' - check to enable, uncheck to disable
       '''[Check Box] Train view switching''' - check to enable, uncheck to disable
+
       '''[x] Train view switching''' - check to enable, uncheck to disable
       '''[Check Box] Camera adjustments (pan, zoom, etc)''' - check to enable, uncheck to disable
+
       '''[x] Camera adjustments (pan, zoom, etc)''' - check to enable, uncheck to disable
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Cinematic Camera Rule|Cinematic Camera Rule]]''' - provides several different cinematic style cameras with animations
+
*'''[[#Cinematic Camera Rule|Cinematic Camera Rule]]''' - provides several different cinematic style cameras with animations
    '''[[#Focus Camera Rule|Focus Camera Rule]]''' - sets the initial camera view and starting vehicle for a session
+
*'''[[#Focus Camera Rule|Focus Camera Rule]]''' - sets the initial camera view and starting vehicle for a session
    '''[[#Wait for Camera View Mode Rule|Wait for Camera View Mode Rule]]''' - executes child rules when the camera view is changed
+
*'''[[#Wait for Camera View Mode Rule|Wait for Camera View Mode Rule]]''' - executes child rules when the camera view is changed
  
==='''Wait for Camera View Mode Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Wait for Camera View Mode Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules when the camera view is changed to a selected view
 
Executes child rules when the camera view is changed to a selected view
  
'''<kuid:-25:192>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1270>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
     '''[Check Box] Trigger rule once''' - check to set
+
 
     '''Wait for the camera to change to the ''<click to select>''''' - select one camera view mode from:-
+
     '''[x] Trigger rule once''' - check to set
 +
     '''Wait for the camera to change to the ''<click to select>''''' - <span style="background-color: black; color: white; font-weight: 700;"> select one camera view mode from:- </span>
 
       '''Cab View'''
 
       '''Cab View'''
 
       '''External View'''
 
       '''External View'''
 
       '''Tracking View'''
 
       '''Tracking View'''
 
       '''Free Roaming'''
 
       '''Free Roaming'''
     '''[Check Box] Wait for the camera to target vehicle ''<click to select>''''' - if checked, select a vehicle from the Session list
+
     '''[x] Wait for the camera to target vehicle ''<click to select>''''' - if checked, select a vehicle from the Session list
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Cinematic Camera Rule|Cinematic Camera Rule]]''' - provides several different cinematic style cameras with animations
+
*'''[[#Cinematic Camera Rule|Cinematic Camera Rule]]''' - provides several different cinematic style cameras with animations
    '''[[#Focus Camera Rule|Focus Camera Rule]]''' - sets the initial camera view and starting vehicle for a session
+
*'''[[#Focus Camera Rule|Focus Camera Rule]]''' - sets the initial camera view and starting vehicle for a session
    '''[[#Set Camera Rule|Set Camera Rule]]''' - sets the target object and properties of the camera
+
*'''[[#Set Camera Rule|Set Camera Rule]]''' - sets the target object and properties of the camera
  
'''[[#top|Back to Top]]'''
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 
+
*'''[[How to Use Parent and Child Rules]]'''
=='''Danger and Safety Rules'''==
+
<br>
 
+
<table width="100%" bgcolor=#ffff88>
==='''ATP Speed Limiter Rule'''===
+
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Danger"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#Camera|alt=Next Up|Next Up]]</td>
 +
<td width=75>[[file:NextDown.png|link=#Driver|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''Danger, Derailment and Safety Rules'''=
 +
</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''ATP Speed Limiter Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Limits allowable speed over set limit
 
Limits allowable speed over set limit
  
'''<kuid2:321959:1000:1>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:321959:1000:4>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.6 (TRS19)''' (earlier builds are available)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''Limits the speed to ''<value>'' mph over the set limit''' - enter speed value in mph
 
     '''Limits the speed to ''<value>'' mph over the set limit''' - enter speed value in mph
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#AWS Configuration Rule|AWS Configuration Rule]]''' - configures the Trainz implementation of the Automatic Warning System when approaching signals
+
*'''[[#AWS Configuration Rule|AWS Configuration Rule]]''' - configures the Trainz implementation of the Automatic Warning System when approaching signals
  
==='''AWS Configuration Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''AWS Configuration Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
This rule configures the Trainz implementation of the Automatic Warning System when approaching signals
 
This rule configures the Trainz implementation of the Automatic Warning System when approaching signals
  
'''<kuid2:60850:89002:3>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:60850:89002:3>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 3.2 (TS2010)'''
     Select one of three option buttons:-
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     <span style="background-color: black; color: white; font-weight: 700;"> Select one of three option buttons:- </span>
 
       '''( ) Active'''
 
       '''( ) Active'''
 
       '''( ) Passive'''
 
       '''( ) Passive'''
 
       '''( ) Passive with HUD hidden'''
 
       '''( ) Passive with HUD hidden'''
     '''[Check Box] Simulate AWS for unfitted cabs?'''
+
     '''[x] Simulate AWS for unfitted cabs?'''
     '''[Check Box] Use modern sound set for unfitted cabs?'''
+
     '''[x] Use modern sound set for unfitted cabs?'''
 
+
----
'''Related Rules:'''
+
<table width=100% bgcolor=#ffffcc>
    '''[[#ATP Speed Limiter Rule|ATP Speed Limiter Rule]]''' - limits allowable speed over set limit
+
<tr>
 
+
<td>
==='''Clean Up Derailed Trains Rule'''===
+
=='''Clean Up Derailed Trains Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Cleans up derailed train cars after a set time delay
 
Cleans up derailed train cars after a set time delay
  
'''<kuid2:60850:89003:1>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:60850:89003:1>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (the required version is built into each appliciable Trainz release)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''Set delay to clean up derailed traincars to'''
 
     '''Set delay to clean up derailed traincars to'''
 
       '''''<h>'':''' - click to enter the number of hours (0-23) to wait
 
       '''''<h>'':''' - click to enter the number of hours (0-23) to wait
Line 480: Line 797:
 
       '''''<ss>'':''' - click to enter the number of seconds (0-59) to wait
 
       '''''<ss>'':''' - click to enter the number of seconds (0-59) to wait
  
'''Note:''' Time is Trainz clock time, not real time.
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Time is Trainz clock time, not real time.
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Replace Missing Vehicles Rule|Replace Missing Vehicles Rule]]''' - creates a replacement train after a derailment
+
*'''[[#Replace Missing Vehicles Rule|Replace Missing Vehicles Rule]]''' - creates a replacement train after a derailment
    '''[[#Wait for Derailment Rule|Wait for Derailment Rule]]''' - executes child rules when a derailment occurs
+
*'''[[#Wait for Derailment Rule|Wait for Derailment Rule]]''' - executes child rules when a derailment occurs
  
==='''Coupler Breakage Check Rule'''===
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Clean_up_Derailed_Trains_Rule</span>'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Coupler Breakage Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules if there is a coupler breakage
 
Executes child rules if there is a coupler breakage
  
'''<kuid2:447264:1017:1>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:447264:1017:3>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 4.6 (TRS19)''' (earlier builds are available)
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''None'''
 
     '''None'''
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Coupler Breakage HUD Rule|Coupler Breakage HUD Rule]]''' - adds a coupler stress and breakage warning to the HUD
+
*'''[[#Coupler Breakage HUD Rule|Coupler Breakage HUD Rule]]''' - adds a coupler stress and breakage warning to the HUD
    '''[[#Set Coupler Masks Rule|Set Coupler Masks Rule]]''' - sets the coupling/decoupling masks on selected vehicles
+
*'''[[#Set Coupler Masks Rule|Set Coupler Masks Rule]]''' - sets the coupling/decoupling masks on selected vehicles
  
==='''Coupler Breakage HUD Rule'''===
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Coupler Breakage HUD Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
HUD displays warning about coupler stress and breakage
 
HUD displays warning about coupler stress and breakage
  
'''<kuid:-25:423>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:423>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
     Select one of two option buttons:-
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 
       '''( ) Show the Coupler Breakage Display'''
 
       '''( ) Show the Coupler Breakage Display'''
 
       '''( ) Hide the Coupler Breakage Display'''
 
       '''( ) Hide the Coupler Breakage Display'''
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Coupler Breakage Check Rule|Coupler Breakage Check Rule]]''' - executes child rules if a coupler breaks
+
*'''[[#Coupler Breakage Check Rule|Coupler Breakage Check Rule]]''' - executes child rules if a coupler breaks
    '''[[#Set Coupler Masks Rule|Set Coupler Masks Rule]]''' - sets the coupling/decoupling masks on selected vehicles
+
*'''[[#Set Coupler Masks Rule|Set Coupler Masks Rule]]''' - sets the coupling/decoupling masks on selected vehicles
  
==='''Junction Derailment Prevention Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Junction Derailment Prevention Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
Sets opposing junctions ahead of a train to prevent derailments.  Works with both AI and manually driven trains.
+
Sets opposing (trailing) junctions ahead of a train to prevent derailments.  Works with both AI and manually driven trains.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
  
'''<kuid2:121843:100282:1>'''
+
*'''<kuid2:121843:100282:1>'''
  
 
*'''DLS Rule''' by '''pitkin'''
 
*'''DLS Rule''' by '''pitkin'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 3.5 (TS12)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''None'''
 
     '''None'''
  
'''Note:''' Will not overrule a junction already locked by another AI train or locked against AI control using the '''Set Junctions Rule'''.
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:This rule will not overrule a junction already locked by another AI train or locked against AI control using the '''Set Junctions Rule'''.
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Lock All Junctions Rule|Lock All Junctions Rule]]''' - locks all junctions against user control
+
*'''[[#Control Path Rule|Control Path Rule]]''' - sets the path for selected trains
    '''[[#Set Junctions Rule|Set Junctions Rule]]''' - sets the selected junctions to a specific state (switch direction, locked/unlocked, allow/prevent AI control).
+
*'''[[#Lock All Junctions Rule|Lock All Junctions Rule]]''' - locks all junctions against user control
 +
*'''[[#Set Cleared Junctions Rule|Set Cleared Junctions Rule]]''' - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control) while they are unoccupied.
 +
*'''[[#Set Junctions Rule|Set Junctions Rule]]''' - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control).
  
==='''Replace Missing Vehicles Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Replace Missing Vehicles Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Produces new trains to replace missing vehicles that have been removed from the session by the '''Clean Up Derailed Trains Rule'''
 
Produces new trains to replace missing vehicles that have been removed from the session by the '''Clean Up Derailed Trains Rule'''
  
'''<kuid:447264:1214>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:447264:1214>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 3.4 (TS2010 SP4)'''
     '''[Check Box] Respawn trains if they are abandoned for 10 minutes'''
+
 
     If checked:-
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
       Select one of two option buttons:-
+
 
 +
     '''[x] Respawn trains if they are abandoned for 10 minutes'''
 +
     <span style="background-color: black; color: white; font-weight: 700;"> If checked:- </span>
 +
       <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 
           '''( ) Respawn trains at their original locations'''
 
           '''( ) Respawn trains at their original locations'''
 
           '''( ) Respawn trains from portals'''
 
           '''( ) Respawn trains from portals'''
 
             '''''<+ Add a new portal>''''' - click to enter the name of a portal, there can be more than one portal.
 
             '''''<+ Add a new portal>''''' - click to enter the name of a portal, there can be more than one portal.
             Entered portal names that appear in red have not been found in the session
+
             <span style="background-color: red; color: white; font-weight: 700;"> Entered portal names that appear in red have not been found in the session </span>
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Clean Up Derailed Trains Rule|Clean Up Derailed Trains Rule]]''' - cleans up derailed train cars after a set time delay
+
*'''[[#Clean Up Derailed Trains Rule|Clean Up Derailed Trains Rule]]''' - cleans up derailed train cars after a set time delay
    '''[[#Wait for Derailment Rule|Wait for Derailment Rule]]''' - executes child rules when a derailment occurs
+
*'''[[#Wait for Derailment Rule|Wait for Derailment Rule]]''' - executes child rules when a derailment occurs
  
==='''Safety System Engaged Check Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Safety System Engaged Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules if safety systems are applied.
 
Executes child rules if safety systems are applied.
  
'''<kuid:447264:1216>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:447264:1216>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 2.9 (TS2009)'''
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
    '''[Check Box] Trigger only once'''
+
  
'''Related Rules:'''
+
     '''[x] Trigger only once'''
     '''[[#Safety System Isolated Check Rule|Safety System Isolated Check Rule]]''' - executes child rules if safety systems have been isolated
+
  
==='''Safety System Isolated Check Rule'''===
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Safety System Isolated Check Rule|Safety System Isolated Check Rule]]''' - executes child rules if safety systems have been isolated
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Safety System Isolated Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules if safety systems are isolated (disengaged).
 
Executes child rules if safety systems are isolated (disengaged).
  
'''<kuid:447264:1217>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:447264:1217>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 2.9 (TS2009)'''
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
    '''[Check Box] Trigger only once'''
+
  
'''Related Rules:'''
+
     '''[x] Trigger only once'''
     '''[[#Safety System Engaged Check Rule|Safety System Engaged Check Rule]]''' - executes child rules if safety systems have been engaged
+
  
==='''Set Coupler Masks Rule'''===
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Safety System Engaged Check Rule|Safety System Engaged Check Rule]]''' - executes child rules if safety systems have been engaged
  
Set the coupling/decoupling  masks on the selected vehicles
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
  
'''<kuid:-25:980>'''
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Set Coupler Masks Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Set the coupling/decoupling masks on the selected vehicles
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1272>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (earlier builds are available)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''''<Add vehicle>''''' - click to select a vehicle from the session list
 
     '''''<Add vehicle>''''' - click to select a vehicle from the session list
 
     '''''<Add All>''''' - click to add all vehicles in the session list
 
     '''''<Add All>''''' - click to add all vehicles in the session list
 
     '''''<Delete All>''''' - click to remove all added vehicles from this rule
 
     '''''<Delete All>''''' - click to remove all added vehicles from this rule
       For each selected vehicle:-
+
       <span style="background-color: black; color: white; font-weight: 700;"> For each selected vehicle:- </span>
 
       '''Coupling Mask'''
 
       '''Coupling Mask'''
           '''Front''' and '''Back''' - choose for each
+
           '''Front''' and '''Back''' - <span style="background-color: black; color: white; font-weight: 700;"> choose for each:- </span>
 
             '''''Locked'''''
 
             '''''Locked'''''
 
             '''''Unlocked'''''
 
             '''''Unlocked'''''
 
       '''Decoupling Mask'''
 
       '''Decoupling Mask'''
           '''Front''' and '''Back''' - choose for each
+
           '''Front''' and '''Back''' - <span style="background-color: black; color: white; font-weight: 700;"> choose for each:- </span>
 
             '''''Locked'''''
 
             '''''Locked'''''
 
             '''''Unlocked'''''
 
             '''''Unlocked'''''
 
       '''''<Remove>''''' - click to remove this vehicle from the rule
 
       '''''<Remove>''''' - click to remove this vehicle from the rule
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Coupler Breakage Check Rule|Coupler Breakage Check Rule]]''' - executes child rules when a coupler breaks
+
*'''[[#Coupler Breakage Check Rule|Coupler Breakage Check Rule]]''' - executes child rules when a coupler breaks
    '''[[#Coupler Breakage HUD Rule|Coupler Breakage HUD Rule]]''' - adds a coupler stress and breakage warning to the HUD
+
*'''[[#Coupler Breakage HUD Rule|Coupler Breakage HUD Rule]]''' - adds a coupler stress and breakage warning to the HUD
  
==='''Signal Passed At Danger Check Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Signal Passed At Danger Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules if a signal or stop mark is ''Passed at Danger (STOP)''.
 
Executes child rules if a signal or stop mark is ''Passed at Danger (STOP)''.
  
'''<kuid2:60850:89007:2>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:60850:89007:4>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 4.6 (TRS19)''' (earlier builds are available)
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
    '''[Check Box] Trigger only once'''
+
  
==='''Speeding Check Rule'''===
+
    '''[x] Trigger only once'''
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Variables in Sessions (Examples)#Example 2: Event Counter and Message Selection|How to Use Variables in Sessions (Examples): Event Counter and Message Selection]]
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Speeding Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules if player controlled trains are over the local speed limit or over a set (custom) speed
 
Executes child rules if player controlled trains are over the local speed limit or over a set (custom) speed
  
'''<kuid2:60850:89004:3>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:60850:89004:6>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 4.6 (TRS19)''' (earlier builds are available)
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
     Select one of two options to set a speed limit to be observed
+
 
 +
     <span style="background-color: black; color: white; font-weight: 700;"> Select one of two options to set a speed limit to be observed:- </span>
 
       '''( ) Watch for trains travelling above the posted speed limit'''
 
       '''( ) Watch for trains travelling above the posted speed limit'''
 
           '''''<speed value>''''' - click to enter a new overspeed tolerance value
 
           '''''<speed value>''''' - click to enter a new overspeed tolerance value
           '''''<speed units>''''' - click to select one from the list:-
+
           '''''<speed units>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select one from the list:- </span>
 
             '''''Km/h''''' - Kilometres per hour
 
             '''''Km/h''''' - Kilometres per hour
 
             '''''MPH''''' - Miles per hour
 
             '''''MPH''''' - Miles per hour
Line 650: Line 1,097:
 
       '''( ) Watch for trains travelling above a custom speed'''
 
       '''( ) Watch for trains travelling above a custom speed'''
 
           '''''<speed value>''''' - click to enter a new custom speed value
 
           '''''<speed value>''''' - click to enter a new custom speed value
           '''''<speed units>''''' - click to select one from the list:-
+
           '''''<speed units>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select one from the list:- </span>
 
             '''''Km/h''''' - Kilometres per hour
 
             '''''Km/h''''' - Kilometres per hour
 
             '''''MPH''''' - Miles per hour
 
             '''''MPH''''' - Miles per hour
 
             '''''mps''''' - metres per second
 
             '''''mps''''' - metres per second
             '''Warning: This option is very performance intensive and should only be used in sessions with few trains'''
+
             <span style="background-color: red; color: white; font-weight: 700;"> Warning: This option is very performance intensive and should only be used in sessions with few trains </span>
  
==='''Vehicle Physics Rule'''===
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Vehicle Physics Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Overrides the default vehicle physics properties for all vehicles or for those matching set criteria
 
Overrides the default vehicle physics properties for all vehicles or for those matching set criteria
  
'''<kuid:-25:1052>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1260>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (earlier builds are available)
     Select one of two option buttons:-
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 
       '''( ) click to accept all trains'''
 
       '''( ) click to accept all trains'''
 
       '''( ) click to accept trains matching specific criteria'''
 
       '''( ) click to accept trains matching specific criteria'''
           Selecting the second option will produce the following selection controls:-
+
           <span style="background-color: black; color: white; font-weight: 700;"> Selecting the second option will produce the following selection controls:- </span>
 
           '''Specific vehicle''' - identify the specific vehicle or set of specific vehicles that will trigger the rule
 
           '''Specific vehicle''' - identify the specific vehicle or set of specific vehicles that will trigger the rule
 
             '''''+''''' - click to add a ''specific'' vehicle from the session list
 
             '''''+''''' - click to add a ''specific'' vehicle from the session list
Line 681: Line 1,143:
 
       '''Couplers break at ''<value>'' kN expansion force''' - enter force value
 
       '''Couplers break at ''<value>'' kN expansion force''' - enter force value
 
       '''Couplers break at when coupling above ''<value>'' kph''' - enter speed value
 
       '''Couplers break at when coupling above ''<value>'' kph''' - enter speed value
       '''[Check Box] Show coupler breakage in HUD''' - check to display breakage in on-screen HUD
+
       '''[x] Show coupler breakage in HUD''' - check to display breakage in on-screen HUD
 
     '''Wheelslip Parameters:'''
 
     '''Wheelslip Parameters:'''
 
       '''Maximum tractive effort adjusted by ''<value>'' %''' - enter adjustment as a %
 
       '''Maximum tractive effort adjusted by ''<value>'' %''' - enter adjustment as a %
Line 688: Line 1,150:
 
     '''Sway Parameters:'''
 
     '''Sway Parameters:'''
 
       '''Cab sway level is set to ''<value>'' %''' - enter value as a %
 
       '''Cab sway level is set to ''<value>'' %''' - enter value as a %
 
+
<br>
==='''Wait for Derailment Rule'''===
+
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Wait for Derailment Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules when a derailment occurs
 
Executes child rules when a derailment occurs
  
'''<kuid:-25:1053>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1262>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 4.6 (TRS19)''' (earlier builds are available)
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
    '''[Check Box] Trigger derailment watch once''' - check to execute the rule once only
+
  
'''Related Rules:'''
+
     '''[x] Trigger derailment watch once''' - check to execute the rule once only
     '''[[#Clean UP Derailed Trains Rule|Clean UP Derailed Trains Rule]]''' - cleans up derailed train cars after a set time delay
+
    '''[[#Replace Missing Vehicles Rule|Replace Missing Vehicles Rule]]''' - creates a replacement train after a derailment
+
  
'''[[#top|Back to Top]]'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Clean Up Derailed Trains Rule|Clean Up Derailed Trains Rule]]''' - cleans up derailed train cars after a set time delay
 +
*'''[[#Replace Missing Vehicles Rule|Replace Missing Vehicles Rule]]''' - creates a replacement train after a derailment
  
=='''Driver Rules'''==
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
<br>
 +
<table width="100%" bgcolor=#ffff88>
 +
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Driver"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#Danger|alt=Next Up|Next Up]]</td>
 +
<td width=75>[[file:NextDown.png|link=#HUD|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''Driver Rules'''=
 +
</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''AI Start Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
==='''Control Check Rule'''===
+
Restarts all halted AI controlled trains. Drivers will continue with the commands in their driver command list.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:400048:100981:1>'''
 +
 
 +
*'''DLS Rule''' by '''callavsg'''
 +
 
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''None'''
 +
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#AI Stop Rule|AI Stop Rule]]''' -  halts all AI drivers
 +
*'''[[#Disallow AI Rule|Disallow AI Rule]]''' -  cancels all AI driver commands
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''AI Stop Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Halts all AI controlled trains but does not delete their driver commands. AI trains can be restarted with the '''AI Start Rule''' or by issuing individual '''Continue Schedule''' commands.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:400048:100980:1>'''
 +
 
 +
*'''DLS Rule''' by '''callavsg'''
 +
 
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''None'''
 +
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#AI Start Rule|AI Start Rule]]''' -  restarts all halted AI drivers
 +
*'''[[#Disallow AI Rule|Disallow AI Rule]]''' -  cancels all AI driver commands
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Control Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules if the train control method has been altered or a specific method has been selected.
 
Executes child rules if the train control method has been altered or a specific method has been selected.
  
'''<kuid:401543:1191>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:401543:1191>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 3.6 (TS12)'''
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
   '''Execute child rules when:''' - select one of two option buttons:-
+
 
 +
   '''Execute child rules when:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of two option buttons:- </span>
 
     '''( ) DCC mode is Selected'''
 
     '''( ) DCC mode is Selected'''
 
     '''( ) Cab mode is Selected'''
 
     '''( ) Cab mode is Selected'''
   '''Execute child rules:''' - select one of two option buttons:-
+
   '''Execute child rules:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of two option buttons:- </span>
 
     '''( ) Every time control method is set'''
 
     '''( ) Every time control method is set'''
 
     '''( ) Once only'''
 
     '''( ) Once only'''
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Control Type Rule|Control Type Rule]]''' - sets the control method
+
*'''[[#Control Type Rule|Control Type Rule]]''' - sets the control method
  
==='''Control Type Rule'''===
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Control Type Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Sets the control method
 
Sets the control method
  
'''<kuid:-16:2030>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-16:2030>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)''' (the required version is built into each appliciable Trainz release)
   '''Current control method is: ''<select>''''' - click to select one of
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
   '''Current control method is: ''<select>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select one of:- </span>
 
     '''''Easy Mode''''' - DCC (standard keyboard and mouse) control
 
     '''''Easy Mode''''' - DCC (standard keyboard and mouse) control
 
     '''''Ask User''''' - let the user decide
 
     '''''Ask User''''' - let the user decide
 
     '''''Realistic Mode''''' - Cab controls (on screen levers, throttles, buttons, etc)
 
     '''''Realistic Mode''''' - Cab controls (on screen levers, throttles, buttons, etc)
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Control Check Rule|Control Check Rule]]''' - executes child rules if the train control method changes
+
*'''[[#Control Check Rule|Control Check Rule]]''' - executes child rules if the train control method changes
  
==='''Disable/Enable Industry Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Disallow AI Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
Enables/Disables vehicle load/unload for industry
+
Cancels (deletes) all current and waiting AI commands for all drivers
  
'''<kuid2:401543:1171:1>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
  
*'''Built-in Rule'''
+
*'''<kuid:400048:100603>'''
  
'''Properties:'''
+
*'''DLS Rule''' by '''callavsg'''
  '''Load/unload ''<Disable/Enable>''''' - click to set to '''Disable''' or '''Enable'''
+
  '''Which Industry? ''<select>''''' - click to set Industry from Session List
+
  '''Which Vehicles:''' - select one of two option buttons:-
+
      '''( ) Apply to every vehicle in the session'''
+
      '''( ) Apply only to a specific vehicles from Session List'''
+
  
==='''Disallow AI Rule'''===
+
*'''Minimum Trainz Build: 4.5 (TANE SP2)'''
  
Cancels (deletes) all current and waiting AI commands for all drivers
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
  
'''<kuid:400048:100603>'''
 
 
*'''DLS Rule''' by '''callavsg'''
 
 
'''Properties:'''
 
 
   '''None'''
 
   '''None'''
  
==='''Driver Command Check Rule'''===
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#AI Start Rule|AI Start Rule]]''' -  restarts all halted AI drivers
 +
*'''[[#AI Stop Rule|AI Stop Rule]]''' -  halts all AI drivers
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Driver Command Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules if the driver commands match a set list.
 
Executes child rules if the driver commands match a set list.
  
'''<kuid:-25:447>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:447>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
   '''[Check Box] Trigger rule once''' - check to allow the rule to execute only once
+
 
 +
   '''[x] Trigger rule once''' - check to allow the rule to execute only once
 
   '''Driver character to watch the command list of ''<select>''' - select a driver name from the Session List''
 
   '''Driver character to watch the command list of ''<select>''' - select a driver name from the Session List''
 
   '''Wait for driver character to have a command list that matches this:'''
 
   '''Wait for driver character to have a command list that matches this:'''
Line 792: Line 1,372:
 
     '''''<delete all>''''' - deletes all entered driver commands from the session rule
 
     '''''<delete all>''''' - deletes all entered driver commands from the session rule
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
+
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
    '''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
+
*'''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
    '''[[#Driver Setup Rule|Driver Setup Rule]]''' - executes child rules if the driver commands match a set list
+
*'''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
    '''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
+
*'''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
    '''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
+
*'''[[#ScheduleAtTrackMark Rule|ScheduleAtTrackMark Rule]]''' - issues set of driver commands at a trackmark or trigger
 +
*'''[[#Schedule Library Rule|Schedule Library Rule]]''' - creates a library of driver schedules (commands)
 +
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
  
==='''Driver Command Rule'''===
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Driver Command Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Specifies which commands will be available for the drivers
 
Specifies which commands will be available for the drivers
  
'''<kuid:-3:10057>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-3:10057>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:''':
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
    For each installed Driver Command:-
+
    '''[Check Box] ''Name of Diver Command'' and ''Description (if available)''''' - check to make that command available to the drivers
+
  
'''Notes:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
     Some Driver Commands that have been checked will not appear in the Command Lists for drivers if there is no target for their action. For example:
+
:
      The ''Wait For Trigger'' command will not be available to any drivers if there are no triggers set.
+
     <span style="background-color: black; color: white; font-weight: 700;"> For each installed Driver Command:- </span>
      The ''Call At'' command will not be available to any drivers if there are no industry active assets or passenger enabled stations.
+
    '''[x] ''Name of Driver Command'' and ''Description (if available)''''' - check to make that command available to the drivers
  
'''Related Rules:'''
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
    '''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
+
:Some Driver Commands that have been checked will not appear in the Command Lists for drivers if there is no target for their action. For example:
    '''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
+
::The ''Wait For Trigger'' command will not be available to any drivers if there are no triggers set.
    '''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
+
::The ''Call At'' command will not be available to any drivers if there are no industry active assets or passenger enabled stations.
    '''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
+
    '''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
+
  
==='''Driver Main Menu Options Rule'''===
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
 +
*'''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
 +
*'''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
 +
*'''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
 +
*'''[[#ScheduleAtTrackMark Rule|ScheduleAtTrackMark Rule]]''' - issues set of driver commands at a trackmark or trigger
 +
*'''[[#Schedule Library Rule|Schedule Library Rule]]''' - creates a library of driver schedules (commands)
 +
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Driver Setup Rule#Driver Command Rule|How to Use Driver Command Rule]]'''
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[Driver_Commands_List|Driver Commands List]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Driver Main Menu Options Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Show/Hide the Driver Main Menu Bar
 
Show/Hide the Driver Main Menu Bar
  
'''<kuid:-25:448>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:448>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''''<Show/Hide>'' the Driver Main Menu Bar''' - click '''Show''' or '''Hide''' to select
 
     '''''<Show/Hide>'' the Driver Main Menu Bar''' - click '''Show''' or '''Hide''' to select
  
==='''Driver Schedule Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Driver Schedule Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Sets up a list of basic scheduled commands
 
Sets up a list of basic scheduled commands
  
'''<kuid2:82445:90001:9>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:82445:90001:9>''' by '''transiberiano'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''  
+
*'''Minimum Trainz Build: 2.5 (TRS2006)''' (earlier builds are available)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
     '''Driver Schedule Assigned to ''name of driver <icon>''''' - click '''icon''' to select a driver from those assigned in the '''Driver Setup Rule'''
 
     '''Driver Schedule Assigned to ''name of driver <icon>''''' - click '''icon''' to select a driver from those assigned in the '''Driver Setup Rule'''
 
     '''Next commands, will be executed'''   
 
     '''Next commands, will be executed'''   
 
       '''''>>''''' - click to enter driver commands from those specified in the '''Driver Command Rule'''
 
       '''''>>''''' - click to enter driver commands from those specified in the '''Driver Command Rule'''
     '''Style:''' - select one of four option buttons:-
+
     '''Style:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of four option buttons:- </span>
 
       '''( ) Classic style: If there is a schedule do not emit a new schedule''' - any currently assigned set of driver commands will not be replaced
 
       '''( ) Classic style: If there is a schedule do not emit a new schedule''' - any currently assigned set of driver commands will not be replaced
 
       '''( ) Killer style: If there is a schedule clean it and emit a new one''' - replace any currently assigned driver commands with the new commands
 
       '''( ) Killer style: If there is a schedule clean it and emit a new one''' - replace any currently assigned driver commands with the new commands
Line 852: Line 1,481:
 
       '''( ) Active style: Emit a new schedule, only if already a schedule running''' - only add the new commands if commands are currently running
 
       '''( ) Active style: Emit a new schedule, only if already a schedule running''' - only add the new commands if commands are currently running
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
+
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
    '''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
+
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
    '''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
+
*'''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
    '''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
+
*'''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
    '''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
+
*'''[[#ScheduleAtTrackMark Rule|ScheduleAtTrackMark Rule]]''' - issues set of driver commands at a trackmark or trigger
 +
*'''[[#Schedule Library Rule|Schedule Library Rule]]''' - creates a library of driver schedules (commands)
 +
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
  
==='''Driver Setup Rule'''===
+
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Variables in Sessions (Examples)#Example 2: Event Counter and Message Selection|How to Use Variables in Sessions (Examples): Event Counter and Message Selection]]
  
Creates the list of drivers for this session and assign them their orders
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Driver Setup Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
'''<kuid:-16:2025>'''
+
Creates the list of drivers for this session and assigns them their orders
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1485>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (the correct version is built into each appliciable Trainz release)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''''<driver icon>''''' - click to select a new driver from the list of installed and built in drivers
 
     '''''<driver icon>''''' - click to select a new driver from the list of installed and built in drivers
 
     '''''<loco>''''' - click to select a new locomotive from the session list and assign it to this driver. Locos displayed in red have not been found in the session list
 
     '''''<loco>''''' - click to select a new locomotive from the session list and assign it to this driver. Locos displayed in red have not been found in the session list
 
     '''''<driver name>''''' - click to enter a new name for the selected driver
 
     '''''<driver name>''''' - click to enter a new name for the selected driver
     '''''<driver mode>''''' - click to select one of:-
+
     '''''<driver mode>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select one of:- </span>
 
       '''''Autodetect''''' - the program will detect the driver mode to be used. For example, if driver commands have been entered for this driver
 
       '''''Autodetect''''' - the program will detect the driver mode to be used. For example, if driver commands have been entered for this driver
 
           then the '''AI driver''' mode will be selected
 
           then the '''AI driver''' mode will be selected
       '''''First Human Player''''' - the driver will wait until he/she has been selected by the player
+
       '''''First Human Player''''' - the driver will be assigned to the user or multiplayer who accesses her/him first
 
       '''''AI driver''''' - the AI will be given control even if no commands are present
 
       '''''AI driver''''' - the AI will be given control even if no commands are present
 
       '''''Multiplayer Driver''''' - the driver will be assigned to a multiplayer user
 
       '''''Multiplayer Driver''''' - the driver will be assigned to a multiplayer user
 
     '''''<remove>''''' - this driver will be removed from the rule
 
     '''''<remove>''''' - this driver will be removed from the rule
 
     '''''>>''''' - click to enter driver commands from those specified in the '''Driver Command Rule'''
 
     '''''>>''''' - click to enter driver commands from those specified in the '''Driver Command Rule'''
     --> Scroll down to the bottom of the list of entered drivers for more options
+
     <span style="background-color: red; color: white; font-weight: 700;"> Scroll down to the bottom of the list of entered drivers for more options:- </span>
 
   '''''<Add another driver>''''' - click to add another driver  
 
   '''''<Add another driver>''''' - click to add another driver  
   '''[Check Box] Remove all existing Drivers first'''
+
   '''[x] Remove all existing Drivers first''' - <span style="background-color: red; color: white; font-weight: 700;"> see Known Issues below </span>
   '''[Check Box] Generate new Drivers for empty Trains'''
+
   '''[x] Generate new Drivers for empty Trains''' - when checked all newly added locos will automatically be given drivers
  
'''Related Rules:'''
+
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
    '''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
+
#The '''Remove all existing Drivers first''' option does not appear to work in '''TANE''' (but works in '''TRS19''' and later)
    '''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
+
#Adding a large number of drivers to a session can cause ''Timeout'' errors. One known workaround is to split the drivers between two copies of the '''Driver Setup Rule''' and make the second copy a child of a '''Wait Rule'''. For more details see the Wiki '''[[How to Use Driver Setup Rule]]'''. This issue has been reported as '''FIXED''' in '''TRS19 SP1''' and '''Trainz Plus'''
    '''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
+
    '''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
+
    '''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
+
  
==='''Enable/Disable Driver Commands Rule'''===
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:The driver at the top of the list will have the camera focus when the Session starts. There is no way to move a driver up the list order except by removing the higher drivers
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
 +
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
 +
*'''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
 +
*'''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
 +
*'''[[#ScheduleAtTrackMark Rule|ScheduleAtTrackMark Rule]]''' - issues set of driver commands at a trackmark or trigger
 +
*'''[[#Schedule Library Rule|Schedule Library Rule]]''' - creates a library of driver schedules (commands)
 +
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Driver Setup Rule]]'''
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[Driver_Commands_List|Driver Commands List]]'''
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Driver_Setup_Rule</span>'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Driver Speed Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Assigns maximum speeds to driver names. Works with Variable Speed Boards (VSBs) positioned along the tracks.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:69937:200029:3>'''
 +
 
 +
*'''DLS Rule''' by '''stryker'''
 +
 
 +
*'''Minimum Trainz Build: 4.6 (TRS19)''' (earlier builds are available)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    For each Driver:
 +
    '''Driver Name''' - click '''''<Standard Train/Slow Freight/Express Train>''''' to cycle between the options
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:'''Standard Train''' drivers will be assigned the middle VSB speed limit
 +
:'''Slow Freight''' drivers will be assigned the slowest VSB speed limit
 +
:'''Express Train''' drivers will be assigned the highest VSB speed limit
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Enable/Disable Driver Commands Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Enable/Disable specific driver commands on certain drivers. Multiple copies of the rule can be used to give different drivers or consists different command lists
 
Enable/Disable specific driver commands on certain drivers. Multiple copies of the rule can be used to give different drivers or consists different command lists
  
'''<kuid:-25:480>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:480>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''<Enable/Disable>'' the following driver commands ...''' - click to select '''Enable''' or '''Disable'''
 
     '''<Enable/Disable>'' the following driver commands ...''' - click to select '''Enable''' or '''Disable'''
     For each driver command:-
+
     <span style="background-color: black; color: white; font-weight: 700;"> For each driver command:- </span>
     '''[Check Box] ''command name''''' - check to enable or disable
+
     '''[x] ''command name''''' - check to enable or disable
     '''[Check Box] ''command name''''' - check to enable or disable
+
     '''[x] ''command name''''' - check to enable or disable
     '''[Check Box] ''command name''''' - check to enable or disable
+
     '''[x] ''command name''''' - check to enable or disable
 
     etc
 
     etc
     Select one of two option buttons:-
+
     <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 
       '''( ) click to accept all trains'''
 
       '''( ) click to accept all trains'''
 
       '''( ) click to accept trains matching specific criteria'''
 
       '''( ) click to accept trains matching specific criteria'''
           Selecting the second option will produce the following selection controls:-
+
           <span style="background-color: black; color: white; font-weight: 700;"> Selecting the second option will produce the following selection controls:- </span>
 
           '''Specific vehicle''' - identify the specific vehicle or set of specific vehicles that will trigger the rule
 
           '''Specific vehicle''' - identify the specific vehicle or set of specific vehicles that will trigger the rule
 
             '''''+''''' - click to add a ''specific'' vehicle from the session list
 
             '''''+''''' - click to add a ''specific'' vehicle from the session list
Line 920: Line 1,623:
 
             '''''x''''' - click to remove a ''driver'' from the rule
 
             '''''x''''' - click to remove a ''driver'' from the rule
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
+
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
    '''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
+
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
    '''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
+
*'''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
    '''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
+
*'''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
    '''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
+
*'''[[#ScheduleAtTrackMark Rule|ScheduleAtTrackMark Rule]]''' - issues set of driver commands at a trackmark or trigger
 +
*'''[[#Schedule Library Rule|Schedule Library Rule]]''' - creates a library of driver schedules (commands)
 +
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
  
==='''MaxPermittedSpeed Rule'''===
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Enable/Disable_Driver_Commands_Rule</span>'''
  
Controls AI behavior. When active AI Trains only go as fast as permitted
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''JTG Correct Vehicle Lights'''==
 +
</td>
 +
</tr>
 +
</table>
  
'''<kuid2:60850:89000:7>'''
+
Corrects the brightness of vehicle headlights for JTG locos.
  
*'''Built-in Rule'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:478657:999103:2>'''
 +
 
 +
*'''DLS Rule''' by '''jtg-trainz'''
 +
 
 +
*'''Minimum Trainz Build: 4.3 (TANE SP1)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
  
'''Properties:'''
 
 
     '''None'''
 
     '''None'''
  
'''Note:''' This rule cannot be configured from the Session Rules list. It must be configured in the '''config.txt''' file of each locomotive.  
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    Instructions with an example are shown in the rule Properties
+
*'''[[#Loco Lighting Control Rule|Loco Lighting Control Rule]]''' - controls the operation of loco headlights and taillights.
  
==='''QuickDrive Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Loco Lighting Control Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
Changes the Session settings.
+
Sets the ON and OFF times for loco headlights and the weather conditions that will turn ON the head and tail lights during the day.
  
'''<kuid:401543:1184>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:87589:90002:7>'''
 +
 
 +
*'''DLS Rule''' by '''didoz'''
 +
 
 +
*'''Minimum Trainz Build: 3.5 (TRS12 SP1)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
<span style="background-color: black; color: white; font-weight: 700;"> Time settings: </span>
 +
'''Turn headlights on at ''&lt;<u>hour</u>&gt;:&lt;<u>minute</u>&gt;''''' - enter clock time in hours (24hr format) and minutes for headlights ON
 +
'''Turn headlights off at ''&lt;<u>hour</u>&gt;:&lt;<u>minute</u>&gt;''''' - enter clock time in hours (24hr format) and minutes for headlights OFF
 +
 +
    set both times to '''00:00''' for always ON
 +
 +
<span style="background-color: black; color: white; font-weight: 700;"> Weather settings: </span>
 +
'''Turn headlights on if it is ''&lt;<u>Rain</u>&gt;''''' - select from a list of weather conditions which will turn the headlights ON during the day
 +
 +
<span style="background-color: black; color: white; font-weight: 700;"> Tail light settings: </span>
 +
'''Tail light status at day is'''
 +
'''''ON/OFF''''' - click button to toggle between ON and OFF
 +
 +
'''Tail light status if raining at day is'''
 +
'''''ON/OFF''''' - click button to toggle between ON and OFF. This switch can only be activated if "status at day" setting is OFF
 +
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Times are Trainz clock time, not real time
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#JTG Correct Vehicle Lights|JTG Correct Vehicle Lights Rule]]''' - corrects the brightness of vehicle headlights for JTG locos.
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
 
 +
=='''ScheduleAtTrackMark Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Allows a set of driver commands to be given to a train when it reaches a trackmark or trigger.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:61392:2001:6>'''
 +
 
 +
*'''DLS Rule''' by '''pguy'''
 +
 
 +
*'''Minimum Trainz Build: 3.8 (TANE)''' (earlier builds are available)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''''<Select trackmark>'' - ''<Select trigger>''''' - click one to select a trackmark from the Session list or a trigger from the Session list
 +
    '''Schedule will be fired ''<in both directions/in trackside forward direction/in trackside backward direction>''''' - click to select one. Only available if '''trackmark''' has been selected
 +
    '''This rule will be applied ''<all along the session>''''' - click to enter the number of times to trigger the rule. 0 = everytime (all along the session)
 +
    '''Enter driver commands to schedule when train is at trackside'''
 +
      '''''>>''''' - click to enter driver commands from those specified in the '''Driver Command Rule'''
 +
    <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
      '''( ) new schedule will replace current driver command''' - select to delete any current command list and replace it with the command list above
 +
      '''( ) new schedule will be appended to current driver commands''' - select to add the command list above above to the current driver command list
 +
    '''''<add a new trackside entry>''''' - click to add a new '''ScheduleAtTrackMark''' entry below
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
 +
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
 +
*'''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
 +
*'''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
 +
*'''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
 +
*'''[[#Schedule Library Rule|Schedule Library Rule]]''' - creates a library of driver schedules (commands)
 +
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Schedule Library Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Creates a library of driver schedules (driver command lists) that can be given to drivers during the creation or running of a session
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:192081:12:5>'''
 +
 
 +
*'''Built-in Rule''' by '''brummfondel'''
 +
 
 +
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
  '''''<add schedule>''''' | '''''<add group>'''''
 +
      <span style="background-color: black; color: white; font-weight: 700;"> To add <u>individual schedules</u> click <add schedule> then:- </span>
 +
        '''''<library Entry Name>''''' - enter a unique name for the schedule
 +
          '''''<library Entry Name>''''' - click to edit name
 +
          '''''<remove>''''' - click to delete this schedule from the list
 +
          '''''<copy>''''' - click to add a copy this schedule to the current group
 +
          '''''<move to group>''''' - click to move this schedule to a schedule group
 +
          In the driver command bar:-
 +
              '''''>>''''' - click to enter driver commands from those specified in the '''Driver Command Rule'''
 +
      <span style="background-color: black; color: white; font-weight: 700;"> To add <u>groups of schedules</u> click <add group> then:- </span>
 +
        '''''<Group Name>''''' - enter a unique name for the group
 +
            '''-''' - click to close the group list
 +
            '''+''' - click to open the group list
 +
            '''''<Group Name>''''' - click to edit name
 +
            '''''<remove>''''' - click to delete this group from the schedule list
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
#Create the library schedules in this rule first.
 +
#In '''Surveyor''' (using the '''Driver Setup Rule''') or '''Driver''' (directly in a driver command bar) add the Driver Command '''Copy Commands From''' and select the command schedule to be added or appended. The driver command '''Copy Commands From''' must be enabled in the '''Driver Command Rule'''.
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
 +
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
 +
*'''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
 +
*'''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
 +
*'''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
 +
*'''[[#ScheduleAtTrackMark Rule|ScheduleAtTrackMark Rule]]''' - issues set of driver commands at a trackmark or trigger
 +
*'''[[#Schedule Rule|Schedule Rule]]''' - applies a schedule of timed events to a train
 +
 
 +
[[file:PageLink4.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Dependent Driver Commands</span>
 +
:'''The rule must be added to the Session for the following Driver Command to work'''
 +
*'''[[Driver Commands List#Copy Commands From|Copy Commands From]]'''
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How_to_Use_Variables_in_Sessions_(Examples)#Example_2:_Event_Counter_and_Message_Selection|SPAD Event Counter]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Schedule Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Allows a schedule of timed events to be applied to a train
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-3:10185>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.5 (TANE SP2)'''
  '''Open QuickDrive window when session is started          [Check Box]''' - check to set
+
 
  '''Set time to ''<hours:minutes>'' with a rate of ''<speed x>''''' - set start time and rate at which time advances
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
  '''Enable gameplay Session Mode                            [Check Box]''' - check to set. Gameplay mode restricts the players options
+
 
  '''Enable in game help by default                          [Check Box]''' - check to allow help options to be displayed
+
    '''Insert track mark ''<select>''''' - select a track mark from the Session List
  '''Set the default Control method to:''' - select one of two option buttons:-
+
    '''Arrival and Departure Time ''<Select>''''' - set time
      '''( ) Easy Mode'''
+
      '''''hh:mm:ss''''' - in hours/minutes/seconds
      '''( ) Realistic Mode'''
+
    '''Current Train ''<select>''''' - select from session list
      '''[Check Box] Prevent player from changing this setting''' - check to set
+
    '''Insert destination ''<select>''''' - select from session list
  '''Realistic mode requires achievement: ''<text>'' in asset ''<asset name>''''' - enter achievement name and select an asset from Aurans Achievements
+
 
  '''Set the default derailment realism to:''' - select one of three option buttons:-
+
[[file:BugMini.PNG|link=]] <span style="background-color: red; color: white; font-weight: 700;"> Known Bugs: </span>
      '''( ) None'''
+
:There are reports that this rule does not work correctly particularly if a train arrives late or early.
      '''( ) Arcade'''
+
 
      '''( ) Realistic'''
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
      '''[Check Box] Prevent player from changing this setting''' - check to set
+
:Times are Trainz clock times, not real time
  '''Set the default units to:''' - select one of three option buttons:-
+
 
      '''( ) Imperial'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
      '''( ) Metric'''
+
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
      '''( ) Default'''
+
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
 +
*'''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
 +
*'''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
 +
*'''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
 +
*'''[[#ScheduleAtTrackMark Rule|ScheduleAtTrackMark Rule]]''' - issues set of driver commands at a trackmark or trigger
 +
*'''[[#Schedule Library Rule|Schedule Library Rule]]''' - creates a library of driver schedules (commands)
 +
 
 +
[[file:WWWLinks.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Other Links:</span>
 +
*'''<span class="plainlinks">http://www.auran.com/games/gamefiles/trainz/tutorial1.html</span>'''
  
==='''Wait for Driver On/Off Train Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Wait for Driver On/Off Train Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules when a driver gets on or off a train
 
Executes child rules when a driver gets on or off a train
  
'''<kuid:-25:953>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1236>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
   '''[Check Box] Trigger Rule Once''' - click to set''  
+
 
 +
   '''[x] Trigger Rule Once''' - click to set''  
 
   '''Wait for a driver character to get ''<On/Off>''''' a train that matches the following criteria''' - select '''On''' or '''Off'''
 
   '''Wait for a driver character to get ''<On/Off>''''' a train that matches the following criteria''' - select '''On''' or '''Off'''
   Select one of two option buttons:-
+
   <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 
     '''( ) click to accept all trains'''
 
     '''( ) click to accept all trains'''
 
     '''( ) click to accept trains matching specific criteria'''
 
     '''( ) click to accept trains matching specific criteria'''
         Selecting the second option will produce the following selection controls:-
+
         <span style="background-color: black; color: white; font-weight: 700;"> Selecting the second option will produce the following selection controls:- </span>
 
         '''Specific vehicle''' - identify the specific vehicle or set of specific vehicles that will trigger the rule
 
         '''Specific vehicle''' - identify the specific vehicle or set of specific vehicles that will trigger the rule
 
           '''''+''''' - click to add a ''specific'' vehicle from the session list
 
           '''''+''''' - click to add a ''specific'' vehicle from the session list
Line 996: Line 1,886:
 
           '''''x''''' - click to remove a ''driver'' from the rule
 
           '''''x''''' - click to remove a ''driver'' from the rule
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Wait for Driver/Train to be Locally Owned Rule|Wait for Driver/Train to be Locally Owned Rule]] - executes child rules when a vehicle or driver changes ownership
+
*'''[[#Wait for Driver/Train to be Locally Owned Rule|Wait for Driver/Train to be Locally Owned Rule]]''' - executes child rules when a vehicle or driver changes ownership
  
==='''Wait for Driver/Train to be Locally Owned Rule'''===
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Wait for Driver/Train to be Locally Owned Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules when a specific driver or vehicle is locally owned. If the driver/vehicle becomes unowned again the child rules are paused
 
Executes child rules when a specific driver or vehicle is locally owned. If the driver/vehicle becomes unowned again the child rules are paused
  
'''<kuid2:401543:1173:1>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:401543:1173:1>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 4.7 (TRS19 SP2)''' (earlier builds are available)
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
   '''Assets Ownership:''' - select one of two option buttons:-
+
 
 +
   '''Assets Ownership:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of two option buttons:- </span>
 
     '''( ) Wait for ownership of a specific Driver'''
 
     '''( ) Wait for ownership of a specific Driver'''
     '''( ) Wait for ownership of Driver'''
+
     '''( ) Wait for ownership of Driver controlling a specific vehicle'''
   '''Driver or Vehicle ''<select>''''' - choose from session list
+
   '''Driver or Vehicle ''<select>''''' - choose from session list of drivers for '''<u>specific driver</u>''' and vehicles for '''<u>specific vehicle</u>'''
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Wait for Driver On/Off Train Rule|Wait for Driver On/Off Train Rule]] - executes child rules when a driver gets on or off a train
+
*'''[[#Wait for Driver On/Off Train Rule|Wait for Driver On/Off Train Rule]]''' - executes child rules when a driver gets on or off a train
  
'''[[#top|Back to Top]]'''
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
  
=='''HUD (Heads Up Display) Rules'''==
+
<br>
 +
<table width="100%" bgcolor=#ffff88>
 +
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="HUD"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#Driver|alt=Next Up|Next Up]]</td>
 +
<td width=75>[[file:NextDown.png|link=#Industry|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''HUD (Heads Up Display) Rules'''=
 +
</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Cab Controls HUD Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
==='''Coupler Breakage HUD Rule'''===
+
Was used to provide the HUD controls for the cabin view. Now obsolete.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-16:287428>'''
 +
 
 +
*'''Base Rule'''
 +
 
 +
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
*'''Obsolete Rule''' (function is now built into '''Trainz''')
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''None'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Coupler Breakage HUD Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
HUD displays warning about coupler stress and breakage
 
HUD displays warning about coupler stress and breakage
  
'''<kuid:-25:423>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:423>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
     Select one of two option buttons:-
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 
       '''( ) Show the Coupler Breakage Display'''
 
       '''( ) Show the Coupler Breakage Display'''
 
       '''( ) Hide the Coupler Breakage Display'''
 
       '''( ) Hide the Coupler Breakage Display'''
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Coupler Breakage Check Rule|Coupler Breakage Check Rule]]''' - executes child rules if a coupler breaks
+
*'''[[#Coupler Breakage Check Rule|Coupler Breakage Check Rule]]''' - executes child rules if a coupler breaks
    '''[[#Set Coupler Masks Rule|Set Coupler Masks Rule]]''' - sets the coupling/decoupling masks on selected vehicles
+
*'''[[#Set Coupler Masks Rule|Set Coupler Masks Rule]]''' - sets the coupling/decoupling masks on selected vehicles
  
==='''Display Custom HUD Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Display Custom HUD Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Show or hide the Custom Heads Up Display.
 
Show or hide the Custom Heads Up Display.
  
'''<kuid:-3:10206>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-3:10206>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
  '''Show or Hide the Custom Heads up Display''' - select one of two option buttons:-
+
    '''( ) Show the Custom Heads up Display'''
+
    '''( ) Hide the Custom Heads up Display'''
+
  
'''Related Rules:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
    '''[[#Flash HUD Icon Rule|Flash HUD Icon Rule]]''' - flashes a HUD panel icon for a set duration.
+
    '''[[#mc Display Custom HUD V2 Rule (SP2 and later)|mc Display Custom HUD V2 Rule (SP2 and later)]]''' - shows or hides a graphical HUD.
+
    '''[[#Show/Hide HUD Panel Rule|Show/Hide HUD Panel Rule]]''' - shows or hides a HUD panel.
+
    '''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
+
    '''[[#Wait for Click on HUD Icon Rule|Wait for Click on HUD Icon Rule]]''' - executes child rules when a HUD icon is clicked
+
  
==='''Flash HUD Icon Rule'''===
+
    '''Show or Hide the Custom Heads up Display''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of two option buttons:- </span>
 +
      '''( ) Show the Custom Heads up Display'''
 +
      '''( ) Hide the Custom Heads up Display'''
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Flash HUD Icon Rule|Flash HUD Icon Rule]]''' - flashes a HUD panel icon for a set duration.
 +
*'''[[#mc Display Custom HUD V2 Rule (SP2 and later)|mc Display Custom HUD V2 Rule (SP2 and later)]]''' - shows or hides a graphical HUD.
 +
*'''[[#Quick CustomHud Manager Rule (TRS19 and later)|Quick CustomHud Manager Rule (TRS19 and later)]]''' - creates custom HUDs that can be assigned to different drivers
 +
*'''[[#Show/Hide HUD Panel Rule|Show/Hide HUD Panel Rule]]''' - shows or hides a HUD panel.
 +
*'''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
 +
*'''[[#Wait for Click on HUD Icon Rule|Wait for Click on HUD Icon Rule]]''' - executes child rules when a HUD icon is clicked
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Display_Custom_HUD_Rule</span>'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Flash HUD Icon Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Flashes a HUD panel icon for a set duration of time or instructs a HUD panel icon to start/stop.
 
Flashes a HUD panel icon for a set duration of time or instructs a HUD panel icon to start/stop.
  
'''<kuid:-25:968>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:968>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
     Select one of two option buttons:-
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 
     '''( ) Flash the ''<click to select>'' icon on the ''<click to select>'' HUD panel for a period of ''<value>'' seconds'''
 
     '''( ) Flash the ''<click to select>'' icon on the ''<click to select>'' HUD panel for a period of ''<value>'' seconds'''
       TIP: Select the HUD panel first (the second ''<click to select>'' link).
+
       <span style="background-color: red; color: white; font-weight: 700;"> TIP: </span> Select the HUD panel first (the second ''<click to select>'' link).
       Available HUD panels are (select one):-
+
       <span style="background-color: black; color: white; font-weight: 700;"> Available HUD panels are (select one):- </span>
 
           '''Bottom Right Menu'''
 
           '''Bottom Right Menu'''
 
           '''Camera Controls'''
 
           '''Camera Controls'''
 
           '''DCC Controls'''
 
           '''DCC Controls'''
 
           '''Driver Main Menu'''
 
           '''Driver Main Menu'''
       Available icons will depend on the HUD panel selected.
+
       <span style="background-color: black; color: white; font-weight: 700;"> Available icons will depend on the HUD panel selected. </span>
 
     '''( ) ''<Start/Stop>'' flashing the ''<click to select>'' icon on the ''<click to select>'' HUD panel'''
 
     '''( ) ''<Start/Stop>'' flashing the ''<click to select>'' icon on the ''<click to select>'' HUD panel'''
       TIP: Select the HUD panel first (the second ''<click to select>'' link).
+
       <span style="background-color: red; color: white; font-weight: 700;"> TIP: </span> Select the HUD panel first (the second ''<click to select>'' link).
       Available HUD panels are (select one):-
+
       <span style="background-color: black; color: white; font-weight: 700;"> Available HUD panels are (select one):- </span>
 
           '''Bottom Right Menu'''
 
           '''Bottom Right Menu'''
 
           '''Camera Controls'''
 
           '''Camera Controls'''
 
           '''DCC Controls'''
 
           '''DCC Controls'''
 
           '''Driver Main Menu'''
 
           '''Driver Main Menu'''
       Available icons will depend on the HUD panel selected.
+
       <span style="background-color: black; color: white; font-weight: 700;"> Available icons will depend on the HUD panel selected. </span>
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
 +
*'''[[#mc Display Custom HUD V2 Rule (SP2 and later)|mc Display Custom HUD V2 Rule (SP2 and later)]]''' - shows or hides a graphical HUD.
 +
*'''[[#Quick CustomHud Manager Rule (TRS19 and later)|Quick CustomHud Manager Rule (TRS19 and later)]]''' - creates custom HUDs that can be assigned to different drivers
 +
*'''[[#Show/Hide HUD Panel Rule|Show/Hide HUD Panel Rule]]''' - shows or hides a HUD panel.
 +
*'''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
 +
*'''[[#Wait for Click on HUD Icon Rule|Wait for Click on HUD Icon Rule]]''' - executes child rules when a HUD icon is clicked
  
'''Related Rules:'''
+
<br>
    '''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
+
<table width=100% bgcolor=#ffffcc>
    '''[[#mc Display Custom HUD V2 Rule (SP2 and later)|mc Display Custom HUD V2 Rule (SP2 and later)]]''' - shows or hides a graphical HUD.
+
<tr>
    '''[[#Show/Hide HUD Panel Rule|Show/Hide HUD Panel Rule]]''' - shows or hides a HUD panel.
+
<td>
    '''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
+
=='''mc Display Custom HUD V2 Rule (SP2 and later)'''==
    '''[[#Wait for Click on HUD Icon Rule|Wait for Click on HUD Icon Rule]]''' - executes child rules when a HUD icon is clicked
+
</td>
 +
</tr>
 +
</table>
  
==='''mc Display Custom HUD V2 Rule (SP2 and later)'''===
+
Shows or hides a graphical HUD which includes junction direction for the junction ahead. This rule has been superseded by the '''Quick CustomHud Manager Rule (TRS19 and later)'''
  
Shows or hides a graphical HUD which includes junction direction for the junction ahead
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
  
'''<kuid2:61392:1072:10>'''
+
*'''<kuid2:61392:1072:10>'''
  
 
*'''DLS Rule''' by '''pguy'''
 
*'''DLS Rule''' by '''pguy'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (earlier builds are available)
     '''Show or Hide the Custom Heads up Display''' - select one of two option buttons:-
+
 
 +
*'''Legacy Rule''' (replaced by '''Quick CustomHud Manager Rule (TRS19 and later)''')
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     '''Show or Hide the Custom Heads up Display''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of two option buttons:- </span>
 
     '''( ) Show the Custom Heads up Display'''
 
     '''( ) Show the Custom Heads up Display'''
 
     '''( ) Hide the Custom Heads up Display'''
 
     '''( ) Hide the Custom Heads up Display'''
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
+
*'''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
    '''[[#Flash HUD Icon Rule|Flash HUD Icon Rule]]''' - flashes a HUD panel icon for a set duration.
+
*'''[[#Flash HUD Icon Rule|Flash HUD Icon Rule]]''' - flashes a HUD panel icon for a set duration.
    '''[[#Show/Hide HUD Panel Rule|Show/Hide HUD Panel Rule]]''' - shows or hides a HUD panel.
+
*'''[[#Quick CustomHud Manager Rule (TRS19 and later)|Quick CustomHud Manager Rule (TRS19 and later)]]''' - creates custom HUDs that can be assigned to different drivers
    '''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
+
*'''[[#Show/Hide HUD Panel Rule|Show/Hide HUD Panel Rule]]''' - shows or hides a HUD panel.
    '''[[#Wait for Click on HUD Icon Rule|Wait for Click on HUD Icon Rule]]''' - executes child rules when a HUD icon is clicked
+
*'''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
 +
*'''[[#Wait for Click on HUD Icon Rule|Wait for Click on HUD Icon Rule]]''' - executes child rules when a HUD icon is clicked
  
==='''Show/Hide HUD Panel Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Quick CustomHud Manager Rule (TRS19 and later)'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Allows the creation of new graphical heads up displays which are assigned to the drivers in Driver Mode. Replaces the '''mc Display Custom HUD V2 Rule (SP2 and later)'''
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:61392:5020:53>'''
 +
 
 +
*'''DLS Rule''' by '''pguy'''
 +
 
 +
*'''Minimum Trainz Build: 4.8 (TRS19 SP3)''' (earlier builds are available)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''''<Copy rule to data Clipboard>''''' - click to copy the data from the selected HUD to a special clipboard area used by the rules created by '''pguy'''.
 +
      <span style="background-color: red; color: white; font-weight: 700;"> This is NOT the standard OS clipboard. </span>
 +
    '''''<Paste rule data from Clipboard>''''' - if data is held in the special clipboard area, then click to paste that data into the selected HUD.
 +
      <span style="background-color: red; color: white; font-weight: 700;"> This is NOT the standard OS clipboard. </span>
 +
    '''Current HUD Parameters'''
 +
      '''HUD to select: ''<HUD name>''''' - click to select a HUD from those available. One or two default HUDs will be supplied.
 +
      '''''new HUD''''' - click to create a new HUD display with default properties. You will be required to enter a name for the new HUD
 +
      '''''clone HUD''''' - click to create a new HUD using the properties of the currently selected HUD. You will be required to enter a name for the new HUD
 +
      '''''copy HUD''''' - copies (overwrites) the currently selected HUD with the properties of another HUD. You will be required to enter the name of the HUD to be copied
 +
    <span style="background-color: black; color: white; font-weight: 700;"> For new, cloned or copied HUDs, additional commands will be shown:- </span>
 +
      '''''rename HUD''''' - rename the selected HUD. You will be required to enter a new name for the HUD
 +
      '''''delete HUD''''' - delete the currently displayed HUD
 +
    <span style="background-color: black; color: white; font-weight: 700;"> In Driver Mode an additional command will be shown:- </span>
 +
      '''''Assign hud to current train''''' - click to assign the currently selected HUD to the currently selected driver
 +
    '''[x] hud is displayed (on)''' - check to display HUD in '''Driver Mode'''
 +
    '''hud items nb entries max: ''<value>''''' - enter the maximum number of items to be displayed in the HUD. Maximum is 30.
 +
    '''hud view limit: ''<value>''''' - enter the maximum look-ahead distance in metres for the HUD. Minimum value is 1000, maximum value is 10000.
 +
    '''[x] display data in a centred window above orderbar''' - check to display the HUD centred on the screen just above the driver command bar in '''Driver Mode'''
 +
    <span style="background-color: black; color: white; font-weight: 700;"> For each individual HUD property:- </span>
 +
      '''[x] ''HUD property''''' - check to add this property to the HUD
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:HUDs are assigned to drivers in '''Driver Mode''' by either adding a '''SetCustomHud (SP2 and later)''' command to individual drivers command lists or manually by clicking a green '''RM''' tool button displayed on the top menu and selecting '''Quick CustomHUD Manager''' from the menu.
 +
 
 +
[[file:PageLink4.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Dependent Driver Commands:</span>
 +
:'''The rule must be added to the Session for the following Driver Commands to work'''
 +
*'''[[Driver Commands List#Set Custom HUD (SP2 and later)|Set Custom HUD (SP2 and later)]]'''
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
 +
*'''[[#Flash HUD Icon Rule|Flash HUD Icon Rule]]''' - flashes a HUD panel icon for a set duration.
 +
*'''[[#mc Display Custom HUD V2 Rule (SP2 and later)|mc Display Custom HUD V2 Rule (SP2 and later)]]''' - shows or hides a graphical HUD.
 +
*'''[[#Show/Hide HUD Panel Rule|Show/Hide HUD Panel Rule]]''' - shows or hides a HUD panel.
 +
*'''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
 +
*'''[[#Wait for Click on HUD Icon Rule|Wait for Click on HUD Icon Rule]]''' - executes child rules when a HUD icon is clicked
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Show/Hide HUD Panel Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Shows or hides a HUD panel.
 
Shows or hides a HUD panel.
  
'''<kuid:-25:1047>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1047>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''''<Show/Hide>'' the ''<click to select>'' HUD panel''' - select '''''Show''''' or '''''Hide''''' and then select the HUD panel
 
     '''''<Show/Hide>'' the ''<click to select>'' HUD panel''' - select '''''Show''''' or '''''Hide''''' and then select the HUD panel
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
+
*'''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
    '''[[#Flash HUD Icon Rule|Flash HUD Icon Rule]]''' - flashes a HUD panel icon for a set duration.
+
*'''[[#Flash HUD Icon Rule|Flash HUD Icon Rule]]''' - flashes a HUD panel icon for a set duration.
    '''[[#mc Display Custom HUD V2 Rule (SP2 and later)|mc Display Custom HUD V2 Rule (SP2 and later)]]''' - shows or hides a graphical HUD.
+
*'''[[#mc Display Custom HUD V2 Rule (SP2 and later)|mc Display Custom HUD V2 Rule (SP2 and later)]]''' - shows or hides a graphical HUD.
    '''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
+
*'''[[#Quick CustomHud Manager Rule (TRS19 and later)|Quick CustomHud Manager Rule (TRS19 and later)]]''' - creates custom HUDs that can be assigned to different drivers
    '''[[#Wait for Click on HUD Icon Rule|Wait for Click on HUD Icon Rule]]''' - executes child rules when a HUD icon is clicked
+
*'''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
 +
*'''[[#Wait for Click on HUD Icon Rule|Wait for Click on HUD Icon Rule]]''' - executes child rules when a HUD icon is clicked
  
==='''Variable Show Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Variable Show Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Adds or removes a specified variable and a descriptive label to the custom HUD. This rule does not make the custom HUD appear on the screen.
 
Adds or removes a specified variable and a descriptive label to the custom HUD. This rule does not make the custom HUD appear on the screen.
  
'''<kuid:-25:971>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:971>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
   '''[Check Box] Add'''
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
   '''[x] Add'''
 
       '''''<variable-name>''''' - enter variable-name to add to HUD. Variable-name is case sensitive.
 
       '''''<variable-name>''''' - enter variable-name to add to HUD. Variable-name is case sensitive.
 
       '''''<label>''''' - (optional) enter a short label to be displayed on the HUD in front of the variable value.
 
       '''''<label>''''' - (optional) enter a short label to be displayed on the HUD in front of the variable value.
   '''[Check Box] Remove'''
+
   '''[x] Remove'''
 
       '''''<variable-name>''''' - enter variable-name to remove from HUD. Variable-name is case sensitive.
 
       '''''<variable-name>''''' - enter variable-name to remove from HUD. Variable-name is case sensitive.
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
+
*'''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
    '''[[#Quick Session Variables Rule|Quick Session Variables Rule]]''' - allows the editing of session variables.
+
*'''[[#Quick Session Variables Rule|Quick Session Variables Rule]]''' - allows the editing of session variables.
    '''[[#Variable Check Rule|Variable Check Rule]]''' - executes child rules according to the value of a specified variable.
+
*'''[[#Variable Check Rule|Variable Check Rule]]''' - executes child rules according to the value of a specified variable.
    '''[[#Variable Modify Rule|Variable Modify Rule]]''' - changes the value of a specified variable.
+
*'''[[#Variable Modify Rule|Variable Modify Rule]]''' - changes the value of a specified variable.
    '''[[#Variable Modify Continuous Rule|Variable Modify Continuous Rule]]''' - continuously changes the value of a specified variable.
+
*'''[[#Variable Modify Continuous Rule|Variable Modify Continuous Rule]]''' - continuously changes the value of a specified variable.
    '''[[#Variable Random Rule|Variable Random Rule]]''' - assigns a random value to a variable.
+
*'''[[#Variable Random Rule|Variable Random Rule]]''' - assigns a random value to a variable.
  
==='''Wait for Click on HUD Icon Rule'''===
+
[[file:Ex.PNG|link=]] '''<u>Examples of Use:</u>'''
 +
*'''[[How to Use Variables in Sessions (Examples)]]
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Wait for Click on HUD Icon Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules when the user clicks on a selected HUD icon
 
Executes child rules when the user clicks on a selected HUD icon
  
'''<kuid:-25:951> <kuid:-25:970>''' - two versions built-in with different kuids, both have the same properties
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:951> <kuid:-25:970>''' - two versions built-in with different kuids, both have the same properties
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
     '''[Check Box] Trigger Once'''
+
 
     '''HUD Panel ''<Click>''''' - click choose from list:-
+
     '''[x] Trigger Once'''
 +
     '''HUD Panel ''<Click>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to choose from list:- </span>
 
       '''Bottom Right Menu'''
 
       '''Bottom Right Menu'''
 
       '''Camera Controls'''
 
       '''Camera Controls'''
 
       '''DCC Controls'''
 
       '''DCC Controls'''
     '''Icon ''<Click>''''' - click to choose from list. Selections depends on HUD Panel chosen
+
     '''Icon ''<Click>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to choose from list. Selections depends on HUD Panel chosen. </span>
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
+
*'''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
    '''[[#Flash HUD Icon Rule|Flash HUD Icon Rule]]''' - flashes a HUD panel icon for a set duration.
+
*'''[[#Flash HUD Icon Rule|Flash HUD Icon Rule]]''' - flashes a HUD panel icon for a set duration.
    '''[[#mc Display Custom HUD V2 Rule (SP2 and later)|mc Display Custom HUD V2 Rule (SP2 and later)]]''' - shows or hides a graphical HUD.
+
*'''[[#mc Display Custom HUD V2 Rule (SP2 and later)|mc Display Custom HUD V2 Rule (SP2 and later)]]''' - shows or hides a graphical HUD.
    '''[[#Show/Hide HUD Panel Rule|Show/Hide HUD Panel Rule]]''' - shows or hides a HUD panel.
+
*'''[[#Quick CustomHud Manager Rule (TRS19 and later)|Quick CustomHud Manager Rule (TRS19 and later)]]''' - creates custom HUDs that can be assigned to different drivers
    '''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
+
*'''[[#Show/Hide HUD Panel Rule|Show/Hide HUD Panel Rule]]''' - shows or hides a HUD panel.
 +
*'''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
  
'''[[#top|Back to Top]]'''
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
<br>
 +
<table width="100%" bgcolor=#ffff88>
 +
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Industry"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#HUD|alt=Next Up|Next Up]]</td>
 +
<td width=75>[[file:NextDown.png|link=#Interlocking|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''Industry Rules'''=
 +
</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Advanced Industry Load Configuration Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
=='''Interlocking Tower, Junction and Signal Rules'''==
+
Locks train controls when loading/unloading at an industry, overrides time settings for begin load and begin unload operations
  
==='''Interlocking Tower Configure Path Rule'''===
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:30501:100007>'''
 +
 
 +
*'''Base Rule'''
 +
 
 +
*'''Minimum Trainz Build: 3.7 (TS12 SP1)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''Target object ''<select>''''' - select industry object from session list
 +
    '''[x] Lock the train's controls during a stopped load/unload operation''' - check to disable driver controls while train is stopped and loading/unloading
 +
    '''[x] Override 'begin load' and 'begin unload' durations to ''<value>'' seconds''' - if checked enter number of seconds to override
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Times are Trainz clock time, not real time
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Disable/Enable Industry Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Enables/Disables vehicle load/unload for industry
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:401543:1171:1>'''
 +
 
 +
*'''Built-in Rule'''
 +
 
 +
*'''Minimum Trainz Build: 3.6 (TS12)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
  '''Load/unload ''<Disable/Enable>''''' - click to set to '''Disable''' or '''Enable'''
 +
  '''Which Industry? ''<select>''''' - click to set Industry from Session List
 +
  '''Which Vehicles:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of two option buttons:- </span>
 +
      '''( ) Apply to every vehicle in the session'''
 +
      '''( ) Apply only to a specific vehicles from Session List'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''ExTrainz Manager Rule - TANE SP2'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Provides information on consists, industries and products in both Surveyor and Driver modes. Once activated, the rule creates an additional short menu bar below the main menu bar.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:160293:10029>'''
 +
 
 +
*'''DLS Rule''' by '''trev999'''
 +
 
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''Diagnostic mode is ''<On/Off>''''' - click to select ''On'' or ''Off''. When set ''On'' diagnostic messages will be added to the Trainz Log file.
 +
    '''Turn on message overlay ''<Yes/No>''''' - click to select ''Yes'' or ''No''. When set to ''Yes'' the message overlay (lower left of screen) will be active.
 +
    '''Show rolling stock in Driver mode ''<Yes/No>''''' - click to select ''Yes'' or ''No''. When set to ''Yes'' rolling stock can be searched in Driver mode.
 +
    '''Search only rolling stock already in session ''<Yes/No>''''' - click to select ''Yes'' or ''No''. When set to ''Yes'' only those rolling stock assets
 +
      installed in the session can be searched.
 +
    '''Graphic colours: ''<When Red, the industry does not require service/When Green, the industry does not require service>''''' - click to switch
 +
      between the two colour options.
 +
    '''Industry page size: ''<value>''''' - enter the number of industries to be displayed in the Industry List window (maximum 250).
 +
    '''The following industries are excluded: ''<Add an industry to be excluded>''''' - name can be complete (e.g. "Coal Mine 2")
 +
      which will exclude that specific industry from the management list, or partial (e.g. "Coal") which will exclude all
 +
      industries with the word "Coal" in their names. Entries are not case sensitive.
 +
      <span style="background-color: black; color: white; font-weight: 700;"> Once industries have been excluded, additional commands will appear for each excluded industry:- </span>
 +
      '''''<delete> <industry name begins with/class name begins with> <name>''''' - click ''delete'' to remove this entry.
 +
          - click ''industry name begins with/class name begins with'' to select between the two (see ''notes'' below).
 +
          - click ''name'' to edit the name.
 +
 
 +
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
 +
:This rule is NOT compatible with all industries.
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
#Rolling stock installed in the current session only (see settings above) can be searched to find a match for any selected product from any industry. In Surveyor (and Driver if that setting is enabled) click on the '''View Products''' sub menu link and click on a product name in the '''Product Window''' to display a list of all compatible rolling stock for that product.
 +
#Alternatively, click on the '''View Industries''' sub menu link and then click on a ''Product Icon'' to open a '''Product Window''', then click on the '''''View Rolling Stock''''' link at the top of the window.
 +
#Industry class names are defined in the config.txt file of industry assets and are not normally accessible by users. However, you can exclude an entire group of related "industry asset classes" such as ''station'', ''coalingtower'', ''watertank'', etc regardless of their actual names provided those assets have been given that "class name" by their creators.
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Multiple Resource Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Executes child rules if industries or vehicles reach set commodity levels. This rule replaces the older '''Resource Check Rule'''
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1293>'''
 +
 
 +
*'''Built-in Rule'''
 +
 
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (earlier builds are available)
 +
 
 +
*'''Parent Rule'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''<Product Level>''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select a product test from two choices:- </span>
 +
      '''''Reach/Exceed''''' - sets an upper limit for the resources being monitored.
 +
          For example: the rule will be triggered if the quantity of coal in a coal loader stockpile or a coal wagon reaches or exceeds a specified level.
 +
          The initial level in the object must be below the set upper limit.
 +
      '''''Fall below''''' - sets a lower limit for the resources being monitored.
 +
          For example: the rule will be triggered if the quantity of coal in a coal loader stockpile or a coal wagon falls below a specified level.
 +
          The initial level in the object must be above the set lower limit.
 +
          To test when a resource level reaches zero (i.e. is empty) set the lower limit to a very low value but not zero as the level can never fall below zero.
 +
    '''''<value>''''' - enter required quantity value
 +
    '''''<select>''''' - select a product from session list of products
 +
    '''''<Add object>''''' - click to select a source or target object. Multiple objects and their queues can be added to the rule.
 +
      ALL the entered products must reach/exceed or fall below the specified value for the rule to be triggered.
 +
      <span style="background-color: black; color: white; font-weight: 700;"> For each object:- </span>
 +
          '''''<Object>''''' - click to select session active industry or product enabled rail vehicle
 +
          '''''<Queue>''''' - select product queue (there may be only one available)
 +
          '''''<Remove>''''' - removes the object and its product queue from the rule
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:This rule only checks for ''changing'' commodity levels during loading and unloading operations. It cannot be used to test, for example, if a vehicle is ''full'' or ''empty''.
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Resource Check Rule|Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
 +
*'''[[#Resource Verify Rule (fixed)|Resource Verify Rule (fixed)]]''' - executes child rules when a set resource (commodity) level is reached
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Navigation Point Rules (Applications)#Application 3: Wait for Loading to be Completed|How to Use Navigation Point Rules (Applications): Wait for Loading to be Completed]]'''
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Power Station Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Sets up a Power Station and its electricity consumers
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:746>'''
 +
 
 +
*'''Base Rule'''
 +
 
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (earlier builds are available)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''Power station ''<select>''''' - select a Power Station from the session list.
 +
    '''Consumers:'''
 +
      '''''<add object>''''' - add power consumers from the session list
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Resource Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Executes child rules if a selected industry or vehicle reaches a set commodity level. This rule has been superseded by the '''Multiple Resource Check Rule'''
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1337>'''
 +
 
 +
*'''Built-in Rule'''
 +
 
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (earlier builds are available)
 +
 
 +
*'''Legacy Rule''' (replaced by '''Multiple Resource Check Rule''')
 +
 
 +
*'''Parent Rule'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
      '''( ) Watch industry queue'''
 +
          '''Target Object ''<select>''''' - select an industry from the session list
 +
          '''Queue ''<select>''''' - select a product queue from the selected industry
 +
          '''Product ''<select>''''' - select a product from the selected queue
 +
          '''Amount ''<value>''''' - enter a quantity
 +
          <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
            '''( ) Complete when designated queue equals or exceeds required amount'''
 +
            '''( ) Complete when designated queue falls below required amount'''
 +
      '''( ) Watch vehicle'''
 +
          '''Target Object ''<select>''''' - select a rolling stock asset from the session list
 +
          '''Queue ''<select>''''' - select a product queue from the selected rolling stock
 +
          '''Product ''<select>''''' - select a product from the selected queue
 +
          '''Amount ''<value>''''' - enter a quantity
 +
          <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
            '''( ) Complete when designated queue equals or exceeds required amount'''
 +
            '''( ) Complete when designated queue falls below required amount'''
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:This rule only checks for ''changing'' commodity levels during loading and unloading operations. It cannot be used to test, for example, if a vehicle is ''full'' or ''empty''.
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Multiple Resource Check Rule|Multiple Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
 +
*'''[[#Resource Verify Rule (fixed)|Resource Verify Rule (fixed)]]''' - executes child rules when a set resource (commodity) level is reached
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Resource_Check_Rule</span>'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Resource Verify Rule (fixed)'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Executes child rules if a selected industry or vehicle reaches a set commodity level. The rule resets when all child rules have completed.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:160293:10060>'''
 +
 
 +
*'''DLS Rule''' by '''trev999
 +
 
 +
*'''Minimum Trainz Build: 3.5 (TS12)'''
 +
 
 +
*'''Parent Rule'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
    '''( ) Watch industry queue'''
 +
      '''Target object ''<click to select>''''' - click to select an industry from the session list.
 +
      '''Product ''<click to select>''''' - click to select an industry product.
 +
      '''Amount ''<value>''''' - enter a quantity for the selected product.
 +
      <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
      '''( ) Complete when designated queue equals or exceeds designated amount'''
 +
      '''( ) Complete when designated queue falls below designated amount'''
 +
    '''( ) Watch vehicle queue'''
 +
      '''Target object ''<click to select>''''' - click to select a rolling stock vehicle from the session list.
 +
      '''Product ''<click to select>''''' - click to select a commodity product.
 +
      '''Amount ''<value>''''' - enter a quantity for the selected product.
 +
      <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
      '''( ) Complete when designated queue equals or exceeds designated amount'''
 +
      '''( ) Complete when designated queue falls below designated amount'''
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
#This rule will only monitor a single commodity in a single industry or vehicle.
 +
#This rule only checks for ''changing'' commodity levels during loading and unloading operations. It cannot be used to test, for example, if a vehicle is ''full'' or ''empty''.
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Multiple Resource Check Rule|Multiple Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
 +
*'''[[#Resource Check Rule|Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Station Visited Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Executes child rules if specific trains call at set stations or industries
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:60850:89005:6>'''
 +
 
 +
*'''Built-in Rule'''
 +
 
 +
*'''Minimum Trainz Build: 4.6 (TRS19)''' (earlier builds are available)
 +
 
 +
*'''Parent Rule'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''Trigger: ''<select>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select one of the following:- </span>
 +
      '''''Never''''' - stopping at the selected industries will never trigger the rule.
 +
      '''''Once only''''' - the rule is triggered on the first visit only to any one of the selected industries
 +
      '''''Once per industry''''' - the rule is triggered on the first visit to each industry with each individual product
 +
      '''''Once per visit''''' - the rule is triggered on the first visit to each industry regardless of the product
 +
      '''''Once per vehicle''''' - each vehicle can only trigger the rule once.
 +
    '''''<select industry>''''' - select industry or industries from session list
 +
    <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
      '''( ) click to accept all trains'''
 +
      '''( ) click to accept trains matching specific criteria'''
 +
          <span style="background-color: black; color: white; font-weight: 700;"> Selecting the second option will produce the following selection controls:- </span>       
 +
          '''Specific vehicle''' - identify the specific vehicle or set of specific vehicles that will trigger the rule
 +
            '''''+''''' - click to add a ''specific'' vehicle from the session list
 +
            '''''x''''' - click to remove the ''specific'' vehicle from the rule
 +
          '''Vehicle types''''' - identify the ''type'' of vehicle or a set of vehicle ''types'' that will trigger the rule
 +
            '''''+''''' - click to add a ''type'' of vehicle from the session list
 +
            '''''x''''' - click to remove the ''type'' of vehicle from the rule
 +
          '''Drivers''''' - identify the ''drivers'' that will trigger the rule
 +
            '''''+''''' - click to add a ''driver'' from the session list
 +
            '''''x''''' - click to remove a ''driver'' from the rule
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Wait on Waybill Screen/Main Screen Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Executes child rules when the Waybill window is opened or closed
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:957>'''
 +
 
 +
*'''Built-in Rule'''
 +
 
 +
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
*'''Parent Rule'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''[x] Trigger rule once''' - check to trigger the rule once only
 +
    '''Wait for the Waybill window to be ''<opened/closed>''''' - select either '''opened''' or '''closed'''.
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
<br>
 +
<table width="100%" bgcolor=#ffff88>
 +
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Interlocking"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#Industry|alt=Next Up|Next Up]]</td>
 +
<td width=75>[[file:NextDown.png|link=#Message|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''Interlocking Tower, Junction and Signal Rules'''=
 +
</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Control Path Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Sets the path for selected trains
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:131986:158781>'''
 +
 
 +
*'''DLS Rule''' by '''atilabarut'''
 +
 
 +
*'''Minimum Trainz Build: 2.5 (TRS2006)'''
 +
 
 +
*'''Legacy Rule''' (replaced by '''Interlocking Tower Rules''')
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
  '''<add junction>''''' - click to add a junction from the Session list
 +
    <span style="background-color: black; color: white; font-weight: 700;"> For each junction:- </span>
 +
      '''Set switch to ''<RIGHT/LEFT/FORWARD>''''' - click to select one junction state
 +
      '''Exiting from ''<FORWARD/BACKWARD/LEFT/RIGHT>''''' - click to select the direction the train exits from the junction
 +
      '''Permit type ''<EXCLUSIVE/DIRECTIONAL>''''' - click to select permission type.
 +
          '''''DIRECTIONAL''''' permits all trains heading in the same direction to use the set path.
 +
          '''''EXCLUSIVE''''' only allows one train to use the path at a time
 +
      '''''<up>''''' - move the junction UP one level in the list
 +
      '''''<dn>''''' - move the junction DOWN one level in the list
 +
      '''''<rm>''''' - remove the junction from the list
 +
  '''Name of the signal before entering the path ''<signal name>''''' - click to select the signal before the first junction from the Session signal list
 +
  '''Signal state in case the path is not cleared ''<GREEN/RED/YELLOW>''''' - click to select a signal state
 +
  '''Train for which path is controlled ''<train>''''' - click to select a consist from the Session list
 +
  '''Rule activates on train entering trigger ''<trigger name>''''' - click to select a start trigger from the Session list
 +
  '''Rule exits on train entering trigger ''<trigger name>''''' - click to select an end trigger from the Session list
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
#This rule may not be compatible with Interlocking Towers.
 +
#Triggers have to be placed before the first junction and controlling signal and after the final junction.
 +
#Multiple paths can be set up by placing multiple copies of this rule under an '''Ordered List''' or '''Simultaneous List'''
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Junction Derailment Prevention Rule|Junction Derailment Prevention Rule]]''' - sets opposing junctions ahead of a train to prevent derailments
 +
*'''[[#Lock All Junctions Rule|Lock All Junctions Rule]]''' - locks all junctions against user control
 +
*'''[[#Multiple Junction Alignment Check Rule|Multiple Junction Alignment Check Rule]]''' - executes child rules when junctions are aligned
 +
*'''[[#Set Junctions Rule|Set Junctions Rule]]''' - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control).
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Interlocking Tower Configure Path Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Alters settings on an interlocking tower path
 
Alters settings on an interlocking tower path
  
'''<kuid:401543:3205>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:401543:3205>'''
  
 
*'''Base Rule'''  
 
*'''Base Rule'''  
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.3 (TANE SP1)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
   '''Interlocking Tower ''<select>''''' - to set Name and Objects
 
   '''Interlocking Tower ''<select>''''' - to set Name and Objects
  
'''Related Rules:'''
+
[[file:BugMini.PNG|link=]] <span style="background-color: red; color: white; font-weight: 700;"> Known Bugs: </span>
    '''[[#Interlocking Tower Path Selection UI Rule|Interlocking Tower Path Selection UI Rule]]''' - automatically reacts to messages from Interlocking Towers and displays a path selection dialog to the player.
+
:The '''Interlocking Tower''' and '''Enhanced Interlocking Tower''' assets have a bug that saves their initial paths and properties in the Route and then saves any edits you make in the Session. The workaround is to always use Session Surveyor when using ITs and EITs.
    '''[[#Interlocking Tower Set Path Rule|Interlocking Tower Set Path Rule]]''' - sets the state of an interlocking tower path for a train
+
 
    '''[[#Interlocking Tower Enhanced Manager Rule (SP2 and later)|Interlocking Tower Enhanced Manager Rule (SP2 and later)]]''' - more management and control options for interlocking towers.
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Interlocking Tower Path Selection UI Rule|Interlocking Tower Path Selection UI Rule]]''' - automatically reacts to messages from Interlocking Towers and displays a path selection dialog to the player.
 +
*'''[[#Interlocking Tower Set Path Rule|Interlocking Tower Set Path Rule]]''' - sets the state of an interlocking tower path for a train
 +
*'''[[#Interlocking Tower Enhanced Manager Rule (SP2 and later)|Interlocking Tower Enhanced Manager Rule (SP2 and later)]]''' - more management and control options for interlocking towers.
  
==='''Interlocking Tower Path Selection UI Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Interlocking Tower Path Selection UI Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Will automatically react to messages from Interlocking Towers and display a path selection dialog to the player. Disable by removing rule from session
 
Will automatically react to messages from Interlocking Towers and display a path selection dialog to the player. Disable by removing rule from session
  
'''<kuid:401543:3203>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:401543:3203>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.3 (TANE SP1)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
   '''[Checkbox] Show path activation message in Driver'''
 
   '''[Checkbox] Show path activation message in Driver'''
  
'''Related Rules:'''
+
[[file:BugMini.PNG|link=]] <span style="background-color: red; color: white; font-weight: 700;"> Known Bugs: </span>
    '''[[#Interlocking Tower Configure Path Rule|Interlocking Tower Configure Path Rule]]''' - alters the settings on an interlocking tower path
+
:The '''Interlocking Tower''' and '''Enhanced Interlocking Tower''' assets have a bug that saves their initial paths and properties in the Route and then saves any edits you make in the Session. The workaround is to always use Session Surveyor when using ITs and EITs.
    '''[[#Interlocking Tower Set Path Rule|Interlocking Tower Set Path Rule]]''' - sets the state of an interlocking tower path for a train
+
    '''[[#Interlocking Tower Enhanced Manager Rule (SP2 and later)|Interlocking Tower Enhanced Manager Rule (SP2 and later)]]''' - more management and control options for interlocking towers.
+
  
==='''Interlocking Tower Set Path Rule'''===
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Interlocking Tower Configure Path Rule|Interlocking Tower Configure Path Rule]]''' - alters the settings on an interlocking tower path
 +
*'''[[#Interlocking Tower Set Path Rule|Interlocking Tower Set Path Rule]]''' - sets the state of an interlocking tower path for a train
 +
*'''[[#Interlocking Tower Enhanced Manager Rule (SP2 and later)|Interlocking Tower Enhanced Manager Rule (SP2 and later)]]''' - more management and control options for interlocking towers.
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Interlocking Tower Set Path Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Will set the state of an interlocking tower path for a train
 
Will set the state of an interlocking tower path for a train
  
'''<kuid:401543:3204>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:401543:3204>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.3 (TANE SP1)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
   '''Interlocking Tower ''<select>''''' - to set Name and Objects
 
   '''Interlocking Tower ''<select>''''' - to set Name and Objects
  
'''Related Rules:'''
+
[[file:BugMini.PNG|link=]] <span style="background-color: red; color: white; font-weight: 700;"> Known Bugs: </span>
    '''[[#Interlocking Tower Configure Path Rule|Interlocking Tower Configure Path Rule]]''' - alters the settings on an interlocking tower path
+
:The '''Interlocking Tower''' and '''Enhanced Interlocking Tower''' assets have a bug that saves their initial paths and properties in the Route and then saves any edits you make in the Session. The workaround is to always use Session Surveyor when using ITs and EITs.
    '''[[#Interlocking Tower Path Selection UI Rule|Interlocking Tower Path Selection UI Rule]]''' - automatically reacts to messages from Interlocking Towers and displays a path selection dialog to the player.
+
    '''[[#Interlocking Tower Enhanced Manager Rule (SP2 and later)|Interlocking Tower Enhanced Manager Rule (SP2 and later)]]''' - more management and control options for interlocking towers.
+
  
==='''Interlocking Tower Enhanced Manager Rule (SP2 and later)'''===
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Interlocking Tower Configure Path Rule|Interlocking Tower Configure Path Rule]]''' - alters the settings on an interlocking tower path
 +
*'''[[#Interlocking Tower Path Selection UI Rule|Interlocking Tower Path Selection UI Rule]]''' - automatically reacts to messages from Interlocking Towers and displays a path selection dialog to the player.
 +
*'''[[#Interlocking Tower Enhanced Manager Rule (SP2 and later)|Interlocking Tower Enhanced Manager Rule (SP2 and later)]]''' - more management and control options for interlocking towers.
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''IT Enhanced Manager rule (TANE SP4 and later)'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Provides more management and control options for interlocking towers.
 
Provides more management and control options for interlocking towers.
  
'''<kuid2:61392:8130:41>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:61392:8130:87>'''
  
 
*'''DLS Rule''' by '''pguy'''
 
*'''DLS Rule''' by '''pguy'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.5 (TANE SP2)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''''<towers>''''' - click to select interlocking towers from the session list
 
     '''''<towers>''''' - click to select interlocking towers from the session list
 
       '''''<do full check again>''''' - click to run an error check on all interlocking towers
 
       '''''<do full check again>''''' - click to run an error check on all interlocking towers
       '''List of all available interlocking towers''' - for each tower:-
+
       '''List of all available interlocking towers''' - <span style="background-color: black; color: white; font-weight: 700;"> for each tower:- </span>
 
           '''''<view details>''''' - click to view and edit the tower properties
 
           '''''<view details>''''' - click to view and edit the tower properties
 
           '''''<copy from>''''' - click to copy properties from another tower selected from the session list
 
           '''''<copy from>''''' - click to copy properties from another tower selected from the session list
 
     '''''<debug log>''''' - click to set the debug log properties
 
     '''''<debug log>''''' - click to set the debug log properties
  
'''Related Rules:'''
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
    '''[[#Interlocking Tower Configure Path Rule|Interlocking Tower Configure Path Rule]]''' - alters the settings on an interlocking tower path
+
*It is recommended that you refer to the detailed instructions in the Trainz Wiki shown below.
    '''[[#Interlocking Tower Path Selection UI Rule|Interlocking Tower Path Selection UI Rule]]''' - automatically reacts to messages from Interlocking Towers and displays a path selection dialog to the player.
+
    '''[[#Interlocking Tower Set Path Rule|Interlocking Tower Set Path Rule]]''' - sets the state of an interlocking tower path for a train
+
  
==='''Junction Derailment Prevention Rule'''===
+
[[file:BugMini.PNG|link=]] <span style="background-color: red; color: white; font-weight: 700;"> Known Bugs: </span>
 +
:The '''Interlocking Tower''' and '''Enhanced Interlocking Tower''' assets have a bug that saves their initial paths and properties in the Route and then saves any edits you make in the Session. The workaround is to always use Session Surveyor when using ITs and EITs.
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Interlocking Tower Configure Path Rule|Interlocking Tower Configure Path Rule]]''' - alters the settings on an interlocking tower path
 +
*'''[[#Interlocking Tower Path Selection UI Rule|Interlocking Tower Path Selection UI Rule]]''' - automatically reacts to messages from Interlocking Towers and displays a path selection dialog to the player.
 +
*'''[[#Interlocking Tower Set Path Rule|Interlocking Tower Set Path Rule]]''' - sets the state of an interlocking tower path for a train
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Enhanced_Interlocking_Tower_Manager_Rule</span>'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Junction Derailment Prevention Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Sets opposing (trailing) junctions ahead of a train to prevent derailments.  Works with both AI and manually driven trains.
 
Sets opposing (trailing) junctions ahead of a train to prevent derailments.  Works with both AI and manually driven trains.
  
'''<kuid2:121843:100282:1>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:121843:100282:1>'''
  
 
*'''DLS Rule''' by '''pitkin'''
 
*'''DLS Rule''' by '''pitkin'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 3.5 (TS12)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''None'''
 
     '''None'''
  
'''Note:''' Will not overrule a junction already locked by another AI train or locked against AI control using the '''Set Junctions Rule'''.
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:This rule will not overrule a junction already locked by another AI train or locked against AI control using the '''Set Junctions Rule'''.
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Lock All Junctions Rule|Lock All Junctions Rule]] - locks all junctions against user control
+
*'''[[#Lock All Junctions Rule|Lock All Junctions Rule]]''' - locks all junctions against user control
    '''[[#Set Junctions Rule|Set Junctions Rule]]''' - sets the selected junctions to a specific state (switch direction, locked/unlocked, allow/prevent AI control).
+
*'''[[#Set Cleared Junctions Rule|Set Cleared Junctions Rule]]''' - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control) while they are unoccupied.
 +
*'''[[#Set Junctions Rule|Set Junctions Rule]]''' - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control).
  
==='''Lock All Junctions Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Lock All Junctions Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Locks all junctions against user actions. AI operations are not affected. Once the AI releases a junction, it will be returned to its previous locked state.
 
Locks all junctions against user actions. AI operations are not affected. Once the AI releases a junction, it will be returned to its previous locked state.
  
'''<kuid:400048:100971>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:400048:100971>'''
  
 
*'''DLS Rule''' by '''callavsg'''
 
*'''DLS Rule''' by '''callavsg'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.3 (TANE SP1)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''None'''
 
     '''None'''
  
'''Notes:'''
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
  Individual junctions can still be set, locked and unlocked by using the '''Set Junction Rule'''
+
:Individual junctions can still be set, locked and unlocked by using the '''Set Junction Rule'''
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Set Junctions Rule|Set Junctions Rule]]''' - sets junctions to specific directions, locks and unlocks junctions, allows or denies AI control
+
*'''[[#Set Cleared Junctions Rule|Set Cleared Junctions Rule]]''' - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control) while they are unoccupied.
 +
*'''[[#Set Junctions Rule|Set Junctions Rule]]''' - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control).
  
==='''Multiple Junction Alignment Check Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''MissionCode Manager (TANE SP4 and later)'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Enables the addition, editing and management of Mission Codes used to auto select paths in '''Interlocking Towers'''.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:61392:8200:85>'''
 +
 
 +
*'''DLS Rule''' by '''pguy'''
 +
 
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
  Refer to the detailed instructions in the '''Trainz Wiki Links''' shown below.
 +
 
 +
[[file:PageLink4.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Dependent Driver Commands:</span>
 +
:'''The rule must be added to the Session for the following Driver Commands to work'''
 +
*'''[[Driver Commands List#AddMissionCode (TANE SP4 and Later)|AddMissionCode (TANE SP4 and Later)]]'''
 +
*'''[[Driver Commands List#RemoveMissionCode (TANE SP4 and Later)|RemoveMissionCode (TANE SP4 and Later)]]'''
 +
*'''[[Driver Commands List#SetMissionCode (TANE SP4 and Later)|SetMissionCode (TANE SP4 and Later)]]'''
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Stops and TimeTables manager (TANE SP4 and later)|Stops and TimeTables manager (TANE SP4 and later))]]''' - creates and edits stop zones and timetables for trains with mission codes
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/MissionCodes_Manager</span>'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Stops and TimeTables Manager (TANE SP4 and later)'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Formerly known as '''MissionCode Stops and Timetable Manager Rule'''. Enables the creation, editing and management of stop zones and timetables for trains following a path defined using mission codes.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:61392:8300:76>'''
 +
 
 +
*'''DLS Rule''' by '''pguy'''
 +
 
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
  Refer to the detailed instructions in the '''Trainz Wiki Links''' shown below.
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#MissionCode Manager Rule (SP2 and later)|MissionCode Manager Rule (SP2 and later)]]''' - creates and edits mission codes for trains
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Mission_Code_Stops_and_TimeTables_Manager</span>'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Multiple Junction Alignment Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules if specific junctions are set.
 
Executes child rules if specific junctions are set.
  
'''<kuid:-25:168>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1221>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (earlier builds are available)
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
     '''Wait until ''<selection>''''' - select from:-
+
 
 +
     '''Wait until ''<selection>''''' - <span style="background-color: black; color: white; font-weight: 700;"> select from:- </span>
 
       '''any one''' - any of the junctions in the rule list (below) is set correctly
 
       '''any one''' - any of the junctions in the rule list (below) is set correctly
 
       '''all''' - ALL of the junctions in the rule list are set correctly
 
       '''all''' - ALL of the junctions in the rule list are set correctly
Line 1,303: Line 3,002:
 
     '''''<Add all>''''' - click to select ALL junctions in the session list
 
     '''''<Add all>''''' - click to select ALL junctions in the session list
 
     '''''<Delete all>''''' - click to delete ALL selected junctions from the rule list
 
     '''''<Delete all>''''' - click to delete ALL selected junctions from the rule list
       For each selected junction:-
+
       <span style="background-color: black; color: white; font-weight: 700;"> For each selected junction:- </span>
       '''''<setting>''''' - click to select one switch direction from:-
+
       '''''<setting>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select one switch direction from:- </span>
 
           '''Left'''
 
           '''Left'''
 
           '''Right'''
 
           '''Right'''
Line 1,311: Line 3,010:
 
       '''''<remove>''''' - to delete this junction from the rule list
 
       '''''<remove>''''' - to delete this junction from the rule list
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Lock All Junctions Rule|Lock All Junctions Rule]]''' - locks all junctions against user control
+
*'''[[#Control Path Rule|Control Path Rule]]''' - sets the path for selected trains
    '''[[#Set Junctions Rule|Set Junctions Rule]]''' - sets junctions to specific directions, locks and unlocks junctions, allows or denies AI control.
+
*'''[[#Lock All Junctions Rule|Lock All Junctions Rule]]''' - locks all junctions against user control
 +
*'''[[#Set Cleared Junctions Rule|Set Cleared Junctions Rule]]''' - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control) while they are unoccupied.
 +
*'''[[#Set Junctions Rule|Set Junctions Rule]]''' - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control).
  
==='''Set Junctions Rule'''===
+
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Control Junctions in Sessions]]'''
  
Sets the selected junctions to a specific state '''''Warning:'' not compatible with Interlocking Tower Assets'''
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
  
'''<kuid:-25:1065>'''
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Set Cleared Junctions Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control) while they are unoccupied. If a junction is occupied it waits until the junction is cleared. '''''Warning:'' not compatible with Interlocking Tower Assets'''
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:131986:157661:1>'''
 +
 
 +
*'''DLS Rule''' by '''atilabarut'''
 +
 
 +
*'''Minimum Trainz Build: 2.9 (TS2009)''' (earlier builds are available)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''''Add Junction''''' - click to select a junction from the session junction list
 +
    '''''Add All''''' - click to add ALL junctions in the session junction list
 +
    '''''Delete All''''' - click to remove ALL entered junctions from the rule
 +
      '''Junction Options:''' - <span style="background-color: black; color: white; font-weight: 700;"> for each selected junction:- </span>
 +
          '''''<direction>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select the junction direction:- </span>
 +
            '''Left'''
 +
            '''Center'''
 +
            '''Right'''
 +
            '''Don't change'''
 +
          '''''<user control>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select a user control option:- </span>
 +
            '''Locked''' - the junction setting cannot be changed by the user
 +
            '''Unlocked''' - the junction setting can be changed by the user
 +
          '''''<AI control>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select AI control:- </span>
 +
            '''Allows AI control''' - an AI train can switch the junction
 +
            '''Blocks AI control''' - an AI train cannot switch the junction
 +
          '''''Remove''''' - click to remove this junction from the rule list
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Control Path Rule|Control Path Rule]]''' - sets the path for selected trains
 +
*'''[[#Junction Derailment Prevention Rule|Junction Derailment Prevention Rule]]''' - sets opposing junctions ahead of a train to prevent derailments
 +
*'''[[#Lock All Junctions Rule|Lock All Junctions Rule]]''' - locks all junctions against user control
 +
*'''[[#Multiple Junction Alignment Check Rule|Multiple Junction Alignment Check Rule]]''' - executes child rules when junctions are aligned
 +
*'''[[#Set Junctions Rule|Set Junctions Rule]]''' - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control).
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Set Junctions Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control). '''''Warning:'' not compatible with Interlocking Tower Assets'''
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1269>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''''Add Junction''''' - click to select a junction from the session junction list
 
     '''''Add Junction''''' - click to select a junction from the session junction list
 
     '''''Add All''''' - click to add ALL junctions in the session junction list
 
     '''''Add All''''' - click to add ALL junctions in the session junction list
 
     '''''Delete All''''' - click to remove ALL entered junctions from the rule
 
     '''''Delete All''''' - click to remove ALL entered junctions from the rule
 
       '''Junction Options:''' - for each selected junction:-
 
       '''Junction Options:''' - for each selected junction:-
           '''''<direction>''''' - click to select the junction direction
+
           '''''<direction>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select the junction direction:- </span>
 
             '''Left'''
 
             '''Left'''
 
             '''Center'''
 
             '''Center'''
 
             '''Right'''
 
             '''Right'''
 
             '''Don't change'''
 
             '''Don't change'''
           '''''<user control>''''' - click to select a user control option
+
           '''''<user control>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select a user control option:- </span>
 
             '''Locked''' - the junction setting cannot be changed by the user
 
             '''Locked''' - the junction setting cannot be changed by the user
 
             '''Unlocked''' - the junction setting can be changed by the user
 
             '''Unlocked''' - the junction setting can be changed by the user
           '''''<AI control>''''' - click to select AI control
+
           '''''<AI control>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select AI control:- </span>
 
             '''Allows AI control''' - an AI train can switch the junction
 
             '''Allows AI control''' - an AI train can switch the junction
 
             '''Blocks AI control''' - an AI train cannot switch the junction
 
             '''Blocks AI control''' - an AI train cannot switch the junction
 
           '''''Remove''''' - click to remove this junction from the rule list
 
           '''''Remove''''' - click to remove this junction from the rule list
  
'''Related Rules:'''
+
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
    '''[[#Junction Derailment Prevention Rule|Junction Derailment Prevention Rule]]''' - sets opposing junctions ahead of a train to prevent derailments
+
:Rule is NOT compatible with Interlocking Towers
    '''[[#Lock All Junctions Rule|Lock All Junctions Rule]]''' - locks all junctions against user control
+
    '''[[#Multiple Junction Alignment Check Rule|Multiple Junction Alignment Check Rule]]''' - executes child rules when junctions are aligned
+
  
==='''Set Signal Extended Rule'''===
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Control Path Rule|Control Path Rule]]''' - sets the path for selected trains
 +
*'''[[#Junction Derailment Prevention Rule|Junction Derailment Prevention Rule]]''' - sets opposing junctions ahead of a train to prevent derailments
 +
*'''[[#Lock All Junctions Rule|Lock All Junctions Rule]]''' - locks all junctions against user control
 +
*'''[[#Multiple Junction Alignment Check Rule|Multiple Junction Alignment Check Rule]]''' - executes child rules when junctions are aligned
 +
*'''[[#Set Cleared Junctions Rule|Set Cleared Junctions Rule]]''' - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control) while they are unoccupied.
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Control Junctions in Sessions]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Set Signal Extended Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Sets the state of a selected signal '''''Warning:'' not compatible with Interlocking Tower Assets'''
 
Sets the state of a selected signal '''''Warning:'' not compatible with Interlocking Tower Assets'''
  
'''<kuid2:47662:20002:4>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:47662:20002:7>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
     '''''<Select signal>'' to ''<signal state>''''' - click to select a signal from the session list and click to select a state from the list -
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     '''''<Select signal>'' to ''<signal state>''''' - click to select a signal from the session list and <span style="background-color: black; color: white; font-weight: 700;"> click to select a state from the list:- </span>
 
       '''Automatic'''
 
       '''Automatic'''
 
       '''Stop'''
 
       '''Stop'''
Line 1,371: Line 3,155:
 
       '''Medium'''
 
       '''Medium'''
  
'''Note:''' The signal must support the state selected otherwise there will be no change in the signal
+
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
 +
:Rule is NOT compatible with Interlocking Towers
  
'''Related Rules:'''
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
    '''[[#Trigger Multiple Signals Rule|Trigger Multiple Signals Rule]]''' - sets selected signals to DANGER (STOP) when selected triggers are activated
+
:The signal must support the state selected otherwise there will be no change in the signal
  
==='''Trigger Multiple Signals Rule'''===
+
<br>
 +
<table width="100%" bgcolor=#ffff88>
 +
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Message"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#Interlocking|alt=Next Up|Next Up]]</td>
 +
<td width=75>[[file:NextDown.png|link=#Miscellaneous|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''Message Rules'''=
 +
</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Close Message Popup Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
Sets selected signals to DANGER (STOP) when selected triggers are activated. Signals will be at AUTOMATIC when the triggers are not activated.
+
Closes open message popups
  
'''<kuid2:116387:26:1>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
  
*'''DLS Rule''' by '''maggs'''
+
*'''<kuid2:447264:1526:2>'''
  
'''Properties:'''
+
*'''Built-in Rule'''
    '''<add signal>''' - select a signal from the Session List. More than one signal can be added.
+
      '''<delete>''' - remove a signal from the rule.
+
    '''<add trigger>''' - select a trigger from the Session List. More than one trigger can be added.
+
      '''<delete>''' - remove a trigger from the rule.
+
  
'''Related Rules:'''
+
*'''Minimum Trainz Build: 3.6 (TS12)'''
    '''[[#Set Signal Extended Rule|Set Signal Extended Rule]] - sets a selected signal to a specific signal state
+
  
'''[[#top|Back to Top]]'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
  
=='''Message Rules'''==
+
  '''None'''
  
==='''Close Message Popup Rule'''===
+
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
 +
:This rule only appears to work if it is a child of the rule that triggered the Message Popup Rule
  
Closes open message popups
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Message Popup Rule|Message Popup Rule]]''' - displays a pop-up browser window and waits for it to be closed.
  
'''<kuid:447264:1526>'''
+
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Message Popup Rule (Applications)]]'''
  
*'''Built-in Rule'''
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''DestSign Table Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
'''Properties:'''
+
Creates a list of destination names for a destination sign
  '''None'''
+
  
'''Known Issues:'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
  This rule only appears to work if it is a child of the rule that triggered the Message Popup Rule
+
  
'''Related Rule:'''
+
*'''<kuid2:206816:99004:6>'''
    '''[[#Message Popup Rule|Message Popup Rule]]''' - displays a pop-up browser window and waits for it to be closed.
+
  
==='''DestSign Table Rule'''===
+
*'''Built-in Rule'''
  
Creates a list of destination names for a destination sign
+
*'''Minimum Trainz Build: 3.5 (TS12)''' (earlier builds are available)
  
'''<kuid2:206816:99004:2>'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 
+
*'''Built-in Rule'''
+
  
'''Properties:'''
 
 
   '''''<add destination>''''' - enter a destination name to be added to the destination sign roll
 
   '''''<add destination>''''' - enter a destination name to be added to the destination sign roll
 
   '''''<import destinations from texture-group>''''' - select a list of destination names from session
 
   '''''<import destinations from texture-group>''''' - select a list of destination names from session
   '''[Check Box] Enable industries/stations as destination''' - check to set
+
   '''[x] Enable industries/stations as destination''' - check to set
   '''[Check Box] Enable Track Marks as destinations''' - check to set
+
   '''[x] Enable Track Marks as destinations''' - check to set
   '''[Check Box] Enable table of destinations''' - check to set
+
   '''[x] Enable table of destinations''' - check to set
  
==='''Display HTML Pages Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Display HTML Pages Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Creates a browser to display the listed HTML files in order as a navigable sequence of pages. This rule has been superseded by the '''Message Popup Rule'''  
 
Creates a browser to display the listed HTML files in order as a navigable sequence of pages. This rule has been superseded by the '''Message Popup Rule'''  
  
'''<kuid:-25:442>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:442>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
*'''Legacy Rule''' (replaced by '''Message Popup Rule''')
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''''<Add Page>''''' - adds the HTML page ''index.html'' from the selected HTML asset
 
     '''''<Add Page>''''' - adds the HTML page ''index.html'' from the selected HTML asset
 
       '''''<index.html>''''' - click to change the page name. The extension ''.html'' is optional
 
       '''''<index.html>''''' - click to change the page name. The extension ''.html'' is optional
 
     '''''<Add All>''''' - adds all HTML pages from the session list '''(this appears to be disabled in TANE)'''
 
     '''''<Add All>''''' - adds all HTML pages from the session list '''(this appears to be disabled in TANE)'''
 
     '''''<Delete All>''''' - delete all HTML pages from this property list
 
     '''''<Delete All>''''' - delete all HTML pages from this property list
     '''[Check Box] Prevent user from exiting browser until all pages viewed'''
+
     '''[x] Prevent user from exiting browser until all pages viewed'''
     '''[Check Box] Disable closing of browser window by user'''
+
     '''[x] Disable closing of browser window by user'''
     '''[Check Box] Disable browser window scrolling'''
+
     '''[x] Disable browser window scrolling'''
     '''[Check Box] Make browser window invisible'''
+
     '''[x] Make browser window invisible'''
     '''[Check Box] Set position-Under Construction!!!''' - not implemented
+
     '''[x] Set position-Under Construction!!!''' - not implemented
     '''[Check Box] Set size-Under Construction!!!''' - not implemented
+
     '''[x] Set size-Under Construction!!!''' - not implemented
 
     '''Use the page ''<index.html>'' from asset ''<select>'' as the hidden button''' - the link buttons at the bottom of the page will be taken from the selected page in the selected HTML asset
 
     '''Use the page ''<index.html>'' from asset ''<select>'' as the hidden button''' - the link buttons at the bottom of the page will be taken from the selected page in the selected HTML asset
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Close Message Popup Rule|Close Message Popup Rule]]''' - closes a displayed pop-up browser window.
+
*'''[[#Close Message Popup Rule|Close Message Popup Rule]]''' - closes a displayed pop-up browser window.
    '''[[#Message Popup Rule|Message Popup Rule]]''' - displays a pop-up browser window and waits for it to be closed.
+
*'''[[#Message Popup Rule|Message Popup Rule]]''' - displays a pop-up browser window and waits for it to be closed.
    '''[[#Set HTML Page Rule|Set HTML Page Rule]]''' - sets parameters for the '''Display HTML Pages Rule'''
+
*'''[[#Set HTML Page Rule|Set HTML Page Rule]]''' - sets parameters for the '''Display HTML Pages Rule'''
    '''[[#Timed Limited Display HTML Rule (SP2 and later)|Timed Limited Display HTML Rule (SP2 and later)]]''' - displays a HTML page in a browser window for a set time.
+
*'''[[#Timed Limited Display HTML Rule (SP2 and later)|Timed Limited Display HTML Rule (SP2 and later)]]''' - displays a HTML page in a browser window for a set time.
  
==='''Display Video Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Display Video Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Displays a page containing a video clip from a HTML asset in a browser window.
 
Displays a page containing a video clip from a HTML asset in a browser window.
  
'''<kuid:-25:138>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:138>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 3.5 (TS12)''' (earlier builds are available)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''Display page ''<index.html>'' of html asset ''<click to select>'' in a new browser window
 
     '''Display page ''<index.html>'' of html asset ''<click to select>'' in a new browser window
 
       '''''index.html''''' - enter the filename of a HTML page in the selected HTML asset. The ''.html'' is optional in the filename.
 
       '''''index.html''''' - enter the filename of a HTML page in the selected HTML asset. The ''.html'' is optional in the filename.
 
       '''''<click to select>''''' - select the HTML asset from those installed.
 
       '''''<click to select>''''' - select the HTML asset from those installed.
  
'''Note:''' video must be in a valid web format.
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Video must be in a valid web format.
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Play Sound Rule|Play Sound Rule]]''' - plays a wav sound file
+
*'''[[#Play Sound Rule|Play Sound Rule]]''' - plays a wav sound file
  
==='''Fade In/Out Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''ExTrainz Manager Rule - TANE SP2'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Provides information on consists, industries and products in both Surveyor and Driver modes. Once activated, the rule creates an additional short menu bar below the main menu bar.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:160293:10029>'''
 +
 
 +
*'''DLS Rule''' by '''trev999'''
 +
 
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''Diagnostic mode is ''<On/Off>''''' - click to select ''On'' or ''Off''. When set ''On'' diagnostic messages will be added to the Trainz Log file.
 +
    '''Turn on message overlay ''<Yes/No>''''' - click to select ''Yes'' or ''No''. When set to ''Yes'' the message overlay (lower left of screen) will be active.
 +
    '''Show rolling stock in Driver mode ''<Yes/No>''''' - click to select ''Yes'' or ''No''. When set to ''Yes'' rolling stock can be searched in Driver mode.
 +
    '''Search only rolling stock already in session ''<Yes/No>''''' - click to select ''Yes'' or ''No''. When set to ''Yes'' only those rolling stock assets
 +
      installed in the session can be searched.
 +
    '''Graphic colours: ''<When Red, the industry does not require service/When Green, the industry does not require service>''''' - click to switch
 +
      between the two colour options.
 +
    '''Industry page size: ''<value>''''' - enter the number of industries to be displayed in the Industry List window (maximum 250).
 +
    '''The following industries are excluded: ''<Add an industry to be excluded>''''' - name can be complete (e.g. "Coal Mine 2")
 +
      which will exclude that specific industry from the management list, or partial (e.g. "Coal") which will exclude all
 +
      industries with the word "Coal" in their names. Entries are not case sensitive.
 +
      <span style="background-color: black; color: white; font-weight: 700;"> Once industries have been excluded, additional commands will appear for each excluded industry:- </span>
 +
      '''''<delete> <industry name begins with/class name begins with> <name>''''' - click ''delete'' to remove this entry.
 +
          - click ''industry name begins with/class name begins with'' to select between the two (see ''notes'' below).
 +
          - click ''name'' to edit the name.
 +
 
 +
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
 +
:This rule is NOT compatible with all industries.
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
#Rolling stock installed in the current session only (see settings above) can be searched to find a match for any selected product from any industry. In Surveyor (and Driver if that setting is enabled) click on the '''View Products''' sub menu link and click on a product name in the '''Product Window''' to display a list of all compatible rolling stock for that product.
 +
#Alternatively, click on the '''View Industries''' sub menu link and then click on a ''Product Icon'' to open a '''Product Window''', then click on the '''''View Rolling Stock''''' link at the top of the window.
 +
#Industry class names are defined in the config.txt file of industry assets and are not normally accessible by users. However, you can exclude an entire group of related "industry asset classes" such as ''station'', ''coalingtower'', ''watertank'', etc regardless of their actual names provided those assets have been given that "class name" by their creators.
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Fade In/Out Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Fade in or out within seconds, using specified color and opacity values.
 
Fade in or out within seconds, using specified color and opacity values.
  
'''<kuid2:190611:200000:2>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:190611:200000:2>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.5 (TRS2006)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''Red percentage:            ''<value>''''' - enter the final % of red (0 = none, 100 = maximum)
 
     '''Red percentage:            ''<value>''''' - enter the final % of red (0 = none, 100 = maximum)
 
     '''Green percentage:          ''<value>''''' - enter the final % of green
 
     '''Green percentage:          ''<value>''''' - enter the final % of green
Line 1,490: Line 3,380:
 
     '''''<help>''''' - click to bring up help instructions
 
     '''''<help>''''' - click to bring up help instructions
  
'''Note:''' Seconds are Trainz clock time, not real time.
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Seconds are Trainz clock time, not real time.
  
==='''Hide Product Overlays Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Hide Product Overlays Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Hides the commodity or product bar graphs that appear on active industries
 
Hides the commodity or product bar graphs that appear on active industries
  
'''<kuid:400048:100970>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:400048:100970>'''
  
 
*'''DLS Rule''' by '''callavsg'''
 
*'''DLS Rule''' by '''callavsg'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.5 (TANE SP2)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
   '''None'''
 
   '''None'''
  
==='''InputTable Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''InputTable Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Creates a list of message names to be used for various purposes including passing data to '''Driver Commands'''
 
Creates a list of message names to be used for various purposes including passing data to '''Driver Commands'''
  
'''<kuid2:131986:1012:1>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:131986:1012:1>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.5 (TRS2006)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''''<add>''''' - click to add a new entry to the table
 
     '''''<add>''''' - click to add a new entry to the table
     Each new entry will require an input message
+
     <span style="background-color: black; color: white; font-weight: 700;"> Each new entry will require an input message </span>
 
       '''''<short message>''''' - enter a message. The message must be in a format that is specific for each purpose
 
       '''''<short message>''''' - enter a message. The message must be in a format that is specific for each purpose
       For the '''MoveTurntable''' driver command the message must be formatted as:-
+
       <span style="background-color: black; color: white; font-weight: 700;"> For the <u>MoveTurntable</u> driver command the message must be formatted as:- </span>
 
           '''turntable,name_of_turntable,number_of_connecting_roads''' - the first entry must be the word ''turntable'' in lower case.
 
           '''turntable,name_of_turntable,number_of_connecting_roads''' - the first entry must be the word ''turntable'' in lower case.
 
             ''name_of_turntable'' is the name of the turntable,  
 
             ''name_of_turntable'' is the name of the turntable,  
 
             ''number_of_connecting_roads'' is the number of tracks connecting to the turntable
 
             ''number_of_connecting_roads'' is the number of tracks connecting to the turntable
       For the '''WaitUntilTime''' driver command the message must be formatted as:-
+
       <span style="background-color: black; color: white; font-weight: 700;"> For the <u>WaitUntilTime</u> driver command the message must be formatted as:- </span>
 
           '''time,hour,minute''' - the first entry must be the word ''time'' in lower case,  
 
           '''time,hour,minute''' - the first entry must be the word ''time'' in lower case,  
 
             ''hour'' must be from 0 to 23,  
 
             ''hour'' must be from 0 to 23,  
 
             ''minute'' must be from 0 to 59.
 
             ''minute'' must be from 0 to 59.
       For the '''WaitUntilSVariable''' driver command the message must be formatted as:-
+
       <span style="background-color: black; color: white; font-weight: 700;"> For the <u>Skip If Session-Variable</u> and <u>Wait Until S-Variable</u> driver commands the message must be formatted as:- </span>
 
           '''svar,svar_name,svar_condition,value''' - the first entry must be the word ''svar'' in lower case,  
 
           '''svar,svar_name,svar_condition,value''' - the first entry must be the word ''svar'' in lower case,  
 
             ''svar_name'' is the name of the session variable,  
 
             ''svar_name'' is the name of the session variable,  
 
             ''svar_condition'' is an equality (eg eq for equal, gt for greater than, etc)
 
             ''svar_condition'' is an equality (eg eq for equal, gt for greater than, etc)
 
             ''value'' is an integer value to be compared to the session variable.
 
             ''value'' is an integer value to be compared to the session variable.
     Each entry in the table will be followed by the commands:-
+
     <span style="background-color: black; color: white; font-weight: 700;"> Each entry in the table will be followed by the commands:- </span>
 
       '''''cp''''' - click to copy this entry to a new entry
 
       '''''cp''''' - click to copy this entry to a new entry
 
       '''''up''''' - click to move this entry up one level
 
       '''''up''''' - click to move this entry up one level
Line 1,534: Line 3,449:
 
       '''''rm''''' - click to remove this entry from the table
 
       '''''rm''''' - click to remove this entry from the table
  
==='''Message Popup Rule'''===
+
[[file:PageLink4.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Dependent Driver Commands:</span>
 +
:'''The rule must be added to the Session for the following Driver Commands to work'''
 +
*'''[[Driver Commands List#MoveTurntable|MoveTurntable]]'''
 +
*'''[[Driver Commands List#Skip if Session-Variable|Skip If Session-Variable]]'''
 +
*'''[[Driver Commands List#Wait Until S-Variable|Wait Until S-Variable]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Message Popup Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Displays a pop-up browser window and waits for it to be closed. Closure can be manual (by the user) or by another rule.
 
Displays a pop-up browser window and waits for it to be closed. Closure can be manual (by the user) or by another rule.
  
'''<kuid:-25:1003>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1407>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.7 (TRS19 SP2)''' (earlier builds are available)
     '''[Check Box] Pause game while message is displayed''' - stops the game until this message is closed
+
 
     '''[Check Box] Close previous popup windows''' - closes any Message Popups currently displayed before this message is shown
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     '''[x] Pause game while message is displayed''' - stops the game until this message is closed
 +
     '''[x] Close previous popup windows''' - closes any Message Popups currently displayed before this message is shown
 
     '''Message location ''<Top Left/Top Right/Bottom Left/Bottom Right>''''' - select one to position the browser window on the screen
 
     '''Message location ''<Top Left/Top Right/Bottom Left/Bottom Right>''''' - select one to position the browser window on the screen
     '''Message Source:''' - select one of three option buttons:-
+
     '''Message Source:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of three option buttons:- </span>
 
       '''( ) Custom text''' - the simplest and easiest option
 
       '''( ) Custom text''' - the simplest and easiest option
 
           '''Icon ''<Click here to set>''''' - (optional) shows a list of message icons. Select one to be displayed with the message
 
           '''Icon ''<Click here to set>''''' - (optional) shows a list of message icons. Select one to be displayed with the message
 
           '''Icon ''<Clear icon>''''' - clears any currently displayed message icon
 
           '''Icon ''<Clear icon>''''' - clears any currently displayed message icon
 
           '''Custom text box''' Enter text to be displayed. You will be limited to about 6 lines of text.  
 
           '''Custom text box''' Enter text to be displayed. You will be limited to about 6 lines of text.  
            For longer messages or to include graphics, use the '''A predefined HTML page''' option.
+
              For longer messages or to include graphics, use the A predefined HTML page option.
 +
          '''''<HTML Wave>''''' - (optional) select the name of the HTML asset from the list shown that contains the wave file to be played.
 +
          '''''<Wave Name>''''' - (optional) enter the name of a wave (.wav) sound file to be played.
 +
              The sound file must be in the HTML asset identified above. Filename is not case sensitive. Extension '''.wav''' is optional
 +
          '''[x] Autoplay Wave:''' - plays the .wav sound file as soon as message is displayed.
 +
              <span style="background-color: red; color: white; font-weight: 700;"> If unchecked the sound will not be played. </span>
 
       '''( ) A predefined HTML page''' - requires a working knowledge of HTML
 
       '''( ) A predefined HTML page''' - requires a working knowledge of HTML
 
           '''''<HTML Asset>''''' - select the name of the HTML asset that contains the required HTML page from the list shown.
 
           '''''<HTML Asset>''''' - select the name of the HTML asset that contains the required HTML page from the list shown.
 
           '''''<HTML Page>''''' - enter the filename of the HTML page to be displayed. The page must be in the HTML asset identified above.  
 
           '''''<HTML Page>''''' - enter the filename of the HTML page to be displayed. The page must be in the HTML asset identified above.  
               Filename is not case sensitive. Extension ".html" is optional.
+
               Filename is not case sensitive. Extension '''.html''' is optional.
 
           '''''<HTML Wave>''''' - (optional) select the name of the HTML file containing the wave file to be played.  
 
           '''''<HTML Wave>''''' - (optional) select the name of the HTML file containing the wave file to be played.  
               The page must be in the HTML asset identified above. Filename is not case sensitive. Extension ".html" is optional.
+
               The page must be in the HTML asset identified above. Filename is not case sensitive. Extension '''.html''' is optional.
 
           '''''<Wave Name>''''' - (optional) enter the name of a wave (.wav) sound file to be played.  
 
           '''''<Wave Name>''''' - (optional) enter the name of a wave (.wav) sound file to be played.  
               The sound file must be in the HTML asset identified above. Filename is not case sensitive. Extension ".wav" is optional
+
               The sound file must be in the HTML asset identified above. Filename is not case sensitive. Extension '''.wav''' is optional
        '''[Check Box] Autoplay Wave:''' - plays the .wav sound file as soon as message is displayed.  
+
          '''[x] Autoplay Wave:''' - plays the .wav sound file as soon as message is displayed.  
             If unchecked sound will not be played.
+
             <span style="background-color: red; color: white; font-weight: 700;"> If unchecked sound will not be played. </span>
 
       '''( ) A predefined string-table entry from a HTML asset'''
 
       '''( ) A predefined string-table entry from a HTML asset'''
 
           '''''<HTML Asset>''''' - select the name of the HTML asset from those installed that contains the required string-table.
 
           '''''<HTML Asset>''''' - select the name of the HTML asset from those installed that contains the required string-table.
           '''''<String Table Token>''''' - <function unknown at present>
+
           '''''<String Table Token>''''' - enter the "tag name" of the text in the string-table of the HTML assets '''config.txt''' file.
 
           '''''<HTML Wave>''''' - (optional) select the name of the HTML file containing the wave file to be played.  
 
           '''''<HTML Wave>''''' - (optional) select the name of the HTML file containing the wave file to be played.  
               The page must be in the HTML asset identified above. Filename is not case sensitive. Extension ".html" is optional.
+
               The page must be in the HTML asset identified above. Filename is not case sensitive. Extension ''''.html'''' is optional.
 
           '''''<Wave Name>''''' - (optional) enter the name of a wave (.wav) sound file to be played.  
 
           '''''<Wave Name>''''' - (optional) enter the name of a wave (.wav) sound file to be played.  
               The sound file must be in the HTML asset identified above. Filename is not case sensitive. Extension ".wav" is optional
+
               The sound file must be in the HTML asset identified above. Filename is not case sensitive. Extension '''.wav''' is optional
           '''[Check Box] Autoplay Wave:''' - plays the .wav sound file as soon as message is displayed.  
+
           '''[x] Autoplay Wave:''' - plays the .wav sound file as soon as message is displayed.  
               If unchecked sound will not be played.
+
               <span style="background-color: red; color: white; font-weight: 700;"> If unchecked sound will not be played. </span>
  
'''Related Rule:'''
+
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
    '''[[#Close Message Popup Rule|Close Message Popup Rule]]''' - closes a displayed pop-up browser window.
+
:Because this rule will wait until it is closed (terminated) then it is not recommended for use in an '''Ordered List''' because you cannot guarantee that any following child rules will be executed.  If it MUST be used in an '''Ordered List''' then place it last.
  
==='''Minimap Options Rule'''===
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Close Message Popup Rule|Close Message Popup Rule]]''' - closes a displayed pop-up browser window.
 +
*'''[[#Display HTML Pages Rule|Display HTML Pages Rule]]''' - display listed HTML files in order as a navigable sequence of pages.
 +
*'''[[#Timed Limited Display HTML Rule (SP2 and later)|Timed Limited Display HTML Rule (SP2 and later)]]''' - displays a HTML page in a browser window for a set time.
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Message Popup Rule]]'''
 +
*'''[[How to Use Message Popup Rule (Applications)]]'''
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Create a HTML Asset|How to Create a HTML Asset (Session Introduction Page and In Game Messages)]]'''
 +
*'''[[How to Create a Message Popup Icon]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Minimap Options Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Sets the display options for the minimap.
 
Sets the display options for the minimap.
  
'''<kuid:-25:636>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1268>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:''' ''Default values - all checked''
+
*'''Minimum Trainz Build: 4.2 (TANE)''' (earlier builds are available)
    '''[Check Box] Map Textures'''
+
    '''[Check Box] Gradients'''
+
    '''[Check Box] Junctions'''
+
    '''[Check Box] Signals'''
+
    '''[Check Box] Triggers'''
+
    '''[Check Box] Markers'''
+
    '''[Check Box] Trackside Labels'''
+
    '''[Check Box] Terrain Objects'''
+
    '''[Check Box] Industrial Names'''
+
    '''[Check Box] Named Objects'''
+
    '''[Check Box] Consists'''
+
  
  '''Related Rules:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
     '''[[#Show/Hide Minimap Rule|Show/Hide Minimap Rule]]''' - shows the minimap window in Driver.
+
  ''Default values - all checked''
 +
    '''[x] Map Textures'''
 +
     '''[x] Gradients'''
 +
    '''[x] Junctions'''
 +
    '''[x] Signals'''
 +
    '''[x] Triggers'''
 +
    '''[x] Markers'''
 +
    '''[x] Trackside Labels'''
 +
    '''[x] Terrain Objects'''
 +
    '''[x] Industrial Names'''
 +
    '''[x] Named Objects'''
 +
    '''[x] Consists'''
  
==='''Play Sound Rule'''===
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Show/Hide Minimap Rule|Show/Hide Minimap Rule]]''' - shows the minimap window in Driver mode.
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Play Sound Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Plays a wav sound file.
 
Plays a wav sound file.
  
'''<kuid:-25:1045>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1229>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (earlier builds are available)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''Default HTML ''<Click>''''' - click to to enter Sound File Name
 
     '''Default HTML ''<Click>''''' - click to to enter Sound File Name
 
     '''HTML Assets ''<Click>''''' - click to select HTML asset
 
     '''HTML Assets ''<Click>''''' - click to select HTML asset
     '''Rule Completes ''<Click>''''' -  to select one of:-
+
     '''Rule Completes ''<Click>''''' -  <span style="background-color: black; color: white; font-weight: 700;"> to select one of:- </span>
 
       '''sound has just started'''
 
       '''sound has just started'''
 
       '''sound has finished playing'''
 
       '''sound has finished playing'''
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Display Video Rule|Display Video Rule]]''' - displays a page containing a video clip from a HTML asset in a browser window
+
*'''[[#Display Video Rule|Display Video Rule]]''' - displays a page containing a video clip from a HTML asset in a browser window
  
==='''Session Metadata Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Session Metadata Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Sets session metadata in the config file. Info can be read by other systems and displayed to the player.
 
Sets session metadata in the config file. Info can be read by other systems and displayed to the player.
  
'''<kuid:401543:2036>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:401543:2036>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 3.6 (TS12)'''
     '''Type ''<Click>''''' - click to select one of:-
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     '''Type ''<Click>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select one of:- </span>
 
       '''Simulation'''
 
       '''Simulation'''
 
       '''Challenge'''
 
       '''Challenge'''
 
     '''Length ''<value>''''' - to enter number of minutes, default is 30 minutes
 
     '''Length ''<value>''''' - to enter number of minutes, default is 30 minutes
     '''Difficulty ''<Click>''''' - click to select one of:-
+
     '''Difficulty ''<Click>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select one of:- </span>
 
       '''Normal''' - default
 
       '''Normal''' - default
 
       '''Tutorial'''
 
       '''Tutorial'''
Line 1,637: Line 3,624:
 
       '''Expert'''
 
       '''Expert'''
  
'''Note:''' Time is Trainz clock time, not real time
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Time is Trainz clock time, not real time
  
==='''Set Helper Icon Size Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Set Helper Icon Size Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Sets the size of helper icons such as the junction lever arrows.
 
Sets the size of helper icons such as the junction lever arrows.
  
'''<kuid:-25:791>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1271>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
   '''Junction Arrows Size ''<Click>''''' - to set scale ratio smaller than default, default is 100%
 
   '''Junction Arrows Size ''<Click>''''' - to set scale ratio smaller than default, default is 100%
  
==='''Set HTML Pages Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Set HTML Pages Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Instructs the Display HTML Pages rule to perform specific operations. This rule has been superseded by the '''Message Popup Rule'''
 
Instructs the Display HTML Pages rule to perform specific operations. This rule has been superseded by the '''Message Popup Rule'''
  
'''<kuid:-25:792>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:792>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
*'''Legacy Rule''' (replaced by '''Message Popup Rule''')
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''Operations to preform on the display HTML pages sequence browser'''
 
     '''Operations to preform on the display HTML pages sequence browser'''
     Select one of six option buttons:-
+
     <span style="background-color: black; color: white; font-weight: 700;"> Select one of six option buttons:- </span>
 
       '''( ) to instruct the sequence browser to ''<select>''''' - to choose page operations
 
       '''( ) to instruct the sequence browser to ''<select>''''' - to choose page operations
 
       '''( ) to instruct the sequence browser to open the page ''<select>''''' - enter the HTML page name
 
       '''( ) to instruct the sequence browser to open the page ''<select>''''' - enter the HTML page name
       '''( ) to set browser parameters ''<select>''''' - choose one of:-
+
       '''( ) to set browser parameters ''<select>''''' - <span style="background-color: black; color: white; font-weight: 700;"> choose one of:- </span>
 
           '''to Enable/Disable closing of the browser window by the user'''
 
           '''to Enable/Disable closing of the browser window by the user'''
 
           '''to Enable/Disable scrolling on the sequence browser window'''
 
           '''to Enable/Disable scrolling on the sequence browser window'''
 
           '''to Show/Hide the sequence browser window'''
 
           '''to Show/Hide the sequence browser window'''
 
       '''( ) Set the following flag for the page named ''<select>''''' - enter the HTML page name
 
       '''( ) Set the following flag for the page named ''<select>''''' - enter the HTML page name
           '''[Check Box] Hide/Close window on 'done' action'''
+
           '''[x] Hide/Close window on "done" action'''
           '''[Check Box] Window has no 'done' button'''
+
           '''[x] Window has no "done" button'''
           '''[Check Box] Disable scrolling(not implemented yet)'''
+
           '''[x] Disable scrolling (not implemented yet)'''
           '''[Check Box] Spare setting 1'''
+
           '''[x] Spare setting 1'''
           '''[Check Box] Spare setting 2'''
+
           '''[x] Spare setting 2'''
           '''[Check Box] Spare setting 3'''
+
           '''[x] Spare setting 3'''
           '''[Check Box] Spare setting 4'''
+
           '''[x] Spare setting 4'''
           '''[Check Box] Spare setting 5'''
+
           '''[x] Spare setting 5'''
 
       '''( ) Use the page ''<select>''''' (enter HTML page name) '''from the HTML asset ''<select>''''' (select HTML asset)
 
       '''( ) Use the page ''<select>''''' (enter HTML page name) '''from the HTML asset ''<select>''''' (select HTML asset)
 
       '''( ) Use the string table entry ''<select>''''' (enter Index) '''from the HTML asset ''<select>''''' (select HTML asset)
 
       '''( ) Use the string table entry ''<select>''''' (enter Index) '''from the HTML asset ''<select>''''' (select HTML asset)
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Display HTML Pages Rule|Display HTML Pages Rule]]''' - displays HTML pages in a browser window.
+
*'''[[#Display HTML Pages Rule|Display HTML Pages Rule]]''' - displays HTML pages in a browser window.
    '''[[#Message Popup Rule|Message Popup Rule]]''' - displays a pop-up browser window and waits for it to be closed.
+
*'''[[#Message Popup Rule|Message Popup Rule]]''' - displays a pop-up browser window and waits for it to be closed.
    '''[[#Timed Limited Display HTML Rule (SP2 and later)|Timed Limited Display HTML Rule (SP2 and later)]]''' - displays a HTML page in a browser window for a set time.
+
*'''[[#Timed Limited Display HTML Rule (SP2 and later)|Timed Limited Display HTML Rule (SP2 and later)]]''' - displays a HTML page in a browser window for a set time.
  
==='''Show/Hide Layer Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Set Subtitle Text Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
Shows or hides a layer from Driver.
+
Adds an onscreen subtitle to a session.
  
'''<kuid2:401543:1170:1>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
  
*'''Built-in'''
+
*'''<kuid2:401543:1187:2>'''
  
'''Properties:'''
+
*'''Built-in Rule'''
  '''''<visibility>''''' - select one of two options
+
      '''Show''' - select to make the layer visible
+
      '''Hide''' - select to make the layer invisible
+
  '''''<click here to set>''''' - enter name of layer. Name is case sensitive.
+
  
'''Known Bugs:'''
+
*'''Minimum Trainz Build: 4.5 (TANE SP2/SP3)'''
    Layers set to '''Hide''' when a game is saved will be '''Shown''' when the game is reloaded
+
  
'''Known Issues:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
    Rule will NOT check to see if the named layer exists or not
+
  
==='''Show/Hide Minimap Rule'''===
+
    '''Set the subtitle text to''' '''''<text>''''' - enter text to be displayed. Multiple text lines can be entered and displayed.
 +
    '''Display time in seconds:''' '''''&lt;<u>10.000000</u>&gt;''''' - enter the subtitle display time in seconds (10 seconds is the default).
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Variables can be inserted into the subtitle using '''$(variable_name)''' tokens e.g. '''$name''' where the variable '''name''' has been previously defined.
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Show/Hide HUD Panel Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Shows or hides a HUD panel.
  
Shows the minimap window in Driver.
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
  
'''<kuid:-25:794>'''
+
*'''<kuid:-25:1047>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''''<Show/Hide>'' the ''<click to select>'' HUD panel''' - select '''''Show''''' or '''''Hide''''' and then select the HUD panel
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
 +
*'''[[#Flash HUD Icon Rule|Flash HUD Icon Rule]]''' - flashes a HUD panel icon for a set duration.
 +
*'''[[#mc Display Custom HUD V2 Rule (SP2 and later)|mc Display Custom HUD V2 Rule (SP2 and later)]]''' - shows or hides a graphical HUD.
 +
*'''[[#Quick CustomHud Manager Rule (TRS19 and later)|Quick CustomHud Manager Rule (TRS19 and later)]]''' - creates custom HUDs that can be assigned to different drivers
 +
*'''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
 +
*'''[[#Wait for Click on HUD Icon Rule|Wait for Click on HUD Icon Rule]]''' - executes child rules when a HUD icon is clicked
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Show/Hide Minimap Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Shows the minimap window in Driver mode.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:794>'''
 +
 
 +
*'''Built-in Rule'''
 +
 
 +
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''''<Show/Hide>'' the driver Minimap Window''' - click to switch between '''Show''' and '''Hide'''.
 
     '''''<Show/Hide>'' the driver Minimap Window''' - click to switch between '''Show''' and '''Hide'''.
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Minimap Options Rule|Minimap Options Rule]]''' - sets the display options for the minimap.
+
*'''[[#Minimap Options Rule|Minimap Options Rule]]''' - sets the display options for the minimap.
  
==='''Show/Hide On-screen Help Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Show/Hide On-screen Help Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
Shows or hides On-screen help in Driver.
+
Shows or hides On-screen help in Driver mode.
  
'''<kuid:401543:2020>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:401543:2020>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 3.8 (TANE)'''
     '''On screen help (junction overlays, etc)''' - select one of three option buttons:-
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     '''On screen help (junction overlays, etc)''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of three option buttons:- </span>
 
       '''( ) Show
 
       '''( ) Show
 
       '''( ) Hide
 
       '''( ) Hide
 
       '''( ) Leave Unchanged
 
       '''( ) Leave Unchanged
     '''On Screen Vehicle Names:''' - - select one of three option buttons:-
+
     '''On Screen Vehicle Names:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of three option buttons:- </span>
 
       '''( ) Show
 
       '''( ) Show
 
       '''( ) Hide
 
       '''( ) Hide
 
       '''( ) Leave Unchanged
 
       '''( ) Leave Unchanged
  
==='''Timed Limited Display HTML Rule (SP2 and later)'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Timed Limited Display HTML Rule (SP2 and later)'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Displays an HTML browser window for a limited time.
 
Displays an HTML browser window for a limited time.
  
'''<kuid2:61392:2005:32>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:61392:2005:33>'''
  
 
*'''DLS Rule''' by '''pguy'''
 
*'''DLS Rule''' by '''pguy'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (earlier builds are available)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
   '''HTML Asset Name : ''<[Click to select HTML asset]>''''' - click to select an HTML asset from those installed
 
   '''HTML Asset Name : ''<[Click to select HTML asset]>''''' - click to select an HTML asset from those installed
 
   '''Page filename : ''<value>''''' - click to enter the filename of the HTML page in the selected HTML asset. The ''.html'' filename extension is optional.
 
   '''Page filename : ''<value>''''' - click to enter the filename of the HTML page in the selected HTML asset. The ''.html'' filename extension is optional.
Line 1,752: Line 3,840:
 
   '''Browser width (SessVar or position) : ''<value>''''' - enter a SessVar name or the width in pixels.
 
   '''Browser width (SessVar or position) : ''<value>''''' - enter a SessVar name or the width in pixels.
 
   '''Browser height (SessVar or position) : ''<value>''''' - enter a SessVar name or the browser height.
 
   '''Browser height (SessVar or position) : ''<value>''''' - enter a SessVar name or the browser height.
   '''[Check Box] ''<Alert is not reshowable on request/Alert is showable on request>''''' - check or click to allow or prevent the user viewing the page again.
+
   '''[x] ''<Alert is not reshowable on request/Alert is showable on request>''''' - check or click to allow or prevent the user viewing the page again.
  
'''Note:''' Seconds are Trainz clock time, not real time.
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Seconds are Trainz clock time, not real time.
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Close Message Popup Rule|Close Message Popup Rule]]''' - closes open message popups
+
*'''[[#Close Message Popup Rule|Close Message Popup Rule]]''' - closes open message popups
    '''[[#Display HTML Pages Rule|Display HTML Pages Rule]]''' - displays HTML pages in a browser window.
+
*'''[[#Display HTML Pages Rule|Display HTML Pages Rule]]''' - displays HTML pages in a browser window.
    '''[[#Message Popup Rule|Message Popup Rule]]''' - displays a pop-up browser window and waits for it to be closed.
+
*'''[[#Message Popup Rule|Message Popup Rule]]''' - displays a pop-up browser window and waits for it to be closed.
    '''[[#Set HTML Page Rule|Set HTML Page Rule]]''' - sets parameters for the '''[[#Display HTML Pages Rule|Display HTML Pages Rule]]'''
+
*'''[[#Set HTML Page Rule|Set HTML Page Rule]]''' - sets parameters for the '''Display HTML Pages Rule'''
  
==='''Wait on Waybill Screen/Main Screen Rule'''===
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Create a HTML Asset]]'''
  
Executes child rules when the Waybill window is opened or closed
+
<table width="100%" bgcolor=#ffff88>
 +
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Miscellaneous"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#Message|alt=Next Up|Next Up]]</td>
 +
<td width=75>[[file:NextDown.png|link=#Navigation|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''Miscellaneous Rules'''=
 +
Some of these rules have no user accessible functions but may be used by other rules. Other rules do not fit in any other category.</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''ConsistDataHandler Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
'''<kuid:-25:957>'''
+
Was used by the '''QuickDrive Rule''' to place consists onto a route. Now obsolete.
  
*'''Built-in Rule'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
  
*'''Parent Rule'''
+
*'''<kuid:401543:1180>'''
  
'''Properties:'''
+
*'''Base Rule'''
    '''[Check Box] Trigger rule once''' - check to trigger the rule once only
+
    '''Wait for the Waybill window to be ''<opened/closed>''''' - select either '''opened''' or '''closed'''.
+
  
'''[[#top|Back to Top]]'''
+
*'''Minimum Trainz Build: 2.9 (TS2009)'''
  
=='''Miscellaneous Rules'''==
+
*'''Obsolete Rule''' (function is now built into '''Trainz''')
  
Some of these rules have no user accessible functions but may be used by other rules. Others do not fit in any other category.
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 
+
==='''ConsistDataHandler Rule'''===
+
 
+
Was used by the '''QuickDrive Rule''' to place consists onto a route. Now obsolete.
+
  
'''<kuid:401543:1180>'''
 
 
*'''Base Rule'''
 
 
'''Properties:'''
 
 
     '''None'''
 
     '''None'''
  
==='''Custom Script Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Custom Script Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
No description
 
No description
  
'''<kuid:447264:1526>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:425>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
   '''None'''
 
   '''None'''
  
==='''Generic TreeNode Debug Window Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Generic TreeNode Debug Window Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
No description.
 
No description.
  
'''<kuid:30501:1042>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:30501:1042>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.9 (TS2009)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''None'''
 
     '''None'''
  
==='''Session Debug Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Session Debug Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes the first child if ''Debug'' mode is selected. Otherwise executes the second child rule.
 
Executes the first child if ''Debug'' mode is selected. Otherwise executes the second child rule.
  
'''<kuid:30501:100180>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:30501:100180>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
  
 
*'''Parent Rule'''  
 
*'''Parent Rule'''  
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''None'''
 
     '''None'''
  
'''Note:''' When a session starts with this rule enabled, the player will be given the choice of running the session in '''''Debug''''' or '''''Normal''''' mode.
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
    Selecting ''Debug'' will execute the first child rule. Selecting ''Normal'' will execute the second child rule.
+
:When a session starts with this rule enabled, the player will be given the choice of running the session in '''''Debug''''' or '''''Normal''''' mode. Selecting ''Debug'' will execute the first child rule. Selecting ''Normal'' will execute the second child rule.
  
'''[[#top|Back to Top]]'''
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Show/Hide Layer Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
=='''Navigation Rules'''==
+
Shows or hides a layer in Driver mode.
  
==='''Navigation Display Rule'''===
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
  
Creates a set of navigation points. Multiple sets can be created by adding additional copies of this rule. This rule creates the navigation set, it does not display it.
+
*'''<kuid2:401543:1170:1>'''
  
'''<kuid2:401543:1161:1>'''
+
*'''Built-in Rule'''
 +
 
 +
*'''Minimum Trainz Build: 3.6 (TS12)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
  '''''<visibility>''''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of two options:- </span>
 +
      '''Show''' - select to make the layer visible
 +
      '''Hide''' - select to make the layer invisible
 +
  '''''<click here to set>''''' - enter name of layer. Name is case sensitive.
 +
 
 +
[[file:BugMini.PNG|link=]] <span style="background-color: red; color: white; font-weight: 700;"> Known Bugs: </span>
 +
*In '''TANE''' layers set to '''Hide''' when a game is saved will be '''Shown''' when the saved game is reloaded
 +
*This bug has been fixed in '''TRS19'''
 +
 
 +
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
 +
:Rule will NOT check to see if the named layer exists or not
 +
 
 +
[[file:PageLink2.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Driver Commands:</span>
 +
*'''[[Driver_Commands_List#Layer_Control|Layer Control]]'''
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Layers#Layers in Driver Mode|How to Use Layers: Layers in Driver Mode]]
 +
<br>
 +
<table width="100%" bgcolor=#ffff88>
 +
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Navigation"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#Miscellaneous|alt=Next Up|Next Up]]</td>
 +
<td width=75>[[file:NextDown.png|link=#Portal|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''Navigation Rules'''=
 +
</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Check Trackside Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Executes child rules when a set train '''enters''', '''stops at''' or '''leaves''' a specified '''track object'''. Similar to the '''Trigger Check Rule''' but works with any track objects.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:122381:10011:6>'''
 +
 
 +
*'''DLS Rule''' by '''mizi'''
 +
 
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (earlier builds are available)
 +
 
 +
*'''Parent Rule'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''Target trackside object: - ''<click here to set>''''' - click to select a track object from the route:-
 +
    '''Run mode (wait for train to):''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of three option buttons:- </span>
 +
      '''( ) Enter'''
 +
      '''( ) Stop at'''
 +
      '''( ) Leave'''
 +
    '''Filter to trains containing:'''
 +
    '''''<Add new traincar>''''' - click to select a rail vehicle from the session list. Each car added will have a '''''<remove>''''' option
 +
    '''On matching conditions, run each child once, then''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of two option buttons:- </span>
 +
      '''( ) Complete and stop waiting''' - the rule will run only once
 +
      '''( ) Reset and wait for conditions to match again''' - the rule will run each time the conditions are met
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Directional Trigger Check Rule|Directional Trigger Check Rule]]''' - executes child rules when activated by a train moving in a set direction
 +
*'''[[#Trackside Check Rule|Trackside Check Rule]] ''' - executes child rules when a set train enters a junction, trigger or trackmark.
 +
*'''[[#Trigger Check Rule|Trigger Check Rule]]''' - executes child rules when activated by a train
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Directional Trigger Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Executes child rules when a set train enters a set trigger in a set direction. Adds direction to the '''Trigger Check Rule'''.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:532391:100003:1>'''
 +
 
 +
*'''DLS Rule''' by '''bobhahn'''
 +
 
 +
*'''Minimum Trainz Build: 2.9 (TS2009)'''
 +
 
 +
*'''Parent Rule'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''[x] Trigger only once '''
 +
    '''[x] Wait for child rules to complete even if no trains are present in rule trigger'''
 +
    '''[x] Only activate when the entering vehicle of the train is heading ''<select direction>'' into the trigger''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of two directions:- </span>
 +
      '''''forward'''''
 +
      '''''backward'''''
 +
    '''Triggers List'''
 +
      '''''<add trigger>''''' - select a trigger from the session list
 +
      '''''<delete trigger>''''' - delete a selected trigger from the rule
 +
    <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
      '''( ) click to accept all trains'''
 +
      '''( ) click to accept trains matching specific criteria'''
 +
          <span style="background-color: black; color: white; font-weight: 700;"> Selecting the second option will produce the following selection controls:- </span>
 +
          '''Specific vehicle''' - identify the specific vehicle(s) that will trigger the rule
 +
            '''''+''''' - click to add a ''specific'' vehicle from the session list
 +
            '''''x''''' - click to remove the ''specific'' vehicle from the rule
 +
          '''Vehicle types''''' - identify the ''type'' of vehicle(s) that will trigger the rule
 +
            '''''+''''' - click to add a ''type'' of vehicle from the session list
 +
            '''''x''''' - click to remove the ''type'' of vehicle from the rule
 +
          '''Drivers''''' - identify the ''driver(s)'' that will trigger the rule
 +
            '''''+''''' - click to add a ''driver'' from the session list
 +
            '''''x''''' - click to remove a ''driver'' from the rule
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
#This rule works best when used with the '''Directional Trigger''' track object available on the DLS.
 +
#The Directional Trigger, when installed, will appear as a ''Signal'' not as a ''Trackmark''.
 +
#Normal (non directional) triggers can be used with this rule but the rule will have no direction sensitivity apart from the ''forward'' and ''backward'' in the rule properties.
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Check Trackside Rule|Check Trackside Rule]] ''' - executes child rules when a set train enters any trackside object
 +
*'''[[#Trackside Check Rule|Trackside Check Rule]]''' - executes child rules when a set train enters a junction, trigger or trackmark
 +
*'''[[#Trigger Check Rule|Trigger Check Rule]]''' - executes child rules when a set train enters a set trigger (non-directional)
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Control Signals in Sessions#Application 2: Halt Before Clear|How to Control Signals in Sessions: Halt Before Clear]]'''
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
*'''[[How to Use Track Triggers]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Navigation Display Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Creates and displays a set of navigation points. Multiple sets can be created by adding additional copies of this rule.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:401543:1161:6>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.6 (TRS19)''' (the required version is built into each appliciable Trainz release)
     '''Unique set ID: ''<click here to set>''''' - enter a unique name for the navigation set. Name must be in lowercase and have no spaces.
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     '''Unique set ID: ''<click here to set>''''' - enter a unique name for the navigation set. <span style="background-color: red; color: white; font-weight: 700;"> Name must be in lowercase and have no spaces. </span>
 
     '''Train (optional): ''<click here to set>''''' - select a rolling stock asset from the session list shown.
 
     '''Train (optional): ''<click here to set>''''' - select a rolling stock asset from the session list shown.
     Select one of three option buttons:-
+
     <span style="background-color: black; color: white; font-weight: 700;"> Select one of three option buttons:- </span>
 
     '''( ) All points must be completed in sequence:'''
 
     '''( ) All points must be completed in sequence:'''
 
       - the first uncompleted navigation point will be shown and must be completed next.
 
       - the first uncompleted navigation point will be shown and must be completed next.
Line 1,856: Line 4,159:
 
       - all uncompleted navigation points will be shown.
 
       - all uncompleted navigation points will be shown.
 
       - you may complete them in any order.
 
       - you may complete them in any order.
   For each navigation point:
+
   <span style="background-color: black; color: white; font-weight: 700;"> For each navigation point: </span>
 
       '''''<Click here to set>''''' - select an item (trigger, trackmark, track object, rolling stock) from the session list to become the navigation point.
 
       '''''<Click here to set>''''' - select an item (trigger, trackmark, track object, rolling stock) from the session list to become the navigation point.
 
       '''''<Display text>''''' - enter a text message to display with the navigation point. You are limited to 25 characters.
 
       '''''<Display text>''''' - enter a text message to display with the navigation point. You are limited to 25 characters.
 
       '''Icon ''<icon list>''''' - select an icon for the navigation point.
 
       '''Icon ''<icon list>''''' - select an icon for the navigation point.
       '''''<Style>''''' - click to select one from three choices
+
       '''''<Style>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select one from three choices:- </span>
 
         '''''Automatic''''' - the navigation point will be completed as soon as the consist reaches the point.
 
         '''''Automatic''''' - the navigation point will be completed as soon as the consist reaches the point.
 
         '''''Manual''''' - the navigation point must be set as complete by using the '''Navigation point complete rule''' or the '''Navigation set clear rule'''.
 
         '''''Manual''''' - the navigation point must be set as complete by using the '''Navigation point complete rule''' or the '''Navigation set clear rule'''.
Line 1,866: Line 4,169:
 
         '''''Require Stop''''' - the navigation point will be completed when the consist comes to a complete stop on the point.
 
         '''''Require Stop''''' - the navigation point will be completed when the consist comes to a complete stop on the point.
  
'''Related Rules:'''
+
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
    '''[[#Navigation Set Hide/Show Rule|Navigation Set Hide/Show Rule]]''' - makes a navigation set visible/invisible.
+
:The Session Editor '''Copy and Paste''' procedure will '''not''' copy the parameter settings in this rule.
    '''[[#Navigation Set Check Rule|Navigation Set Check Rule]]''' - executes child rules if a navigation set has completed or is incomplete.
+
    '''[[#Navigation Set Clear Rule|Navigation Set Clear Rule]]''' - completes (terminates) a navigation set.
+
    '''[[#Navigation Point Complete Rule|Navigation Point Complete Rule]]''' - manually completes (terminates) a specific navigation point in a set.
+
    '''[[#Wait on Navigation Point Rule|Wait on Navigation Point Rule]]''' - executes child rules when a navigation point has been completed
+
  
==='''Navigation Point Complete Rule'''===
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Navigation Set Hide/Show Rule|Navigation Set Hide/Show Rule]]''' - makes a navigation set visible/invisible.
 +
*'''[[#Navigation Set Check Rule|Navigation Set Check Rule]]''' - executes child rules if a navigation set has completed or is incomplete.
 +
*'''[[#Navigation Set Clear Rule|Navigation Set Clear Rule]]''' - completes (terminates) a navigation set.
 +
*'''[[#Navigation Point Complete Rule|Navigation Point Complete Rule]]''' - manually completes (terminates) a specific navigation point in a set.
 +
*'''[[#Wait on Navigation Point Rule|Wait on Navigation Point Rule]]''' - executes child rules when a navigation point has been completed
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Navigation Point Rules]]'''
 +
*'''[[How to Use Navigation Point Rules (Applications)]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Navigation Point Complete Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Manually completes a navigation point in a set
 
Manually completes a navigation point in a set
  
'''<kuid:401543:1167>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:401543:1167>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 3.6 (TS12)''' (the required version is built into each appliciable Trainz release)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''Mark navigation point ''<click here to set>''''' - enter the navigation point number to be completed
 
     '''Mark navigation point ''<click here to set>''''' - enter the navigation point number to be completed
 
     '''complete in set ''<click here to set>''''' - enter the unique name for the navigation set created using the '''Navigation Display Rule'''.
 
     '''complete in set ''<click here to set>''''' - enter the unique name for the navigation set created using the '''Navigation Display Rule'''.
         Name must be in lowercase and have no spaces.
+
         <span style="background-color: red; color: white; font-weight: 700;"> Name must be in lowercase and have no spaces. </span>
 +
 
 +
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
 +
:The rule will '''NOT''' check to see if the named navigation set and point exists or not.
 +
 
 +
[[file:Notes.PNG|link=]] '''<u>Notes:</u>'''
 +
:The navigation set and point must first be created by the '''Navigation Display Rule'''
  
'''Known Issues:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    The rule will '''NOT''' check to see if the named navigation set and point exists or not.
+
*'''[[#Navigation Display Rule|Navigation Display Rule]]''' - creates a set of navigation points.
 +
*'''[[#Navigation Set Hide/Show Rule|Navigation Set Hide/Show Rule]]''' - makes a navigation set visible/invisible.
 +
*'''[[#Navigation Set Check Rule|Navigation Set Check Rule]]''' - executes child rules if a navigation set has completed or is incomplete.
 +
*'''[[#Navigation Set Clear Rule|Navigation Set Clear Rule]]''' - completes (terminates) a navigation set.
 +
*'''[[#Wait on Navigation Point Rule|Wait on Navigation Point Rule]]''' - executes child rules when a navigation point has been completed
  
'''Related Rules:'''
+
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
    '''[[#Navigation Display Rule|Navigation Display Rule]]''' - creates a set of navigation points.
+
*'''[[How to Use Navigation Point Rules]]'''
    '''[[#Navigation Set Hide/Show Rule|Navigation Set Hide/Show Rule]]''' - makes a navigation set visible/invisible.
+
*'''[[How to Use Navigation Point Rules (Applications)]]'''
    '''[[#Navigation Set Check Rule|Navigation Set Check Rule]]''' - executes child rules if a navigation set has completed or is incomplete.
+
    '''[[#Navigation Set Clear Rule|Navigation Set Clear Rule]]''' - completes (terminates) a navigation set.
+
    '''[[#Wait on Navigation Point Rule|Wait on Navigation Point Rule]]''' - executes child rules when a navigation point has been completed
+
  
==='''Navigation Set Check Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Navigation Set Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules if a navigation set created with the '''Navigation Display Rule''' is complete (or incomplete).
 
Executes child rules if a navigation set created with the '''Navigation Display Rule''' is complete (or incomplete).
  
'''<kuid:401543:1165>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:401543:1165>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
 +
 +
*'''Minimum Trainz Build: 3.6 (TS12)''' (the required version is built into each appliciable Trainz release)
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''Checks if navigation point set ''<name>'':''' - enter the unique name for the navigation set created using the '''Navigation Display Rule'''.
 
     '''Checks if navigation point set ''<name>'':''' - enter the unique name for the navigation set created using the '''Navigation Display Rule'''.
         Name must be in lowercase and have no spaces.
+
         <span style="background-color: red; color: white; font-weight: 700;"> Name must be in lowercase and have no spaces. </span>
 
     '''is ''<Complete/Incomplete>''''' - click to select one
 
     '''is ''<Complete/Incomplete>''''' - click to select one
  
'''Known Issues:'''
+
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
    The rule will '''NOT''' check to see if the named navigation set exists or not.
+
:The rule will '''NOT''' check to see if the named navigation set exists or not.
  
'''Related Rules:'''
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
    '''[[#Navigation Display Rule|Navigation Display Rule]]''' - creates a set of navigation points.
+
:The navigation set must first be created by the '''Navigation Display Rule'''
    '''[[#Navigation Set Hide/Show Rule|Navigation Set Hide/Show Rule]]''' - makes a navigation set visible/invisible.
+
    '''[[#Navigation Set Clear Rule|Navigation Set Clear Rule]]''' - completes (terminates) a navigation set.
+
    '''[[#Navigation Point Complete Rule|Navigation Point Complete Rule]]''' - manually completes (terminates) a specific navigation point in a set.
+
    '''[[#Wait on Navigation Point Rule|Wait on Navigation Point Rule]]''' - executes child rules when a navigation point has been completed
+
  
==='''Navigation Set Clear Rule'''===
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Navigation Display Rule|Navigation Display Rule]]''' - creates a set of navigation points.
 +
*'''[[#Navigation Set Hide/Show Rule|Navigation Set Hide/Show Rule]]''' - makes a navigation set visible/invisible.
 +
*'''[[#Navigation Set Clear Rule|Navigation Set Clear Rule]]''' - completes (terminates) a navigation set.
 +
*'''[[#Navigation Point Complete Rule|Navigation Point Complete Rule]]''' - manually completes (terminates) a specific navigation point in a set.
 +
*'''[[#Wait on Navigation Point Rule|Wait on Navigation Point Rule]]''' - executes child rules when a navigation point has been completed
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Navigation Point Rules]]'''
 +
*'''[[How to Use Navigation Point Rules (Applications)]]'''
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Navigation Set Clear Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Clears a navigation set removing any uncompleted navigation points
 
Clears a navigation set removing any uncompleted navigation points
  
'''<kuid:401543:1164>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:401543:1164>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 3.6 (TS12)''' (the required version is built into each appliciable Trainz release)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''''<Click here to set>''''' - enter the unique name for the navigation set created using the '''Navigation Display Rule'''.
 
     '''''<Click here to set>''''' - enter the unique name for the navigation set created using the '''Navigation Display Rule'''.
         Name must be in lowercase and have no spaces.
+
         <span style="background-color: red; color: white; font-weight: 700;"> Name must be in lowercase and have no spaces. </span>
  
'''Known Issues:'''
+
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
    The rule will '''NOT''' check to see if the named navigation set exists or not.
+
:The rule will '''NOT''' check to see if the named navigation set exists or not.
  
'''Related Rules:'''
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
    '''[[#Navigation Display Rule|Navigation Display Rule]]''' - creates a set of navigation points.
+
:The navigation set must first be created by the '''Navigation Display Rule'''
    '''[[#Navigation Set Hide/Show Rule|Navigation Set Hide/Show Rule]]''' - makes a navigation set visible/invisible.
+
    '''[[#Navigation Set Check Rule|Navigation Set Check Rule]]''' - executes child rules if a navigation set has completed or is incomplete.
+
    '''[[#Navigation Point Complete Rule|Navigation Point Complete Rule]]''' - manually completes (terminates) a specific navigation point in a set.
+
    '''[[#Wait on Navigation Point Rule|Wait on Navigation Point Rule]]''' - executes child rules when a navigation point has been completed
+
  
==='''Navigation Set Hide/Show Rule'''===
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Navigation Display Rule|Navigation Display Rule]]''' - creates a set of navigation points.
 +
*'''[[#Navigation Set Hide/Show Rule|Navigation Set Hide/Show Rule]]''' - makes a navigation set visible/invisible.
 +
*'''[[#Navigation Set Check Rule|Navigation Set Check Rule]]''' - executes child rules if a navigation set has completed or is incomplete.
 +
*'''[[#Navigation Point Complete Rule|Navigation Point Complete Rule]]''' - manually completes (terminates) a specific navigation point in a set.
 +
*'''[[#Wait on Navigation Point Rule|Wait on Navigation Point Rule]]''' - executes child rules when a navigation point has been completed
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Navigation Point Rules]]'''
 +
*'''[[How to Use Navigation Point Rules (Applications)]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Navigation Set Hide/Show Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Shows and hides navigation sets. You can have multiple sets visible and hidden at the same time.
 
Shows and hides navigation sets. You can have multiple sets visible and hidden at the same time.
  
'''<kuid:401543:1163> Base rule'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
  
'''Properties:'''
+
*'''<kuid:401543:1163>'''
    '''''<visibility>''''' - click to select one
+
      '''Hide''' - select to make the navigation set invisible
+
      '''Show''' - select to make the navigation set visible
+
    '''''<click here to set>''''' - enter the unique name for the navigation set created using the '''Navigation Display Rule'''.
+
        Name must be in lowercase and have no spaces.
+
  
'''Known Issues:'''
+
*'''Base rule'''
    The rule will '''NOT''' check to see if the named navigation set exists or not.
+
  
'''Related Rules:'''
+
*'''Minimum Trainz Build: 3.6 (TS12)''' (the required version is built into each appliciable Trainz release)
    '''[[#Navigation Display Rule|Navigation Display Rule]]''' - creates a set of navigation points.
+
    '''[[#Navigation Set Check Rule|Navigation Set Check Rule]]''' - executes child rules if a navigation set has completed or is incomplete.
+
    '''[[#Navigation Set Clear Rule|Navigation Set Clear Rule]]''' - completes (terminates) a navigation set.
+
    '''[[#Navigation Point Complete Rule|Navigation Point Complete Rule]]''' - manually completes (terminates) a specific navigation point in a set.
+
    '''[[#Wait on Navigation Point Rule|Wait on Navigation Point Rule]]''' - executes child rules when a navigation point has been completed
+
  
==='''Schedule Rule'''===
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
  
Allows a schedule of timed events to be applied to a train
+
    '''''<visibility>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select one:- </span>
 +
      '''Hide''' - select to make the navigation set invisible
 +
      '''Show''' - select to make the navigation set visible
 +
    '''''<click here to set>''''' - enter the unique name for the navigation set created using the '''Navigation Display Rule'''.
 +
        <span style="background-color: red; color: white; font-weight: 700;"> Name must be in lowercase and have no spaces. </span>
  
'''<kuid:-3:10185> Base Rule'''
+
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
 +
:The rule will '''NOT''' check to see if the named navigation set exists or not.
  
'''Properties:'''
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
    '''Insert track mark ''<select>''''' - select a track mark from the Session List
+
:The navigation set must first be created by the '''Navigation Display Rule'''
    '''Arrival and Departure Time ''<Select>''''' - set time
+
      '''''hh:mm:ss''''' - in hours/minutes/seconds
+
    '''Current Train ''<select>''''' - select from session list
+
    '''Insert destination ''<select>''''' - select from session list
+
  
'''Note:''' Times are Trainz clock times, not real time
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Navigation Display Rule|Navigation Display Rule]]''' - creates a set of navigation points.
 +
*'''[[#Navigation Set Check Rule|Navigation Set Check Rule]]''' - executes child rules if a navigation set has completed or is incomplete.
 +
*'''[[#Navigation Set Clear Rule|Navigation Set Clear Rule]]''' - completes (terminates) a navigation set.
 +
*'''[[#Navigation Point Complete Rule|Navigation Point Complete Rule]]''' - manually completes (terminates) a specific navigation point in a set.
 +
*'''[[#Wait on Navigation Point Rule|Wait on Navigation Point Rule]]''' - executes child rules when a navigation point has been completed
  
'''Related Rules:'''
+
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
    '''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
+
*'''[[How to Use Navigation Point Rules]]'''
    '''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
+
*'''[[How to Use Navigation Point Rules (Applications)]]'''
    '''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
+
    '''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
+
    '''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
+
  
==='''Trackside Check Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Trackside Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules when a set train enters a set trigger. Similar to the '''Trigger Check Rule''' but provides different options.
 
Executes child rules when a set train enters a set trigger. Similar to the '''Trigger Check Rule''' but provides different options.
  
'''<kuid2:46162:100207:1>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:46162:100207:1>'''
  
 
*'''DLS Rule''' by '''Josefpav'''
 
*'''DLS Rule''' by '''Josefpav'''
 +
 +
*'''Minimum Trainz Build: 3.7 (TS12 SP1)'''
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
     '''Applies to:''' - select one of three option buttons:-
+
 
 +
     '''Applies to:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of three option buttons:- </span>
 
       '''( ) Junction'''
 
       '''( ) Junction'''
 
       '''( ) Trigger'''
 
       '''( ) Trigger'''
 
       '''( ) Trackmark'''
 
       '''( ) Trackmark'''
     '''Trackside object name: ''<specify>''''' - select object name from session list
+
     '''Trackside object name: ''<specify>''''' - select object name from session list:-
     '''Wait for train to:''' - select one of three option buttons:-
+
     '''Wait for train to:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of three option buttons:- </span>
 
       '''( ) Enter'''
 
       '''( ) Enter'''
 
       '''( ) Stop at'''
 
       '''( ) Stop at'''
 
       '''( ) Leave'''
 
       '''( ) Leave'''
     '''[Check Box] Auto reset this rule''' - check to execute the rule continuously
+
     '''[x] Auto reset this rule''' - check to execute the rule continuously
 
     '''Applies to train containing:'''
 
     '''Applies to train containing:'''
 
     '''''<Add vehicle>''''' - click to select a rail vehicle from the session list
 
     '''''<Add vehicle>''''' - click to select a rail vehicle from the session list
 
     '''''del''''' - click to remove a selected vehicle from the rule
 
     '''''del''''' - click to remove a selected vehicle from the rule
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Trigger Check Rule|Trigger Check Rule]]''' - executes child rules when activated by a train
+
*'''[[#Check Trackside Rule|Check Trackside Rule]] ''' - executes child rules when a set train enters any trackside object
 +
*'''[[#Directional Trigger Check Rule|Directional Trigger Check Rule]]''' - executes child rules when activated by a train moving in a set direction.
 +
*'''[[#Trigger Check Rule|Trigger Check Rule]]''' - executes child rules when activated by a train
  
==='''Trigger Check Rule'''===
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Trigger Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules when a set train enters a set trigger. This rule replaces the older and less versatile '''Trigger Rule'''.
 
Executes child rules when a set train enters a set trigger. This rule replaces the older and less versatile '''Trigger Rule'''.
  
'''<kuid:-25:1071>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1296>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (earlier builds are available)
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
     '''[Check Box] Trigger only once '''
+
 
     '''[Check Box] Wait for child rules to complete even if no trains are present in rule trigger'''
+
     '''[x] Trigger only once '''
     '''[Check Box] Only activate when the entering vehicle of the train is heading ''<select direction>'' into the trigger''' - select one of two directions:-
+
     '''[x] Wait for child rules to complete even if no trains are present in rule trigger'''
 +
     '''[x] Only activate when the entering vehicle of the train is heading ''<select direction>'' into the trigger''' - select one of two directions:-
 
       '''''forward'''''
 
       '''''forward'''''
 
       '''''backward'''''
 
       '''''backward'''''
Line 2,035: Line 4,433:
 
       '''''<add trigger>''''' - select a trigger from the session list
 
       '''''<add trigger>''''' - select a trigger from the session list
 
       '''''<delete trigger>''''' - delete a selected trigger from the rule
 
       '''''<delete trigger>''''' - delete a selected trigger from the rule
     Select one of two option buttons:-
+
     <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 
       '''( ) click to accept all trains'''
 
       '''( ) click to accept all trains'''
 
       '''( ) click to accept trains matching specific criteria'''
 
       '''( ) click to accept trains matching specific criteria'''
           Selecting the second option will produce the following selection controls:-
+
           <span style="background-color: black; color: white; font-weight: 700;"> Selecting the second option will produce the following selection controls:- </span>
 
           '''Specific vehicle''' - identify the specific vehicle(s) that will trigger the rule
 
           '''Specific vehicle''' - identify the specific vehicle(s) that will trigger the rule
 
             '''''+''''' - click to add a ''specific'' vehicle from the session list
 
             '''''+''''' - click to add a ''specific'' vehicle from the session list
Line 2,049: Line 4,447:
 
             '''''x''''' - click to remove a ''driver'' from the rule
 
             '''''x''''' - click to remove a ''driver'' from the rule
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Trackside Check Rule|Trackside Check Rule]]''' - executes child rules when activated by a train. Provides different options to the '''Trigger Check Rule'''
+
*'''[[#Check Trackside Rule|Check Trackside Rule]] ''' - executes child rules when a set train enters any trackside object
 +
*'''[[#Directional Trigger Check Rule|Directional Trigger Check Rule]]''' - executes child rules when activated by a train moving in a set direction
 +
*'''[[#Trackside Check Rule|Trackside Check Rule]]''' - executes child rules when a train enters a junction, trigger ot trackmark
  
==='''Wait on Navigation Point Rule'''===
+
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Message Popup Rule (Applications)]]
 +
*'''[[How to Use Navigation Point Rules (Applications)#Application 3: Wait for Loading to be Completed|How to Use Navigation Point Rules (Applications): Wait for Loading to be Completed]]
 +
*'''[[How to Use Track Triggers]]'''
 +
*'''[[How to Use Variables in Sessions (Examples)]]
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Wait on Navigation Point Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules when a specific navigation point is completed
 
Executes child rules when a specific navigation point is completed
  
'''<kuid:401543:1168>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:401543:1168>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
 +
 +
*'''Minimum Trainz Build: 3.6 (TS12)'''
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''navigation point ''<click here to set>''''' - enter the number of the navigation point to be completed
 
     '''navigation point ''<click here to set>''''' - enter the number of the navigation point to be completed
 
     '''in set ''<click here to set>''''' - enter the unique name for the navigation set created using the '''Navigation Display Rule'''.
 
     '''in set ''<click here to set>''''' - enter the unique name for the navigation set created using the '''Navigation Display Rule'''.
       Name must be in lowercase and have no spaces.
+
       <span style="background-color: red; color: white; font-weight: 700;"> Name must be in lowercase and have no spaces. </span>
  
'''Known Issues:'''
+
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
    The rule will '''NOT''' check to see if the named navigation set and point exists or not.
+
:The rule will '''NOT''' check to see if the named navigation set and point exists or not.
  
'''Related Rules:'''
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
    '''[[#Navigation Display Rule|Navigation Display Rule]]''' - creates a set of navigation points.
+
:The navigation set and point must first be created by the '''Navigation Display Rule'''
    '''[[#Navigation Set Hide/Show Rule|Navigation Set Hide/Show Rule]]''' - makes a navigation set visible/invisible.
+
    '''[[#Navigation Set Check Rule|Navigation Set Check Rule]]''' - executes child rules if a navigation set is complete or incomplete.
+
    '''[[#Navigation Set Clear Rule|Navigation Set Clear Rule]]''' - completes (terminates) a navigation set.
+
    '''[[#Navigation Point Complete Rule|Navigation Point Complete Rule]]''' - manually completes (terminates) a specific navigation point in a set.
+
  
==='''Wait on Train Stop/Start Rule'''===
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Navigation Display Rule|Navigation Display Rule]]''' - creates a set of navigation points.
 +
*'''[[#Navigation Set Hide/Show Rule|Navigation Set Hide/Show Rule]]''' - makes a navigation set visible/invisible.
 +
*'''[[#Navigation Set Check Rule|Navigation Set Check Rule]]''' - executes child rules if a navigation set is complete or incomplete.
 +
*'''[[#Navigation Set Clear Rule|Navigation Set Clear Rule]]''' - completes (terminates) a navigation set.
 +
*'''[[#Navigation Point Complete Rule|Navigation Point Complete Rule]]''' - manually completes (terminates) a specific navigation point in a set.
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Message Popup Rule (Applications)#Application 2: Navigation Point and Train Stopped Event Message|How to Use Message Popup Rule (Applications): Navigation Point and Train Stopped Event Message]]
 +
*'''[[How to Use Navigation Point Rules (Applications)]]'''
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Navigation Point Rules]]'''
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Wait on Train Stop/Start Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules when a train stops or starts moving
 
Executes child rules when a train stops or starts moving
  
'''<kuid:-25:1069>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1261>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 4.6 (TRS19)''' (earlier builds are available)
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
     '''[Check Box] Trigger rule once'''  
+
 
     '''Wait for a train that matches the following criteria to ''<select>''''' - select one of:-
+
     '''[x] Trigger rule once'''  
 +
     '''Wait for a train that matches the following criteria to ''<select>''''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of:- </span>
 
       '''''start moving'''''
 
       '''''start moving'''''
 
       '''''stop moving'''''
 
       '''''stop moving'''''
     Select one of two option buttons:-
+
     <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 
       '''( ) click to accept all trains'''
 
       '''( ) click to accept all trains'''
 
       '''( ) click to accept trains matching specific criteria'''
 
       '''( ) click to accept trains matching specific criteria'''
           Selecting the second option will produce the following selection controls:-
+
           <span style="background-color: black; color: white; font-weight: 700;"> Selecting the second option will produce the following selection controls:- </span>
 
           '''Specific vehicle''' - identify the specific vehicle or set of specific vehicles that will trigger the rule
 
           '''Specific vehicle''' - identify the specific vehicle or set of specific vehicles that will trigger the rule
 
             '''''+''''' - click to add a ''specific'' vehicle from the session list
 
             '''''+''''' - click to add a ''specific'' vehicle from the session list
Line 2,106: Line 4,550:
 
             '''''x''''' - click to remove a ''driver'' from the rule
 
             '''''x''''' - click to remove a ''driver'' from the rule
  
'''[[#top|Back to Top]]'''
+
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Message Popup Rule (Applications)#Application 2: Navigation Point and Train Stopped Event Message|How to Use Message Popup Rule (Applications): Navigation Point and Train Stopped Event Message]]'''
  
=='''Session Sequence Rules'''==
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
<br>
 +
<table width="100%" bgcolor=#ffff88>
 +
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Portal"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#Navigation|alt=Next Up|Next Up]]</td>
 +
<td width=75>[[file:NextDown.png|link=#Resources|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''Portal Rules'''=
 +
</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Quick Portal Manager with Timetable Standard Edition (TANE SP4 and later)'''==
 +
</td>
 +
</tr>
 +
</table>
  
==='''Ordered List Rule'''===
+
Manages portals and adds flexible timetables.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:61392:5011:57>'''
 +
 
 +
*'''DLS Rule''' by '''pguy'''
 +
 
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (earlier builds are available)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''Target date is ''day-of-week'' ''&<nowiki />lt;dd/mm/yyyy&<nowiki />gt;''''' - ''day-of-week'' and ''date'' shown are for today's date. Click '''''dd/mm/yyyy''''' to change date.
 +
    '''''<Copy rule data to Clipboard>''''' - click to copy the currently entered data to a special clipboard area used by the rules created by '''pguy'''.
 +
      <span style="background-color: red; color: white; font-weight: 700;"> This is NOT the standard OS clipboard. </span>
 +
    '''''<Paste rule data from Clipboard>''''' - if data is held in the special clipboard area, then click to paste that data into the rule.
 +
      <span style="background-color: red; color: white; font-weight: 700;"> This is NOT the standard OS clipboard. </span>
 +
    '''[x] This rule is enabled''' - check to activate (enable) the rule.
 +
    '''[x] Avoid duplicated driver if possible''' - check to prevent the same driver being used again. If a driver name is reused, the rule will select a different driver name.
 +
    '''[x] Disable locomotives/vehicles enhanced mode''' - check to save vehicle properties when a train is removed by a portal.
 +
      These properties will be restored if the same train is emitted by a portal. <span style="background-color: black; color: white; font-weight: 700;"> If checked then a new command will appear:- </span>
 +
      '''''<for all vehicles/for only locomotives/for only tagged vehicles>''''' - click to select one.
 +
    '''Portal selected: ''<portal name> [...]''''' - select a portal to manage by clicking '''''<portal name>''''' or '''''[...]''''' and selecting a portal from the Session list.
 +
    '''Portal output link: ''<[no link]> [...]''''' - leave blank.
 +
    '''Portal input link: ''<[no link]> [...]''''' - leave blank unless you want to connect to a Global Input Queue. Click to select an input queue from the Session list.
 +
    '''Default schedule for input trains is named: ''<schedule>''''' - click to enter a schedule name.
 +
    '''Today's schedule: ''<Insert new schedule>''''' - click to enter a new schedule
 +
    <span style="background-color: black; color: white; font-weight: 700;"> For each schedule:- </span>
 +
      '''''<hh:mm>''''' - click to set the time when a train will be emitted from the portal. Times use the 24hr clock.
 +
      '''''<train name>''''' - click to enter the train name
 +
      '''''<mission code>''''' - click to enter the '''Mission Code''' created by the '''MissionCode Manager Rule (SP2 and later)'''.
 +
      '''''<schedule>''''' - click to enter the re-occurrence schedule in ''hh:mm'' (24hr clock) where, for example:
 +
          ''02:30'' means every 2 hrs 30 minutes,
 +
          ''00:00'' means once only,
 +
          ''24:00'' means once each day.
 +
      '''''<driver>''''' - click to select a driver name or select '''''auto-driver''''' to let the rule select a driver.
 +
          '''Current driver order bar is named ''<schedule>''''' - click to enter a name for the order (Driver Command) bar used in this schedule.
 +
      '''''<hud>''''' - click to select a HUD for this train. HUDs must be created using the '''Quick CustomHud Manager Rule (TRS19 and later)'''.
 +
      '''Driver Command Bar''' - enter driver commands for this train.
 +
      <span style="background-color: black; color: white; font-weight: 700;"> Choose one of two consist sets:- </span>
 +
      '''''<mono consist>'' consist for every day''' - if selected the same consist will be used each day.
 +
          '''''<no consist selected>''''' - click to select a consist from those saved in your install.
 +
      '''''<multi consists>''''' - if selected a different consist will be used each day.
 +
          <span style="background-color: black; color: white; font-weight: 700;"> For each day of the week:- </span>
 +
            '''Day-of-week ''<no consist selected>''''' - click to select a consist from those saved in your install.
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#MissionCode Manager Rule (SP2 and later)|MissionCode Manager Rule (SP2 and later)]]''' - creates and manages '''Mission Codes''' for '''Interlocking Tower''' paths
 +
*'''[[#Quick CustomHud Manager Rule (TRS19 and later)|Quick CustomHud Manager Rule (TRS19 and later)]]''' - create driver HUDs
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Quick_Portal_Manager</span>'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Un-Portal Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Provides portals to routes that have no portals by configuring track marks as portals.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:117746:1024:10>'''
 +
 
 +
*'''DLS Rule''' by '''sforget'''
 +
 
 +
*'''Minimum Trainz Build: 2.9 (TS2009)''' (earlier builds are available)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
    '''Maximum Trains on Route ''<value>''''' - enter number
 +
    '''Remove Excess Trains ''<YES/NO>''''' - select either. Warning: Selecting YES may result in undesirable effects
 +
    '''Remove Which Trains ''<Last created/Oldest>''''' - select either
 +
    '''''<u>New Un-Portal</u>''''' - click to select a new Un-portal from the session list of available track marks
 +
    <span style="background-color: black; color: white; font-weight: 700;"> For each Un-portal:- </span>
 +
      '''''<u>Track Mark Name</u>''''' - click on track mark name to configure the Un-Portal
 +
      Configuration Settings:-
 +
          '''Currently Editing Portal ''<u>Track Mark Name</u> <u>Remove</u>''''' - click on name to edit a different Un-Portal, click on '''Remove''' to delete this Un-Portal
 +
          '''Time between trains ''<value>'' minutes''' - enter number of minutes
 +
          '''Timer Fluctuation ''<value>'' minutes''' - enter how much randomness to add to the "Time between trains"
 +
          '''Direction Relative to TrackMark ''<Forwards/Backwards>''''' - select one to indicate the direction of travel compared to the direction of the Track Mark
 +
          '''Consume Trains ''<YES/NO>''''' - select one
 +
          '''Emit Immediately ''<YES/NO>''''' - select one
 +
          '''Order to Emit Trains ''<Random/Sequential>''''' - select one to control train order from entered list of consists
 +
          '''Wait for Triggered Event ''<YES/NO>''''' - select one
 +
          '''''<u>Add New Consist</u>''''' - click to add a consist to be emitted.
 +
            '''''+''''' - click to add a ''specific'' vehicle from the session list
 +
            '''''x''''' - click to remove the ''specific'' vehicle from the rule
 +
            '''''<u>Add driver to consist</u>''''' - click to select a driver from the session list
 +
            '''''<u>Add an existing saved consist</u>''''' - click to select a previously saved consist
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
#Minutes are Trainz clock time, not real time
 +
#If '''Consume Trains''' is set to '''YES''' then ALL trains that pass over that trackmark will be consumed so don't create the Un-Portal on a mainline
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Quick Portal Manager with Timetable Standard Edition (TANE SP4 and later)|Quick Portal Manager with Timetable Standard Edition (TANE SP4 and later)]]''' - provides additional features for portals
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Portals]]'''
 +
<br>
 +
<table width="100%" bgcolor=#ffff88>
 +
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Resources"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#Portal|alt=Next Up|Next Up]]</td>
 +
<td width=75>[[file:NextDown.png|link=#Schedule|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''Resources Rules'''=
 +
</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''ExTrainz Manager Rule - TANE SP2'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Provides information on consists, industries and products in both Surveyor and Driver modes. Once activated, the rule creates an additional short menu bar below the main menu bar.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:160293:10029>'''
 +
 
 +
*'''DLS Rule''' by '''trev999'''
 +
 
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''Diagnostic mode is ''<On/Off>''''' - click to select ''On'' or ''Off''. When set ''On'' diagnostic messages will be added to the Trainz Log file.
 +
    '''Turn on message overlay ''<Yes/No>''''' - click to select ''Yes'' or ''No''. When set to ''Yes'' the message overlay (lower left of screen) will be active.
 +
    '''Show rolling stock in Driver mode ''<Yes/No>''''' - click to select ''Yes'' or ''No''. When set to ''Yes'' rolling stock can be searched in Driver mode.
 +
    '''Search only rolling stock already in session ''<Yes/No>''''' - click to select ''Yes'' or ''No''. When set to ''Yes'' only those rolling stock assets
 +
      installed in the session can be searched.
 +
    '''Graphic colours: ''<When Red, the industry does not require service/When Green, the industry does not require service>''''' - click to switch
 +
      between the two colour options.
 +
    '''Industry page size: ''<value>''''' - enter the number of industries to be displayed in the Industry List window (maximum 250).
 +
    '''The following industries are excluded: ''<Add an industry to be excluded>''''' - name can be complete (e.g. "Coal Mine 2")
 +
      which will exclude that specific industry from the management list, or partial (e.g. "Coal") which will exclude all
 +
      industries with the word "Coal" in their names. Entries are not case sensitive.
 +
      <span style="background-color: black; color: white; font-weight: 700;"> Once industries have been excluded, additional commands will appear for each excluded industry:- </span>
 +
      '''''<delete> <industry name begins with/class name begins with> <name>''''' - click ''delete'' to remove this entry.
 +
          - click ''industry name begins with/class name begins with'' to select between the two (see ''notes'' below).
 +
          - click ''name'' to edit the name.
 +
 
 +
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
 +
:This rule is NOT compatible with all industries.
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
#Rolling stock installed in the current session only (see settings above) can be searched to find a match for any selected product from any industry. In Surveyor (and Driver if that setting is enabled) click on the '''View Products''' sub menu link and click on a product name in the '''Product Window''' to display a list of all compatible rolling stock for that product.
 +
#Alternatively, click on the '''View Industries''' sub menu link and then click on a ''Product Icon'' to open a '''Product Window''', then click on the '''''View Rolling Stock''''' link at the top of the window.
 +
#Industry class names are defined in the config.txt file of industry assets and are not normally accessible by users. However, you can exclude an entire group of related "industry asset classes" such as ''station'', ''coalingtower'', ''watertank'', etc regardless of their actual names provided those assets have been given that "class name" by their creators.
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Hide Product Overlays Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Hides the commodity or product bar graphs that appear on active industries
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:400048:100970>'''
 +
 
 +
*'''DLS Rule''' by '''callavsg'''
 +
 
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
  '''None'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Multiple Resource Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Executes child rules if industries or vehicles reach set commodity levels. This rule replaces the older '''Resource Check Rule'''
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:656>'''
 +
 
 +
*'''Built-in Rule'''
 +
 
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (earlier builds are available)
 +
 
 +
*'''Parent Rule'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''<Product Level>''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select a product test from two choices:- </span>
 +
      '''''Reach/Exceed''''' - sets an upper limit for the resources being monitored.
 +
          For example: the rule will be triggered if the quantity of coal in a coal loader stockpile or a coal wagon reaches or exceeds a specified level.
 +
          The initial level in the object must be below the set upper limit.
 +
      '''''Fall below''''' - sets a lower limit for the resources being monitored.
 +
          For example: the rule will be triggered if the quantity of coal in a coal loader stockpile or a coal wagon falls below a specified level.
 +
          The initial level in the object must be above the set lower limit.
 +
          To test when a resource level reaches zero (i.e. is empty) set the lower limit to a very low value but not zero as the level can never fall below zero.
 +
    '''''<value>''''' - enter required quantity value
 +
    '''''<select>''''' - select a product from session list of products
 +
    '''''<Add object>''''' - click to select a source or target object. Multiple objects and their queues can be added to the rule.
 +
      ALL the entered products must reach/exceed or fall below the specified value for the rule to be triggered.
 +
      <span style="background-color: black; color: white; font-weight: 700;"> For each object:- </span>
 +
          '''''<Object>''''' - click to select session active industry or product enabled rail vehicle
 +
          '''''<Queue>''''' - select product queue (there may be only one available)
 +
          '''''<Remove>''''' - removes the object and its product queue from the rule
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:This rule only checks for ''changing'' commodity levels during loading and unloading operations. It cannot be used to test, for example, if a vehicle is ''full'' or ''empty''.
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Resource Check Rule|Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
 +
*'''[[#Resource Verify Rule (fixed)|Resource Verify Rule (fixed)]]''' - executes child rules when a set resource (commodity) level is reached
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Navigation Point Rules (Applications)#Application 3: Wait for Loading to be Completed|How to Use Navigation Point Rules (Applications): Wait for Loading to be Completed]]'''
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Resource Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Executes child rules if a selected industry or vehicle reaches a set commodity level. This rule has been superseded by the '''Multiple Resource Check Rule'''
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1067>'''
 +
 
 +
*'''Built-in Rule'''
 +
 
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (earlier builds are available)
 +
 
 +
*'''Legacy Rule''' (replaced by '''Multiple Resource Check Rule''')
 +
 
 +
*'''Parent Rule'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
      '''( ) Watch industry queue'''
 +
          '''Target Object ''<select>''''' - select an industry from the session list
 +
          '''Queue ''<select>''''' - select a product queue from the selected industry
 +
          '''Product ''<select>''''' - select a product from the selected queue
 +
          '''Amount ''<value>''''' - enter a quantity
 +
          <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
            '''( ) Complete when designated queue equals or exceeds required amount'''
 +
            '''( ) Complete when designated queue falls below required amount'''
 +
      '''( ) Watch vehicle'''
 +
          '''Target Object ''<select>''''' - select a rolling stock asset from the session list
 +
          '''Queue ''<select>''''' - select a product queue from the selected rolling stock
 +
          '''Product ''<select>''''' - select a product from the selected queue
 +
          '''Amount ''<value>''''' - enter a quantity
 +
          <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
            '''( ) Complete when designated queue equals or exceeds required amount'''
 +
            '''( ) Complete when designated queue falls below required amount'''
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:This rule only checks for ''changing'' commodity levels during loading and unloading operations. It cannot be used to test, for example, if a vehicle is ''full'' or ''empty''.
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Multiple Resource Check Rule|Multiple Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
 +
*'''[[#Resource Verify Rule (fixed)|Resource Verify Rule (fixed)]]''' - executes child rules when a set resource (commodity) level is reached
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Resource_Check_Rule</span>'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Resource Verify Rule (fixed)'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Executes child rules if a selected industry or vehicle reaches a set commodity level. The rule resets when all child rules have completed.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:160293:10060>'''
 +
 
 +
*'''DLS Rule''' by '''trev999
 +
 
 +
*'''Minimum Trainz Build: 3.5 (TS12)'''
 +
 
 +
*'''Parent Rule'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
    '''( ) Watch industry queue'''
 +
      '''Target object ''<click to select>''''' - click to select an industry from the session list.
 +
      '''Product ''<click to select>''''' - click to select an industry product.
 +
      '''Amount ''<value>''''' - enter a quantity for the selected product.
 +
      <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
      '''( ) Complete when designated queue equals or exceeds designated amount'''
 +
      '''( ) Complete when designated queue falls below designated amount'''
 +
    '''( ) Watch vehicle queue'''
 +
      '''Target object ''<click to select>''''' - click to select a rolling stock vehicle from the session list.
 +
      '''Product ''<click to select>''''' - click to select a commodity product.
 +
      '''Amount ''<value>''''' - enter a quantity for the selected product.
 +
      <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
      '''( ) Complete when designated queue equals or exceeds designated amount'''
 +
      '''( ) Complete when designated queue falls below designated amount'''
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
#This rule will only monitor a single commodity in a single industry or vehicle.
 +
#This rule only checks for ''changing'' commodity levels during loading and unloading operations. It cannot be used to test, for example, if a vehicle is ''full'' or ''empty''.
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Multiple Resource Check Rule|Multiple Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
 +
*'''[[#Resource Check Rule|Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
<br>
 +
<table width="100%" bgcolor=#ffff88>
 +
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Schedule"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#Resources|alt=Next Up|Next Up]]</td>
 +
<td width=75>[[file:NextDown.png|link=#Session|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''Schedule Rules'''=
 +
</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Driver Command Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Executes child rules if the driver commands match a set list.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:447>'''
 +
 
 +
*'''Built-in Rule'''
 +
 
 +
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
*'''Parent Rule'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
  '''[x] Trigger rule once''' - check to allow the rule to execute only once
 +
  '''Driver character to watch the command list of ''<select>''' - select a driver name from the Session List''
 +
  '''Wait for driver character to have a command list that matches this:'''
 +
    '''''<add driver command>''''' - add a driver command from the session list. More commands can be added. Commands can be deleted.
 +
    '''''<add all>''''' - adds ALL driver commands in the session list. Individual commands can be removed.
 +
    '''''<delete all>''''' - deletes all entered driver commands from the session rule
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
 +
*'''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
 +
*'''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
 +
*'''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
 +
*'''[[#ScheduleAtTrackMark Rule|ScheduleAtTrackMark Rule]]''' - issues set of driver commands at a trackmark or trigger
 +
*'''[[#Schedule Library Rule|Schedule Library Rule]]''' - creates a library of driver schedules (commands)
 +
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Driver_Command_Rule</span>'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Driver Command Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Specifies which commands will be available for the drivers
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-3:10057>'''
 +
 
 +
*'''Base Rule'''
 +
 
 +
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
:
 +
    <span style="background-color: black; color: white; font-weight: 700;"> For each installed Driver Command:- </span>
 +
    '''[x] ''Name of Driver Command'' and ''Description (if available)''''' - check to make that command available to the drivers
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Some Driver Commands that have been checked will not appear in the Command Lists for drivers if there is no target for their action. For example:
 +
::The ''Wait For Trigger'' command will not be available to any drivers if there are no triggers set.
 +
::The ''Call At'' command will not be available to any drivers if there are no industry active assets or passenger enabled stations.
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
 +
*'''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
 +
*'''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
 +
*'''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
 +
*'''[[#ScheduleAtTrackMark Rule|ScheduleAtTrackMark Rule]]''' - issues set of driver commands at a trackmark or trigger
 +
*'''[[#Schedule Library Rule|Schedule Library Rule]]''' - creates a library of driver schedules (commands)
 +
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Driver Setup Rule#Driver Command Rule|How to Use Driver Command Rule]]'''
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[Driver_Commands_List|Driver Commands List]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Driver Schedule Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Sets up a list of basic scheduled commands
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:82445:90001:9>''' by '''transiberiano'''
 +
 
 +
*'''Built-in Rule'''
 +
 
 +
*'''Minimum Trainz Build: 2.5 (TRS2006)''' (earlier builds are available)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 +
    '''Driver Schedule Assigned to ''name of driver <icon>''''' - click '''icon''' to select a driver from those assigned in the '''Driver Setup Rule'''
 +
    '''Next commands, will be executed''' 
 +
      '''''>>''''' - click to enter driver commands from those specified in the '''Driver Command Rule'''
 +
    '''Style:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of four option buttons:- </span>
 +
      '''( ) Classic style: If there is a schedule do not emit a new schedule''' - any currently assigned set of driver commands will not be replaced
 +
      '''( ) Killer style: If there is a schedule clean it and emit a new one''' - replace any currently assigned driver commands with the new commands
 +
      '''( ) Cooperative style: If there is a schedule append the new one''' - add the new driver commands to the end of any existing commands
 +
      '''( ) Active style: Emit a new schedule, only if already a schedule running''' - only add the new commands if commands are currently running
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
 +
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
 +
*'''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
 +
*'''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
 +
*'''[[#ScheduleAtTrackMark Rule|ScheduleAtTrackMark Rule]]''' - issues set of driver commands at a trackmark or trigger
 +
*'''[[#Schedule Library Rule|Schedule Library Rule]]''' - creates a library of driver schedules (commands)
 +
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Variables in Sessions (Examples)#Example 2: Event Counter and Message Selection|How to Use Variables in Sessions (Examples): Event Counter and Message Selection]]
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Driver Setup Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Creates the list of drivers for this session and assigns them their orders
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-16:2025>'''
 +
 
 +
*'''Base Rule'''
 +
 
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)''' (the correct version is built into each appliciable Trainz release)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''''<driver icon>''''' - click to select a new driver from the list of installed and built in drivers
 +
    '''''<loco>''''' - click to select a new locomotive from the session list and assign it to this driver. Locos displayed in red have not been found in the session list
 +
    '''''<driver name>''''' - click to enter a new name for the selected driver
 +
    '''''<driver mode>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select one of:- </span>
 +
      '''''Autodetect''''' - the program will detect the driver mode to be used. For example, if driver commands have been entered for this driver
 +
          then the '''AI driver''' mode will be selected
 +
      '''''First Human Player''''' - the driver will be assigned to the user or multiplayer who accesses her/him first
 +
      '''''AI driver''''' - the AI will be given control even if no commands are present
 +
      '''''Multiplayer Driver''''' - the driver will be assigned to a multiplayer user
 +
    '''''<remove>''''' - this driver will be removed from the rule
 +
    '''''>>''''' - click to enter driver commands from those specified in the '''Driver Command Rule'''
 +
    <span style="background-color: red; color: white; font-weight: 700;"> Scroll down to the bottom of the list of entered drivers for more options:- </span>
 +
  '''''<Add another driver>''''' - click to add another driver
 +
  '''[x] Remove all existing Drivers first''' - <span style="background-color: red; color: white; font-weight: 700;"> see Known Issues below </span>
 +
  '''[x] Generate new Drivers for empty Trains''' - when checked all newly added locos will automatically be given drivers
 +
 
 +
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
 +
#The '''Remove all existing Drivers first''' option does not appear to work in '''TANE''' (but works in '''TRS19''' and later)
 +
#Adding a large number of drivers to a session can cause ''Timeout'' errors. One known workaround is to split the drivers between two copies of the '''Driver Setup Rule''' and make the second copy a child of a '''Wait Rule'''. For more details see the Wiki '''[[How to Use Driver Setup Rule]]'''. This issue has been reported as '''FIXED''' in '''TRS19 SP1''' and '''Trainz Plus'''
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:The driver at the top of the list will have the camera focus when the Session starts. There is no way to move a driver up the list order except by removing the higher drivers
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
 +
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
 +
*'''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
 +
*'''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
 +
*'''[[#ScheduleAtTrackMark Rule|ScheduleAtTrackMark Rule]]''' - issues set of driver commands at a trackmark or trigger
 +
*'''[[#Schedule Library Rule|Schedule Library Rule]]''' - creates a library of driver schedules (commands)
 +
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Driver Setup Rule]]'''
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[Driver_Commands_List|Driver Commands List]]'''
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Driver_Setup_Rule</span>'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Enable/Disable Driver Commands Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Enable/Disable specific driver commands on certain drivers. Multiple copies of the rule can be used to give different drivers or consists different command lists
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:480>'''
 +
 
 +
*'''Built-in Rule'''
 +
 
 +
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''<Enable/Disable>'' the following driver commands ...''' - click to select '''Enable''' or '''Disable'''
 +
    <span style="background-color: black; color: white; font-weight: 700;"> For each driver command:- </span>
 +
    '''[x] ''command name''''' - check to enable or disable
 +
    '''[x] ''command name''''' - check to enable or disable
 +
    '''[x] ''command name''''' - check to enable or disable
 +
    etc
 +
    <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
      '''( ) click to accept all trains'''
 +
      '''( ) click to accept trains matching specific criteria'''
 +
          <span style="background-color: black; color: white; font-weight: 700;"> Selecting the second option will produce the following selection controls:- </span>
 +
          '''Specific vehicle''' - identify the specific vehicle or set of specific vehicles that will trigger the rule
 +
            '''''+''''' - click to add a ''specific'' vehicle from the session list
 +
            '''''x''''' - click to remove the ''specific'' vehicle from the rule
 +
          '''Vehicle types''''' - identify the ''type'' of vehicle or a set of vehicle ''types'' that will trigger the rule
 +
            '''''+''''' - click to add a ''type'' of vehicle from the session list
 +
            '''''x''''' - click to remove the ''type'' of vehicle from the rule
 +
          '''Drivers''''' - identify the ''drivers'' that will trigger the rule
 +
            '''''+''''' - click to add a ''driver'' from the session list
 +
            '''''x''''' - click to remove a ''driver'' from the rule
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
 +
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
 +
*'''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
 +
*'''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
 +
*'''[[#ScheduleAtTrackMark Rule|ScheduleAtTrackMark Rule]]''' - issues set of driver commands at a trackmark or trigger
 +
*'''[[#Schedule Library Rule|Schedule Library Rule]]''' - creates a library of driver schedules (commands)
 +
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Enable/Disable_Driver_Commands_Rule</span>'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''ScheduleAtTrackMark Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Allows a set of driver commands to be given to a train when it reaches a trackmark or trigger.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:61392:2001:6>'''
 +
 
 +
*'''DLS Rule''' by '''pguy'''
 +
 
 +
*'''Minimum Trainz Build: 3.8 (TANE)''' (earlier builds are available)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''''<Select trackmark>'' - ''<Select trigger>''''' - click one to select a trackmark from the Session list or a trigger from the Session list
 +
    '''Schedule will be fired ''<in both directions/in trackside forward direction/in trackside backward direction>''''' - click to select one. Only available if '''trackmark''' has been selected
 +
    '''This rule will be applied ''<all along the session>''''' - click to enter the number of times to trigger the rule. 0 = everytime (all along the session)
 +
    '''Enter driver commands to schedule when train is at trackside'''
 +
      '''''>>''''' - click to enter driver commands from those specified in the '''Driver Command Rule'''
 +
    <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
 +
      '''( ) new schedule will replace current driver command''' - select to delete any current command list and replace it with the command list above
 +
      '''( ) new schedule will be appended to current driver commands''' - select to add the command list above above to the current driver command list
 +
    '''''<add a new trackside entry>''''' - click to add a new '''ScheduleAtTrackMark''' entry below
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
 +
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
 +
*'''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
 +
*'''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
 +
*'''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
 +
*'''[[#Schedule Library Rule|Schedule Library Rule]]''' - creates a library of driver schedules (commands)
 +
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Schedule Library Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Creates a library of driver schedules (driver command lists) that can be given to drivers during the creation or running of a session
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:192081:12:5>'''
 +
 
 +
*'''Built-in Rule''' by '''brummfondel'''
 +
 
 +
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
  '''''<add schedule>''''' | '''''<add group>'''''
 +
      <span style="background-color: black; color: white; font-weight: 700;"> To add <u>individual schedules</u> click <add schedule> then:- </span>
 +
        '''''<library Entry Name>''''' - enter a unique name for the schedule
 +
          '''''<library Entry Name>''''' - click to edit name
 +
          '''''<remove>''''' - click to delete this schedule from the list
 +
          '''''<copy>''''' - click to add a copy this schedule to the current group
 +
          '''''<move to group>''''' - click to move this schedule to a schedule group
 +
          In the driver command bar:-
 +
              '''''>>''''' - click to enter driver commands from those specified in the '''Driver Command Rule'''
 +
      <span style="background-color: black; color: white; font-weight: 700;"> To add <u>groups of schedules</u> click <add group> then:- </span>
 +
        '''''<Group Name>''''' - enter a unique name for the group
 +
            '''-''' - click to close the group list
 +
            '''+''' - click to open the group list
 +
            '''''<Group Name>''''' - click to edit name
 +
            '''''<remove>''''' - click to delete this group from the schedule list
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
#Create the library schedules in this rule first.
 +
#In '''Surveyor''' (using the '''Driver Setup Rule''') or '''Driver''' (directly in a driver command bar) add the Driver Command '''Copy Commands From''' and select the command schedule to be added or appended. The driver command '''Copy Commands From''' must be enabled in the '''Driver Command Rule'''.
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
 +
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
 +
*'''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
 +
*'''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
 +
*'''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
 +
*'''[[#ScheduleAtTrackMark Rule|ScheduleAtTrackMark Rule]]''' - issues set of driver commands at a trackmark or trigger
 +
*'''[[#Schedule Rule|Schedule Rule]]''' - applies a schedule of timed events to a train
 +
 
 +
[[file:PageLink4.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Dependent Driver Commands</span>
 +
:'''The rule must be added to the Session for the following Driver Command to work'''
 +
*'''[[Driver Commands List#Copy Commands From|Copy Commands From]]'''
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How_to_Use_Variables_in_Sessions_(Examples)#Example_2:_Event_Counter_and_Message_Selection|SPAD Event Counter]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Schedule Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Allows a schedule of timed events to be applied to a train
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-3:10185>'''
 +
 
 +
*'''Base Rule'''
 +
 
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''Insert track mark ''<select>''''' - select a track mark from the Session List
 +
    '''Arrival and Departure Time ''<Select>''''' - set time
 +
      '''''hh:mm:ss''''' - in hours/minutes/seconds
 +
    '''Current Train ''<select>''''' - select from session list
 +
    '''Insert destination ''<select>''''' - select from session list
 +
 
 +
[[file:BugMini.PNG|link=]] <span style="background-color: red; color: white; font-weight: 700;"> Known Bugs: </span>
 +
:There are reports that this rule does not work correctly particularly if a train arrives late or early.
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Times are Trainz clock times, not real time
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
 +
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
 +
*'''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
 +
*'''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
 +
*'''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
 +
*'''[[#ScheduleAtTrackMark Rule|ScheduleAtTrackMark Rule]]''' - issues set of driver commands at a trackmark or trigger
 +
*'''[[#Schedule Library Rule|Schedule Library Rule]]''' - creates a library of driver schedules (commands)
 +
 
 +
[[file:WWWLinks.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Other Links:</span>
 +
*'''<span class="plainlinks">http://www.auran.com/games/gamefiles/trainz/tutorial1.html</span>'''
 +
<br>
 +
<table width="100%" bgcolor=#ffff88>
 +
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Session"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#Schedule|alt=Next Up|Next Up]]</td>
 +
<td width=75>[[file:NextDown.png|link=#Speed|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''Session Sequence Rules'''=
 +
</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Ordered List Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules in order once this rule starts
 
Executes child rules in order once this rule starts
  
'''<kuid:-25:171>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:171>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 3.6 (TS12)''' (earlier builds are available)
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
  Select one of two option buttons:-
+
  '''( ) This process will repeat ''<value>'' time(s)''' - enter the number of times this rule is to be repeated
+
  '''( ) This process will repeat forever'''
+
  
'''Known Issues:'''
+
    <span style="background-color: black; color: white; font-weight: 700;"> Select one of two option buttons:- </span>
    Some child rules will force a "wait" until certain conditions have been met (e.g. a mouse click or a set time has passed).
+
      '''( ) This process will repeat ''<value>'' time(s)''' - enter the number of times this rule is to be repeated
    These rules will delay the completion of any following child rules in the '''Ordered List Rule'''.
+
      '''( ) This process will repeat forever'''
  
'''Related Rules:'''
+
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
    '''[[#Progressive List Rule|Progressive List Rule]]''' - executes the first child rule on the first run, the second child on the second run, etc
+
:Some child rules will force a "wait" until certain conditions have been met (e.g. a mouse click or a set time has passed). These rules will delay the completion of any following child rules in the '''Ordered List Rule'''. If possible, place these rules last in the Ordered List.
    '''[[#Random List Rule|Random List Rule]]''' - executes ONE randomly selected child rule
+
::For example: The '''Message Popup Rule''' will wait until it is closed before allowing the next child rule to be executed.
    '''[[#Reset List Rule|Reset List Rule]]''' - executes all child rules continuously
+
    '''[[#Simultaneous List Rule|Simultaneous List Rule]]''' - executes all child rules simultaneously
+
  
==='''Progressive List Rule'''===
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#Progressive List Rule|Progressive List Rule]]''' - executes the first child rule on the first run, the second child on the second run, etc
 +
*'''[[#Random List Rule|Random List Rule]]''' - executes ONE randomly selected child rule
 +
*'''[[#Reset List Rule|Reset List Rule]]''' - executes all child rules continuously
 +
*'''[[#Simultaneous List Rule|Simultaneous List Rule]]''' - executes all child rules simultaneously
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Ordered_List</span>'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Progressive List Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes the first child rule on the first run, the second child on the second run, the third child on the third run, etc.
 
Executes the first child rule on the first run, the second child on the second run, the third child on the third run, etc.
  
'''<kuid:-25:754>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:754>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
   '''After last child has been executed ...'''
 
   '''After last child has been executed ...'''
   '''''<successive runs will do nothing/the first child is chosen again>''''' - click to select one
+
   '''''<successive runs will do nothing/the last child will be repeated/the first child is chosen again>''''' - click to select one
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Ordered List Rule|Ordered List Rule]]''' - executes child rules in order
+
*'''[[#Ordered List Rule|Ordered List Rule]]''' - executes child rules in order
    '''[[#Random List Rule|Random List Rule]]''' - executes ONE randomly selected child rule
+
*'''[[#Random List Rule|Random List Rule]]''' - executes ONE randomly selected child rule
    '''[[#Reset List Rule|Reset List Rule]]''' - executes all child rules continuously
+
*'''[[#Reset List Rule|Reset List Rule]]''' - executes all child rules continuously
    '''[[#Simultaneous List Rule|Simultaneous List Rule]]''' - executes all child rules simultaneously
+
*'''[[#Simultaneous List Rule|Simultaneous List Rule]]''' - executes all child rules simultaneously
  
==='''Random List Rule'''===
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Progressive_List</span>'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
 
 +
=='''Random List Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes ONE randomly selected child rule once only. The rule will not repeat to randomly select another child rule
 
Executes ONE randomly selected child rule once only. The rule will not repeat to randomly select another child rule
  
'''<kuid:-25:758>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:758>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''None'''
 
     '''None'''
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Ordered List Rule|Ordered List Rule]]''' - executes child rules in order
+
*'''[[#Ordered List Rule|Ordered List Rule]]''' - executes child rules in order
    '''[[#Progressive List Rule|Progressive List Rule]]''' - executes the first child rule on the first run, the second child rule on the second run, etc
+
*'''[[#Progressive List Rule|Progressive List Rule]]''' - executes the first child rule on the first run, the second child rule on the second run, etc
    '''[[#Reset List Rule|Reset List Rule]]''' - executes all child rules continuously
+
*'''[[#Reset List Rule|Reset List Rule]]''' - executes all child rules continuously
    '''[[#Simultaneous List Rule|Simultaneous List Rule]]''' - executes all child rules simultaneously
+
*'''[[#Simultaneous List Rule|Simultaneous List Rule]]''' - executes all child rules simultaneously
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Random_List</span>'''
  
==='''Reset List Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Reset List Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes ALL child rules continuously in an ongoing infinite cycle
 
Executes ALL child rules continuously in an ongoing infinite cycle
  
'''<kuid:-25:762>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1263>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''None'''
 
     '''None'''
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Ordered List Rule|Ordered List Rule]]''' - executes child rules in order
+
*'''[[#Ordered List Rule|Ordered List Rule]]''' - executes child rules in order
    '''[[#Progressive List Rule|Progressive List Rule]]''' - executes the first child rule on the first run, the second child rule on the second run, etc
+
*'''[[#Progressive List Rule|Progressive List Rule]]''' - executes the first child rule on the first run, the second child rule on the second run, etc
    '''[[#Random List Rule|Random List Rule]]''' - executes ONE randomly selected child rule
+
*'''[[#Random List Rule|Random List Rule]]''' - executes ONE randomly selected child rule
    '''[[#Simultaneous List Rule|Simultaneous List Rule]]''' - executes all child rules simultaneously
+
*'''[[#Simultaneous List Rule|Simultaneous List Rule]]''' - executes all child rules simultaneously
  
==='''Simultaneous List Rule'''===
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Reset_List</span>'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Simultaneous List Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules simultaneously once this rule starts
 
Executes child rules simultaneously once this rule starts
  
'''<kuid:-25:1048>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1048>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
     '''Rule completes when ...''' - click to chose one of the following:-
+
 
 +
     '''Rule completes when ...''' - <span style="background-color: black; color: white; font-weight: 700;"> click to chose one of the following:- </span>
 
       '''''one of the child rules has completed'''''
 
       '''''one of the child rules has completed'''''
 
       '''''all child rules have reached a completed state'''''
 
       '''''all child rules have reached a completed state'''''
 
       '''''all child rules have reached a "was completed" state'''''
 
       '''''all child rules have reached a "was completed" state'''''
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Ordered List Rule|Ordered List Rule]]''' - executes child rules in order
+
*'''[[#Ordered List Rule|Ordered List Rule]]''' - executes child rules in order
    '''[[#Progressive List Rule|Progressive List Rule]]''' - executes the first child rule on the first run, the second child on the second run, etc
+
*'''[[#Progressive List Rule|Progressive List Rule]]''' - executes the first child rule on the first run, the second child on the second run, etc
    '''[[#Random List Rule|Random List Rule]]''' - executes ONE randomly selected child rule
+
*'''[[#Random List Rule|Random List Rule]]''' - executes ONE randomly selected child rule
    '''[[#Reset List Rule|Reset List Rule]]''' - executes all child rules continuously
+
*'''[[#Reset List Rule|Reset List Rule]]''' - executes all child rules continuously
 +
 
 +
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Message Popup Rule (Applications)#Application 1: Timed Message|How to Use Message Popup Rule (Applications): Timed Message]]
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
*'''[[How to Use Variables in Sessions (Examples)#Example 2: Event Counter and Message Selection|How to Use Variables in Sessions (Examples): Event Counter and Message Selection]]
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Simultaneous_List</span>'''
 +
<br>
 +
<table width="100%" bgcolor=#ffff88>
 +
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Speed"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#Session|alt=Next Up|Next Up]]</td>
 +
<td width=75>[[file:NextDown.png|link=#Startup|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''Speed Rules'''=
 +
</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''ATP Speed Limiter Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Limits allowable speed over set limit
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:321959:1000:1>'''
 +
 
 +
*'''Built-in Rule'''
 +
 
 +
*'''Minimum Trainz Build: 4.6 (TRS19)''' (earlier builds are available)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''Limits the speed to ''<value>'' mph over the set limit''' - enter speed value in mph
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#AWS Configuration Rule|AWS Configuration Rule]]''' - configures the Trainz implementation of the Automatic Warning System when approaching signals
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Speeding Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Executes child rules if player controlled trains are over the local speed limit or over a set (custom) speed
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:60850:89004:3>'''
 +
 
 +
*'''Built-in Rule'''
 +
 
 +
*'''Minimum Trainz Build: 4.6 (TRS19)''' (earlier builds are available)
 +
 
 +
*'''Parent Rule'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    <span style="background-color: black; color: white; font-weight: 700;"> Select one of two options to set a speed limit to be observed:- </span>
 +
      '''( ) Watch for trains travelling above the posted speed limit'''
 +
          '''''<speed value>''''' - click to enter a new overspeed tolerance value
 +
          '''''<speed units>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select one from the list:- </span>
 +
            '''''Km/h''''' - Kilometres per hour
 +
            '''''MPH''''' - Miles per hour
 +
            '''''mps''''' - metres per second
 +
      '''( ) Watch for trains travelling above a custom speed'''
 +
          '''''<speed value>''''' - click to enter a new custom speed value
 +
          '''''<speed units>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select one from the list:- </span>
 +
            '''''Km/h''''' - Kilometres per hour
 +
            '''''MPH''''' - Miles per hour
 +
            '''''mps''''' - metres per second
 +
            <span style="background-color: red; color: white; font-weight: 700;"> Warning: This option is very performance intensive and should only be used in sessions with few trains </span>
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''MaxPermittedSpeed Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Sets the maximum permitted speed of locomotives under AI control. Speed control is through editing each locomotives '''config.txt''' file.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:60850:89000:7>'''
 +
 
 +
*'''Built-in Rule'''
 +
 
 +
*'''Minimum Trainz Build: 2.9 (TS2009)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''None''' - see notes below
  
'''[[#top|Back to Top]]'''
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
*This rule cannot be configured from the '''Session Editor'''. It must be configured in the '''config.txt''' file of each locomotive. Instructions with an example are shown in the rule '''Settings'''
 +
*An easier option may be to use the '''Set Max Speed To''' Driver Commands
  
=='''Startup and Termination Rules'''==
+
[[file:PageLink2.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Driver Commands:</span>
 +
*'''[[Driver_Commands_List#Set Max Speed To (km/h)|Set Max Speed To (km/h)]]''' - set the maximum speed in km/hr
 +
*'''[[Driver_Commands_List#Set Max Speed To|Set Max Speed To]]''' - set the maximum speed in miles/hr
  
==='''End Session Rule'''===
+
<br>
 +
<table width="100%" bgcolor=#ffff88>
 +
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Startup"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#Speed|alt=Next Up|Next Up]]</td>
 +
<td width=75>[[file:NextDown.png|link=#Time|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''Startup and Termination Rules'''=
 +
</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''End Session Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
End the Session with a fade out.
 
End the Session with a fade out.
  
'''<kuid:-25:482>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1321>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.6 (TRS19)''' (earlier builds are available)
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''Fade out over ''<value>'' seconds''' - enter number of seconds for fade out.
 
     '''Fade out over ''<value>'' seconds''' - enter number of seconds for fade out.
  
'''Note:''' Seconds are Trainz clock time, not real time.
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Seconds are Trainz clock time, not real time.
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Session Complete Rule|Session Complete Rule]]''' - set the session to a percentage of completion
+
*'''[[#Session Complete Rule|Session Complete Rule]]''' - set the session to a percentage of completion
  
==='''Multiplayer Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Multiplayer Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Enables the session to be taken online in a Multiplayer environment.
 
Enables the session to be taken online in a Multiplayer environment.
  
'''<kuid:447264:1045>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:447264:1045>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 3.3 (TRS2009 SP4/TS2010 SP2)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''Suggested maximum number of players for this session ''<value>''''' - enter a number
 
     '''Suggested maximum number of players for this session ''<value>''''' - enter a number
 
     '''Maximum number of drivers per player ''<value>''''' - enter a number
 
     '''Maximum number of drivers per player ''<value>''''' - enter a number
     '''Players are permitted to claim drivers            [Check Box]''' - check to allow players to select a driver
+
     '''Players are permitted to claim drivers            [x]''' - check to allow players to select a driver
     '''Players can see each other's driver orders        [Check Box]''' - check to allow players to view orders for other players
+
     '''Players can see each other's driver orders        [x]''' - check to allow players to view orders for other players
     '''Automatically target an available train on clients [Check Box]''' - automatically assign a driver to each player
+
     '''Automatically target an available train on clients [x]''' - automatically assign a driver to each player
  
==='''Randomize Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''QuickDrive Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Changes some of the the Session settings for Driver mode.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:401543:1184>'''
 +
 
 +
*'''Base Rule'''
 +
 
 +
*'''Minimum Trainz Build: 4.5 (TANE SP2)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
  '''Set time to ''<hours:minutes>'' with a rate of ''<speed x>''''' - set start time and rate at which time advances
 +
  '''Enable gameplay Session Mode                            [x]''' - check to set. Gameplay mode restricts the players options
 +
  '''Enable in game help by default                          [x]''' - check to allow help options to be displayed
 +
  '''Set the default Control method to:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of two option buttons:- </span>
 +
      '''( ) Easy Mode'''
 +
      '''( ) Realistic Mode'''
 +
      '''[x] Prevent player from changing this setting''' - check to set
 +
  '''Realistic mode requires achievement: ''<text>'' in asset ''<asset name>''''' - enter achievement name and select an asset from Aurans Achievements
 +
  '''Set the default derailment realism to:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of three option buttons:- </span>
 +
      '''( ) None'''
 +
      '''( ) Arcade'''
 +
      '''( ) Realistic'''
 +
      '''[x] Prevent player from changing this setting''' - check to set
 +
  '''Set the default units to:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of three option buttons:- </span>
 +
      '''( ) Imperial'''
 +
      '''( ) Metric'''
 +
      '''( ) Default'''
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
*When used as a route and session development tool, this rule has been replaced by the '''UDS''' interface built into '''TRS19 Platinum Edition''' and '''Trainz Plus''' which allows rapid two way switching between '''Surveyor''' and '''Driver'''
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/QuickDrive_Rule</span>'''
 +
<br>
 +
 
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Randomize Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Generates a different set of random numbers each time the session is run.
 
Generates a different set of random numbers each time the session is run.
  
'''<kuid:169301:100129>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:169301:100129>'''
  
 
*'''DLS Rule''' by '''Terry_Wagstaff'''
 
*'''DLS Rule''' by '''Terry_Wagstaff'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.2 (TANE)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''None'''
 
     '''None'''
  
'''Note:''' Place this rule near the top of the Session Rules list and ensure that there is at least 5 seconds before
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
    the call to a Random function.
+
:Place this rule near the top of the Session Rules list and ensure that there is at least 5 seconds before the call to a Random function.
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Variable Random|Variable Random]]''' - sets a variable to a random integer value.
+
*'''[[#Variable Random|Variable Random]]''' - sets a variable to a random integer value.
  
==='''Session Complete Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Session Complete Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Set session to a percentage of completion.
 
Set session to a percentage of completion.
  
'''<kuid:447264:1011>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:447264:1011>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 3.1 (TS2009 SP2)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''Set session to percent complete ''<value>''''' - enter number as a percentage
 
     '''Set session to percent complete ''<value>''''' - enter number as a percentage
     '''[Check Box] Separate achievements for completion''' - check to set
+
     '''[x] Separate achievements for completion''' - check to set
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#End Session Rule|End Session Rule]]''' - end the Session with a fade out.
+
*'''[[#End Session Rule|End Session Rule]]''' - end the Session with a fade out.
  
==='''Startup Options Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Startup Options Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Specifies the starting options for the session. The weather settings will set the ''initial'' conditions, including the variability. To manually change the weather during play, use the '''Weather Rule'''.
 
Specifies the starting options for the session. The weather settings will set the ''initial'' conditions, including the variability. To manually change the weather during play, use the '''Weather Rule'''.
  
'''<kuid:-16:10212>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-16:10212>'''
  
 
*'''Base Rule'''
 
*'''Base Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
     '''Current control method is ''<select>''''' - select one from:-
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     '''Current control method is ''<select>''''' - <span style="background-color: black; color: white; font-weight: 700;"> select one from:- </span>
 
       '''''Easy Mode''''' - DCC (standard keyboard and mouse) control
 
       '''''Easy Mode''''' - DCC (standard keyboard and mouse) control
 
       '''''Ask User''''' - let the user decide
 
       '''''Ask User''''' - let the user decide
 
       '''''Realistic Mode''''' - Cab controls (on screen levers, throttles, buttons, etc)
 
       '''''Realistic Mode''''' - Cab controls (on screen levers, throttles, buttons, etc)
     '''Set weather to ''<select mode>'' with ''<select frequency>'' changeability''' - select
+
     '''Set weather to ''<select mode>'' with ''<select frequency>'' changeability''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of:- </span>
       '''Weather mode:''' - select one of:-
+
       '''Weather mode:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of:- </span>
 
           '''''Clear'''''
 
           '''''Clear'''''
 
           '''''Cloudy'''''  
 
           '''''Cloudy'''''  
Line 2,305: Line 5,844:
 
           '''''Medium Snow'''''
 
           '''''Medium Snow'''''
 
           '''''Heavy Snow'''''
 
           '''''Heavy Snow'''''
       '''Changeability:''' - select one of:-
+
       '''Changeability:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of:- </span>
 
           '''''Off''''' - the weather will not change from the mode selected above
 
           '''''Off''''' - the weather will not change from the mode selected above
 
           '''''Periodic''''' - slow gradual changes to the weather
 
           '''''Periodic''''' - slow gradual changes to the weather
 
           '''''Extreme''''' - rapid and extreme changes to the weather
 
           '''''Extreme''''' - rapid and extreme changes to the weather
 
     '''Set time to ''<hours>'':''<minutes>'' with a rate of ''<select speed>''''' - set the starting time and the speed at which the Trainz clock will run
 
     '''Set time to ''<hours>'':''<minutes>'' with a rate of ''<select speed>''''' - set the starting time and the speed at which the Trainz clock will run
     '''Set derailment realism to ''<select reality level>''''' - select one of:-
+
     '''Set derailment realism to ''<select reality level>''''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of:- </span>
 
       '''''None''''' - no train derailments will occur
 
       '''''None''''' - no train derailments will occur
 
       '''''Arcade''''' - train derailments will be exaggerated (beyond normal)
 
       '''''Arcade''''' - train derailments will be exaggerated (beyond normal)
 
       '''''Realistic''''' - train derailments will occur as realistically as possible
 
       '''''Realistic''''' - train derailments will occur as realistically as possible
     '''[Check Box] Show in game help''' - check to switch on help options
+
     '''[x] Show in game help''' - check to switch on help options
     '''Use ''<select measurement system>'' units in Driver''' - select one of:-
+
     '''Use ''<select measurement system>'' units in Driver''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of:- </span>
 
       '''''Metric''''' - kilometres, metres. This will override the default settings in a session
 
       '''''Metric''''' - kilometres, metres. This will override the default settings in a session
 
       '''''Imperial''''' - miles, feet. This will override the default settings in a session
 
       '''''Imperial''''' - miles, feet. This will override the default settings in a session
 
       '''''Default''''' - uses the measurement system specified in the session
 
       '''''Default''''' - uses the measurement system specified in the session
  
'''Note:''' Times are Trainz clock time, not real time
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Times are Trainz clock time, not real time
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Time and Rate Rule|Time and Rate Rule]]''' - sets the session start time and the rate at which time passes.
+
*'''[[#Time and Rate Rule|Time and Rate Rule]]''' - sets the session start time and the rate at which time passes.
    '''[[#Weather Rule|Weather Rule]]''' - changes weather conditions during Session play
+
*'''[[#Weather Rule|Weather Rule]]''' - changes weather conditions during Session play
 +
<br>
 +
<table width="100%" bgcolor=#ffff88>
 +
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Time"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#Startup|alt=Next Up|Next Up]]</td>
 +
<td width=75>[[file:NextDown.png|link=#Variable|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''Time Rules'''=
 +
</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Clock Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
'''[[#top|Back to Top]]'''
+
Rule needed for animated clocks.
  
=='''Time Rules'''==
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
  
==='''Clock Rule'''===
+
*'''<kuid2:62310:30041:2>'''
  
Rule needed for animated clocks.
+
*'''Built-in Rule'''
  
'''<kuid2:62310:30041:2>'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
  
*'''Built-in Rule'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
    '''None'''
 +
 
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Apply this rule to your session to make use of the animated clocks. See the forum for code to include in your clock object to work with this rule.
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Loco Lighting Control Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Sets the ON and OFF times for loco headlights and the weather conditions that will turn ON the head and tail lights during the day.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:87589:90002:7>'''
 +
 
 +
*'''DLS Rule''' by '''didoz'''
 +
 
 +
*'''Minimum Trainz Build: 3.5 (TRS12 SP1)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
<span style="background-color: black; color: white; font-weight: 700;"> Time settings: </span>
 +
'''Turn headlights on at ''&lt;<u>hour</u>&gt;:&lt;<u>minute</u>&gt;''''' - enter clock time in hours (24hr format) and minutes for headlights ON
 +
'''Turn headlights off at ''&lt;<u>hour</u>&gt;:&lt;<u>minute</u>&gt;''''' - enter clock time in hours (24hr format) and minutes for headlights OFF
 +
 +
    set both times to '''00:00''' for always ON
 +
 +
<span style="background-color: black; color: white; font-weight: 700;"> Weather settings: </span>
 +
'''Turn headlights on if it is ''&lt;<u>Rain</u>&gt;''''' - select from a list of weather conditions which will turn the headlights ON during the day
 +
 +
<span style="background-color: black; color: white; font-weight: 700;"> Tail light settings: </span>
 +
'''Tail light status at day is'''
 +
'''''ON/OFF''''' - click button to toggle between ON and OFF
 +
 +
'''Tail light status if raining at day is'''
 +
'''''ON/OFF''''' - click button to toggle between ON and OFF. This switch can only be activated if "status at day" setting is OFF
 +
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Times are Trainz clock time, not real time
  
'''Properties:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#JTG Correct Vehicle Lights|JTG Correct Vehicle Lights Rule]]''' - corrects the brightness of vehicle headlights for JTG locos.
  
'''Note:'''
+
<br>
    Apply this rule to your session to make use of the animated clocks. See the forum for code to include in your clock object to work with this rule.
+
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
  
==='''Time and Rate Rule'''===
+
=='''Time and Rate Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Sets the session start time and the rate at which time passes.
 
Sets the session start time and the rate at which time passes.
  
'''<kuid:-25:889>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:889>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''Set time to ''<hours:minutes>''''' - enter the clock starting time as hours ('''0-23''') and minutes ('''0-59''')
 
     '''Set time to ''<hours:minutes>''''' - enter the clock starting time as hours ('''0-23''') and minutes ('''0-59''')
 
     '''with a rate of ''<1x>''''' - select a speed at which time will pass from '''1x''' (normal) to '''1440x''' (extremely fast)
 
     '''with a rate of ''<1x>''''' - select a speed at which time will pass from '''1x''' (normal) to '''1440x''' (extremely fast)
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Startup Options Rule|Startup Options Rule]]''' - sets the startup options for a session including time and rate
+
*'''[[#Startup Options Rule|Startup Options Rule]]''' - sets the startup options for a session including time and rate
    '''[[#Timecheck Rule|Timecheck Rule]]''' - executes child rules at a set time.
+
*'''[[#Timecheck Rule|Timecheck Rule]]''' - executes child rules at a set time.
  
==='''Timecheck Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Timecheck Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules at a set time.
 
Executes child rules at a set time.
  
'''<kuid2:122381:10008:3>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
  
*'''Built-in Rule'''
+
*'''<kuid2:122381:10008:3>'''
 +
 
 +
*'''Built-in Rule''' by '''mizi'''
 +
 
 +
*'''Minimum Trainz Build: 2.4 (TRS2004 SP4)'''
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''''<hh:mm:ss>''''' - enter execution time as hours (0-23), minutes (0-59) and seconds (0-59).
 
     '''''<hh:mm:ss>''''' - enter execution time as hours (0-23), minutes (0-59) and seconds (0-59).
     '''[Check Box] Execution time is on the day after the start time''' - when checked delays execution until the following day.
+
     '''[x] Execution time is on the day after the start time''' - when checked delays execution until the following day.
  
'''Known Issues:'''
+
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
    Do not use this rule as a child of a repeating rule such as the '''Simultaneous List Rule''' or the '''Ordered List Rule'''.
+
:Do not use this rule as a child of a repeating rule such as the '''Simultaneous List Rule''' or the '''Ordered List Rule'''.
  
'''Note:''' Times and days are Trainz clock times not real time.
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Times and days are Trainz clock times not real time.
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Time and Rate Rule|Time and Rate Rule]]''' - sets the session start time and the rate at which time passes.
+
*'''[[#Time and Rate Rule|Time and Rate Rule]]''' - sets the session start time and the rate at which time passes.
    '''[[#Wait Rule|Wait Rule]]''' - executes child rules after waiting for a set number of seconds.
+
*'''[[#Wait Rule|Wait Rule]]''' - executes child rules after waiting for a set number of seconds.
  
==='''Wait Rule'''===
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Wait Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules after waiting for set number of seconds
 
Executes child rules after waiting for set number of seconds
  
'''<kuid2:122381:10016:2>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:122381:10016:2>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 2.4 (TRS2004 SP4)'''
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''''<click to set>''''' - enter the number of seconds for the wait delay
 
     '''''<click to set>''''' - enter the number of seconds for the wait delay
  
'''Note:''' Seconds is in Trainz clock time, not real time
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Seconds is in Trainz clock time, not real time
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Timecheck Rule|Timecheck Rule]]''' - executes child rules at a set time.
+
*'''[[#Timecheck Rule|Timecheck Rule]]''' - executes child rules at a set time.
  
'''[[#top|Back to Top]]'''
+
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Message Popup Rule (Applications)#Application 1: Timed Message|How to Use Message Popup Rule (Applications): Timed Message]]'''
 +
*'''[[How to Use Navigation Point Rules (Applications)#Application 4: User Path Selection|How to Use Navigation Point Rules (Applications): User Path Selection]]
  
=='''Variable Rules'''==
+
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
<br>
 +
<table width="100%" bgcolor=#ffff88>
 +
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Variable"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#Time|alt=Next Up|Next Up]]</td>
 +
<td width=75>[[file:NextDown.png|link=#Weather|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''Variable Rules'''=
 +
</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Quick Session Variables Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
==='''Quick Session Variables Rule'''===
+
Allows the editing of session variables
  
Allows the editing of any session variables
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
  
'''<kuid2:61392:5003:30>'''
+
*'''<kuid2:61392:5003:30>'''
  
 
*'''DLS Rule''' by '''pguy'''
 
*'''DLS Rule''' by '''pguy'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 3.8 (TANE)'''
 +
 
 +
*'''Legacy Rule''' (use '''Variable Modify Rule''')
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''''<local>''''' - click to edit local variables
 
     '''''<local>''''' - click to edit local variables
 
       '''''<add new session variable>''''' - click to enter the name of new local variable
 
       '''''<add new session variable>''''' - click to enter the name of new local variable
           for each variable:-
+
           <span style="background-color: black; color: white; font-weight: 700;"> for each variable:- </span>
 
           '''''<variable-name>''''' - click to change variable name
 
           '''''<variable-name>''''' - click to change variable name
           '''''<type>''''' - click to select one of:-
+
           '''''<type>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select one of:- </span>
 
             '''string''' - text characters
 
             '''string''' - text characters
 
             '''int''' - integer
 
             '''int''' - integer
Line 2,432: Line 6,111:
 
           '''''<select train>''''' - click to select a locomotive
 
           '''''<select train>''''' - click to select a locomotive
 
           '''''<select vehicle>''''' - click to select a rail vehicle
 
           '''''<select vehicle>''''' - click to select a rail vehicle
           for the selected loco/vehicle:-
+
           <span style="background-color: black; color: white; font-weight: 700;"> for the selected loco/vehicle:- </span>
 
             '''''<Add new session variable>''''' - click to enter the name of a new variable
 
             '''''<Add new session variable>''''' - click to enter the name of a new variable
               for the entered variable:-
+
               <span style="background-color: black; color: white; font-weight: 700;"> for the entered variable:- </span>
 
                   '''''<variable-name>''''' - click to change variable name
 
                   '''''<variable-name>''''' - click to change variable name
 
                   '''''<type>''''' - click to select type (see list above)
 
                   '''''<type>''''' - click to select type (see list above)
Line 2,440: Line 6,119:
 
     '''''<global>''''' - no longer supported in TANE SP2
 
     '''''<global>''''' - no longer supported in TANE SP2
  
'''Known Issues:''' Rule creator, '''pguy''' has indicated that the future of this rule is uncertain as parts of it have been devalued in the latest release of TANE.
+
[[file:Issues.PNG|link=]] <span style="background-color: yellow; color: black; font-weight: 700;"> Known Issues: </span>
 +
:Rule creator, '''pguy''', has indicated that the future of this rule is uncertain as parts of it have been devalued in the latest releases of Trainz.
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Variable Check Rule|Variable Check Rule]]''' - tests the value of a specified variable.
+
*'''[[#Variable Check Rule|Variable Check Rule]]''' - executes child rules according to the value of a specified variable.
    '''[[#Variable Modify Rule|Variable Modify Rule]]''' - changes the value of a specified variable.
+
*'''[[#Variable Modify Rule|Variable Modify Rule]]''' - changes the value of a specified variable.
    '''[[#Variable Modify Continuous Rule|Variable Modify Continuous Rule]]''' - continuously changes the value of a specified variable.
+
*'''[[#Variable Modify Continuous Rule|Variable Modify Continuous Rule]]''' - continuously changes the value of a specified variable.
    '''[[#Variable Random Rule|Variable Random Rule]]''' - assigns a random value to a variable.
+
*'''[[#Variable Random Rule|Variable Random Rule]]''' - assigns a random value to a variable.
    '''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
+
*'''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
  
==='''Variable Check Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Variable Check Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Executes child rules when a specific variable matches set conditions
 
Executes child rules when a specific variable matches set conditions
  
'''<kuid:-25:1049>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1049>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
 +
 +
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
  
 
*'''Parent Rule'''
 
*'''Parent Rule'''
  
'''Properties:'''
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''''<variable-name>''''' - enter a variable-name. Variable name is case sensitive.
 
     '''''<variable-name>''''' - enter a variable-name. Variable name is case sensitive.
     Mathematical relationship, select one of:-
+
     Mathematical relationship, <span style="background-color: black; color: white; font-weight: 700;"> select one of:- </span>
 
       '''''is less than''''' - enter a '''''<value>''''' to test against
 
       '''''is less than''''' - enter a '''''<value>''''' to test against
 
       '''''is less than or equal to''''' - enter a '''''<value>''''' to test against
 
       '''''is less than or equal to''''' - enter a '''''<value>''''' to test against
Line 2,469: Line 6,161:
 
       '''''is not equal to''''' - enter a '''''<value>''''' to test against
 
       '''''is not equal to''''' - enter a '''''<value>''''' to test against
 
       '''''is between x and y''''' - enter a minimum '''''<x-value>''''' and a maximum '''''<y-value>'''''
 
       '''''is between x and y''''' - enter a minimum '''''<x-value>''''' and a maximum '''''<y-value>'''''
     Evaluation type. Select one from:-
+
     Evaluation type. <span style="background-color: black; color: white; font-weight: 700;"> Select one from:- </span>
 
       '''''<This condition will be evaluated only once ...>''''' - any changes to the variable that occur after
 
       '''''<This condition will be evaluated only once ...>''''' - any changes to the variable that occur after
 
               it has been checked will not change the result of this rule
 
               it has been checked will not change the result of this rule
Line 2,475: Line 6,167:
 
               rechecked every second
 
               rechecked every second
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Quick Session Variables Rule|Quick Session Variables Rule]]''' - allows the editing of session variables.
+
*'''[[#Quick Session Variables Rule|Quick Session Variables Rule]]''' - allows the editing of session variables.
    '''[[#Variable Modify Rule|Variable Modify Rule]]''' - changes the value of a specified variable.
+
*'''[[#Variable Modify Rule|Variable Modify Rule]]''' - changes the value of a specified variable.
    '''[[#Variable Modify Continuous Rule|Variable Modify Continuous Rule]]''' - continuously changes the value of a specified variable.
+
*'''[[#Variable Modify Continuous Rule|Variable Modify Continuous Rule]]''' - continuously changes the value of a specified variable.
    '''[[#Variable Random Rule|Variable Random Rule]]''' - assigns a random value to a variable.
+
*'''[[#Variable Random Rule|Variable Random Rule]]''' - assigns a random value to a variable.
    '''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
+
*'''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
  
==='''Variable Modify Continuous Rule'''===
+
[[file:Ex.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Examples of Use:</span>
 +
*'''[[How to Use Variables in Sessions (Examples)]]
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''[[How to Use Parent and Child Rules]]'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Variable Modify Continuous Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Adds, subtracts or sets a value to a specified variable every second.
 
Adds, subtracts or sets a value to a specified variable every second.
  
'''<kuid:-25:1051>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1051>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
   '''''<Add/Subtract/Change variable to>''''' - select one.
 
   '''''<Add/Subtract/Change variable to>''''' - select one.
 
       '''''<value>''''' - enter value to add, subtract or apply to ''<variable-name>''
 
       '''''<value>''''' - enter value to add, subtract or apply to ''<variable-name>''
 
       '''''<variable-name>''''' - enter variable-name. Variable-name is case sensitive.
 
       '''''<variable-name>''''' - enter variable-name. Variable-name is case sensitive.
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Quick Session Variables Rule|Quick Session Variables Rule]]''' - allows the editing of session variables.
+
*'''[[#Quick Session Variables Rule|Quick Session Variables Rule]]''' - allows the editing of session variables.
    '''[[#Variable Check Rule|Variable Check Rule]]''' - executes child rules according to the value of a specified variable.
+
*'''[[#Variable Check Rule|Variable Check Rule]]''' - executes child rules according to the value of a specified variable.
    '''[[#Variable Modify Rule|Variable Modify Rule]]''' - changes the value of a specified variable.
+
*'''[[#Variable Modify Rule|Variable Modify Rule]]''' - changes the value of a specified variable.
    '''[[#Variable Random Rule|Variable Random Rule]]''' - assigns a random value to a variable.
+
*'''[[#Variable Random Rule|Variable Random Rule]]''' - assigns a random value to a variable.
    '''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
+
*'''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
  
==='''Variable Modify Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Variable Modify Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Change the value of a specified variable. This rule can also used to create a new variable and set its initial value by using the "Change variable" option.
 
Change the value of a specified variable. This rule can also used to create a new variable and set its initial value by using the "Change variable" option.
  
'''<kuid:-25:1050>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:1050>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
     '''Change ''<Add to variable/Subtract from variable/Change variable>''''' - click to select one from:-
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     '''Change ''<Add to variable/Subtract from variable/Change variable>''''' - <span style="background-color: black; color: white; font-weight: 700;"> click to select one from:- </span>
 
       '''Add to variable'''
 
       '''Add to variable'''
           '''Add ''<value>''''' to '''variable ''<variable-name>''''' - enter value to add to variable, enter variable-name. Variable-name is case sensitive.
+
           '''Add ''<value>''''' to '''variable ''<variable-name>''''' - enter value to add to variable, enter variable-name. <span style="background-color: red; color: white; font-weight: 700;"> Variable-name is case sensitive. </span>
 
           '''''<Do not undo the alteration if the rule is stopped/Undo the alteration if the rule is stopped>''''' - click to select one.
 
           '''''<Do not undo the alteration if the rule is stopped/Undo the alteration if the rule is stopped>''''' - click to select one.
 
       '''Subtract from variable'''
 
       '''Subtract from variable'''
           '''Subtract ''<value>''''' from '''variable ''<variable-name>''''' - enter value to subtract from variable, enter variable-name.
+
           '''Subtract ''<value>''''' from '''variable ''<variable-name>''''' - enter value to subtract from variable, enter variable-name. </span>
             Variable-name is case sensitive.
+
             <span style="background-color: red; color: white; font-weight: 700;"> Variable-name is case sensitive. </span>
 
           '''''<Do not undo the alteration if the rule is stopped/Undo the alteration if the rule is stopped>''''' - click to select one.
 
           '''''<Do not undo the alteration if the rule is stopped/Undo the alteration if the rule is stopped>''''' - click to select one.
 
       '''Change variable'''
 
       '''Change variable'''
 
           '''Change variable ''<variable-name>'' to ''<value>''''' - enter variable-name, enter new value.  
 
           '''Change variable ''<variable-name>'' to ''<value>''''' - enter variable-name, enter new value.  
             Variable-name is case sensitive. This change cannot be undone if the rule is stopped.  
+
             <span style="background-color: red; color: white; font-weight: 700;"> Variable-name is case sensitive. This change cannot be undone if the rule is stopped. </span>
     '''[Check Box] (optional) Set the minimum value''' of '''''<variable-name>''''' to '''''<value>''''' - enter variable-name
+
     '''[x] (optional) Set the minimum value''' of '''''<variable-name>''''' to '''''<value>''''' - enter variable-name
 
       (this will already be set by the change option) and a value. Variable-name is case sensitive.
 
       (this will already be set by the change option) and a value. Variable-name is case sensitive.
     '''[Check Box] (optional) Set the maximum value''' of '''''<variable-name>''''' to '''''<value>''''' - enter variable-name
+
     '''[x] (optional) Set the maximum value''' of '''''<variable-name>''''' to '''''<value>''''' - enter variable-name
 
       (this will already be set by the change option) and a value. Variable-name is case sensitive.
 
       (this will already be set by the change option) and a value. Variable-name is case sensitive.
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Quick Session Variables Rule|Quick Session Variables Rule]]''' - allows the editing of session variables.
+
*'''[[#Quick Session Variables Rule|Quick Session Variables Rule]]''' - allows the editing of session variables.
    '''[[#Variable Check Rule|Variable Check Rule]]''' - executes child rules according to the value of a specified variable.
+
*'''[[#Variable Check Rule|Variable Check Rule]]''' - executes child rules according to the value of a specified variable.
    '''[[#Variable Modify Continuous Rule|Variable Modify Continuous Rule]]''' - continuously changes the value of a specified variable.
+
*'''[[#Variable Modify Continuous Rule|Variable Modify Continuous Rule]]''' - continuously changes the value of a specified variable.
    '''[[#Variable Random Rule|Variable Random Rule]]''' - assigns a random value to a variable.
+
*'''[[#Variable Random Rule|Variable Random Rule]]''' - assigns a random value to a variable.
    '''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
+
*'''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
  
==='''Variable Random Rule'''===
+
[[file:Ex.PNG|link=]] '''<u>Examples of Use:</u>'''
 +
*'''[[How to Use Variables in Sessions (Examples)]]
 +
 
 +
[[file:WikiLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Trainz Wiki Links:</span>
 +
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Variable_Modify_Rule</span>'''
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Variable Random Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Assigns a random integer value to a variable.
 
Assigns a random integer value to a variable.
  
'''<kuid:400260:100606>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:400260:100606>'''
  
 
*'''DLS Rule''' by '''tram_'''
 
*'''DLS Rule''' by '''tram_'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.9 (TS2009)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 
     '''Random variable ''<name>'' in ''minimum'' to ''maximum'' interval''' - enter name of variable. Variable-name is case sensitive.
 
     '''Random variable ''<name>'' in ''minimum'' to ''maximum'' interval''' - enter name of variable. Variable-name is case sensitive.
 
     '''The minimum possible value of ''variable_name'' is ''<value>''''' - enter the minimum value
 
     '''The minimum possible value of ''variable_name'' is ''<value>''''' - enter the minimum value
 
     '''The maximum possible value of ''variable_name'' is ''<value>''''' - enter the maximum value
 
     '''The maximum possible value of ''variable_name'' is ''<value>''''' - enter the maximum value
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Quick Session Variables Rule|Quick Session Variables Rule]]''' - allows the editing of session variables.
+
*'''[[#Quick Session Variables Rule|Quick Session Variables Rule]]''' - allows the editing of session variables.
    '''[[#Randomize|Randomize]]''' - creates a different set of random numbers for each session run.
+
*'''[[#Randomize Rule|Randomize Rule]]''' - creates a different set of random numbers for each session run.
    '''[[#Variable Check Rule|Variable Check Rule]]''' - executes child rules according to the value of a specified variable.
+
*'''[[#Variable Check Rule|Variable Check Rule]]''' - executes child rules according to the value of a specified variable.
    '''[[#Variable Modify Rule|Variable Modify Rule]]''' - changes the value of a specified variable.
+
*'''[[#Variable Modify Rule|Variable Modify Rule]]''' - changes the value of a specified variable.
    '''[[#Variable Modify Continuous Rule|Variable Modify Continuous Rule]]''' - continuously changes the value of a specified variable.
+
*'''[[#Variable Modify Continuous Rule|Variable Modify Continuous Rule]]''' - continuously changes the value of a specified variable.
    '''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
+
*'''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
 +
 
 +
[[file:Ex.PNG|link=]] '''<u>Examples of Use:</u>'''
 +
*'''[[How to Use Variables in Sessions (Examples)]]
  
==='''Variable Show Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Variable Show Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Adds or removes a specified variable and a descriptive label to the custom HUD. This rule does not make the custom HUD appear on the screen.
 
Adds or removes a specified variable and a descriptive label to the custom HUD. This rule does not make the custom HUD appear on the screen.
  
'''<kuid:-25:971>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:971>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
   '''[Check Box] Add'''
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
   '''[x] Add'''
 
       '''''<variable-name>''''' - enter variable-name to add to HUD. Variable-name is case sensitive.
 
       '''''<variable-name>''''' - enter variable-name to add to HUD. Variable-name is case sensitive.
 
       '''''<label>''''' - (optional) enter a short label to be displayed on the HUD in front of the variable value.
 
       '''''<label>''''' - (optional) enter a short label to be displayed on the HUD in front of the variable value.
   '''[Check Box] Remove'''
+
   '''[x] Remove'''
 
       '''''<variable-name>''''' - enter variable-name to remove from HUD. Variable-name is case sensitive.
 
       '''''<variable-name>''''' - enter variable-name to remove from HUD. Variable-name is case sensitive.
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
+
*'''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
    '''[[#Quick Session Variables Rule|Quick Session Variables Rule]]''' - allows the editing of session variables.
+
*'''[[#Quick Session Variables Rule|Quick Session Variables Rule]]''' - allows the editing of session variables.
    '''[[#Variable Check Rule|Variable Check Rule]]''' - executes child rules according to the value of a specified variable.
+
*'''[[#Variable Check Rule|Variable Check Rule]]''' - executes child rules according to the value of a specified variable.
    '''[[#Variable Modify Rule|Variable Modify Rule]]''' - changes the value of a specified variable.
+
*'''[[#Variable Modify Rule|Variable Modify Rule]]''' - changes the value of a specified variable.
    '''[[#Variable Modify Continuous Rule|Variable Modify Continuous Rule]]''' - continuously changes the value of a specified variable.
+
*'''[[#Variable Modify Continuous Rule|Variable Modify Continuous Rule]]''' - continuously changes the value of a specified variable.
    '''[[#Variable Random Rule|Variable Random Rule]]''' - assigns a random value to a variable.
+
*'''[[#Variable Random Rule|Variable Random Rule]]''' - assigns a random value to a variable.
  
'''[[#top|Back to Top]]'''
+
[[file:Ex.PNG|link=]] '''<u>Examples of Use:</u>'''
 
+
*'''[[How to Use Variables in Sessions (Examples)]]
=='''Weather Rules'''==
+
<br>
+
<table width="100%" bgcolor=#ffff88>
==='''EIRS Weather Rule NE USA Rule'''===
+
<tr>
 +
<td>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="Weather"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#Variable|alt=Next Up|Next Up]]</td>
 +
<td width=75>&nbsp;</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
='''Weather Rules'''=
 +
</td>
 +
</tr>
 +
</table>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''EIRS Weather Rule NE USA Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Customize random weather rule relative to the North East Region of the United States.
 
Customize random weather rule relative to the North East Region of the United States.
  
'''<kuid2:487222:1037:3>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:487222:1037:3>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 3.1 (TS2009 SP2)'''
     '''Season ''<select>''''' - select one of:-
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     '''Season ''<select>''''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of:- </span>
 
       '''''Summer'''''
 
       '''''Summer'''''
 
       '''''Fall'''''
 
       '''''Fall'''''
 
       '''''Winter'''''
 
       '''''Winter'''''
 
       '''''Spring'''''
 
       '''''Spring'''''
     '''Random Changeability (minutes) ''<value>''''' - select one of:-
+
     '''Random Changeability (minutes) ''<value>''''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of:- </span>
 
       '''''2/5/10/15/20/30/45/60''''' - minutes''
 
       '''''2/5/10/15/20/30/45/60''''' - minutes''
     '''Environment Settings ''<select>''''' - select one of:-
+
     '''Environment Settings ''<select> ''''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of:- </span>
 
       '''''Disable/Enable'''''
 
       '''''Disable/Enable'''''
  
'''Note:''' Minutes are Trainz clock times, not real times
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Minutes are Trainz clock times, not real times
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#Random Weather Rule v2|Random Weather Rule v2]]''' - randomly changes the weather according to entered parameters
+
*'''[[#Random Weather Rule v2|Random Weather Rule v2]]''' - randomly changes the weather according to entered parameters
    '''[[#Startup Options Rule|Startup Options Rule]]''' - sets the weather conditions at the start of a Session
+
*'''[[#Startup Options Rule|Startup Options Rule]]''' - sets the weather conditions at the start of a Session
    '''[[#Weather Rule|Weather Rule]]''' - changes the weather conditions during Session play
+
*'''[[#Weather Rule|Weather Rule]]''' - changes the weather conditions during Session play
  
==='''Random Weather Rule v2'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Loco Lighting Control Rule'''==
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
Sets the ON and OFF times for loco headlights and the weather conditions that will turn ON the head and tail lights during the day.
 +
 
 +
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid2:87589:90002:7>'''
 +
 
 +
*'''DLS Rule''' by '''didoz'''
 +
 
 +
*'''Minimum Trainz Build: 3.5 (TRS12 SP1)'''
 +
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
<span style="background-color: black; color: white; font-weight: 700;"> Time settings: </span>
 +
'''Turn headlights on at ''&lt;<u>hour</u>&gt;:&lt;<u>minute</u>&gt;''''' - enter clock time in hours (24hr format) and minutes for headlights ON
 +
'''Turn headlights off at ''&lt;<u>hour</u>&gt;:&lt;<u>minute</u>&gt;''''' - enter clock time in hours (24hr format) and minutes for headlights OFF
 +
 +
    set both times to '''00:00''' for always ON
 +
 +
<span style="background-color: black; color: white; font-weight: 700;"> Weather settings: </span>
 +
'''Turn headlights on if it is ''&lt;<u>Rain</u>&gt;''''' - select from a list of weather conditions which will turn the headlights ON during the day
 +
 +
<span style="background-color: black; color: white; font-weight: 700;"> Tail light settings: </span>
 +
'''Tail light status at day is'''
 +
'''''ON/OFF''''' - click button to toggle between ON and OFF
 +
 +
'''Tail light status if raining at day is'''
 +
'''''ON/OFF''''' - click button to toggle between ON and OFF. This switch can only be activated if "status at day" setting is OFF
 +
 +
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
 +
:Times are Trainz clock time, not real time
 +
 
 +
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
 +
*'''[[#JTG Correct Vehicle Lights|JTG Correct Vehicle Lights Rule]]''' - corrects the brightness of vehicle headlights for JTG locos.
 +
 
 +
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
 
 +
=='''Random Weather Rule v2'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Randomly changes the weather conditions between set values over a set duration.
 
Randomly changes the weather conditions between set values over a set duration.
  
'''<kuid:169301:100132>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:169301:100132>'''
  
 
*'''DLS Rule''' by '''terry_wagstaff'''
 
*'''DLS Rule''' by '''terry_wagstaff'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 4.2 (TANE)'''
     '''Starting weather ''<select>'' - select one of:-
+
 
 +
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     '''Starting weather ''<select>'' - <span style="background-color: black; color: white; font-weight: 700;"> select one of:- </span>
 
           '''''Clear weather, no clouds, rain or snow'''''
 
           '''''Clear weather, no clouds, rain or snow'''''
 
           '''''Cloudy weather, no rain'''''  
 
           '''''Cloudy weather, no rain'''''  
 
           '''''Drizzle, light rain'''''
 
           '''''Drizzle, light rain'''''
 
           '''''Rain'''''
 
           '''''Rain'''''
           '''''Stormy weather that includes lightening and thunder'''''
+
           '''''Stormy weather that includes lightning and thunder'''''
 
           '''''Snowing lightly'''''
 
           '''''Snowing lightly'''''
 
           '''''Medium snowfall'''''
 
           '''''Medium snowfall'''''
 
           '''''Heavy snow'''''
 
           '''''Heavy snow'''''
     '''Best weather ''<select>'' - select one of:-
+
     '''Best weather ''<select>'' - <span style="background-color: black; color: white; font-weight: 700;"> select one of:- </span>
 
           '''''Clear weather, no clouds, rain or snow'''''
 
           '''''Clear weather, no clouds, rain or snow'''''
 
           '''''Cloudy weather, no rain'''''  
 
           '''''Cloudy weather, no rain'''''  
 
           '''''Drizzle, light rain'''''
 
           '''''Drizzle, light rain'''''
 
           '''''Rain'''''
 
           '''''Rain'''''
           '''''Stormy weather that includes lightening and thunder'''''
+
           '''''Stormy weather that includes lightning and thunder'''''
 
           '''''Snowing lightly'''''
 
           '''''Snowing lightly'''''
 
           '''''Medium snowfall'''''
 
           '''''Medium snowfall'''''
 
           '''''Heavy snow'''''
 
           '''''Heavy snow'''''
     '''Worst weather ''<select>'' - select one of:-
+
     '''Worst weather ''<select>'' - <span style="background-color: black; color: white; font-weight: 700;"> select one of:- </span>
 
           '''''Clear weather, no clouds, rain or snow'''''
 
           '''''Clear weather, no clouds, rain or snow'''''
 
           '''''Cloudy weather, no rain'''''  
 
           '''''Cloudy weather, no rain'''''  
 
           '''''Drizzle, light rain'''''
 
           '''''Drizzle, light rain'''''
 
           '''''Rain'''''
 
           '''''Rain'''''
           '''''Stormy weather that includes lightening and thunder'''''
+
           '''''Stormy weather that includes lightning and thunder'''''
 
           '''''Snowing lightly'''''
 
           '''''Snowing lightly'''''
 
           '''''Medium snowfall'''''
 
           '''''Medium snowfall'''''
Line 2,646: Line 6,483:
 
     '''Changing about every: ''<value>'' mins''' - enter number of minutes between weather changes
 
     '''Changing about every: ''<value>'' mins''' - enter number of minutes between weather changes
  
'''Known issues:'''
+
[[file:Notes.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Notes:</span>
    Do NOT use this rule as a child of an '''Ordered List Rule''' because any following rules will not be executed.
+
:This rule, once started, will run continuously and will not terminate. If this rule is to be used as a child rule of an '''Ordered List Rule''' then place it '''LAST''' in the list.
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#EIRS Weather Rule NE USA Rule|EIRS Weather Rule NE USA Rule]]''' - customize random weather rule relative to the North East Region of the United States
+
*'''[[#EIRS Weather Rule NE USA Rule|EIRS Weather Rule NE USA Rule]]''' - customize random weather rule relative to the North East Region of the United States
    '''[[#Startup Options Rule|Startup Options Rule]]''' - sets the weather conditions at the start of a Session
+
*'''[[#Startup Options Rule|Startup Options Rule]]''' - sets the weather conditions at the start of a Session
 +
*'''[[#Weather Rule|Weather Rule]]''' - changes the weather conditions during Session play
  
==='''Weather Rule'''===
+
<br>
 +
<table width=100% bgcolor=#ffffcc>
 +
<tr>
 +
<td>
 +
=='''Weather Rule'''==
 +
</td>
 +
</tr>
 +
</table>
  
 
Changes the weather conditions during Session play.
 
Changes the weather conditions during Session play.
  
'''<kuid:-25:960>'''
+
[[file:Properties.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Properties:</span>
 +
 
 +
*'''<kuid:-25:960>'''
  
 
*'''Built-in Rule'''
 
*'''Built-in Rule'''
  
'''Properties:'''
+
*'''Minimum Trainz Build: 2.0 (TRS2004)'''
     '''Set weather to ''<select mode>'' with ''<select frequency>'' changeability''' - select
+
 
       '''Weather mode:''' - select one of:-
+
[[file:Settings.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Rule Settings:</span>
 +
 
 +
     '''Set weather to ''<select mode>'' with ''<select frequency>'' changeability''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of:- </span>
 +
       '''Weather mode:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of:- </span>
 
           '''''Clear'''''
 
           '''''Clear'''''
 
           '''''Cloudy'''''  
 
           '''''Cloudy'''''  
Line 2,672: Line 6,522:
 
           '''''Medium Snow'''''
 
           '''''Medium Snow'''''
 
           '''''Heavy Snow'''''
 
           '''''Heavy Snow'''''
     '''Changeability:''' - select one of:-
+
     '''Changeability:''' - <span style="background-color: black; color: white; font-weight: 700;"> select one of:- </span>
 
           '''''Off''''' - the weather will not change from the mode selected above
 
           '''''Off''''' - the weather will not change from the mode selected above
 
           '''''Periodic''''' - slow gradual changes to the weather
 
           '''''Periodic''''' - slow gradual changes to the weather
 
           '''''Extreme''''' - rapid and extreme changes to the weather
 
           '''''Extreme''''' - rapid and extreme changes to the weather
  
'''Related Rules:'''
+
[[file:PageLink.PNG|link=]] <span style="text-decoration: underline; font-weight: 700;">Related Rules:</span>
    '''[[#EIRS Weather Rule NE USA Rule|EIRS Weather Rule NE USA Rule]]''' - customize random weather rule relative to the North East Region of the United States
+
*'''[[#EIRS Weather Rule NE USA Rule|EIRS Weather Rule NE USA Rule]]''' - customize random weather rule relative to the North East Region of the United States
    '''[[#Random Weather Rule v2|Random Weather Rule v2]]''' - randomly changes the weather according to entered parameters
+
*'''[[#Random Weather Rule v2|Random Weather Rule v2]]''' - randomly changes the weather according to entered parameters
    '''[[#Startup Options Rule|Startup Options Rule]]''' - sets the weather conditions at the start of a Session
+
*'''[[#Startup Options Rule|Startup Options Rule]]''' - sets the weather conditions at the start of a Session
 
+
<br>
'''[[#top|Back to Top]]'''
+
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=46><span id="bottom"></span>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#Weather|alt=Next Up|Next Up]]</td>
 +
<td width=75>&nbsp;</td>
 +
<td width=75>&nbsp;</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
----
 +
----
 +
='''Trainz Wiki'''=
 +
<table cellpadding="4" bgcolor=#ffffff>
 +
<tr valign="top">
 +
<td>[[file:TrainzWiki.png|link=]]</td>
 +
<td>
 +
<span style="font-size: 17px; font-weight: 700;">More Tutorials and Guides to Using Trainz</span><br>
 +
*'''<span class="plainlinks">[http://online.ts2009.com/mediaWiki/index.php/HowTo How to Guides]</span>'''
 +
*'''[[Driver Commands List]]'''
 +
*'''[[Session Rule List with Parameters|Session Rules List (Alphabetical) with Parameters]]'''
 +
</td>
 +
</tr>
 +
</table>
 +
----
 +
This page was created by Trainz users '''<span class="plainlinks">[http://online.ts2009.com/mediaWiki/index.php/User:Coop2 coop2]</span>''' and '''<span class="plainlinks">[http://online.ts2009.com/mediaWiki/index.php/User:Pware pware]</span>''' in September 2017 and was last updated as shown below.
 +
----
 +
[[Category:How-to_guides|HowTo Guides]]
 +
[[Category:Rules]]

Latest revision as of 20:20, 24 September 2023

The information in this Wiki Page applies to TANE, TRS19, TRS22 and Trainz Plus. It provides a list of Trainz Session Rules in Classification or Category Order with their properties and notes.

This page is always under construction. As new rules appear and are tested they will be added to this list. Current Count: 132

Only rules supplied with Trainz or on the DLS are covered in this document.

The rules listed in this page are all accessible in the WikiLink.PNG Surveyor Session Editor. Those rules that are identified as DLS Rule must be downloaded and installed from the Trainz DLS first.

Also available WikiLink.PNG Session Rule List (Alphabetical) with Parameters


Description Key:

  • <kuid number> is for the rule version at the time of writing. This number will change if the rule is updated.
  • DLS Rule must be downloaded and installed from the DLS.
  • Base Rule and Built-in Rule is installed with Trainz.
  • Minimum Trainz Build is the minimum version of Trainz required for the listed version of this rule to work. This can change to a higher build if the rule is updated. Older builds may be available on the DLS.
  • Parent Rule will execute child rules if it returns a true result.
  • Obsolete Rule is no longer required (explanation given).
  • Legacy Rule has been replaced by another rule (new rule will be identified).
  • Rules that are named TANE SP2 or TANE SP3 should also work in TRS19, TRS22 and Trainz Plus.

    Next Down Bottom

Contents


Top   Next Down Bottom

[edit] Achievement Rules

[edit] Achievement Check Rule

Executes child rules when achievement conditions have been met

Properties.PNG Rule Properties:

  • <kuid:401543:1190>
  • Built-in Rule
  • Minimum Trainz Build: 3.6 (TS12)
  • Parent Rule

Settings.PNG Rule Settings:

   <Not configured, click here to select an achievement asset> - click to select an Achievement Asset from those installed
       When an Achievement Asset has been selected, the following will appear:- 
      Achievement KUID: <selected asset name> - click to change the selected Achievement Asset
      Achievement name: <not set> - click to select the achievement name from the selected asset
      Trigger if achievement: <select> -  choose one of:- 
         has been gained - the rule will be triggered when this achievement has been gained
         has not been gained - the rule will be triggered when this achievement has NOT been gained

WikiLink.PNG Trainz Wiki Links:


[edit] Consist Check Rule

Executes child rules when a matching consist is found. The order of the vehicles in the consists is not important.

Properties.PNG Rule Properties:

  • <kuid:-25:1155>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)
  • Parent Rule

Settings.PNG Rule Settings:

   [x] Enforce strict exclusive testing - check to only accept an exact match with no unspecified vehicles in the consist.
      - leave unchecked to accept any consist that contains the specified vehicles. 
    Select one of two option buttons:- 
   ( ) Rule disabled - select to disable the operation of this rule
   ( ) Complete whenever a train matching the description exists - When selected, enter the consist description:-
      Specific vehicle - identify the specific vehicle(s) that will trigger the rule
         + - click to add a specific vehicle from the session list
         x - click to remove the specific vehicle from the rule
      Vehicle types - identify the type of vehicle(s) that will trigger the rule
         + - click to add a type of vehicle from the session list
         x - click to remove the type of vehicle from the rule
      Drivers - identify the driver(s) that will trigger the rule
         + - click to add a driver from the session list
         x - click to remove a driver from the rule

Issues.PNG Known Issues:

When used as a top level parent rule it does not terminate after triggering but will continue to check all consists for a match and will trigger every time another match is found.

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


[edit] Multiple Resource Check Rule

Executes child rules if industries or vehicles reach set commodity levels. This rule replaces the older Resource Check Rule

Properties.PNG Rule Properties:

  • <kuid:-25:1293>
  • Built-in Rule
  • Minimum Trainz Build: 4.5 (TANE SP2) (earlier builds are available)
  • Parent Rule

Settings.PNG Rule Settings:

   <Product Level> -  click to select a product test from two choices:- 
      Reach/Exceed - sets an upper limit for the resources being monitored. 
         For example: the rule will be triggered if the quantity of coal in a coal loader stockpile or a coal wagon reaches or exceeds a specified level.
         The initial level in the object must be below the set upper limit.
      Fall below - sets a lower limit for the resources being monitored. 
         For example: the rule will be triggered if the quantity of coal in a coal loader stockpile or a coal wagon falls below a specified level. 
         The initial level in the object must be above the set lower limit. 
         To test when a resource level reaches zero (i.e. is empty) set the lower limit to a very low value but not zero as the level can never fall below zero. 
   <value> - enter required quantity value
   <select> - select a product from session list of products
   <Add object> - click to select a source or target object. Multiple objects and their queues can be added to the rule. 
      ALL the entered products must reach/exceed or fall below the specified value for the rule to be triggered. 
       For each object:- 
         <Object> - click to select session active industry or product enabled rail vehicle 
         <Queue> - select product queue (there may be only one available)
         <Remove> - removes the object and its product queue from the rule

Notes.PNG Notes:

This rule only checks for changing commodity levels during loading and unloading operations. It cannot be used to test, for example, if a vehicle is full or empty.

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


[edit] Objective Add Rule

Sets up a game Objective with ID and display Name

Properties.PNG Rule Properties:

  • <kuid:401543:2001>
  • Base Rule
  • Minimum Trainz Build: 3.8 (TANE) (the required version is built into each appliciable Trainz release)

Settings.PNG Rule Settings:

   Priority <Select> -  select one of:- 
      Above Normal
      Below Normal
      Normal
      Optional
      Urgent
   Completion Target Number <value> - to set Completion Target Number
   Icon <select> - to select Icon from list
   Display Name <enter> - to insert Name
   Unique Objective ID <enter> - enter a unique objective ID
   Custom Message <Text Box> - insert typed message in text area

PageLink.PNG Related Rules:


[edit] Objective Check Rule

Executes child rules if an objective created with the Objective Add Rule is complete.

Properties.PNG Rule Properties:

  • <kuid:401543:2003>
  • Base Rule
  • Minimum Trainz Build: 3.8 (TANE) (the required version is built into each appliciable Trainz release)
  • Parent Rule

Settings.PNG Rule Settings:

   Unique Objective ID <value> - enter the unique ID created with the Objective Add Rule 
   Mode <select> -  select one of three:- 
      Wait for completion
      Wait for failure
      Wait for progress

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Objective Update Rule

Changes progress of an objective outcome created with the Objective Add Rule according to Property choices

Properties.PNG Rule Properties:

  • <kuid:401543:2002>
  • Base Rule
  • Minimum Trainz Build: 3.8 (TANE) (the required version is built into each appliciable Trainz release)

Settings.PNG Rule Settings:

   Unique Objective ID <value> - enter the unique ID created with the Objective Add Rule 
   Mode <select> -  select one from the following options:- 
      Decrement progress
      Increment progress
      Reset Objective
      Set objects as complete
      Set objects as failed
      Set progress
      Set progress only if greater
   Amount <value> - click to enter a value

PageLink.PNG Related Rules:


[edit] Ranked Session Begin Rule

Begins a ranked Session

Properties.PNG Rule Properties:

  • <kuid2:401543:2031:2>
  • Base Rule
  • Minimum Trainz Build: 3.6 (TS12) (the required version is built into each appliciable Trainz release)

Settings.PNG Rule Settings:

   Countdown Starting Value <value>
      hrs:
      min:
      sec:
   1 through 5 stars, points for each star <value> - enter number of points for each star rating
   Session timer mode: -  select one of three option buttons:- 
      ( ) Timer
      ( ) Countdown Starting value <value> - enter time hh:mm:ss
      ( ) None

Notes.PNG Notes:

Times are Trainz clock time, not real time

PageLink.PNG Related Rules:


[edit] Ranked Session Complete Rule

Completes the active ranked Session

Properties.PNG Rule Properties:

  • <kuid2:401543:2032:2>
  • Base Rule
  • Minimum Trainz Build: 3.6 (TS12) (the required version is built into each appliciable Trainz release)

Settings.PNG Rule Settings:

   Set the active ranked session as: -  select one of two option buttons:- 
      ( ) Complete
      ( ) Failed
   [x] Customize the completion message <text> - enter a text message

PageLink.PNG Related Rules:


[edit] Resource Check Rule

Executes child rules if a selected industry or vehicle reaches a set commodity level. This rule has been superseded by the Multiple Resource Check Rule

Properties.PNG Rule Properties:

  • <kuid:-25:1337>
  • Built-in Rule
  • Minimum Trainz Build: 4.5 (TANE SP2) (earlier builds are available)
  • Legacy Rule (replaced by Multiple Resource Check Rule)
  • Parent Rule

Settings.PNG Rule Settings:

    Select one of two option buttons:- 
      ( ) Watch industry queue
         Target Object <select> - select an industry from the session list
         Queue <select> - select a product queue from the selected industry
         Product <select> - select a product from the selected queue
         Amount <value> - enter a quantity
          Select one of two option buttons:- 
            ( ) Complete when designated queue equals or exceeds required amount
            ( ) Complete when designated queue falls below required amount
      ( ) Watch vehicle
         Target Object <select> - select a rolling stock asset from the session list
         Queue <select> - select a product queue from the selected rolling stock
         Product <select> - select a product from the selected queue
         Amount <value> - enter a quantity
          Select one of two option buttons:- 
            ( ) Complete when designated queue equals or exceeds required amount
            ( ) Complete when designated queue falls below required amount

Notes.PNG Notes:

This rule only checks for changing commodity levels during loading and unloading operations. It cannot be used to test, for example, if a vehicle is full or empty.

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Resource Verify Rule (fixed)

Executes child rules if a selected industry or vehicle reaches a set commodity level. The rule resets when all child rules have completed.

Properties.PNG Rule Properties:

  • <kuid:160293:10060>
  • DLS Rule by trev999
  • Minimum Trainz Build: 3.5 (TS12)
  • Parent Rule

Settings.PNG Rule Settings:

    Select one of two option buttons:- 
   ( ) Watch industry queue
      Target object <click to select> - click to select an industry from the session list.
      Product <click to select> - click to select an industry product.
      Amount <value> - enter a quantity for the selected product.
       Select one of two option buttons:- 
      ( ) Complete when designated queue equals or exceeds designated amount
      ( ) Complete when designated queue falls below designated amount
   ( ) Watch vehicle queue
      Target object <click to select> - click to select a rolling stock vehicle from the session list.
      Product <click to select> - click to select a commodity product.
      Amount <value> - enter a quantity for the selected product.
       Select one of two option buttons:- 
      ( ) Complete when designated queue equals or exceeds designated amount
      ( ) Complete when designated queue falls below designated amount

Notes.PNG Notes:

  1. This rule will only monitor a single commodity in a single industry or vehicle.
  2. This rule only checks for changing commodity levels during loading and unloading operations. It cannot be used to test, for example, if a vehicle is full or empty.

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Station Visited Check Rule

Executes child rules if specific trains call at set stations or industries

Properties.PNG Rule Properties:

  • <kuid2:60850:89005:6>
  • Built-in Rule
  • Minimum Trainz Build: 4.6 (TRS19) (earlier builds are available)
  • Parent Rule

Settings.PNG Rule Settings:

   Trigger: <select> -  click to select one of the following:- 
      Never - stopping at the selected industries will never trigger the rule.
      Once only - the rule is triggered on the first visit only to any one of the selected industries
      Once per industry - the rule is triggered on the first visit to each industry with each individual product
      Once per visit - the rule is triggered on the first visit to each industry regardless of the product
      Once per vehicle - each vehicle can only trigger the rule once. 
   <select industry> - select industry or industries from session list
    Select one of two option buttons:- 
      ( ) click to accept all trains
      ( ) click to accept trains matching specific criteria
          Selecting the second option will produce the following selection controls:-          
         Specific vehicle - identify the specific vehicle or set of specific vehicles that will trigger the rule
            + - click to add a specific vehicle from the session list
            x - click to remove the specific vehicle from the rule
         Vehicle types - identify the type of vehicle or a set of vehicle types that will trigger the rule
            + - click to add a type of vehicle from the session list
            x - click to remove the type of vehicle from the rule
         Drivers - identify the drivers that will trigger the rule
            + - click to add a driver from the session list
            x - click to remove a driver from the rule

WikiLink.PNG Trainz Wiki Links:


Top Next Up Next Down Bottom

[edit] Camera Rules

[edit] Cinematic Camera Rule

Provides several different cinematic style cameras with animations. Best used at the start of a session. Use the Trackside Camera (tracking view) found in the Set Camera Rule during session play.

Properties.PNG Rule Properties:

  • <kuid2:401543:1166:18>
  • Built-in Rule
  • Minimum Trainz Build: 4.6 (TRS19) (earlier builds are available)

Settings.PNG Rule Settings:

   [x] Lock camera controls for the duration - if checked user cannot alter camera view
   [x] Prevent train control for duration - if checked user cannot control train
   Camera target: <click to select> - click to select the object from the session list that will be the camera target
   Camera mode: -  select one of three option buttons:- 
      ( ) Stationary
      ( ) Circle targeted object
      ( ) Move from one point to another (zoom, pan, etc)
   Initial camera values:
      [x] Pitch: <value> - check to select then click value to enter a pitch value
      [x] Yaw:   <value> - check to select then click value to enter a yaw value
      [x] Zoom:  <value> - check to select then click value to enter a zoom value
   Total time to animate:  <value> - enter an animation time in seconds

Notes.PNG Notes:

Times are Trainz clock times, not real times

PageLink.PNG Related Rules:


[edit] Focus Camera Rule

Sets the initial camera view and starting vehicle for a session.

Properties.PNG Rule Properties:

  • <kuid2:122381:10014:1>
  • DLS Rule by mizi
  • Minimum Trainz Build: 2.4 (TRS2004 SP4)

Settings.PNG Rule Settings:

   Focus camera to: -  select one of two option buttons:- 
      ( ) Map object
      ( ) Vehicle
   Named <?????> - enter name of object or vehicle from session list
    Additionally: 
      [x] set view mode to -  check to select one of four option buttons:- 
         ( ) Internal view
         ( ) External view
         ( ) Tracking view
         ( ) Roaming view
      [x] restrict user to manipulate the camera - check to set user limits on camera controls
         [x] allow internal view
         [x] allow external view
         [x] allow tracking view
         [x] allow roaming view
         [x] allow change of view mode
         [x] allow change vehicle in train
         [x] allow change trains
         [x] allow adjust camera viewpoint
      [x] set camera angles - check to set the initial camera view point
         Yaw (90 = look at front of train): <value> degrees - enter yaw angle 
         Pitch (-90 = down, 90 = up): <value> degrees - enter pitch angle
         Distance from the focused object: <value> metres - enter distance from camera to object

PageLink.PNG Related Rules:


[edit] Set Camera Rule

Sets the target object and properties of the camera.

Properties.PNG Rule Properties:

  • <kuid:-25:1486>
  • Built-in Rule
  • Minimum Trainz Build: 4.5 (TANE SP2) (earlier builds are available)

Settings.PNG Rule Settings:

   [x] Set the target object of the camera to: -  if checked, select one of three option buttons:- 
      ( ) Vehicle <click to select> - select a vehicle from the Session list
      ( ) Junction <click to select> - select a junction from the Session list
      ( ) Map Object <click to select> - select a named map object from the Session list
   [x] Change the camera view mode to <click to select> -  if checked, select one camera view mode from:- 
      Cab View
      External View
      Tracking View
      Free Roaming
   [x] Set the camera flags to enable/disable user access to -  if checked, select as many of the following check boxes as needed:- 
      [x] Internal view mode - check to enable, uncheck to disable
      [x] External view mode - check to enable, uncheck to disable
      [x] Tracking view mode - check to enable, uncheck to disable
      [x] Roaming view mode - check to enable, uncheck to disable
      [x] View switching - check to enable, uncheck to disable
      [x] Vehicle view switching - check to enable, uncheck to disable
      [x] Train view switching - check to enable, uncheck to disable
      [x] Camera adjustments (pan, zoom, etc) - check to enable, uncheck to disable

PageLink.PNG Related Rules:


[edit] Wait for Camera View Mode Rule

Executes child rules when the camera view is changed to a selected view

Properties.PNG Rule Properties:

  • <kuid:-25:1270>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)
  • Parent Rule

Settings.PNG Rule Settings:

   [x] Trigger rule once - check to set
   Wait for the camera to change to the <click to select> -  select one camera view mode from:- 
      Cab View
      External View
      Tracking View
      Free Roaming
   [x] Wait for the camera to target vehicle <click to select> - if checked, select a vehicle from the Session list

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


Top Next Up Next Down Bottom

[edit] Danger, Derailment and Safety Rules

[edit] ATP Speed Limiter Rule

Limits allowable speed over set limit

Properties.PNG Rule Properties:

  • <kuid2:321959:1000:4>
  • Built-in Rule
  • Minimum Trainz Build: 4.6 (TRS19) (earlier builds are available)

Settings.PNG Rule Settings:

   Limits the speed to <value> mph over the set limit - enter speed value in mph

PageLink.PNG Related Rules:

  • AWS Configuration Rule - configures the Trainz implementation of the Automatic Warning System when approaching signals


[edit] AWS Configuration Rule

This rule configures the Trainz implementation of the Automatic Warning System when approaching signals

Properties.PNG Rule Properties:

  • <kuid2:60850:89002:3>
  • Built-in Rule
  • Minimum Trainz Build: 3.2 (TS2010)

Settings.PNG Rule Settings:

    Select one of three option buttons:- 
      ( ) Active
      ( ) Passive
      ( ) Passive with HUD hidden
   [x] Simulate AWS for unfitted cabs?
   [x] Use modern sound set for unfitted cabs?

[edit] Clean Up Derailed Trains Rule

Cleans up derailed train cars after a set time delay

Properties.PNG Rule Properties:

  • <kuid2:60850:89003:1>
  • Base Rule
  • Minimum Trainz Build: 4.5 (TANE SP2) (the required version is built into each appliciable Trainz release)

Settings.PNG Rule Settings:

   Set delay to clean up derailed traincars to
      <h>: - click to enter the number of hours (0-23) to wait
      <mm>: - click to enter the number of minutes (0-59) to wait
      <ss>: - click to enter the number of seconds (0-59) to wait

Notes.PNG Notes:

Time is Trainz clock time, not real time.

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Coupler Breakage Check Rule

Executes child rules if there is a coupler breakage

Properties.PNG Rule Properties:

  • <kuid2:447264:1017:3>
  • Built-in Rule
  • Minimum Trainz Build: 4.6 (TRS19) (earlier builds are available)
  • Parent Rule

Settings.PNG Rule Settings:

   None

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Coupler Breakage HUD Rule

HUD displays warning about coupler stress and breakage

Properties.PNG Rule Properties:

  • <kuid:-25:423>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

    Select one of two option buttons:- 
      ( ) Show the Coupler Breakage Display
      ( ) Hide the Coupler Breakage Display

PageLink.PNG Related Rules:


[edit] Junction Derailment Prevention Rule

Sets opposing (trailing) junctions ahead of a train to prevent derailments. Works with both AI and manually driven trains.

Properties.PNG Rule Properties:

  • <kuid2:121843:100282:1>
  • DLS Rule by pitkin
  • Minimum Trainz Build: 3.5 (TS12)

Settings.PNG Rule Settings:

   None

Notes.PNG Notes:

This rule will not overrule a junction already locked by another AI train or locked against AI control using the Set Junctions Rule.

PageLink.PNG Related Rules:


[edit] Replace Missing Vehicles Rule

Produces new trains to replace missing vehicles that have been removed from the session by the Clean Up Derailed Trains Rule

Properties.PNG Rule Properties:

  • <kuid:447264:1214>
  • Built-in Rule
  • Minimum Trainz Build: 3.4 (TS2010 SP4)

Settings.PNG Rule Settings:

   [x] Respawn trains if they are abandoned for 10 minutes
    If checked:- 
       Select one of two option buttons:- 
         ( ) Respawn trains at their original locations
         ( ) Respawn trains from portals
            <+ Add a new portal> - click to enter the name of a portal, there can be more than one portal.
             Entered portal names that appear in red have not been found in the session 

PageLink.PNG Related Rules:


[edit] Safety System Engaged Check Rule

Executes child rules if safety systems are applied.

Properties.PNG Rule Properties:

  • <kuid:447264:1216>
  • Built-in Rule
  • Minimum Trainz Build: 2.9 (TS2009)
  • Parent Rule

Settings.PNG Rule Settings:

   [x] Trigger only once

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Safety System Isolated Check Rule

Executes child rules if safety systems are isolated (disengaged).

Properties.PNG Rule Properties:

  • <kuid:447264:1217>
  • Built-in Rule
  • Minimum Trainz Build: 2.9 (TS2009)
  • Parent Rule

Settings.PNG Rule Settings:

   [x] Trigger only once

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Set Coupler Masks Rule

Set the coupling/decoupling masks on the selected vehicles

Properties.PNG Rule Properties:

  • <kuid:-25:1272>
  • Built-in Rule
  • Minimum Trainz Build: 4.5 (TANE SP2) (earlier builds are available)

Settings.PNG Rule Settings:

   <Add vehicle> - click to select a vehicle from the session list
   <Add All> - click to add all vehicles in the session list
   <Delete All> - click to remove all added vehicles from this rule
       For each selected vehicle:- 
      Coupling Mask
         Front and Back -  choose for each:- 
            Locked
            Unlocked
      Decoupling Mask
         Front and Back -  choose for each:- 
            Locked
            Unlocked
      <Remove> - click to remove this vehicle from the rule

PageLink.PNG Related Rules:


[edit] Signal Passed At Danger Check Rule

Executes child rules if a signal or stop mark is Passed at Danger (STOP).

Properties.PNG Rule Properties:

  • <kuid2:60850:89007:4>
  • Built-in Rule
  • Minimum Trainz Build: 4.6 (TRS19) (earlier builds are available)
  • Parent Rule

Settings.PNG Rule Settings:

   [x] Trigger only once

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


[edit] Speeding Check Rule

Executes child rules if player controlled trains are over the local speed limit or over a set (custom) speed

Properties.PNG Rule Properties:

  • <kuid2:60850:89004:6>
  • Built-in Rule
  • Minimum Trainz Build: 4.6 (TRS19) (earlier builds are available)
  • Parent Rule

Settings.PNG Rule Settings:

    Select one of two options to set a speed limit to be observed:- 
      ( ) Watch for trains travelling above the posted speed limit
         <speed value> - click to enter a new overspeed tolerance value
         <speed units> -  click to select one from the list:- 
            Km/h - Kilometres per hour
            MPH - Miles per hour
            mps - metres per second
      ( ) Watch for trains travelling above a custom speed
         <speed value> - click to enter a new custom speed value
         <speed units> -  click to select one from the list:- 
            Km/h - Kilometres per hour
            MPH - Miles per hour
            mps - metres per second
             Warning: This option is very performance intensive and should only be used in sessions with few trains 

WikiLink.PNG Trainz Wiki Links:


[edit] Vehicle Physics Rule

Overrides the default vehicle physics properties for all vehicles or for those matching set criteria

Properties.PNG Rule Properties:

  • <kuid:-25:1260>
  • Built-in Rule
  • Minimum Trainz Build: 4.5 (TANE SP2) (earlier builds are available)

Settings.PNG Rule Settings:

    Select one of two option buttons:- 
      ( ) click to accept all trains
      ( ) click to accept trains matching specific criteria
          Selecting the second option will produce the following selection controls:- 
         Specific vehicle - identify the specific vehicle or set of specific vehicles that will trigger the rule
            + - click to add a specific vehicle from the session list
            x - click to remove the specific vehicle from the rule
         Vehicle types - identify the type of vehicle or a set of vehicle types that will trigger the rule
            + - click to add a type of vehicle from the session list
            x - click to remove the type of vehicle from the rule
         Drivers - identify the drivers that will trigger the rule
            + - click to add a driver from the session list
            x - click to remove a driver from the rule
   Coupler Parameters:
      Couplers break at <value> kN expansion force - enter force value
      Couplers break at when coupling above <value> kph - enter speed value
      [x] Show coupler breakage in HUD - check to display breakage in on-screen HUD
   Wheelslip Parameters:
      Maximum tractive effort adjusted by <value> % - enter adjustment as a %
      Traction is reduced to <value> % while wheelslipping - enter value as a %
      Traction boost is <value> % while sanding - enter value as a %
   Sway Parameters:
      Cab sway level is set to <value> % - enter value as a %


[edit] Wait for Derailment Rule

Executes child rules when a derailment occurs

Properties.PNG Rule Properties:

  • <kuid:-25:1262>
  • Built-in Rule
  • Minimum Trainz Build: 4.6 (TRS19) (earlier builds are available)
  • Parent Rule

Settings.PNG Rule Settings:

   [x] Trigger derailment watch once - check to execute the rule once only

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


Top Next Up Next Down Bottom

[edit] Driver Rules

[edit] AI Start Rule

Restarts all halted AI controlled trains. Drivers will continue with the commands in their driver command list.

Properties.PNG Rule Properties:

  • <kuid2:400048:100981:1>
  • DLS Rule by callavsg
  • Minimum Trainz Build: 4.5 (TANE SP2)

Settings.PNG Rule Settings:

   None

PageLink.PNG Related Rules:


[edit] AI Stop Rule

Halts all AI controlled trains but does not delete their driver commands. AI trains can be restarted with the AI Start Rule or by issuing individual Continue Schedule commands.

Properties.PNG Rule Properties:

  • <kuid2:400048:100980:1>
  • DLS Rule by callavsg
  • Minimum Trainz Build: 4.5 (TANE SP2)

Settings.PNG Rule Settings:

   None

PageLink.PNG Related Rules:


[edit] Control Check Rule

Executes child rules if the train control method has been altered or a specific method has been selected.

Properties.PNG Rule Properties:

  • <kuid:401543:1191>
  • Built-in Rule
  • Minimum Trainz Build: 3.6 (TS12)
  • Parent Rule

Settings.PNG Rule Settings:

 Execute child rules when: -  select one of two option buttons:- 
    ( ) DCC mode is Selected
    ( ) Cab mode is Selected
 Execute child rules: -  select one of two option buttons:- 
    ( ) Every time control method is set
    ( ) Once only

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Control Type Rule

Sets the control method

Properties.PNG Rule Properties:

  • <kuid:-16:2030>
  • Base Rule
  • Minimum Trainz Build: 2.0 (TRS2004) (the required version is built into each appliciable Trainz release)

Settings.PNG Rule Settings:

 Current control method is: <select> -  click to select one of:- 
    Easy Mode - DCC (standard keyboard and mouse) control
    Ask User - let the user decide
    Realistic Mode - Cab controls (on screen levers, throttles, buttons, etc)

PageLink.PNG Related Rules:


[edit] Disallow AI Rule

Cancels (deletes) all current and waiting AI commands for all drivers

Properties.PNG Rule Properties:

  • <kuid:400048:100603>
  • DLS Rule by callavsg
  • Minimum Trainz Build: 4.5 (TANE SP2)

Settings.PNG Rule Settings:

  None

PageLink.PNG Related Rules:


[edit] Driver Command Check Rule

Executes child rules if the driver commands match a set list.

Properties.PNG Rule Properties:

  • <kuid:-25:447>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)
  • Parent Rule

Settings.PNG Rule Settings:

 [x] Trigger rule once - check to allow the rule to execute only once
 Driver character to watch the command list of <select> - select a driver name from the Session List
 Wait for driver character to have a command list that matches this:
    <add driver command> - add a driver command from the session list. More commands can be added. Commands can be deleted.
    <add all> - adds ALL driver commands in the session list. Individual commands can be removed.
    <delete all> - deletes all entered driver commands from the session rule

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Driver Command Rule

Specifies which commands will be available for the drivers

Properties.PNG Rule Properties:

  • <kuid:-3:10057>
  • Base Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

    For each installed Driver Command:- 
   [x] Name of Driver Command and Description (if available) - check to make that command available to the drivers

Notes.PNG Notes:

Some Driver Commands that have been checked will not appear in the Command Lists for drivers if there is no target for their action. For example:
The Wait For Trigger command will not be available to any drivers if there are no triggers set.
The Call At command will not be available to any drivers if there are no industry active assets or passenger enabled stations.

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


[edit] Driver Main Menu Options Rule

Show/Hide the Driver Main Menu Bar

Properties.PNG Rule Properties:

  • <kuid:-25:448>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

   <Show/Hide> the Driver Main Menu Bar - click Show or Hide to select


[edit] Driver Schedule Rule

Sets up a list of basic scheduled commands

Properties.PNG Rule Properties:

  • <kuid2:82445:90001:9> by transiberiano
  • Built-in Rule
  • Minimum Trainz Build: 2.5 (TRS2006) (earlier builds are available)

Settings.PNG Rule Settings:

   Driver Schedule Assigned to name of driver <icon> - click icon to select a driver from those assigned in the Driver Setup Rule
   Next commands, will be executed  
      >> - click to enter driver commands from those specified in the Driver Command Rule
   Style: -  select one of four option buttons:- 
      ( ) Classic style: If there is a schedule do not emit a new schedule - any currently assigned set of driver commands will not be replaced
      ( ) Killer style: If there is a schedule clean it and emit a new one - replace any currently assigned driver commands with the new commands
      ( ) Cooperative style: If there is a schedule append the new one - add the new driver commands to the end of any existing commands
      ( ) Active style: Emit a new schedule, only if already a schedule running - only add the new commands if commands are currently running

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:


[edit] Driver Setup Rule

Creates the list of drivers for this session and assigns them their orders

Properties.PNG Rule Properties:

  • <kuid:-25:1485>
  • Base Rule
  • Minimum Trainz Build: 4.5 (TANE SP2) (the correct version is built into each appliciable Trainz release)

Settings.PNG Rule Settings:

   <driver icon> - click to select a new driver from the list of installed and built in drivers
   <loco> - click to select a new locomotive from the session list and assign it to this driver. Locos displayed in red have not been found in the session list
   <driver name> - click to enter a new name for the selected driver
   <driver mode> -  click to select one of:- 
      Autodetect - the program will detect the driver mode to be used. For example, if driver commands have been entered for this driver
         then the AI driver mode will be selected
      First Human Player - the driver will be assigned to the user or multiplayer who accesses her/him first
      AI driver - the AI will be given control even if no commands are present
      Multiplayer Driver - the driver will be assigned to a multiplayer user
   <remove> - this driver will be removed from the rule
   >> - click to enter driver commands from those specified in the Driver Command Rule
     Scroll down to the bottom of the list of entered drivers for more options:- 
 <Add another driver> - click to add another driver 
 [x] Remove all existing Drivers first -  see Known Issues below 
 [x] Generate new Drivers for empty Trains - when checked all newly added locos will automatically be given drivers

Issues.PNG Known Issues:

  1. The Remove all existing Drivers first option does not appear to work in TANE (but works in TRS19 and later)
  2. Adding a large number of drivers to a session can cause Timeout errors. One known workaround is to split the drivers between two copies of the Driver Setup Rule and make the second copy a child of a Wait Rule. For more details see the Wiki How to Use Driver Setup Rule. This issue has been reported as FIXED in TRS19 SP1 and Trainz Plus

Notes.PNG Notes:

The driver at the top of the list will have the camera focus when the Session starts. There is no way to move a driver up the list order except by removing the higher drivers

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


[edit] Driver Speed Rule

Assigns maximum speeds to driver names. Works with Variable Speed Boards (VSBs) positioned along the tracks.

Properties.PNG Rule Properties:

  • <kuid2:69937:200029:3>
  • DLS Rule by stryker
  • Minimum Trainz Build: 4.6 (TRS19) (earlier builds are available)

Settings.PNG Rule Settings:

   For each Driver:
   Driver Name - click <Standard Train/Slow Freight/Express Train> to cycle between the options

Notes.PNG Notes:

Standard Train drivers will be assigned the middle VSB speed limit
Slow Freight drivers will be assigned the slowest VSB speed limit
Express Train drivers will be assigned the highest VSB speed limit


[edit] Enable/Disable Driver Commands Rule

Enable/Disable specific driver commands on certain drivers. Multiple copies of the rule can be used to give different drivers or consists different command lists

Properties.PNG Rule Properties:

  • <kuid:-25:480>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

   <Enable/Disable> the following driver commands ... - click to select Enable or Disable
    For each driver command:- 
   [x] command name - check to enable or disable
   [x] command name - check to enable or disable
   [x] command name - check to enable or disable
   etc
    Select one of two option buttons:- 
      ( ) click to accept all trains
      ( ) click to accept trains matching specific criteria
          Selecting the second option will produce the following selection controls:- 
         Specific vehicle - identify the specific vehicle or set of specific vehicles that will trigger the rule
            + - click to add a specific vehicle from the session list
            x - click to remove the specific vehicle from the rule
         Vehicle types - identify the type of vehicle or a set of vehicle types that will trigger the rule
            + - click to add a type of vehicle from the session list
            x - click to remove the type of vehicle from the rule
         Drivers - identify the drivers that will trigger the rule
            + - click to add a driver from the session list
            x - click to remove a driver from the rule

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] JTG Correct Vehicle Lights

Corrects the brightness of vehicle headlights for JTG locos.

Properties.PNG Rule Properties:

  • <kuid2:478657:999103:2>
  • DLS Rule by jtg-trainz
  • Minimum Trainz Build: 4.3 (TANE SP1)

Settings.PNG Rule Settings:

   None

PageLink.PNG Related Rules:


[edit] Loco Lighting Control Rule

Sets the ON and OFF times for loco headlights and the weather conditions that will turn ON the head and tail lights during the day.

Properties.PNG Rule Properties:

  • <kuid2:87589:90002:7>
  • DLS Rule by didoz
  • Minimum Trainz Build: 3.5 (TRS12 SP1)

Settings.PNG Rule Settings:

 Time settings: 
Turn headlights on at <hour>:<minute> - enter clock time in hours (24hr format) and minutes for headlights ON
Turn headlights off at <hour>:<minute> - enter clock time in hours (24hr format) and minutes for headlights OFF

   set both times to 00:00 for always ON

 Weather settings: 
Turn headlights on if it is <Rain> - select from a list of weather conditions which will turn the headlights ON during the day

 Tail light settings: 
Tail light status at day is
ON/OFF - click button to toggle between ON and OFF

Tail light status if raining at day is
ON/OFF - click button to toggle between ON and OFF. This switch can only be activated if "status at day" setting is OFF

Notes.PNG Notes:

Times are Trainz clock time, not real time

PageLink.PNG Related Rules:


[edit] ScheduleAtTrackMark Rule

Allows a set of driver commands to be given to a train when it reaches a trackmark or trigger.

Properties.PNG Rule Properties:

  • <kuid2:61392:2001:6>
  • DLS Rule by pguy
  • Minimum Trainz Build: 3.8 (TANE) (earlier builds are available)

Settings.PNG Rule Settings:

   <Select trackmark> - <Select trigger> - click one to select a trackmark from the Session list or a trigger from the Session list
   Schedule will be fired <in both directions/in trackside forward direction/in trackside backward direction> - click to select one. Only available if trackmark has been selected
   This rule will be applied <all along the session> - click to enter the number of times to trigger the rule. 0 = everytime (all along the session)
   Enter driver commands to schedule when train is at trackside
      >> - click to enter driver commands from those specified in the Driver Command Rule
    Select one of two option buttons:- 
      ( ) new schedule will replace current driver command - select to delete any current command list and replace it with the command list above
      ( ) new schedule will be appended to current driver commands - select to add the command list above above to the current driver command list
   <add a new trackside entry> - click to add a new ScheduleAtTrackMark entry below

PageLink.PNG Related Rules:


[edit] Schedule Library Rule

Creates a library of driver schedules (driver command lists) that can be given to drivers during the creation or running of a session

Properties.PNG Rule Properties:

  • <kuid2:192081:12:5>
  • Built-in Rule by brummfondel
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

  <add schedule> | <add group>
      To add individual schedules click <add schedule> then:- 
       <library Entry Name> - enter a unique name for the schedule
          <library Entry Name> - click to edit name
          <remove> - click to delete this schedule from the list
          <copy> - click to add a copy this schedule to the current group
          <move to group> - click to move this schedule to a schedule group
          In the driver command bar:-
             >> - click to enter driver commands from those specified in the Driver Command Rule
       To add groups of schedules click <add group> then:- 
       <Group Name> - enter a unique name for the group
           - - click to close the group list
           + - click to open the group list
           <Group Name> - click to edit name
           <remove> - click to delete this group from the schedule list

Notes.PNG Notes:

  1. Create the library schedules in this rule first.
  2. In Surveyor (using the Driver Setup Rule) or Driver (directly in a driver command bar) add the Driver Command Copy Commands From and select the command schedule to be added or appended. The driver command Copy Commands From must be enabled in the Driver Command Rule.

PageLink.PNG Related Rules:

PageLink4.PNG Dependent Driver Commands

The rule must be added to the Session for the following Driver Command to work

Ex.PNG Examples of Use:


[edit] Schedule Rule

Allows a schedule of timed events to be applied to a train

Properties.PNG Rule Properties:

  • <kuid:-3:10185>
  • Base Rule
  • Minimum Trainz Build: 4.5 (TANE SP2)

Settings.PNG Rule Settings:

   Insert track mark <select> - select a track mark from the Session List
   Arrival and Departure Time <Select> - set time
      hh:mm:ss - in hours/minutes/seconds
   Current Train <select> - select from session list
   Insert destination <select> - select from session list

BugMini.PNG Known Bugs:

There are reports that this rule does not work correctly particularly if a train arrives late or early.

Notes.PNG Notes:

Times are Trainz clock times, not real time

PageLink.PNG Related Rules:

WWWLinks.PNG Other Links:


[edit] Wait for Driver On/Off Train Rule

Executes child rules when a driver gets on or off a train

Properties.PNG Rule Properties:

  • <kuid:-25:1236>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)
  • Parent Rule

Settings.PNG Rule Settings:

 [x] Trigger Rule Once - click to set 
 Wait for a driver character to get <On/Off> a train that matches the following criteria - select On or Off
  Select one of two option buttons:- 
    ( ) click to accept all trains
    ( ) click to accept trains matching specific criteria
        Selecting the second option will produce the following selection controls:- 
       Specific vehicle - identify the specific vehicle or set of specific vehicles that will trigger the rule
          + - click to add a specific vehicle from the session list
          x - click to remove the specific vehicle from the rule
       Vehicle types - identify the type of vehicle or a set of vehicle types that will trigger the rule
          + - click to add a type of vehicle from the session list
          x - click to remove the type of vehicle from the rule
       Drivers - identify the drivers that will trigger the rule
          + - click to add a driver from the session list
          x - click to remove a driver from the rule

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Wait for Driver/Train to be Locally Owned Rule

Executes child rules when a specific driver or vehicle is locally owned. If the driver/vehicle becomes unowned again the child rules are paused

Properties.PNG Rule Properties:

  • <kuid2:401543:1173:1>
  • Built-in Rule
  • Minimum Trainz Build: 4.7 (TRS19 SP2) (earlier builds are available)
  • Parent Rule

Settings.PNG Rule Settings:

 Assets Ownership: -  select one of two option buttons:- 
    ( ) Wait for ownership of a specific Driver
    ( ) Wait for ownership of Driver controlling a specific vehicle
 Driver or Vehicle <select> - choose from session list of drivers for specific driver and vehicles for specific vehicle

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


Top Next Up Next Down Bottom

[edit] HUD (Heads Up Display) Rules

[edit] Cab Controls HUD Rule

Was used to provide the HUD controls for the cabin view. Now obsolete.

Properties.PNG Rule Properties:

  • <kuid:-16:287428>
  • Base Rule
  • Minimum Trainz Build: 2.0 (TRS2004)
  • Obsolete Rule (function is now built into Trainz)

Settings.PNG Rule Settings:

   None


[edit] Coupler Breakage HUD Rule

HUD displays warning about coupler stress and breakage

Properties.PNG Rule Properties:

  • <kuid:-25:423>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

    Select one of two option buttons:- 
      ( ) Show the Coupler Breakage Display
      ( ) Hide the Coupler Breakage Display

PageLink.PNG Related Rules:


[edit] Display Custom HUD Rule

Show or hide the Custom Heads Up Display.

Properties.PNG Rule Properties:

  • <kuid:-3:10206>
  • Base Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

   Show or Hide the Custom Heads up Display -  select one of two option buttons:- 
      ( ) Show the Custom Heads up Display
      ( ) Hide the Custom Heads up Display

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Flash HUD Icon Rule

Flashes a HUD panel icon for a set duration of time or instructs a HUD panel icon to start/stop.

Properties.PNG Rule Properties:

  • <kuid:-25:968>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

    Select one of two option buttons:- 
   ( ) Flash the <click to select> icon on the <click to select> HUD panel for a period of <value> seconds
       TIP:  Select the HUD panel first (the second <click to select> link).
       Available HUD panels are (select one):- 
         Bottom Right Menu
         Camera Controls
         DCC Controls
         Driver Main Menu
       Available icons will depend on the HUD panel selected. 
   ( ) <Start/Stop> flashing the <click to select> icon on the <click to select> HUD panel
       TIP:  Select the HUD panel first (the second <click to select> link).
       Available HUD panels are (select one):- 
         Bottom Right Menu
         Camera Controls
         DCC Controls
         Driver Main Menu
       Available icons will depend on the HUD panel selected. 

PageLink.PNG Related Rules:


[edit] mc Display Custom HUD V2 Rule (SP2 and later)

Shows or hides a graphical HUD which includes junction direction for the junction ahead. This rule has been superseded by the Quick CustomHud Manager Rule (TRS19 and later)

Properties.PNG Rule Properties:

  • <kuid2:61392:1072:10>
  • DLS Rule by pguy
  • Minimum Trainz Build: 4.5 (TANE SP2) (earlier builds are available)
  • Legacy Rule (replaced by Quick CustomHud Manager Rule (TRS19 and later))

Settings.PNG Rule Settings:

    Show or Hide the Custom Heads up Display -  select one of two option buttons:- 
    ( ) Show the Custom Heads up Display
    ( ) Hide the Custom Heads up Display

PageLink.PNG Related Rules:


[edit] Quick CustomHud Manager Rule (TRS19 and later)

Allows the creation of new graphical heads up displays which are assigned to the drivers in Driver Mode. Replaces the mc Display Custom HUD V2 Rule (SP2 and later)

Properties.PNG Rule Properties:

  • <kuid2:61392:5020:53>
  • DLS Rule by pguy
  • Minimum Trainz Build: 4.8 (TRS19 SP3) (earlier builds are available)

Settings.PNG Rule Settings:

   <Copy rule to data Clipboard> - click to copy the data from the selected HUD to a special clipboard area used by the rules created by pguy. 
       This is NOT the standard OS clipboard. 
   <Paste rule data from Clipboard> - if data is held in the special clipboard area, then click to paste that data into the selected HUD.
       This is NOT the standard OS clipboard. 
   Current HUD Parameters
      HUD to select: <HUD name> - click to select a HUD from those available. One or two default HUDs will be supplied.
      new HUD - click to create a new HUD display with default properties. You will be required to enter a name for the new HUD
      clone HUD - click to create a new HUD using the properties of the currently selected HUD. You will be required to enter a name for the new HUD
      copy HUD - copies (overwrites) the currently selected HUD with the properties of another HUD. You will be required to enter the name of the HUD to be copied
    For new, cloned or copied HUDs, additional commands will be shown:- 
      rename HUD - rename the selected HUD. You will be required to enter a new name for the HUD
      delete HUD - delete the currently displayed HUD
    In Driver Mode an additional command will be shown:- 
      Assign hud to current train - click to assign the currently selected HUD to the currently selected driver
   [x] hud is displayed (on) - check to display HUD in Driver Mode
   hud items nb entries max: <value> - enter the maximum number of items to be displayed in the HUD. Maximum is 30.
   hud view limit: <value> - enter the maximum look-ahead distance in metres for the HUD. Minimum value is 1000, maximum value is 10000.
   [x] display data in a centred window above orderbar - check to display the HUD centred on the screen just above the driver command bar in Driver Mode
    For each individual HUD property:- 
      [x] HUD property - check to add this property to the HUD

Notes.PNG Notes:

HUDs are assigned to drivers in Driver Mode by either adding a SetCustomHud (SP2 and later) command to individual drivers command lists or manually by clicking a green RM tool button displayed on the top menu and selecting Quick CustomHUD Manager from the menu.

PageLink4.PNG Dependent Driver Commands:

The rule must be added to the Session for the following Driver Commands to work

PageLink.PNG Related Rules:


[edit] Show/Hide HUD Panel Rule

Shows or hides a HUD panel.

Properties.PNG Rule Properties:

  • <kuid:-25:1047>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

   <Show/Hide> the <click to select> HUD panel - select Show or Hide and then select the HUD panel

PageLink.PNG Related Rules:


[edit] Variable Show Rule

Adds or removes a specified variable and a descriptive label to the custom HUD. This rule does not make the custom HUD appear on the screen.

Properties.PNG Rule Properties:

  • <kuid:-25:971>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

  [x] Add
     <variable-name> - enter variable-name to add to HUD. Variable-name is case sensitive.
     <label> - (optional) enter a short label to be displayed on the HUD in front of the variable value.
  [x] Remove
     <variable-name> - enter variable-name to remove from HUD. Variable-name is case sensitive.

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:


[edit] Wait for Click on HUD Icon Rule

Executes child rules when the user clicks on a selected HUD icon

Properties.PNG Rule Properties:

  • <kuid:-25:951> <kuid:-25:970> - two versions built-in with different kuids, both have the same properties
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)
  • Parent Rule

Settings.PNG Rule Settings:

   [x] Trigger Once
   HUD Panel <Click> -  click to choose from list:- 
      Bottom Right Menu
      Camera Controls
      DCC Controls
   Icon <Click> -  click to choose from list. Selections depends on HUD Panel chosen. 

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


Top Next Up Next Down Bottom

[edit] Industry Rules

[edit] Advanced Industry Load Configuration Rule

Locks train controls when loading/unloading at an industry, overrides time settings for begin load and begin unload operations

Properties.PNG Rule Properties:

  • <kuid:30501:100007>
  • Base Rule
  • Minimum Trainz Build: 3.7 (TS12 SP1)

Settings.PNG Rule Settings:

   Target object <select> - select industry object from session list
   [x] Lock the train's controls during a stopped load/unload operation - check to disable driver controls while train is stopped and loading/unloading
   [x] Override 'begin load' and 'begin unload' durations to <value> seconds - if checked enter number of seconds to override

Notes.PNG Notes:

Times are Trainz clock time, not real time


[edit] Disable/Enable Industry Rule

Enables/Disables vehicle load/unload for industry

Properties.PNG Rule Properties:

  • <kuid2:401543:1171:1>
  • Built-in Rule
  • Minimum Trainz Build: 3.6 (TS12)

Settings.PNG Rule Settings:

  Load/unload <Disable/Enable> - click to set to Disable or Enable
  Which Industry? <select> - click to set Industry from Session List
  Which Vehicles: -  select one of two option buttons:- 
     ( ) Apply to every vehicle in the session
     ( ) Apply only to a specific vehicles from Session List


[edit] ExTrainz Manager Rule - TANE SP2

Provides information on consists, industries and products in both Surveyor and Driver modes. Once activated, the rule creates an additional short menu bar below the main menu bar.

Properties.PNG Rule Properties:

  • <kuid:160293:10029>
  • DLS Rule by trev999
  • Minimum Trainz Build: 4.5 (TANE SP2)

Settings.PNG Rule Settings:

   Diagnostic mode is <On/Off> - click to select On or Off. When set On diagnostic messages will be added to the Trainz Log file.
   Turn on message overlay <Yes/No> - click to select Yes or No. When set to Yes the message overlay (lower left of screen) will be active.
   Show rolling stock in Driver mode <Yes/No> - click to select Yes or No. When set to Yes rolling stock can be searched in Driver mode.
   Search only rolling stock already in session <Yes/No> - click to select Yes or No. When set to Yes only those rolling stock assets
      installed in the session can be searched.
   Graphic colours: <When Red, the industry does not require service/When Green, the industry does not require service> - click to switch 
      between the two colour options.
   Industry page size: <value> - enter the number of industries to be displayed in the Industry List window (maximum 250).
   The following industries are excluded: <Add an industry to be excluded> - name can be complete (e.g. "Coal Mine 2") 
      which will exclude that specific industry from the management list, or partial (e.g. "Coal") which will exclude all 
      industries with the word "Coal" in their names. Entries are not case sensitive.
       Once industries have been excluded, additional commands will appear for each excluded industry:- 
      <delete> <industry name begins with/class name begins with> <name> - click delete to remove this entry. 
         - click industry name begins with/class name begins with to select between the two (see notes below).
         - click name to edit the name.

Issues.PNG Known Issues:

This rule is NOT compatible with all industries.

Notes.PNG Notes:

  1. Rolling stock installed in the current session only (see settings above) can be searched to find a match for any selected product from any industry. In Surveyor (and Driver if that setting is enabled) click on the View Products sub menu link and click on a product name in the Product Window to display a list of all compatible rolling stock for that product.
  2. Alternatively, click on the View Industries sub menu link and then click on a Product Icon to open a Product Window, then click on the View Rolling Stock link at the top of the window.
  3. Industry class names are defined in the config.txt file of industry assets and are not normally accessible by users. However, you can exclude an entire group of related "industry asset classes" such as station, coalingtower, watertank, etc regardless of their actual names provided those assets have been given that "class name" by their creators.


[edit] Multiple Resource Check Rule

Executes child rules if industries or vehicles reach set commodity levels. This rule replaces the older Resource Check Rule

Properties.PNG Rule Properties:

  • <kuid:-25:1293>
  • Built-in Rule
  • Minimum Trainz Build: 4.5 (TANE SP2) (earlier builds are available)
  • Parent Rule

Settings.PNG Rule Settings:

   <Product Level> -  click to select a product test from two choices:- 
      Reach/Exceed - sets an upper limit for the resources being monitored. 
         For example: the rule will be triggered if the quantity of coal in a coal loader stockpile or a coal wagon reaches or exceeds a specified level.
         The initial level in the object must be below the set upper limit.
      Fall below - sets a lower limit for the resources being monitored. 
         For example: the rule will be triggered if the quantity of coal in a coal loader stockpile or a coal wagon falls below a specified level. 
         The initial level in the object must be above the set lower limit. 
         To test when a resource level reaches zero (i.e. is empty) set the lower limit to a very low value but not zero as the level can never fall below zero. 
   <value> - enter required quantity value
   <select> - select a product from session list of products
   <Add object> - click to select a source or target object. Multiple objects and their queues can be added to the rule. 
      ALL the entered products must reach/exceed or fall below the specified value for the rule to be triggered. 
       For each object:- 
         <Object> - click to select session active industry or product enabled rail vehicle 
         <Queue> - select product queue (there may be only one available)
         <Remove> - removes the object and its product queue from the rule

Notes.PNG Notes:

This rule only checks for changing commodity levels during loading and unloading operations. It cannot be used to test, for example, if a vehicle is full or empty.

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


[edit] Power Station Rule

Sets up a Power Station and its electricity consumers

Properties.PNG Rule Properties:

  • <kuid:-25:746>
  • Base Rule
  • Minimum Trainz Build: 4.5 (TANE SP2) (earlier builds are available)

Settings.PNG Rule Settings:

   Power station <select> - select a Power Station from the session list.
   Consumers:
      <add object> - add power consumers from the session list


[edit] Resource Check Rule

Executes child rules if a selected industry or vehicle reaches a set commodity level. This rule has been superseded by the Multiple Resource Check Rule

Properties.PNG Rule Properties:

  • <kuid:-25:1337>
  • Built-in Rule
  • Minimum Trainz Build: 4.5 (TANE SP2) (earlier builds are available)
  • Legacy Rule (replaced by Multiple Resource Check Rule)
  • Parent Rule

Settings.PNG Rule Settings:

    Select one of two option buttons:- 
      ( ) Watch industry queue
         Target Object <select> - select an industry from the session list
         Queue <select> - select a product queue from the selected industry
         Product <select> - select a product from the selected queue
         Amount <value> - enter a quantity
          Select one of two option buttons:- 
            ( ) Complete when designated queue equals or exceeds required amount
            ( ) Complete when designated queue falls below required amount
      ( ) Watch vehicle
         Target Object <select> - select a rolling stock asset from the session list
         Queue <select> - select a product queue from the selected rolling stock
         Product <select> - select a product from the selected queue
         Amount <value> - enter a quantity
          Select one of two option buttons:- 
            ( ) Complete when designated queue equals or exceeds required amount
            ( ) Complete when designated queue falls below required amount

Notes.PNG Notes:

This rule only checks for changing commodity levels during loading and unloading operations. It cannot be used to test, for example, if a vehicle is full or empty.

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Resource Verify Rule (fixed)

Executes child rules if a selected industry or vehicle reaches a set commodity level. The rule resets when all child rules have completed.

Properties.PNG Rule Properties:

  • <kuid:160293:10060>
  • DLS Rule by trev999
  • Minimum Trainz Build: 3.5 (TS12)
  • Parent Rule

Settings.PNG Rule Settings:

    Select one of two option buttons:- 
   ( ) Watch industry queue
      Target object <click to select> - click to select an industry from the session list.
      Product <click to select> - click to select an industry product.
      Amount <value> - enter a quantity for the selected product.
       Select one of two option buttons:- 
      ( ) Complete when designated queue equals or exceeds designated amount
      ( ) Complete when designated queue falls below designated amount
   ( ) Watch vehicle queue
      Target object <click to select> - click to select a rolling stock vehicle from the session list.
      Product <click to select> - click to select a commodity product.
      Amount <value> - enter a quantity for the selected product.
       Select one of two option buttons:- 
      ( ) Complete when designated queue equals or exceeds designated amount
      ( ) Complete when designated queue falls below designated amount

Notes.PNG Notes:

  1. This rule will only monitor a single commodity in a single industry or vehicle.
  2. This rule only checks for changing commodity levels during loading and unloading operations. It cannot be used to test, for example, if a vehicle is full or empty.

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Station Visited Check Rule

Executes child rules if specific trains call at set stations or industries

Properties.PNG Rule Properties:

  • <kuid2:60850:89005:6>
  • Built-in Rule
  • Minimum Trainz Build: 4.6 (TRS19) (earlier builds are available)
  • Parent Rule

Settings.PNG Rule Settings:

   Trigger: <select> -  click to select one of the following:- 
      Never - stopping at the selected industries will never trigger the rule.
      Once only - the rule is triggered on the first visit only to any one of the selected industries
      Once per industry - the rule is triggered on the first visit to each industry with each individual product
      Once per visit - the rule is triggered on the first visit to each industry regardless of the product
      Once per vehicle - each vehicle can only trigger the rule once. 
   <select industry> - select industry or industries from session list
    Select one of two option buttons:- 
      ( ) click to accept all trains
      ( ) click to accept trains matching specific criteria
          Selecting the second option will produce the following selection controls:-          
         Specific vehicle - identify the specific vehicle or set of specific vehicles that will trigger the rule
            + - click to add a specific vehicle from the session list
            x - click to remove the specific vehicle from the rule
         Vehicle types - identify the type of vehicle or a set of vehicle types that will trigger the rule
            + - click to add a type of vehicle from the session list
            x - click to remove the type of vehicle from the rule
         Drivers - identify the drivers that will trigger the rule
            + - click to add a driver from the session list
            x - click to remove a driver from the rule

WikiLink.PNG Trainz Wiki Links:


[edit] Wait on Waybill Screen/Main Screen Rule

Executes child rules when the Waybill window is opened or closed

Properties.PNG Rule Properties:

  • <kuid:-25:957>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)
  • Parent Rule

Settings.PNG Rule Settings:

   [x] Trigger rule once - check to trigger the rule once only
   Wait for the Waybill window to be <opened/closed> - select either opened or closed.

WikiLink.PNG Trainz Wiki Links:


Top Next Up Next Down Bottom

[edit] Interlocking Tower, Junction and Signal Rules

[edit] Control Path Rule

Sets the path for selected trains

Properties.PNG Rule Properties:

  • <kuid:131986:158781>
  • DLS Rule by atilabarut
  • Minimum Trainz Build: 2.5 (TRS2006)
  • Legacy Rule (replaced by Interlocking Tower Rules)

Settings.PNG Rule Settings:

 <add junction> - click to add a junction from the Session list
     For each junction:- 
      Set switch to <RIGHT/LEFT/FORWARD> - click to select one junction state
      Exiting from <FORWARD/BACKWARD/LEFT/RIGHT> - click to select the direction the train exits from the junction
      Permit type <EXCLUSIVE/DIRECTIONAL> - click to select permission type. 
          DIRECTIONAL permits all trains heading in the same direction to use the set path.
          EXCLUSIVE only allows one train to use the path at a time
      <up> - move the junction UP one level in the list
      <dn> - move the junction DOWN one level in the list
      <rm> - remove the junction from the list
 Name of the signal before entering the path <signal name> - click to select the signal before the first junction from the Session signal list
 Signal state in case the path is not cleared <GREEN/RED/YELLOW> - click to select a signal state
 Train for which path is controlled <train> - click to select a consist from the Session list
 Rule activates on train entering trigger <trigger name> - click to select a start trigger from the Session list
 Rule exits on train entering trigger <trigger name> - click to select an end trigger from the Session list

Notes.PNG Notes:

  1. This rule may not be compatible with Interlocking Towers.
  2. Triggers have to be placed before the first junction and controlling signal and after the final junction.
  3. Multiple paths can be set up by placing multiple copies of this rule under an Ordered List or Simultaneous List

PageLink.PNG Related Rules:


[edit] Interlocking Tower Configure Path Rule

Alters settings on an interlocking tower path

Properties.PNG Rule Properties:

  • <kuid:401543:3205>
  • Base Rule
  • Minimum Trainz Build: 4.3 (TANE SP1)

Settings.PNG Rule Settings:

  Interlocking Tower <select> - to set Name and Objects

BugMini.PNG Known Bugs:

The Interlocking Tower and Enhanced Interlocking Tower assets have a bug that saves their initial paths and properties in the Route and then saves any edits you make in the Session. The workaround is to always use Session Surveyor when using ITs and EITs.

PageLink.PNG Related Rules:


[edit] Interlocking Tower Path Selection UI Rule

Will automatically react to messages from Interlocking Towers and display a path selection dialog to the player. Disable by removing rule from session

Properties.PNG Rule Properties:

  • <kuid:401543:3203>
  • Base Rule
  • Minimum Trainz Build: 4.3 (TANE SP1)

Settings.PNG Rule Settings:

  [Checkbox] Show path activation message in Driver

BugMini.PNG Known Bugs:

The Interlocking Tower and Enhanced Interlocking Tower assets have a bug that saves their initial paths and properties in the Route and then saves any edits you make in the Session. The workaround is to always use Session Surveyor when using ITs and EITs.

PageLink.PNG Related Rules:


[edit] Interlocking Tower Set Path Rule

Will set the state of an interlocking tower path for a train

Properties.PNG Rule Properties:

  • <kuid:401543:3204>
  • Base Rule
  • Minimum Trainz Build: 4.3 (TANE SP1)

Settings.PNG Rule Settings:

  Interlocking Tower <select> - to set Name and Objects

BugMini.PNG Known Bugs:

The Interlocking Tower and Enhanced Interlocking Tower assets have a bug that saves their initial paths and properties in the Route and then saves any edits you make in the Session. The workaround is to always use Session Surveyor when using ITs and EITs.

PageLink.PNG Related Rules:


[edit] IT Enhanced Manager rule (TANE SP4 and later)

Provides more management and control options for interlocking towers.

Properties.PNG Rule Properties:

  • <kuid2:61392:8130:87>
  • DLS Rule by pguy
  • Minimum Trainz Build: 4.5 (TANE SP2)

Settings.PNG Rule Settings:

   <towers> - click to select interlocking towers from the session list
      <do full check again> - click to run an error check on all interlocking towers
      List of all available interlocking towers -  for each tower:- 
         <view details> - click to view and edit the tower properties
         <copy from> - click to copy properties from another tower selected from the session list
   <debug log> - click to set the debug log properties

Notes.PNG Notes:

  • It is recommended that you refer to the detailed instructions in the Trainz Wiki shown below.

BugMini.PNG Known Bugs:

The Interlocking Tower and Enhanced Interlocking Tower assets have a bug that saves their initial paths and properties in the Route and then saves any edits you make in the Session. The workaround is to always use Session Surveyor when using ITs and EITs.

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Junction Derailment Prevention Rule

Sets opposing (trailing) junctions ahead of a train to prevent derailments. Works with both AI and manually driven trains.

Properties.PNG Rule Properties:

  • <kuid2:121843:100282:1>
  • DLS Rule by pitkin
  • Minimum Trainz Build: 3.5 (TS12)

Settings.PNG Rule Settings:

   None

Notes.PNG Notes:

This rule will not overrule a junction already locked by another AI train or locked against AI control using the Set Junctions Rule.

PageLink.PNG Related Rules:

  • Lock All Junctions Rule - locks all junctions against user control
  • Set Cleared Junctions Rule - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control) while they are unoccupied.
  • Set Junctions Rule - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control).


[edit] Lock All Junctions Rule

Locks all junctions against user actions. AI operations are not affected. Once the AI releases a junction, it will be returned to its previous locked state.

Properties.PNG Rule Properties:

  • <kuid:400048:100971>
  • DLS Rule by callavsg
  • Minimum Trainz Build: 4.3 (TANE SP1)

Settings.PNG Rule Settings:

   None

Notes.PNG Notes:

Individual junctions can still be set, locked and unlocked by using the Set Junction Rule

PageLink.PNG Related Rules:

  • Set Cleared Junctions Rule - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control) while they are unoccupied.
  • Set Junctions Rule - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control).


[edit] MissionCode Manager (TANE SP4 and later)

Enables the addition, editing and management of Mission Codes used to auto select paths in Interlocking Towers.

Properties.PNG Rule Properties:

  • <kuid2:61392:8200:85>
  • DLS Rule by pguy
  • Minimum Trainz Build: 4.5 (TANE SP2)

Settings.PNG Rule Settings:

  Refer to the detailed instructions in the Trainz Wiki Links shown below.

PageLink4.PNG Dependent Driver Commands:

The rule must be added to the Session for the following Driver Commands to work

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Stops and TimeTables Manager (TANE SP4 and later)

Formerly known as MissionCode Stops and Timetable Manager Rule. Enables the creation, editing and management of stop zones and timetables for trains following a path defined using mission codes.

Properties.PNG Rule Properties:

  • <kuid2:61392:8300:76>
  • DLS Rule by pguy
  • Minimum Trainz Build: 4.5 (TANE SP2)

Settings.PNG Rule Settings:

  Refer to the detailed instructions in the Trainz Wiki Links shown below.

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Multiple Junction Alignment Check Rule

Executes child rules if specific junctions are set.

Properties.PNG Rule Properties:

  • <kuid:-25:1221>
  • Built-in Rule
  • Minimum Trainz Build: 4.5 (TANE SP2) (earlier builds are available)
  • Parent Rule

Settings.PNG Rule Settings:

   Wait until <selection> -  select from:- 
      any one - any of the junctions in the rule list (below) is set correctly
      all - ALL of the junctions in the rule list are set correctly
   <Add junction> - click to select a junction from the session list
   <Add all> - click to select ALL junctions in the session list
   <Delete all> - click to delete ALL selected junctions from the rule list
       For each selected junction:- 
      <setting> -  click to select one switch direction from:- 
         Left
         Right
         Center
         Any
      <remove> - to delete this junction from the rule list

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


[edit] Set Cleared Junctions Rule

Sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control) while they are unoccupied. If a junction is occupied it waits until the junction is cleared. Warning: not compatible with Interlocking Tower Assets

Properties.PNG Rule Properties:

  • <kuid2:131986:157661:1>
  • DLS Rule by atilabarut
  • Minimum Trainz Build: 2.9 (TS2009) (earlier builds are available)

Settings.PNG Rule Settings:

   Add Junction - click to select a junction from the session junction list
   Add All - click to add ALL junctions in the session junction list
   Delete All - click to remove ALL entered junctions from the rule
      Junction Options: -  for each selected junction:- 
         <direction> -  click to select the junction direction:- 
            Left
            Center
            Right
            Don't change
         <user control> -  click to select a user control option:- 
            Locked - the junction setting cannot be changed by the user
            Unlocked - the junction setting can be changed by the user
         <AI control> -  click to select AI control:- 
            Allows AI control - an AI train can switch the junction
            Blocks AI control - an AI train cannot switch the junction
         Remove - click to remove this junction from the rule list

PageLink.PNG Related Rules:


[edit] Set Junctions Rule

Sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control). Warning: not compatible with Interlocking Tower Assets

Properties.PNG Rule Properties:

  • <kuid:-25:1269>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

   Add Junction - click to select a junction from the session junction list
   Add All - click to add ALL junctions in the session junction list
   Delete All - click to remove ALL entered junctions from the rule
      Junction Options: - for each selected junction:-
         <direction> -  click to select the junction direction:- 
            Left
            Center
            Right
            Don't change
         <user control> -  click to select a user control option:- 
            Locked - the junction setting cannot be changed by the user
            Unlocked - the junction setting can be changed by the user
         <AI control> -  click to select AI control:- 
            Allows AI control - an AI train can switch the junction
            Blocks AI control - an AI train cannot switch the junction
         Remove - click to remove this junction from the rule list

Issues.PNG Known Issues:

Rule is NOT compatible with Interlocking Towers

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:


[edit] Set Signal Extended Rule

Sets the state of a selected signal Warning: not compatible with Interlocking Tower Assets

Properties.PNG Rule Properties:

  • <kuid2:47662:20002:7>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

   <Select signal> to <signal state> - click to select a signal from the session list and  click to select a state from the list:- 
      Automatic
      Stop
      Stop then Continue
      Caution Left
      Caution Right
      Caution
      Advance Caution Left
      Advance Caution Right
      Advance Caution
      Proceed Left
      Proceed Right
      Proceed
      Slow
      Medium

Issues.PNG Known Issues:

Rule is NOT compatible with Interlocking Towers

Notes.PNG Notes:

The signal must support the state selected otherwise there will be no change in the signal


Top Next Up Next Down Bottom

[edit] Message Rules

[edit] Close Message Popup Rule

Closes open message popups

Properties.PNG Rule Properties:

  • <kuid2:447264:1526:2>
  • Built-in Rule
  • Minimum Trainz Build: 3.6 (TS12)

Settings.PNG Rule Settings:

  None

Issues.PNG Known Issues:

This rule only appears to work if it is a child of the rule that triggered the Message Popup Rule

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:


[edit] DestSign Table Rule

Creates a list of destination names for a destination sign

Properties.PNG Rule Properties:

  • <kuid2:206816:99004:6>
  • Built-in Rule
  • Minimum Trainz Build: 3.5 (TS12) (earlier builds are available)

Settings.PNG Rule Settings:

  <add destination> - enter a destination name to be added to the destination sign roll
  <import destinations from texture-group> - select a list of destination names from session
  [x] Enable industries/stations as destination - check to set
  [x] Enable Track Marks as destinations - check to set
  [x] Enable table of destinations - check to set


[edit] Display HTML Pages Rule

Creates a browser to display the listed HTML files in order as a navigable sequence of pages. This rule has been superseded by the Message Popup Rule

Properties.PNG Rule Properties:

  • <kuid:-25:442>
  • Base Rule
  • Minimum Trainz Build: 2.0 (TRS2004)
  • Legacy Rule (replaced by Message Popup Rule)

Settings.PNG Rule Settings:

   <Add Page> - adds the HTML page index.html from the selected HTML asset
      <index.html> - click to change the page name. The extension .html is optional
   <Add All> - adds all HTML pages from the session list (this appears to be disabled in TANE)
   <Delete All> - delete all HTML pages from this property list
   [x] Prevent user from exiting browser until all pages viewed
   [x] Disable closing of browser window by user
   [x] Disable browser window scrolling
   [x] Make browser window invisible
   [x] Set position-Under Construction!!! - not implemented
   [x] Set size-Under Construction!!! - not implemented
   Use the page <index.html> from asset <select> as the hidden button - the link buttons at the bottom of the page will be taken from the selected page in the selected HTML asset

PageLink.PNG Related Rules:


[edit] Display Video Rule

Displays a page containing a video clip from a HTML asset in a browser window.

Properties.PNG Rule Properties:

  • <kuid:-25:138>
  • Built-in Rule
  • Minimum Trainz Build: 3.5 (TS12) (earlier builds are available)

Settings.PNG Rule Settings:

   Display page <index.html> of html asset <click to select> in a new browser window
      index.html - enter the filename of a HTML page in the selected HTML asset. The .html is optional in the filename.
      <click to select> - select the HTML asset from those installed.

Notes.PNG Notes:

Video must be in a valid web format.

PageLink.PNG Related Rules:


[edit] ExTrainz Manager Rule - TANE SP2

Provides information on consists, industries and products in both Surveyor and Driver modes. Once activated, the rule creates an additional short menu bar below the main menu bar.

Properties.PNG Rule Properties:

  • <kuid:160293:10029>
  • DLS Rule by trev999
  • Minimum Trainz Build: 4.5 (TANE SP2)

Settings.PNG Rule Settings:

   Diagnostic mode is <On/Off> - click to select On or Off. When set On diagnostic messages will be added to the Trainz Log file.
   Turn on message overlay <Yes/No> - click to select Yes or No. When set to Yes the message overlay (lower left of screen) will be active.
   Show rolling stock in Driver mode <Yes/No> - click to select Yes or No. When set to Yes rolling stock can be searched in Driver mode.
   Search only rolling stock already in session <Yes/No> - click to select Yes or No. When set to Yes only those rolling stock assets
      installed in the session can be searched.
   Graphic colours: <When Red, the industry does not require service/When Green, the industry does not require service> - click to switch 
      between the two colour options.
   Industry page size: <value> - enter the number of industries to be displayed in the Industry List window (maximum 250).
   The following industries are excluded: <Add an industry to be excluded> - name can be complete (e.g. "Coal Mine 2") 
      which will exclude that specific industry from the management list, or partial (e.g. "Coal") which will exclude all 
      industries with the word "Coal" in their names. Entries are not case sensitive.
       Once industries have been excluded, additional commands will appear for each excluded industry:- 
      <delete> <industry name begins with/class name begins with> <name> - click delete to remove this entry. 
         - click industry name begins with/class name begins with to select between the two (see notes below).
         - click name to edit the name.

Issues.PNG Known Issues:

This rule is NOT compatible with all industries.

Notes.PNG Notes:

  1. Rolling stock installed in the current session only (see settings above) can be searched to find a match for any selected product from any industry. In Surveyor (and Driver if that setting is enabled) click on the View Products sub menu link and click on a product name in the Product Window to display a list of all compatible rolling stock for that product.
  2. Alternatively, click on the View Industries sub menu link and then click on a Product Icon to open a Product Window, then click on the View Rolling Stock link at the top of the window.
  3. Industry class names are defined in the config.txt file of industry assets and are not normally accessible by users. However, you can exclude an entire group of related "industry asset classes" such as station, coalingtower, watertank, etc regardless of their actual names provided those assets have been given that "class name" by their creators.


[edit] Fade In/Out Rule

Fade in or out within seconds, using specified color and opacity values.

Properties.PNG Rule Properties:

  • <kuid2:190611:200000:2>
  • Built-in Rule
  • Minimum Trainz Build: 2.5 (TRS2006)

Settings.PNG Rule Settings:

   Red percentage:             <value> - enter the final % of red (0 = none, 100 = maximum)
   Green percentage:           <value> - enter the final % of green
   Blue percentage:            <value> - enter the final % of blue
   Alpha percentage (opacity): <value> - enter the final % of opacity (0 = invisible, 100 = solid)
   Fading duration:            <value> - enter the number of seconds required for the fade
   <help> - click to bring up help instructions

Notes.PNG Notes:

Seconds are Trainz clock time, not real time.


[edit] Hide Product Overlays Rule

Hides the commodity or product bar graphs that appear on active industries

Properties.PNG Rule Properties:

  • <kuid:400048:100970>
  • DLS Rule by callavsg
  • Minimum Trainz Build: 4.5 (TANE SP2)

Settings.PNG Rule Settings:

  None


[edit] InputTable Rule

Creates a list of message names to be used for various purposes including passing data to Driver Commands

Properties.PNG Rule Properties:

  • <kuid2:131986:1012:1>
  • Built-in Rule
  • Minimum Trainz Build: 2.5 (TRS2006)

Settings.PNG Rule Settings:

   <add> - click to add a new entry to the table
    Each new entry will require an input message 
      <short message> - enter a message. The message must be in a format that is specific for each purpose
       For the MoveTurntable driver command the message must be formatted as:- 
         turntable,name_of_turntable,number_of_connecting_roads - the first entry must be the word turntable in lower case.
            name_of_turntable is the name of the turntable, 
            number_of_connecting_roads is the number of tracks connecting to the turntable
       For the WaitUntilTime driver command the message must be formatted as:- 
         time,hour,minute - the first entry must be the word time in lower case, 
            hour must be from 0 to 23, 
            minute must be from 0 to 59.
       For the Skip If Session-Variable and Wait Until S-Variable driver commands the message must be formatted as:- 
         svar,svar_name,svar_condition,value - the first entry must be the word svar in lower case, 
            svar_name is the name of the session variable, 
            svar_condition is an equality (eg eq for equal, gt for greater than, etc)
            value is an integer value to be compared to the session variable.
    Each entry in the table will be followed by the commands:- 
      cp - click to copy this entry to a new entry
      up - click to move this entry up one level
      dn - click to move this entry down one level
      rm - click to remove this entry from the table

PageLink4.PNG Dependent Driver Commands:

The rule must be added to the Session for the following Driver Commands to work


[edit] Message Popup Rule

Displays a pop-up browser window and waits for it to be closed. Closure can be manual (by the user) or by another rule.

Properties.PNG Rule Properties:

  • <kuid:-25:1407>
  • Built-in Rule
  • Minimum Trainz Build: 4.7 (TRS19 SP2) (earlier builds are available)

Settings.PNG Rule Settings:

   [x] Pause game while message is displayed - stops the game until this message is closed
   [x] Close previous popup windows - closes any Message Popups currently displayed before this message is shown
   Message location <Top Left/Top Right/Bottom Left/Bottom Right> - select one to position the browser window on the screen
   Message Source: -  select one of three option buttons:- 
      ( ) Custom text - the simplest and easiest option
         Icon <Click here to set> - (optional) shows a list of message icons. Select one to be displayed with the message
         Icon <Clear icon> - clears any currently displayed message icon
         Custom text box Enter text to be displayed. You will be limited to about 6 lines of text. 
             For longer messages or to include graphics, use the A predefined HTML page option.
         <HTML Wave> - (optional) select the name of the HTML asset from the list shown that contains the wave file to be played.
         <Wave Name> - (optional) enter the name of a wave (.wav) sound file to be played. 
             The sound file must be in the HTML asset identified above. Filename is not case sensitive. Extension .wav is optional
         [x] Autoplay Wave: - plays the .wav sound file as soon as message is displayed. 
              If unchecked the sound will not be played. 
      ( ) A predefined HTML page - requires a working knowledge of HTML
         <HTML Asset> - select the name of the HTML asset that contains the required HTML page from the list shown.
         <HTML Page> - enter the filename of the HTML page to be displayed. The page must be in the HTML asset identified above. 
             Filename is not case sensitive. Extension .html is optional.
         <HTML Wave> - (optional) select the name of the HTML file containing the wave file to be played. 
             The page must be in the HTML asset identified above. Filename is not case sensitive. Extension .html is optional.
         <Wave Name> - (optional) enter the name of a wave (.wav) sound file to be played. 
             The sound file must be in the HTML asset identified above. Filename is not case sensitive. Extension .wav is optional
         [x] Autoplay Wave: - plays the .wav sound file as soon as message is displayed. 
            If unchecked sound will not be played. 
      ( ) A predefined string-table entry from a HTML asset
         <HTML Asset> - select the name of the HTML asset from those installed that contains the required string-table.
         <String Table Token> - enter the "tag name" of the text in the string-table of the HTML assets config.txt file.
         <HTML Wave> - (optional) select the name of the HTML file containing the wave file to be played. 
             The page must be in the HTML asset identified above. Filename is not case sensitive. Extension '.html' is optional.
         <Wave Name> - (optional) enter the name of a wave (.wav) sound file to be played. 
             The sound file must be in the HTML asset identified above. Filename is not case sensitive. Extension .wav is optional
         [x] Autoplay Wave: - plays the .wav sound file as soon as message is displayed. 
              If unchecked sound will not be played. 

Issues.PNG Known Issues:

Because this rule will wait until it is closed (terminated) then it is not recommended for use in an Ordered List because you cannot guarantee that any following child rules will be executed. If it MUST be used in an Ordered List then place it last.

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


[edit] Minimap Options Rule

Sets the display options for the minimap.

Properties.PNG Rule Properties:

  • <kuid:-25:1268>
  • Built-in Rule
  • Minimum Trainz Build: 4.2 (TANE) (earlier builds are available)

Settings.PNG Rule Settings:

Default values - all checked
   [x] Map Textures
   [x] Gradients
   [x] Junctions
   [x] Signals
   [x] Triggers
   [x] Markers
   [x] Trackside Labels
   [x] Terrain Objects
   [x] Industrial Names
   [x] Named Objects
   [x] Consists

PageLink.PNG Related Rules:


[edit] Play Sound Rule

Plays a wav sound file.

Properties.PNG Rule Properties:

  • <kuid:-25:1229>
  • Built-in Rule
  • Minimum Trainz Build: 4.5 (TANE SP2) (earlier builds are available)

Settings.PNG Rule Settings:

   Default HTML <Click> - click to to enter Sound File Name
   HTML Assets <Click> - click to select HTML asset
   Rule Completes <Click> -   to select one of:- 
      sound has just started
      sound has finished playing

PageLink.PNG Related Rules:

  • Display Video Rule - displays a page containing a video clip from a HTML asset in a browser window


[edit] Session Metadata Rule

Sets session metadata in the config file. Info can be read by other systems and displayed to the player.

Properties.PNG Rule Properties:

  • <kuid:401543:2036>
  • Base Rule
  • Minimum Trainz Build: 3.6 (TS12)

Settings.PNG Rule Settings:

   Type <Click> -  click to select one of:- 
      Simulation
      Challenge
   Length <value> - to enter number of minutes, default is 30 minutes
   Difficulty <Click> -  click to select one of:- 
      Normal - default
      Tutorial
      Easy
      Hard
      Expert

Notes.PNG Notes:

Time is Trainz clock time, not real time


[edit] Set Helper Icon Size Rule

Sets the size of helper icons such as the junction lever arrows.

Properties.PNG Rule Properties:

  • <kuid:-25:1271>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

  Junction Arrows Size <Click> - to set scale ratio smaller than default, default is 100%


[edit] Set HTML Pages Rule

Instructs the Display HTML Pages rule to perform specific operations. This rule has been superseded by the Message Popup Rule

Properties.PNG Rule Properties:

  • <kuid:-25:792>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)
  • Legacy Rule (replaced by Message Popup Rule)

Settings.PNG Rule Settings:

   Operations to preform on the display HTML pages sequence browser
    Select one of six option buttons:- 
      ( ) to instruct the sequence browser to <select> - to choose page operations
      ( ) to instruct the sequence browser to open the page <select> - enter the HTML page name
      ( ) to set browser parameters <select> -  choose one of:- 
         to Enable/Disable closing of the browser window by the user
         to Enable/Disable scrolling on the sequence browser window
         to Show/Hide the sequence browser window
      ( ) Set the following flag for the page named <select> - enter the HTML page name
         [x] Hide/Close window on "done" action
         [x] Window has no "done" button
         [x] Disable scrolling (not implemented yet)
         [x] Spare setting 1
         [x] Spare setting 2
         [x] Spare setting 3
         [x] Spare setting 4
         [x] Spare setting 5
      ( ) Use the page <select> (enter HTML page name) from the HTML asset <select> (select HTML asset)
      ( ) Use the string table entry <select> (enter Index) from the HTML asset <select> (select HTML asset)

PageLink.PNG Related Rules:


[edit] Set Subtitle Text Rule

Adds an onscreen subtitle to a session.

Properties.PNG Rule Properties:

  • <kuid2:401543:1187:2>
  • Built-in Rule
  • Minimum Trainz Build: 4.5 (TANE SP2/SP3)

Settings.PNG Rule Settings:

   Set the subtitle text to <text> - enter text to be displayed. Multiple text lines can be entered and displayed. 
   Display time in seconds: <10.000000> - enter the subtitle display time in seconds (10 seconds is the default).

Notes.PNG Notes:

Variables can be inserted into the subtitle using $(variable_name) tokens e.g. $name where the variable name has been previously defined.


[edit] Show/Hide HUD Panel Rule

Shows or hides a HUD panel.

Properties.PNG Rule Properties:

  • <kuid:-25:1047>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

   <Show/Hide> the <click to select> HUD panel - select Show or Hide and then select the HUD panel

PageLink.PNG Related Rules:


[edit] Show/Hide Minimap Rule

Shows the minimap window in Driver mode.

Properties.PNG Rule Properties:

  • <kuid:-25:794>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

   <Show/Hide> the driver Minimap Window - click to switch between Show and Hide.

PageLink.PNG Related Rules:


[edit] Show/Hide On-screen Help Rule

Shows or hides On-screen help in Driver mode.

Properties.PNG Rule Properties:

  • <kuid:401543:2020>
  • Built-in Rule
  • Minimum Trainz Build: 3.8 (TANE)

Settings.PNG Rule Settings:

   On screen help (junction overlays, etc) -  select one of three option buttons:- 
      ( ) Show
      ( ) Hide
      ( ) Leave Unchanged
   On Screen Vehicle Names: -  select one of three option buttons:- 
      ( ) Show
      ( ) Hide
      ( ) Leave Unchanged


[edit] Timed Limited Display HTML Rule (SP2 and later)

Displays an HTML browser window for a limited time.

Properties.PNG Rule Properties:

  • <kuid2:61392:2005:33>
  • DLS Rule by pguy
  • Minimum Trainz Build: 4.5 (TANE SP2) (earlier builds are available)

Settings.PNG Rule Settings:

  HTML Asset Name : <[Click to select HTML asset]> - click to select an HTML asset from those installed
  Page filename : <value> - click to enter the filename of the HTML page in the selected HTML asset. The .html filename extension is optional.
  Play duration (SessVar or duration in seconds) : <value> - enter a SessVar name or the number of seconds.
  Browser left position (SessVar or position) : <value> - enter a SessVar name or the number of pixels from the left screen edge.
  Browser top position (SessVar or position) : <value> - enter a SessVar name or the number of pixels from the top screen edge.
  Browser width (SessVar or position) : <value> - enter a SessVar name or the width in pixels.
  Browser height (SessVar or position) : <value> - enter a SessVar name or the browser height.
  [x] <Alert is not reshowable on request/Alert is showable on request> - check or click to allow or prevent the user viewing the page again.

Notes.PNG Notes:

Seconds are Trainz clock time, not real time.

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:

Top Next Up Next Down Bottom

[edit] Miscellaneous Rules

Some of these rules have no user accessible functions but may be used by other rules. Other rules do not fit in any other category.

[edit] ConsistDataHandler Rule

Was used by the QuickDrive Rule to place consists onto a route. Now obsolete.

Properties.PNG Rule Properties:

  • <kuid:401543:1180>
  • Base Rule
  • Minimum Trainz Build: 2.9 (TS2009)
  • Obsolete Rule (function is now built into Trainz)

Settings.PNG Rule Settings:

   None


[edit] Custom Script Rule

No description

Properties.PNG Rule Properties:

  • <kuid:-25:425>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

  None


[edit] Generic TreeNode Debug Window Rule

No description.

Properties.PNG Rule Properties:

  • <kuid:30501:1042>
  • Base Rule
  • Minimum Trainz Build: 2.9 (TS2009)

Settings.PNG Rule Settings:

   None


[edit] Session Debug Rule

Executes the first child if Debug mode is selected. Otherwise executes the second child rule.

Properties.PNG Rule Properties:

  • <kuid:30501:100180>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)
  • Parent Rule

Settings.PNG Rule Settings:

   None

Notes.PNG Notes:

When a session starts with this rule enabled, the player will be given the choice of running the session in Debug or Normal mode. Selecting Debug will execute the first child rule. Selecting Normal will execute the second child rule.

WikiLink.PNG Trainz Wiki Links:


[edit] Show/Hide Layer Rule

Shows or hides a layer in Driver mode.

Properties.PNG Rule Properties:

  • <kuid2:401543:1170:1>
  • Built-in Rule
  • Minimum Trainz Build: 3.6 (TS12)

Settings.PNG Rule Settings:

  <visibility> -  select one of two options:- 
     Show - select to make the layer visible
     Hide - select to make the layer invisible
  <click here to set> - enter name of layer. Name is case sensitive.

BugMini.PNG Known Bugs:

  • In TANE layers set to Hide when a game is saved will be Shown when the saved game is reloaded
  • This bug has been fixed in TRS19

Issues.PNG Known Issues:

Rule will NOT check to see if the named layer exists or not

PageLink2.PNG Related Driver Commands:

Ex.PNG Examples of Use:


Top Next Up Next Down Bottom

[edit] Navigation Rules

[edit] Check Trackside Rule

Executes child rules when a set train enters, stops at or leaves a specified track object. Similar to the Trigger Check Rule but works with any track objects.

Properties.PNG Rule Properties:

  • <kuid2:122381:10011:6>
  • DLS Rule by mizi
  • Minimum Trainz Build: 4.5 (TANE SP2) (earlier builds are available)
  • Parent Rule

Settings.PNG Rule Settings:

   Target trackside object: - <click here to set> - click to select a track object from the route:-
   Run mode (wait for train to): -  select one of three option buttons:- 
      ( ) Enter
      ( ) Stop at
      ( ) Leave
   Filter to trains containing:
   <Add new traincar> - click to select a rail vehicle from the session list. Each car added will have a <remove> option
   On matching conditions, run each child once, then -  select one of two option buttons:- 
      ( ) Complete and stop waiting - the rule will run only once
      ( ) Reset and wait for conditions to match again - the rule will run each time the conditions are met
  

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Directional Trigger Check Rule

Executes child rules when a set train enters a set trigger in a set direction. Adds direction to the Trigger Check Rule.

Properties.PNG Rule Properties:

  • <kuid2:532391:100003:1>
  • DLS Rule by bobhahn
  • Minimum Trainz Build: 2.9 (TS2009)
  • Parent Rule

Settings.PNG Rule Settings:

   [x] Trigger only once 
   [x] Wait for child rules to complete even if no trains are present in rule trigger
   [x] Only activate when the entering vehicle of the train is heading <select direction> into the trigger -  select one of two directions:- 
      forward
      backward
   Triggers List
      <add trigger> - select a trigger from the session list
      <delete trigger> - delete a selected trigger from the rule
    Select one of two option buttons:- 
      ( ) click to accept all trains
      ( ) click to accept trains matching specific criteria
          Selecting the second option will produce the following selection controls:- 
         Specific vehicle - identify the specific vehicle(s) that will trigger the rule
            + - click to add a specific vehicle from the session list
            x - click to remove the specific vehicle from the rule
         Vehicle types - identify the type of vehicle(s) that will trigger the rule
            + - click to add a type of vehicle from the session list
            x - click to remove the type of vehicle from the rule
         Drivers - identify the driver(s) that will trigger the rule
            + - click to add a driver from the session list
            x - click to remove a driver from the rule

Notes.PNG Notes:

  1. This rule works best when used with the Directional Trigger track object available on the DLS.
  2. The Directional Trigger, when installed, will appear as a Signal not as a Trackmark.
  3. Normal (non directional) triggers can be used with this rule but the rule will have no direction sensitivity apart from the forward and backward in the rule properties.

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


[edit] Navigation Display Rule

Creates and displays a set of navigation points. Multiple sets can be created by adding additional copies of this rule.

Properties.PNG Rule Properties:

  • <kuid2:401543:1161:6>
  • Base Rule
  • Minimum Trainz Build: 4.6 (TRS19) (the required version is built into each appliciable Trainz release)

Settings.PNG Rule Settings:

   Unique set ID: <click here to set> - enter a unique name for the navigation set.  Name must be in lowercase and have no spaces. 
   Train (optional): <click here to set> - select a rolling stock asset from the session list shown.
    Select one of three option buttons:- 
   ( ) All points must be completed in sequence:
      - the first uncompleted navigation point will be shown and must be completed next.
      - the next point (if any) will also be shown partly transparent.
   ( ) Points will be completed in sequence, but can be skipped:
      - navigation points can be skipped but must be completed in order.
      - you cannot go back to complete a missed point.
   ( ) All points must be completed, but in any order:
      - all uncompleted navigation points will be shown.
      - you may complete them in any order.
   For each navigation point: 
     <Click here to set> - select an item (trigger, trackmark, track object, rolling stock) from the session list to become the navigation point.
     <Display text> - enter a text message to display with the navigation point. You are limited to 25 characters.
     Icon <icon list> - select an icon for the navigation point.
     <Style> -  click to select one from three choices:- 
        Automatic - the navigation point will be completed as soon as the consist reaches the point.
        Manual - the navigation point must be set as complete by using the Navigation point complete rule or the Navigation set clear rule.
           The Manual style option allows you to execute other rules (e.g. consist check, wait, etc) before completing the navigation point.
        Require Stop - the navigation point will be completed when the consist comes to a complete stop on the point.

Issues.PNG Known Issues:

The Session Editor Copy and Paste procedure will not copy the parameter settings in this rule.

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:


[edit] Navigation Point Complete Rule

Manually completes a navigation point in a set

Properties.PNG Rule Properties:

  • <kuid:401543:1167>
  • Base Rule
  • Minimum Trainz Build: 3.6 (TS12) (the required version is built into each appliciable Trainz release)

Settings.PNG Rule Settings:

   Mark navigation point <click here to set> - enter the navigation point number to be completed
   complete in set <click here to set> - enter the unique name for the navigation set created using the Navigation Display Rule.
         Name must be in lowercase and have no spaces. 

Issues.PNG Known Issues:

The rule will NOT check to see if the named navigation set and point exists or not.

Notes.PNG Notes:

The navigation set and point must first be created by the Navigation Display Rule

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:


[edit] Navigation Set Check Rule

Executes child rules if a navigation set created with the Navigation Display Rule is complete (or incomplete).

Properties.PNG Rule Properties:

  • <kuid:401543:1165>
  • Base Rule
  • Minimum Trainz Build: 3.6 (TS12) (the required version is built into each appliciable Trainz release)
  • Parent Rule

Settings.PNG Rule Settings:

   Checks if navigation point set <name>: - enter the unique name for the navigation set created using the Navigation Display Rule.
         Name must be in lowercase and have no spaces. 
   is <Complete/Incomplete> - click to select one

Issues.PNG Known Issues:

The rule will NOT check to see if the named navigation set exists or not.

Notes.PNG Notes:

The navigation set must first be created by the Navigation Display Rule

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


[edit] Navigation Set Clear Rule

Clears a navigation set removing any uncompleted navigation points

Properties.PNG Rule Properties:

  • <kuid:401543:1164>
  • Base Rule
  • Minimum Trainz Build: 3.6 (TS12) (the required version is built into each appliciable Trainz release)

Settings.PNG Rule Settings:

   <Click here to set> - enter the unique name for the navigation set created using the Navigation Display Rule.
        Name must be in lowercase and have no spaces. 

Issues.PNG Known Issues:

The rule will NOT check to see if the named navigation set exists or not.

Notes.PNG Notes:

The navigation set must first be created by the Navigation Display Rule

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:


[edit] Navigation Set Hide/Show Rule

Shows and hides navigation sets. You can have multiple sets visible and hidden at the same time.

Properties.PNG Rule Properties:

  • <kuid:401543:1163>
  • Base rule
  • Minimum Trainz Build: 3.6 (TS12) (the required version is built into each appliciable Trainz release)

Settings.PNG Rule Settings:

   <visibility> -  click to select one:- 
      Hide - select to make the navigation set invisible
      Show - select to make the navigation set visible
   <click here to set> - enter the unique name for the navigation set created using the Navigation Display Rule.
         Name must be in lowercase and have no spaces. 

Issues.PNG Known Issues:

The rule will NOT check to see if the named navigation set exists or not.

Notes.PNG Notes:

The navigation set must first be created by the Navigation Display Rule

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:


[edit] Trackside Check Rule

Executes child rules when a set train enters a set trigger. Similar to the Trigger Check Rule but provides different options.

Properties.PNG Rule Properties:

  • <kuid2:46162:100207:1>
  • DLS Rule by Josefpav
  • Minimum Trainz Build: 3.7 (TS12 SP1)
  • Parent Rule

Settings.PNG Rule Settings:

   Applies to: -  select one of three option buttons:- 
      ( ) Junction
      ( ) Trigger
      ( ) Trackmark
   Trackside object name: <specify> - select object name from session list:-
   Wait for train to: -  select one of three option buttons:- 
      ( ) Enter
      ( ) Stop at
      ( ) Leave
   [x] Auto reset this rule - check to execute the rule continuously
   Applies to train containing:
   <Add vehicle> - click to select a rail vehicle from the session list
   del - click to remove a selected vehicle from the rule

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Trigger Check Rule

Executes child rules when a set train enters a set trigger. This rule replaces the older and less versatile Trigger Rule.

Properties.PNG Rule Properties:

  • <kuid:-25:1296>
  • Built-in Rule
  • Minimum Trainz Build: 4.5 (TANE SP2) (earlier builds are available)
  • Parent Rule

Settings.PNG Rule Settings:

   [x] Trigger only once 
   [x] Wait for child rules to complete even if no trains are present in rule trigger
   [x] Only activate when the entering vehicle of the train is heading <select direction> into the trigger - select one of two directions:-
      forward
      backward
   Triggers List
      <add trigger> - select a trigger from the session list
      <delete trigger> - delete a selected trigger from the rule
    Select one of two option buttons:- 
      ( ) click to accept all trains
      ( ) click to accept trains matching specific criteria
          Selecting the second option will produce the following selection controls:- 
         Specific vehicle - identify the specific vehicle(s) that will trigger the rule
            + - click to add a specific vehicle from the session list
            x - click to remove the specific vehicle from the rule
         Vehicle types - identify the type of vehicle(s) that will trigger the rule
            + - click to add a type of vehicle from the session list
            x - click to remove the type of vehicle from the rule
         Drivers - identify the driver(s) that will trigger the rule
            + - click to add a driver from the session list
            x - click to remove a driver from the rule

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


[edit] Wait on Navigation Point Rule

Executes child rules when a specific navigation point is completed

Properties.PNG Rule Properties:

  • <kuid:401543:1168>
  • Base Rule
  • Minimum Trainz Build: 3.6 (TS12)
  • Parent Rule

Settings.PNG Rule Settings:

   navigation point <click here to set> - enter the number of the navigation point to be completed
   in set <click here to set> - enter the unique name for the navigation set created using the Navigation Display Rule.
       Name must be in lowercase and have no spaces. 

Issues.PNG Known Issues:

The rule will NOT check to see if the named navigation set and point exists or not.

Notes.PNG Notes:

The navigation set and point must first be created by the Navigation Display Rule

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


[edit] Wait on Train Stop/Start Rule

Executes child rules when a train stops or starts moving

Properties.PNG Rule Properties:

  • <kuid:-25:1261>
  • Built-in Rule
  • Minimum Trainz Build: 4.6 (TRS19) (earlier builds are available)
  • Parent Rule

Settings.PNG Rule Settings:

   [x] Trigger rule once 
   Wait for a train that matches the following criteria to <select> -  select one of:- 
      start moving
      stop moving
    Select one of two option buttons:- 
      ( ) click to accept all trains
      ( ) click to accept trains matching specific criteria
          Selecting the second option will produce the following selection controls:- 
         Specific vehicle - identify the specific vehicle or set of specific vehicles that will trigger the rule
            + - click to add a specific vehicle from the session list
            x - click to remove the specific vehicle from the rule
         Vehicle types - identify the type of vehicle or a set of vehicle types that will trigger the rule
            + - click to add a type of vehicle from the session list
            x - click to remove the type of vehicle from the rule
         Drivers - identify the drivers that will trigger the rule
            + - click to add a driver from the session list
            x - click to remove a driver from the rule

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


Top Next Up Next Down Bottom

[edit] Portal Rules

[edit] Quick Portal Manager with Timetable Standard Edition (TANE SP4 and later)

Manages portals and adds flexible timetables.

Properties.PNG Rule Properties:

  • <kuid2:61392:5011:57>
  • DLS Rule by pguy
  • Minimum Trainz Build: 4.5 (TANE SP2) (earlier builds are available)

Settings.PNG Rule Settings:

   Target date is day-of-week <dd/mm/yyyy> - day-of-week and date shown are for today's date. Click dd/mm/yyyy to change date.
   <Copy rule data to Clipboard> - click to copy the currently entered data to a special clipboard area used by the rules created by pguy. 
       This is NOT the standard OS clipboard. 
   <Paste rule data from Clipboard> - if data is held in the special clipboard area, then click to paste that data into the rule.
       This is NOT the standard OS clipboard. 
   [x] This rule is enabled - check to activate (enable) the rule.
   [x] Avoid duplicated driver if possible - check to prevent the same driver being used again. If a driver name is reused, the rule will select a different driver name.
   [x] Disable locomotives/vehicles enhanced mode - check to save vehicle properties when a train is removed by a portal. 
      These properties will be restored if the same train is emitted by a portal.  If checked then a new command will appear:- 
      <for all vehicles/for only locomotives/for only tagged vehicles> - click to select one.
   Portal selected: <portal name> [...] - select a portal to manage by clicking <portal name> or [...] and selecting a portal from the Session list.
   Portal output link: <[no link]> [...] - leave blank.
   Portal input link: <[no link]> [...] - leave blank unless you want to connect to a Global Input Queue. Click to select an input queue from the Session list.
   Default schedule for input trains is named: <schedule> - click to enter a schedule name.
   Today's schedule: <Insert new schedule> - click to enter a new schedule
    For each schedule:- 
      <hh:mm> - click to set the time when a train will be emitted from the portal. Times use the 24hr clock.
      <train name> - click to enter the train name
      <mission code> - click to enter the Mission Code created by the MissionCode Manager Rule (SP2 and later).
      <schedule> - click to enter the re-occurrence schedule in hh:mm (24hr clock) where, for example:
         02:30 means every 2 hrs 30 minutes,
         00:00 means once only,
         24:00 means once each day.
      <driver> - click to select a driver name or select auto-driver to let the rule select a driver.
         Current driver order bar is named <schedule> - click to enter a name for the order (Driver Command) bar used in this schedule.
      <hud> - click to select a HUD for this train. HUDs must be created using the Quick CustomHud Manager Rule (TRS19 and later).
      Driver Command Bar - enter driver commands for this train.
       Choose one of two consist sets:- 
      <mono consist> consist for every day - if selected the same consist will be used each day.
         <no consist selected> - click to select a consist from those saved in your install.
      <multi consists> - if selected a different consist will be used each day. 
          For each day of the week:- 
            Day-of-week <no consist selected> - click to select a consist from those saved in your install.

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Un-Portal Rule

Provides portals to routes that have no portals by configuring track marks as portals.

Properties.PNG Rule Properties:

  • <kuid2:117746:1024:10>
  • DLS Rule by sforget
  • Minimum Trainz Build: 2.9 (TS2009) (earlier builds are available)

Settings.PNG Rule Settings:

   Maximum Trains on Route <value> - enter number
   Remove Excess Trains <YES/NO> - select either. Warning: Selecting YES may result in undesirable effects
   Remove Which Trains <Last created/Oldest> - select either
   New Un-Portal - click to select a new Un-portal from the session list of available track marks
    For each Un-portal:- 
      Track Mark Name - click on track mark name to configure the Un-Portal
      Configuration Settings:-
         Currently Editing Portal Track Mark Name Remove - click on name to edit a different Un-Portal, click on Remove to delete this Un-Portal
         Time between trains <value> minutes - enter number of minutes
         Timer Fluctuation <value> minutes - enter how much randomness to add to the "Time between trains"
         Direction Relative to TrackMark <Forwards/Backwards> - select one to indicate the direction of travel compared to the direction of the Track Mark
         Consume Trains <YES/NO> - select one
         Emit Immediately <YES/NO> - select one
         Order to Emit Trains <Random/Sequential> - select one to control train order from entered list of consists
         Wait for Triggered Event <YES/NO> - select one
         Add New Consist - click to add a consist to be emitted.
            + - click to add a specific vehicle from the session list
            x - click to remove the specific vehicle from the rule
            Add driver to consist - click to select a driver from the session list
            Add an existing saved consist - click to select a previously saved consist

Notes.PNG Notes:

  1. Minutes are Trainz clock time, not real time
  2. If Consume Trains is set to YES then ALL trains that pass over that trackmark will be consumed so don't create the Un-Portal on a mainline

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


Top Next Up Next Down Bottom

[edit] Resources Rules

[edit] ExTrainz Manager Rule - TANE SP2

Provides information on consists, industries and products in both Surveyor and Driver modes. Once activated, the rule creates an additional short menu bar below the main menu bar.

Properties.PNG Rule Properties:

  • <kuid:160293:10029>
  • DLS Rule by trev999
  • Minimum Trainz Build: 4.5 (TANE SP2)

Settings.PNG Rule Settings:

   Diagnostic mode is <On/Off> - click to select On or Off. When set On diagnostic messages will be added to the Trainz Log file.
   Turn on message overlay <Yes/No> - click to select Yes or No. When set to Yes the message overlay (lower left of screen) will be active.
   Show rolling stock in Driver mode <Yes/No> - click to select Yes or No. When set to Yes rolling stock can be searched in Driver mode.
   Search only rolling stock already in session <Yes/No> - click to select Yes or No. When set to Yes only those rolling stock assets
      installed in the session can be searched.
   Graphic colours: <When Red, the industry does not require service/When Green, the industry does not require service> - click to switch 
      between the two colour options.
   Industry page size: <value> - enter the number of industries to be displayed in the Industry List window (maximum 250).
   The following industries are excluded: <Add an industry to be excluded> - name can be complete (e.g. "Coal Mine 2") 
      which will exclude that specific industry from the management list, or partial (e.g. "Coal") which will exclude all 
      industries with the word "Coal" in their names. Entries are not case sensitive.
       Once industries have been excluded, additional commands will appear for each excluded industry:- 
      <delete> <industry name begins with/class name begins with> <name> - click delete to remove this entry. 
         - click industry name begins with/class name begins with to select between the two (see notes below).
         - click name to edit the name.

Issues.PNG Known Issues:

This rule is NOT compatible with all industries.

Notes.PNG Notes:

  1. Rolling stock installed in the current session only (see settings above) can be searched to find a match for any selected product from any industry. In Surveyor (and Driver if that setting is enabled) click on the View Products sub menu link and click on a product name in the Product Window to display a list of all compatible rolling stock for that product.
  2. Alternatively, click on the View Industries sub menu link and then click on a Product Icon to open a Product Window, then click on the View Rolling Stock link at the top of the window.
  3. Industry class names are defined in the config.txt file of industry assets and are not normally accessible by users. However, you can exclude an entire group of related "industry asset classes" such as station, coalingtower, watertank, etc regardless of their actual names provided those assets have been given that "class name" by their creators.


[edit] Hide Product Overlays Rule

Hides the commodity or product bar graphs that appear on active industries

Properties.PNG Rule Properties:

  • <kuid:400048:100970>
  • DLS Rule by callavsg
  • Minimum Trainz Build: 4.5 (TANE SP2)

Settings.PNG Rule Settings:

  None


[edit] Multiple Resource Check Rule

Executes child rules if industries or vehicles reach set commodity levels. This rule replaces the older Resource Check Rule

Properties.PNG Rule Properties:

  • <kuid:-25:656>
  • Built-in Rule
  • Minimum Trainz Build: 4.5 (TANE SP2) (earlier builds are available)
  • Parent Rule

Settings.PNG Rule Settings:

   <Product Level> -  click to select a product test from two choices:- 
      Reach/Exceed - sets an upper limit for the resources being monitored. 
         For example: the rule will be triggered if the quantity of coal in a coal loader stockpile or a coal wagon reaches or exceeds a specified level.
         The initial level in the object must be below the set upper limit.
      Fall below - sets a lower limit for the resources being monitored. 
         For example: the rule will be triggered if the quantity of coal in a coal loader stockpile or a coal wagon falls below a specified level. 
         The initial level in the object must be above the set lower limit. 
         To test when a resource level reaches zero (i.e. is empty) set the lower limit to a very low value but not zero as the level can never fall below zero. 
   <value> - enter required quantity value
   <select> - select a product from session list of products
   <Add object> - click to select a source or target object. Multiple objects and their queues can be added to the rule. 
      ALL the entered products must reach/exceed or fall below the specified value for the rule to be triggered. 
       For each object:- 
         <Object> - click to select session active industry or product enabled rail vehicle 
         <Queue> - select product queue (there may be only one available)
         <Remove> - removes the object and its product queue from the rule

Notes.PNG Notes:

This rule only checks for changing commodity levels during loading and unloading operations. It cannot be used to test, for example, if a vehicle is full or empty.

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


[edit] Resource Check Rule

Executes child rules if a selected industry or vehicle reaches a set commodity level. This rule has been superseded by the Multiple Resource Check Rule

Properties.PNG Rule Properties:

  • <kuid:-25:1067>
  • Built-in Rule
  • Minimum Trainz Build: 4.5 (TANE SP2) (earlier builds are available)
  • Legacy Rule (replaced by Multiple Resource Check Rule)
  • Parent Rule

Settings.PNG Rule Settings:

    Select one of two option buttons:- 
      ( ) Watch industry queue
         Target Object <select> - select an industry from the session list
         Queue <select> - select a product queue from the selected industry
         Product <select> - select a product from the selected queue
         Amount <value> - enter a quantity
          Select one of two option buttons:- 
            ( ) Complete when designated queue equals or exceeds required amount
            ( ) Complete when designated queue falls below required amount
      ( ) Watch vehicle
         Target Object <select> - select a rolling stock asset from the session list
         Queue <select> - select a product queue from the selected rolling stock
         Product <select> - select a product from the selected queue
         Amount <value> - enter a quantity
          Select one of two option buttons:- 
            ( ) Complete when designated queue equals or exceeds required amount
            ( ) Complete when designated queue falls below required amount

Notes.PNG Notes:

This rule only checks for changing commodity levels during loading and unloading operations. It cannot be used to test, for example, if a vehicle is full or empty.

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Resource Verify Rule (fixed)

Executes child rules if a selected industry or vehicle reaches a set commodity level. The rule resets when all child rules have completed.

Properties.PNG Rule Properties:

  • <kuid:160293:10060>
  • DLS Rule by trev999
  • Minimum Trainz Build: 3.5 (TS12)
  • Parent Rule

Settings.PNG Rule Settings:

    Select one of two option buttons:- 
   ( ) Watch industry queue
      Target object <click to select> - click to select an industry from the session list.
      Product <click to select> - click to select an industry product.
      Amount <value> - enter a quantity for the selected product.
       Select one of two option buttons:- 
      ( ) Complete when designated queue equals or exceeds designated amount
      ( ) Complete when designated queue falls below designated amount
   ( ) Watch vehicle queue
      Target object <click to select> - click to select a rolling stock vehicle from the session list.
      Product <click to select> - click to select a commodity product.
      Amount <value> - enter a quantity for the selected product.
       Select one of two option buttons:- 
      ( ) Complete when designated queue equals or exceeds designated amount
      ( ) Complete when designated queue falls below designated amount

Notes.PNG Notes:

  1. This rule will only monitor a single commodity in a single industry or vehicle.
  2. This rule only checks for changing commodity levels during loading and unloading operations. It cannot be used to test, for example, if a vehicle is full or empty.

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


Top Next Up Next Down Bottom

[edit] Schedule Rules

[edit] Driver Command Check Rule

Executes child rules if the driver commands match a set list.

Properties.PNG Rule Properties:

  • <kuid:-25:447>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)
  • Parent Rule

Settings.PNG Rule Settings:

 [x] Trigger rule once - check to allow the rule to execute only once
 Driver character to watch the command list of <select> - select a driver name from the Session List
 Wait for driver character to have a command list that matches this:
    <add driver command> - add a driver command from the session list. More commands can be added. Commands can be deleted.
    <add all> - adds ALL driver commands in the session list. Individual commands can be removed.
    <delete all> - deletes all entered driver commands from the session rule

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Driver Command Rule

Specifies which commands will be available for the drivers

Properties.PNG Rule Properties:

  • <kuid:-3:10057>
  • Base Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

    For each installed Driver Command:- 
   [x] Name of Driver Command and Description (if available) - check to make that command available to the drivers

Notes.PNG Notes:

Some Driver Commands that have been checked will not appear in the Command Lists for drivers if there is no target for their action. For example:
The Wait For Trigger command will not be available to any drivers if there are no triggers set.
The Call At command will not be available to any drivers if there are no industry active assets or passenger enabled stations.

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


[edit] Driver Schedule Rule

Sets up a list of basic scheduled commands

Properties.PNG Rule Properties:

  • <kuid2:82445:90001:9> by transiberiano
  • Built-in Rule
  • Minimum Trainz Build: 2.5 (TRS2006) (earlier builds are available)

Settings.PNG Rule Settings:

   Driver Schedule Assigned to name of driver <icon> - click icon to select a driver from those assigned in the Driver Setup Rule
   Next commands, will be executed  
      >> - click to enter driver commands from those specified in the Driver Command Rule
   Style: -  select one of four option buttons:- 
      ( ) Classic style: If there is a schedule do not emit a new schedule - any currently assigned set of driver commands will not be replaced
      ( ) Killer style: If there is a schedule clean it and emit a new one - replace any currently assigned driver commands with the new commands
      ( ) Cooperative style: If there is a schedule append the new one - add the new driver commands to the end of any existing commands
      ( ) Active style: Emit a new schedule, only if already a schedule running - only add the new commands if commands are currently running

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:


[edit] Driver Setup Rule

Creates the list of drivers for this session and assigns them their orders

Properties.PNG Rule Properties:

  • <kuid:-16:2025>
  • Base Rule
  • Minimum Trainz Build: 4.5 (TANE SP2) (the correct version is built into each appliciable Trainz release)

Settings.PNG Rule Settings:

   <driver icon> - click to select a new driver from the list of installed and built in drivers
   <loco> - click to select a new locomotive from the session list and assign it to this driver. Locos displayed in red have not been found in the session list
   <driver name> - click to enter a new name for the selected driver
   <driver mode> -  click to select one of:- 
      Autodetect - the program will detect the driver mode to be used. For example, if driver commands have been entered for this driver
         then the AI driver mode will be selected
      First Human Player - the driver will be assigned to the user or multiplayer who accesses her/him first
      AI driver - the AI will be given control even if no commands are present
      Multiplayer Driver - the driver will be assigned to a multiplayer user
   <remove> - this driver will be removed from the rule
   >> - click to enter driver commands from those specified in the Driver Command Rule
     Scroll down to the bottom of the list of entered drivers for more options:- 
 <Add another driver> - click to add another driver 
 [x] Remove all existing Drivers first -  see Known Issues below 
 [x] Generate new Drivers for empty Trains - when checked all newly added locos will automatically be given drivers

Issues.PNG Known Issues:

  1. The Remove all existing Drivers first option does not appear to work in TANE (but works in TRS19 and later)
  2. Adding a large number of drivers to a session can cause Timeout errors. One known workaround is to split the drivers between two copies of the Driver Setup Rule and make the second copy a child of a Wait Rule. For more details see the Wiki How to Use Driver Setup Rule. This issue has been reported as FIXED in TRS19 SP1 and Trainz Plus

Notes.PNG Notes:

The driver at the top of the list will have the camera focus when the Session starts. There is no way to move a driver up the list order except by removing the higher drivers

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


[edit] Enable/Disable Driver Commands Rule

Enable/Disable specific driver commands on certain drivers. Multiple copies of the rule can be used to give different drivers or consists different command lists

Properties.PNG Rule Properties:

  • <kuid:-25:480>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

   <Enable/Disable> the following driver commands ... - click to select Enable or Disable
    For each driver command:- 
   [x] command name - check to enable or disable
   [x] command name - check to enable or disable
   [x] command name - check to enable or disable
   etc
    Select one of two option buttons:- 
      ( ) click to accept all trains
      ( ) click to accept trains matching specific criteria
          Selecting the second option will produce the following selection controls:- 
         Specific vehicle - identify the specific vehicle or set of specific vehicles that will trigger the rule
            + - click to add a specific vehicle from the session list
            x - click to remove the specific vehicle from the rule
         Vehicle types - identify the type of vehicle or a set of vehicle types that will trigger the rule
            + - click to add a type of vehicle from the session list
            x - click to remove the type of vehicle from the rule
         Drivers - identify the drivers that will trigger the rule
            + - click to add a driver from the session list
            x - click to remove a driver from the rule

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] ScheduleAtTrackMark Rule

Allows a set of driver commands to be given to a train when it reaches a trackmark or trigger.

Properties.PNG Rule Properties:

  • <kuid2:61392:2001:6>
  • DLS Rule by pguy
  • Minimum Trainz Build: 3.8 (TANE) (earlier builds are available)

Settings.PNG Rule Settings:

   <Select trackmark> - <Select trigger> - click one to select a trackmark from the Session list or a trigger from the Session list
   Schedule will be fired <in both directions/in trackside forward direction/in trackside backward direction> - click to select one. Only available if trackmark has been selected
   This rule will be applied <all along the session> - click to enter the number of times to trigger the rule. 0 = everytime (all along the session)
   Enter driver commands to schedule when train is at trackside
      >> - click to enter driver commands from those specified in the Driver Command Rule
    Select one of two option buttons:- 
      ( ) new schedule will replace current driver command - select to delete any current command list and replace it with the command list above
      ( ) new schedule will be appended to current driver commands - select to add the command list above above to the current driver command list
   <add a new trackside entry> - click to add a new ScheduleAtTrackMark entry below

PageLink.PNG Related Rules:


[edit] Schedule Library Rule

Creates a library of driver schedules (driver command lists) that can be given to drivers during the creation or running of a session

Properties.PNG Rule Properties:

  • <kuid2:192081:12:5>
  • Built-in Rule by brummfondel
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

  <add schedule> | <add group>
      To add individual schedules click <add schedule> then:- 
       <library Entry Name> - enter a unique name for the schedule
          <library Entry Name> - click to edit name
          <remove> - click to delete this schedule from the list
          <copy> - click to add a copy this schedule to the current group
          <move to group> - click to move this schedule to a schedule group
          In the driver command bar:-
             >> - click to enter driver commands from those specified in the Driver Command Rule
       To add groups of schedules click <add group> then:- 
       <Group Name> - enter a unique name for the group
           - - click to close the group list
           + - click to open the group list
           <Group Name> - click to edit name
           <remove> - click to delete this group from the schedule list

Notes.PNG Notes:

  1. Create the library schedules in this rule first.
  2. In Surveyor (using the Driver Setup Rule) or Driver (directly in a driver command bar) add the Driver Command Copy Commands From and select the command schedule to be added or appended. The driver command Copy Commands From must be enabled in the Driver Command Rule.

PageLink.PNG Related Rules:

PageLink4.PNG Dependent Driver Commands

The rule must be added to the Session for the following Driver Command to work

Ex.PNG Examples of Use:


[edit] Schedule Rule

Allows a schedule of timed events to be applied to a train

Properties.PNG Rule Properties:

  • <kuid:-3:10185>
  • Base Rule
  • Minimum Trainz Build: 4.5 (TANE SP2)

Settings.PNG Rule Settings:

   Insert track mark <select> - select a track mark from the Session List
   Arrival and Departure Time <Select> - set time
      hh:mm:ss - in hours/minutes/seconds
   Current Train <select> - select from session list
   Insert destination <select> - select from session list

BugMini.PNG Known Bugs:

There are reports that this rule does not work correctly particularly if a train arrives late or early.

Notes.PNG Notes:

Times are Trainz clock times, not real time

PageLink.PNG Related Rules:

WWWLinks.PNG Other Links:


Top Next Up Next Down Bottom

[edit] Session Sequence Rules

[edit] Ordered List Rule

Executes child rules in order once this rule starts

Properties.PNG Rule Properties:

  • <kuid:-25:171>
  • Built-in Rule
  • Minimum Trainz Build: 3.6 (TS12) (earlier builds are available)
  • Parent Rule

Settings.PNG Rule Settings:

    Select one of two option buttons:- 
     ( ) This process will repeat <value> time(s) - enter the number of times this rule is to be repeated
     ( ) This process will repeat forever

Issues.PNG Known Issues:

Some child rules will force a "wait" until certain conditions have been met (e.g. a mouse click or a set time has passed). These rules will delay the completion of any following child rules in the Ordered List Rule. If possible, place these rules last in the Ordered List.
For example: The Message Popup Rule will wait until it is closed before allowing the next child rule to be executed.

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Progressive List Rule

Executes the first child rule on the first run, the second child on the second run, the third child on the third run, etc.

Properties.PNG Rule Properties:

  • <kuid:-25:754>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)
  • Parent Rule

Settings.PNG Rule Settings:

  After last child has been executed ...
  <successive runs will do nothing/the last child will be repeated/the first child is chosen again> - click to select one

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Random List Rule

Executes ONE randomly selected child rule once only. The rule will not repeat to randomly select another child rule

Properties.PNG Rule Properties:

  • <kuid:-25:758>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)
  • Parent Rule

Settings.PNG Rule Settings:

   None

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Reset List Rule

Executes ALL child rules continuously in an ongoing infinite cycle

Properties.PNG Rule Properties:

  • <kuid:-25:1263>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)
  • Parent Rule

Settings.PNG Rule Settings:

   None

PageLink.PNG Related Rules:

WikiLink.PNG Trainz Wiki Links:


[edit] Simultaneous List Rule

Executes child rules simultaneously once this rule starts

Properties.PNG Rule Properties:

  • <kuid:-25:1048>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)
  • Parent Rule

Settings.PNG Rule Settings:

   Rule completes when ... -  click to chose one of the following:- 
      one of the child rules has completed
      all child rules have reached a completed state
      all child rules have reached a "was completed" state

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


Top Next Up Next Down Bottom

[edit] Speed Rules

[edit] ATP Speed Limiter Rule

Limits allowable speed over set limit

Properties.PNG Rule Properties:

  • <kuid2:321959:1000:1>
  • Built-in Rule
  • Minimum Trainz Build: 4.6 (TRS19) (earlier builds are available)

Settings.PNG Rule Settings:

   Limits the speed to <value> mph over the set limit - enter speed value in mph

PageLink.PNG Related Rules:

  • AWS Configuration Rule - configures the Trainz implementation of the Automatic Warning System when approaching signals


[edit] Speeding Check Rule

Executes child rules if player controlled trains are over the local speed limit or over a set (custom) speed

Properties.PNG Rule Properties:

  • <kuid2:60850:89004:3>
  • Built-in Rule
  • Minimum Trainz Build: 4.6 (TRS19) (earlier builds are available)
  • Parent Rule

Settings.PNG Rule Settings:

    Select one of two options to set a speed limit to be observed:- 
      ( ) Watch for trains travelling above the posted speed limit
         <speed value> - click to enter a new overspeed tolerance value
         <speed units> -  click to select one from the list:- 
            Km/h - Kilometres per hour
            MPH - Miles per hour
            mps - metres per second
      ( ) Watch for trains travelling above a custom speed
         <speed value> - click to enter a new custom speed value
         <speed units> -  click to select one from the list:- 
            Km/h - Kilometres per hour
            MPH - Miles per hour
            mps - metres per second
             Warning: This option is very performance intensive and should only be used in sessions with few trains 

WikiLink.PNG Trainz Wiki Links:


[edit] MaxPermittedSpeed Rule

Sets the maximum permitted speed of locomotives under AI control. Speed control is through editing each locomotives config.txt file.

Properties.PNG Rule Properties:

  • <kuid2:60850:89000:7>
  • Built-in Rule
  • Minimum Trainz Build: 2.9 (TS2009)

Settings.PNG Rule Settings:

   None - see notes below

Notes.PNG Notes:

  • This rule cannot be configured from the Session Editor. It must be configured in the config.txt file of each locomotive. Instructions with an example are shown in the rule Settings
  • An easier option may be to use the Set Max Speed To Driver Commands

PageLink2.PNG Related Driver Commands:


Top Next Up Next Down Bottom

[edit] Startup and Termination Rules

[edit] End Session Rule

End the Session with a fade out.

Properties.PNG Rule Properties:

  • <kuid:-25:1321>
  • Built-in Rule
  • Minimum Trainz Build: 4.6 (TRS19) (earlier builds are available)

Settings.PNG Rule Settings:

   Fade out over <value> seconds - enter number of seconds for fade out.

Notes.PNG Notes:

Seconds are Trainz clock time, not real time.

PageLink.PNG Related Rules:


[edit] Multiplayer Rule

Enables the session to be taken online in a Multiplayer environment.

Properties.PNG Rule Properties:

  • <kuid:447264:1045>
  • Built-in Rule
  • Minimum Trainz Build: 3.3 (TRS2009 SP4/TS2010 SP2)

Settings.PNG Rule Settings:

   Suggested maximum number of players for this session <value> - enter a number
   Maximum number of drivers per player <value> - enter a number
   Players are permitted to claim drivers             [x] - check to allow players to select a driver
   Players can see each other's driver orders         [x] - check to allow players to view orders for other players
   Automatically target an available train on clients [x] - automatically assign a driver to each player


[edit] QuickDrive Rule

Changes some of the the Session settings for Driver mode.

Properties.PNG Rule Properties:

  • <kuid:401543:1184>
  • Base Rule
  • Minimum Trainz Build: 4.5 (TANE SP2)

Settings.PNG Rule Settings:

  Set time to <hours:minutes> with a rate of <speed x> - set start time and rate at which time advances
  Enable gameplay Session Mode                            [x] - check to set. Gameplay mode restricts the players options
  Enable in game help by default                          [x] - check to allow help options to be displayed
  Set the default Control method to: -  select one of two option buttons:- 
     ( ) Easy Mode
     ( ) Realistic Mode
     [x] Prevent player from changing this setting - check to set
  Realistic mode requires achievement: <text> in asset <asset name> - enter achievement name and select an asset from Aurans Achievements
  Set the default derailment realism to: -  select one of three option buttons:- 
     ( ) None
     ( ) Arcade
     ( ) Realistic
     [x] Prevent player from changing this setting - check to set
  Set the default units to: -  select one of three option buttons:- 
     ( ) Imperial
     ( ) Metric
     ( ) Default

Notes.PNG Notes:

  • When used as a route and session development tool, this rule has been replaced by the UDS interface built into TRS19 Platinum Edition and Trainz Plus which allows rapid two way switching between Surveyor and Driver

WikiLink.PNG Trainz Wiki Links:


[edit] Randomize Rule

Generates a different set of random numbers each time the session is run.

Properties.PNG Rule Properties:

  • <kuid:169301:100129>
  • DLS Rule by Terry_Wagstaff
  • Minimum Trainz Build: 4.2 (TANE)

Settings.PNG Rule Settings:

   None

Notes.PNG Notes:

Place this rule near the top of the Session Rules list and ensure that there is at least 5 seconds before the call to a Random function.

PageLink.PNG Related Rules:


[edit] Session Complete Rule

Set session to a percentage of completion.

Properties.PNG Rule Properties:

  • <kuid:447264:1011>
  • Base Rule
  • Minimum Trainz Build: 3.1 (TS2009 SP2)

Settings.PNG Rule Settings:

   Set session to percent complete <value> - enter number as a percentage
   [x] Separate achievements for completion - check to set

PageLink.PNG Related Rules:


[edit] Startup Options Rule

Specifies the starting options for the session. The weather settings will set the initial conditions, including the variability. To manually change the weather during play, use the Weather Rule.

Properties.PNG Rule Properties:

  • <kuid:-16:10212>
  • Base Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

   Current control method is <select> -  select one from:- 
      Easy Mode - DCC (standard keyboard and mouse) control
      Ask User - let the user decide
      Realistic Mode - Cab controls (on screen levers, throttles, buttons, etc)
   Set weather to <select mode> with <select frequency> changeability -  select one of:- 
      Weather mode: -  select one of:- 
         Clear
         Cloudy 
         Drizzle
         Rain
         Stormy
         Light Snow
         Medium Snow
         Heavy Snow
      Changeability: -  select one of:- 
         Off - the weather will not change from the mode selected above
         Periodic - slow gradual changes to the weather
         Extreme - rapid and extreme changes to the weather
   Set time to <hours>:<minutes> with a rate of <select speed> - set the starting time and the speed at which the Trainz clock will run
   Set derailment realism to <select reality level> -  select one of:- 
      None - no train derailments will occur
      Arcade - train derailments will be exaggerated (beyond normal)
      Realistic - train derailments will occur as realistically as possible
   [x] Show in game help - check to switch on help options
   Use <select measurement system> units in Driver -  select one of:- 
      Metric - kilometres, metres. This will override the default settings in a session
      Imperial - miles, feet. This will override the default settings in a session
      Default - uses the measurement system specified in the session

Notes.PNG Notes:

Times are Trainz clock time, not real time

PageLink.PNG Related Rules:


Top Next Up Next Down Bottom

[edit] Time Rules

[edit] Clock Rule

Rule needed for animated clocks.

Properties.PNG Rule Properties:

  • <kuid2:62310:30041:2>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

   None

Notes.PNG Notes:

Apply this rule to your session to make use of the animated clocks. See the forum for code to include in your clock object to work with this rule.


[edit] Loco Lighting Control Rule

Sets the ON and OFF times for loco headlights and the weather conditions that will turn ON the head and tail lights during the day.

Properties.PNG Rule Properties:

  • <kuid2:87589:90002:7>
  • DLS Rule by didoz
  • Minimum Trainz Build: 3.5 (TRS12 SP1)

Settings.PNG Rule Settings:

 Time settings: 
Turn headlights on at <hour>:<minute> - enter clock time in hours (24hr format) and minutes for headlights ON
Turn headlights off at <hour>:<minute> - enter clock time in hours (24hr format) and minutes for headlights OFF

   set both times to 00:00 for always ON

 Weather settings: 
Turn headlights on if it is <Rain> - select from a list of weather conditions which will turn the headlights ON during the day

 Tail light settings: 
Tail light status at day is
ON/OFF - click button to toggle between ON and OFF

Tail light status if raining at day is
ON/OFF - click button to toggle between ON and OFF. This switch can only be activated if "status at day" setting is OFF

Notes.PNG Notes:

Times are Trainz clock time, not real time

PageLink.PNG Related Rules:


[edit] Time and Rate Rule

Sets the session start time and the rate at which time passes.

Properties.PNG Rule Properties:

  • <kuid:-25:889>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

   Set time to <hours:minutes> - enter the clock starting time as hours (0-23) and minutes (0-59)
   with a rate of <1x> - select a speed at which time will pass from 1x (normal) to 1440x (extremely fast)

PageLink.PNG Related Rules:


[edit] Timecheck Rule

Executes child rules at a set time.

Properties.PNG Rule Properties:

  • <kuid2:122381:10008:3>
  • Built-in Rule by mizi
  • Minimum Trainz Build: 2.4 (TRS2004 SP4)
  • Parent Rule

Settings.PNG Rule Settings:

   <hh:mm:ss> - enter execution time as hours (0-23), minutes (0-59) and seconds (0-59).
   [x] Execution time is on the day after the start time - when checked delays execution until the following day.

Issues.PNG Known Issues:

Do not use this rule as a child of a repeating rule such as the Simultaneous List Rule or the Ordered List Rule.

Notes.PNG Notes:

Times and days are Trainz clock times not real time.

PageLink.PNG Related Rules:

  • Time and Rate Rule - sets the session start time and the rate at which time passes.
  • Wait Rule - executes child rules after waiting for a set number of seconds.

WikiLink.PNG Trainz Wiki Links:


[edit] Wait Rule

Executes child rules after waiting for set number of seconds

Properties.PNG Rule Properties:

  • <kuid2:122381:10016:2>
  • Built-in Rule
  • Minimum Trainz Build: 2.4 (TRS2004 SP4)
  • Parent Rule

Settings.PNG Rule Settings:

   <click to set> - enter the number of seconds for the wait delay

Notes.PNG Notes:

Seconds is in Trainz clock time, not real time

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


Top Next Up Next Down Bottom

[edit] Variable Rules

[edit] Quick Session Variables Rule

Allows the editing of session variables

Properties.PNG Rule Properties:

  • <kuid2:61392:5003:30>
  • DLS Rule by pguy
  • Minimum Trainz Build: 3.8 (TANE)
  • Legacy Rule (use Variable Modify Rule)

Settings.PNG Rule Settings:

   <local> - click to edit local variables
      <add new session variable> - click to enter the name of new local variable
          for each variable:- 
         <variable-name> - click to change variable name
         <type> -  click to select one of:- 
            string - text characters
            int - integer
            float - real (decimal) numbers
            bool - boolean (true/false)
            stringset - meaning not known at this time
            stringlist - meaning not known at this time
            tkmlist - trackmark list (no longer supported in TANE SP2)
            platformlist - platform list (no longer supported in TANE SP2)
            del - delete variable
            edit - edit variable
   <trains> - click to edit a train variable
      <train selected> - click to select a train from the session list. Initially none is selected
         <select train> - click to select a locomotive
         <select vehicle> - click to select a rail vehicle
          for the selected loco/vehicle:- 
            <Add new session variable> - click to enter the name of a new variable
               for the entered variable:- 
                 <variable-name> - click to change variable name
                 <type> - click to select type (see list above)
   <objects> - no longer supported in TANE SP2
   <global> - no longer supported in TANE SP2

Issues.PNG Known Issues:

Rule creator, pguy, has indicated that the future of this rule is uncertain as parts of it have been devalued in the latest releases of Trainz.

PageLink.PNG Related Rules:


[edit] Variable Check Rule

Executes child rules when a specific variable matches set conditions

Properties.PNG Rule Properties:

  • <kuid:-25:1049>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)
  • Parent Rule

Settings.PNG Rule Settings:

   <variable-name> - enter a variable-name. Variable name is case sensitive.
   Mathematical relationship,  select one of:- 
      is less than - enter a <value> to test against
      is less than or equal to - enter a <value> to test against
      is equal to - enter a <value> to test against
      is greater than or equal to - enter a <value> to test against
      is greater than - enter a <value> to test against
      is not equal to - enter a <value> to test against
      is between x and y - enter a minimum <x-value> and a maximum <y-value>
   Evaluation type.  Select one from:- 
      <This condition will be evaluated only once ...> - any changes to the variable that occur after
              it has been checked will not change the result of this rule
      <This condition will be evaluated once every second> - the rule will be rerun and the variable 
              rechecked every second

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


[edit] Variable Modify Continuous Rule

Adds, subtracts or sets a value to a specified variable every second.

Properties.PNG Rule Properties:

  • <kuid:-25:1051>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

  <Add/Subtract/Change variable to> - select one.
     <value> - enter value to add, subtract or apply to <variable-name>
     <variable-name> - enter variable-name. Variable-name is case sensitive.

PageLink.PNG Related Rules:


[edit] Variable Modify Rule

Change the value of a specified variable. This rule can also used to create a new variable and set its initial value by using the "Change variable" option.

Properties.PNG Rule Properties:

  • <kuid:-25:1050>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

   Change <Add to variable/Subtract from variable/Change variable> -  click to select one from:- 
      Add to variable
         Add <value> to variable <variable-name> - enter value to add to variable, enter variable-name.  Variable-name is case sensitive. 
         <Do not undo the alteration if the rule is stopped/Undo the alteration if the rule is stopped> - click to select one.
      Subtract from variable
         Subtract <value> from variable <variable-name> - enter value to subtract from variable, enter variable-name. </span>
             Variable-name is case sensitive. 
         <Do not undo the alteration if the rule is stopped/Undo the alteration if the rule is stopped> - click to select one.
      Change variable
         Change variable <variable-name> to <value> - enter variable-name, enter new value. 
             Variable-name is case sensitive. This change cannot be undone if the rule is stopped. 
   [x] (optional) Set the minimum value of <variable-name> to <value> - enter variable-name
      (this will already be set by the change option) and a value. Variable-name is case sensitive.
   [x] (optional) Set the maximum value of <variable-name> to <value> - enter variable-name
      (this will already be set by the change option) and a value. Variable-name is case sensitive.

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:

WikiLink.PNG Trainz Wiki Links:


[edit] Variable Random Rule

Assigns a random integer value to a variable.

Properties.PNG Rule Properties:

  • <kuid:400260:100606>
  • DLS Rule by tram_
  • Minimum Trainz Build: 2.9 (TS2009)

Settings.PNG Rule Settings:

   Random variable <name> in minimum to maximum interval - enter name of variable. Variable-name is case sensitive.
   The minimum possible value of variable_name is <value> - enter the minimum value
   The maximum possible value of variable_name is <value> - enter the maximum value

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:


[edit] Variable Show Rule

Adds or removes a specified variable and a descriptive label to the custom HUD. This rule does not make the custom HUD appear on the screen.

Properties.PNG Rule Properties:

  • <kuid:-25:971>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

  [x] Add
     <variable-name> - enter variable-name to add to HUD. Variable-name is case sensitive.
     <label> - (optional) enter a short label to be displayed on the HUD in front of the variable value.
  [x] Remove
     <variable-name> - enter variable-name to remove from HUD. Variable-name is case sensitive.

PageLink.PNG Related Rules:

Ex.PNG Examples of Use:


Top Next Up   Bottom

[edit] Weather Rules

[edit] EIRS Weather Rule NE USA Rule

Customize random weather rule relative to the North East Region of the United States.

Properties.PNG Rule Properties:

  • <kuid2:487222:1037:3>
  • Built-in Rule
  • Minimum Trainz Build: 3.1 (TS2009 SP2)

Settings.PNG Rule Settings:

   Season <select> -  select one of:- 
      Summer
      Fall
      Winter
      Spring
   Random Changeability (minutes) <value> -  select one of:- 
      2/5/10/15/20/30/45/60 - minutes
   Environment Settings <select>  -  select one of:- 
      Disable/Enable

Notes.PNG Notes:

Minutes are Trainz clock times, not real times

PageLink.PNG Related Rules:


[edit] Loco Lighting Control Rule

Sets the ON and OFF times for loco headlights and the weather conditions that will turn ON the head and tail lights during the day.

Properties.PNG Rule Properties:

  • <kuid2:87589:90002:7>
  • DLS Rule by didoz
  • Minimum Trainz Build: 3.5 (TRS12 SP1)

Settings.PNG Rule Settings:

 Time settings: 
Turn headlights on at <hour>:<minute> - enter clock time in hours (24hr format) and minutes for headlights ON
Turn headlights off at <hour>:<minute> - enter clock time in hours (24hr format) and minutes for headlights OFF

   set both times to 00:00 for always ON

 Weather settings: 
Turn headlights on if it is <Rain> - select from a list of weather conditions which will turn the headlights ON during the day

 Tail light settings: 
Tail light status at day is
ON/OFF - click button to toggle between ON and OFF

Tail light status if raining at day is
ON/OFF - click button to toggle between ON and OFF. This switch can only be activated if "status at day" setting is OFF

Notes.PNG Notes:

Times are Trainz clock time, not real time

PageLink.PNG Related Rules:


[edit] Random Weather Rule v2

Randomly changes the weather conditions between set values over a set duration.

Properties.PNG Rule Properties:

  • <kuid:169301:100132>
  • DLS Rule by terry_wagstaff
  • Minimum Trainz Build: 4.2 (TANE)

Settings.PNG Rule Settings:

   Starting weather <select> -  select one of:- 
         Clear weather, no clouds, rain or snow
         Cloudy weather, no rain 
         Drizzle, light rain
         Rain
         Stormy weather that includes lightning and thunder
         Snowing lightly
         Medium snowfall
         Heavy snow
   Best weather <select> -  select one of:- 
         Clear weather, no clouds, rain or snow
         Cloudy weather, no rain 
         Drizzle, light rain
         Rain
         Stormy weather that includes lightning and thunder
         Snowing lightly
         Medium snowfall
         Heavy snow
   Worst weather <select> -  select one of:- 
         Clear weather, no clouds, rain or snow
         Cloudy weather, no rain 
         Drizzle, light rain
         Rain
         Stormy weather that includes lightning and thunder
         Snowing lightly
         Medium snowfall
         Heavy snow
   Changing about every: <value> mins - enter number of minutes between weather changes

Notes.PNG Notes:

This rule, once started, will run continuously and will not terminate. If this rule is to be used as a child rule of an Ordered List Rule then place it LAST in the list.

PageLink.PNG Related Rules:


[edit] Weather Rule

Changes the weather conditions during Session play.

Properties.PNG Rule Properties:

  • <kuid:-25:960>
  • Built-in Rule
  • Minimum Trainz Build: 2.0 (TRS2004)

Settings.PNG Rule Settings:

   Set weather to <select mode> with <select frequency> changeability -  select one of:- 
      Weather mode: -  select one of:- 
         Clear
         Cloudy 
         Drizzle
         Rain
         Stormy
         Light Snow
         Medium Snow
         Heavy Snow
    Changeability: -  select one of:- 
         Off - the weather will not change from the mode selected above
         Periodic - slow gradual changes to the weather
         Extreme - rapid and extreme changes to the weather

PageLink.PNG Related Rules:


Top Next Up    


[edit] Trainz Wiki

TrainzWiki.png

More Tutorials and Guides to Using Trainz


This page was created by Trainz users coop2 and pware in September 2017 and was last updated as shown below.


Personal tools