Session Rule List with Parameters: Difference between revisions

From TrainzOnline
Jump to navigationJump to search
Pware (talk | contribs)
No edit summary
Pware (talk | contribs)
mNo edit summary
Line 1: Line 1:
'''TRAINZ A New Era (TANE) SP2. List of Trainz Session Rules in Alphabetical Order with Properties. All rules are the Copyright of N3V Games'''
'''TRAINZ A New Era (TANE) SP2. List of Trainz Session Rules by Categories with Properties. All rules are the Copyright of N3V Games'''


'''This page is always under construction. As new rules appear they will be added to this list.'''
'''This page is always under construction. As new rules appear they will be added to this list.'''
'''Only rules supplied with TANE or on the DLS are covered in this document.'''
'''Only rules supplied with TANE or on the DLS are covered in this document.'''


Also available '''[[Session Rules By Categories With Properties]]'''
Also available '''[[Session Rule List with Parameters|Session Rule List (Alphabetical) with Parameters]]'''


----
----
'''Description Key:'''
'''Description Key:'''
*'''<kuid number>''' is for the rule version at the time of writing. This number will change if the rule is updated.
*'''<kuid number>''' is for the rule version at the time of writing. This number will change if the rule is updated.
Line 14: Line 16:
*'''Obsolete Rule''' is no longer required (explanation given).
*'''Obsolete Rule''' is no longer required (explanation given).
*'''Legacy Rule''' has been replaced by another rule (new rule will be identified).
*'''Legacy Rule''' has been replaced by another rule (new rule will be identified).
----
----
<table bgcolor=#ccffff>
<tr>
<td>
'''[[#A, B|A, B]]''' | '''[[#C|C]]''' | '''[[#D|D]]''' | '''[[#E, F, G|E, F, G]]''' | '''[[#H, I, J|H, I, J]]''' | '''[[#K, L, M|K, L, M]]''' | '''[[#N, O|N, O]]''' | '''[[#P, Q|P, Q]]''' | '''[[#R|R]]''' | '''[[#S-Se|S-Se]]''' | '''[[#Sh-Sz|Sh-Sz]]''' | '''[[#T|T]]''' | '''[[#U, V|U, V]]''' | '''[[#W, X, Y, Z|W, X, Y, Z]]'''
</td>
</tr>
</table>
__TOC__
__TOC__
<table width="100%" bgcolor=#ccffff>
<table width="100%" bgcolor=#ffffaa>
<tr>
<tr>
<td>
<td>
=='''A, B'''==
=='''Achievement Rules'''==
</td>
</td>
</tr>
</tr>
Line 37: Line 30:
Executes child rules when achievement conditions have been met
Executes child rules when achievement conditions have been met


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:401543:1190>'''
*'''<kuid:401543:1190>'''
Line 46: Line 39:


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
     '''''<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:-
       When an '''Achievement Asset''' has been selected, the following will appear:-
Line 57: Line 51:
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Parent and Child Rules]]'''


==='''Advanced Industry Load Configuration Rule'''===
==='''Consist Check Rule'''===


Locks train controls when loading/unloading at an industry, overrides time settings for begin load and begin unload operations
Executes child rules when a matching consist is found. The order of the vehicles in the consists is not important.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:30501:100007>'''
*'''<kuid:-25:1068>'''


*'''Base Rule'''
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
*'''Parent Rule'''
    '''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]] '''<u>Notes:</u>'''
:Times are Trainz clock time, not real time
 
==='''AI Start Rule'''===
 
Restarts all halted AI controlled trains. Drivers will continue with the commands in their driver command list.
 
'''<u>Rule Properties:</u>'''
 
*'''<kuid2:400048:100981:1>'''
 
*'''DLS Rule''' by '''callavsg'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''None'''
     '''[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.
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
    Select one of two option buttons:-
*'''[[#AI Stop Rule|AI Stop Rule]]''' - halts all AI drivers
    '''( ) Rule disabled''' - select to disable the operation of this rule
*'''[[#Disallow AI Rule|Disallow AI Rule]]''' - cancels all AI driver commands
    '''( ) 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


==='''AI Stop Rule'''===
[[file:Issues.PNG]] ''''<u>Known Issues:</u>'''
: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.


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:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Variables in Sessions (Examples)#Example 3: Counting Consist Checks|How to Use Variables in Sessions (Examples): Counting Consist Checks]]'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Consist_Check_Rule</span>'''


'''<u>Rule Properties:</u>'''
==='''Multiple Resource Check Rule'''===


*'''<kuid2:400048:100980:1>'''
Executes child rules if industries or vehicles reach set commodity levels. This rule replaces the older '''Resource Check Rule'''  


*'''DLS Rule''' by '''callavsg'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
*'''<kuid:-25:656>'''


    '''None'''
*'''Built-in Rule'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#AI Start Rule|AI Start Rule]]''' - restarts all halted AI drivers
*'''[[#Disallow AI Rule|Disallow AI Rule]]''' - cancels all AI driver commands


==='''ATP Speed Limiter Rule'''===
*'''Parent Rule'''
 
Limits allowable speed over set limit
 
'''<u>Rule Properties:</u>'''
 
*'''<kuid2:321959:1000:1>'''
 
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''Limits the speed to ''<value>'' mph over the set limit''' - enter speed value in mph
     '''<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
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
: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]] '''<u>Related Rules:</u>'''
*'''[[#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:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[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 Parent and Child Rules]]'''


==='''AWS Configuration Rule'''===
==='''Objective Add Rule'''===


This rule configures the Trainz implementation of the Automatic Warning System when approaching signals
Sets up a game Objective with ID and display Name


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid2:60850:89002:3>'''
*'''<kuid:401543:2001>'''


*'''Built-in Rule'''
*'''Base Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     Select one of three option buttons:-
     '''Priority ''<Select>''''' - select one of:-
       '''( ) Active'''
       '''''Above Normal'''''
      '''( ) Passive'''
      '''''Below Normal'''''
      '''( ) Passive with HUD hidden'''
      '''''Normal'''''
    '''[x] Simulate AWS for unfitted cabs?'''
      '''''Optional'''''
    '''[x] Use modern sound set for unfitted cabs?'''
      '''''Urgent'''''
----
    '''Completion Target Number ''<value>''''' - to set Completion Target Number
<table bgcolor=#ccffff>
    '''Icon ''<select>''''' - to select Icon from list
<tr>
    '''Display Name ''<enter>''''' - to insert Name
<td>
    '''Unique Objective ID ''<enter>''''' - enter a unique objective ID
'''[[#top|Back to Top]]''' | '''[[#A, B|A, B]]''' | '''[[#C|C]]''' | '''[[#D|D]]''' | '''[[#E, F, G|E, F, G]]''' | '''[[#H, I, J|H, I, J]]''' | '''[[#K, L, M|K, L, M]]''' | '''[[#N, O|N, O]]''' | '''[[#P, Q|P, Q]]''' | '''[[#R|R]]''' | '''[[#S-Se|S-Se]]''' | '''[[#Sh-Sz|Sh-Sz]]''' | '''[[#T|T]]''' | '''[[#U, V|U, V]]''' | '''[[#W, X, Y, Z|W, X, Y, Z]]'''
    '''Custom Message ''<Text Box>''''' - insert typed message in text area
</td>
 
</tr>
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
</table>
*'''[[#Objective Check Rule|Objective Check Rule]]''' - executes child rules if an objective is completed
<table width="100%" bgcolor=#ccffff>
*'''[[#Objective Update Rule|Objective Update Rule]]''' - changes the progress of a game objective
<tr>
<td>
=='''C'''==
</td>
</tr>
</table>


==='''Cab Controls HUD Rule'''===
==='''Objective Check Rule'''===


Was used to provide the HUD controls for the cabin view. Now obsolete.
Executes child rules if an objective created with the '''Objective Add Rule''' is complete.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-16:287428>'''
*'''<kuid:401543:2003>'''


*'''Base Rule'''
*'''Base Rule'''


*'''Obsolete Rule''' (function is now built into TANE)
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''None'''
     '''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'''''


==='''Cinematic Camera Rule'''===
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Objective Add Rule|Objective Add Rule]]''' - sets up a game objective
*'''[[#Objective Update Rule|Objective Update Rule]]''' - changes the progress of a game objective


Provides several different cinematic style cameras with animations. Best used at the start of a session.
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
Use the '''Trackside Camera''' (tracking view) found in the '''Set Camera Rule''' during session play.
*'''[[How to Use Parent and Child Rules]]'''


'''<u>Rule Properties:</u>'''
==='''Objective Update Rule'''===


*'''<kuid2:401543:1166:3>'''
Changes progress of an objective outcome created with the '''Objective Add Rule''' according to Property choices


*'''Built-in Rule'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
*'''<kuid:401543:2002>'''


    '''[x] Lock camera controls for the duration''' - if checked user cannot alter camera view
*'''Base Rule'''
    '''[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


[[file:Notes.PNG]] '''<u>Notes:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
:Times are Trainz clock times, not real times


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
    '''Unique Objective ID ''<value>''''' - enter the unique ID created with the '''Objective Add Rule'''
*'''[[#Focus Camera Rule|Focus Camera Rule]]''' - sets the initial camera view and starting vehicle for a session
    '''Mode ''<select>''''' - select one from the following options
*'''[[#Set Camera Rule|Set Camera Rule]]''' - sets the target object and properties of the camera
      '''''Decrement progress'''''
*'''[[#Wait for Camera View Mode Rule|Wait for Camera View Mode Rule]]''' - executes child rules when the camera view is changed
      '''''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
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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


==='''Clean Up Derailed Trains Rule'''===
==='''Ranked Session Begin Rule'''===


Cleans up derailed train cars after a set time delay
Begins a ranked Session


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid2:60850:89003:1>'''
*'''<kuid:401543:2031>'''


*'''Base Rule'''
*'''Base Rule'''
Line 221: Line 224:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''Set delay to clean up derailed traincars to'''
     '''Countdown Starting Value ''<value>'''''
       '''''<h>'':''' - click to enter the number of hours (0-23) to wait
       '''''hrs:'''''
       '''''<mm>'':''' - click to enter the number of minutes (0-59) to wait
      '''''min:'''''
       '''''<ss>'':''' - click to enter the number of seconds (0-59) to wait
       '''''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'''


[[file:Notes.PNG]] '''<u>Notes:</u>'''
[[file:Notes.PNG]] '''<u>Notes:</u>'''
:Time is Trainz clock time, not real time.
:Times are Trainz clock time, not real time


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Replace Missing Vehicles Rule|Replace Missing Vehicles Rule]]''' - creates a replacement train after a derailment
*'''[[#Ranked Session Complete Rule|Ranked Session Complete Rule]]''' - completes the active ranked Session
*'''[[#Wait for Derailment Rule|Wait for Derailment Rule]]''' - executes child rules when a derailment occurs


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
==='''Ranked Session Complete Rule'''===
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Clean_up_Derailed_Trains_Rule</span>'''


==='''Clock Rule'''===
Completes the active ranked Session


Rule needed for animated clocks.
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid:401543:2032>'''


*'''<kuid2:62310:30041:2>'''
*'''Base Rule'''
 
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


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


[[file:Notes.PNG]] '''<u>Notes:</u>'''  
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
: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.
*'''[[#Ranked Session Begin Rule|Ranked Session Begin Rule]]''' - begins a ranked Session


==='''Close Message Popup Rule'''===
==='''Resource Check Rule'''===


Closes open message popups
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'''


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:447264:1526>'''
*'''<kuid:-25:1067>'''


*'''Built-in Rule'''
*'''Legacy Rule''' (replaced by '''Multiple Resource Check Rule''')
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
  '''None'''
 
[[file:Issues.PNG]] '''<u>Known Issues:</u>'''
:This rule only appears to work if it is a child of the rule that triggered the Message Popup Rule
 
*'''Related Rule:'''
*'''[[#Message Popup Rule|Message Popup Rule]]''' - displays a pop-up browser window and waits for it to be closed.
 
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Message Popup Rule]]'''
*'''[[How to Use Message Popup Rule (Applications)]]'''
 
==='''Consist Check Rule'''===
 
Executes child rules when a matching consist is found. The order of the vehicles in the consists is not important.
 
'''<u>Rule Properties:</u>'''
 
*'''<kuid:-25:1068>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 291: Line 276:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


    '''[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:-
     Select one of two option buttons:-
    '''( ) Rule disabled''' - select to disable the operation of this rule
      '''( ) Watch industry queue'''
    '''( ) Complete whenever a train matching the description exists''' - When selected, enter the consist description:-
          '''Target Object ''<select>''''' - select an industry from the session list
      '''Specific vehicle''' - identify the specific vehicle(s) that will trigger the rule
          '''Queue ''<select>''''' - select a product queue from the selected industry
           '''''+''''' - click to add a ''specific'' vehicle from the session list
           '''Product ''<select>''''' - select a product from the selected queue
           '''''x''''' - click to remove the ''specific'' vehicle from the rule
           '''Amount ''<value>''''' - enter a quantity
      '''Vehicle types''''' - identify the ''type'' of vehicle(s) that will trigger the rule
          Select one of two option buttons:-
           '''''+''''' - click to add a ''type'' of vehicle from the session list
            '''( ) Complete when designated queue equals or exceeds required amount'''
           '''''x''''' - click to remove the ''type'' of vehicle from the rule
            '''( ) Complete when designated queue falls below required amount'''
      '''Drivers''''' - identify the ''driver(s)'' that will trigger the rule
      '''( ) Watch vehicle'''
          '''''+''''' - click to add a ''driver'' from the session list
           '''Target Object ''<select>''''' - select a rolling stock asset from the session list
          '''''x''''' - click to remove a ''driver'' from the rule
           '''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'''
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
: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:Issues.PNG]] '''<u>Known Issues:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
: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.
*'''[[#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]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Variables in Sessions (Examples)#Example 3: Counting Consist Checks|How to Use Variables in Sessions (Examples): Counting Consist Checks]]'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Resource_Check_Rule</span>'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Consist_Check_Rule</span>'''


==='''ConsistDataHandler Rule'''===
==='''Resource Verify Rule (fixed)'''===


Was used by the '''QuickDrive Rule''' to place consists onto a route. Now obsolete.
Executes child rules if a selected industry or vehicle reaches a set commodity level. The rule resets when all child rules have completed.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:401543:1180>'''
*'''<kuid:160293:10060>'''


*'''Obsolete Rule''' (function is now built into '''TANE''')
*'''DLS Rule''' by '''trev999


*'''Base Rule'''
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''None'''
    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'''


==='''Control Check Rule'''===
[[file:Notes.PNG]] '''<u>Notes:</u>'''
#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''.


Executes child rules if the train control method has been altered or a specific method has been selected.
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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


'''<u>Rule Properties:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''


*'''<kuid:401543:1191>'''
==='''Station Visited Check Rule'''===


*'''Built-in Rule'''
Executes child rules if specific trains call at set stations or industries


*'''Parent Rule'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid2:60850:89005:3>'''
 
*'''Built-in Rule'''
 
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


  '''Execute child rules when:''' - select one of two option buttons:-
    '''Trigger: ''<select>''''' - click to select one of the following
    '''( ) DCC mode is Selected'''
      '''''Never''''' - stopping at the selected industries will never trigger the rule.
    '''( ) Cab mode is Selected'''
      '''''Once only''''' - the rule is triggered on the first visit only to any one of the selected industries
  '''Execute child rules:''' - select one of two option buttons:-
      '''''Once per industry''''' - the rule is triggered on the first visit to each industry with each individual product
    '''( ) Every time control method is set'''
      '''''Once per visit''''' - the rule is triggered on the first visit to each industry regardless of the product
    '''( ) Once only'''
      '''''Once per vehicle''''' - each vehicle can only trigger the rule once.
 
    '''''<select industry>''''' - select industry or industries from session list
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
    Select one of two option buttons:-
*'''[[#Control Type Rule|Control Type Rule]]''' - sets the control method
      '''( ) 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


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Parent and Child Rules]]'''


==='''Control Type Rule'''===
'''[[#top|Back to Top]]'''
----


Sets the control method
<table width="100%" bgcolor=#ffffaa>
<tr>
<td>
=='''Camera Rules'''==
</td>
</tr>
</table>
 
==='''Cinematic Camera Rule'''===


'''<u>Rule Properties:</u>'''
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.


*'''<kuid:-16:2030>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid2:401543:1166:3>'''


*'''Base Rule'''
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


  '''Current control method is: ''<select>''''' - click to select one of
    '''[x] Lock camera controls for the duration''' - if checked user cannot alter camera view
    '''''Easy Mode''''' - DCC (standard keyboard and mouse) control
    '''[x] Prevent train control for duration - if checked user cannot control train
    '''''Ask User''''' - let the user decide
    '''Camera target: ''<click to select>''''' - click to select the object from the session list that will be the camera target
    '''''Realistic Mode''''' - Cab controls (on screen levers, throttles, buttons, etc)
    '''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
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
:Times are Trainz clock times, not real times


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Control Check Rule|Control Check Rule]]''' - executes child rules if the train control method changes
*'''[[#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
*'''[[#Wait for Camera View Mode Rule|Wait for Camera View Mode Rule]]''' - executes child rules when the camera view is changed


==='''Coupler Breakage Check Rule'''===
==='''Focus Camera Rule'''===


Executes child rules if there is a coupler breakage
Sets the initial camera view and starting vehicle for a session.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid2:447264:1017:1>'''
*'''<kuid2:122381:10014:1>'''


*'''Built-in Rule'''
*'''DLS Rule''' by '''mizi'''
 
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''None'''
     '''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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Coupler Breakage HUD Rule|Coupler Breakage HUD Rule]]''' - adds a coupler stress and breakage warning to the HUD
*'''[[#Cinematic Camera Rule|Cinematic Camera Rule]]''' - provides several different cinematic style cameras with animations
*'''[[#Set Coupler Masks Rule|Set Coupler Masks Rule]]''' - sets the coupling/decoupling masks on selected vehicles
*'''[[#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


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
==='''Set Camera Rule'''===
*'''[[How to Use Parent and Child Rules]]'''


==='''Coupler Breakage HUD Rule'''===
Sets the target object and properties of the camera.


HUD displays warning about coupler stress and breakage
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid:-25:179>'''
 
*'''<kuid:-25:423>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 412: Line 482:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     Select one of two option buttons:-
     '''[x] Set the target object of the camera to:''' - if checked, select one of three option buttons:-
       '''( ) Show the Coupler Breakage Display'''
       '''( ) Vehicle ''<click to select>''''' - select a vehicle from the Session list
       '''( ) Hide the Coupler Breakage Display'''
      '''( ) 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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Coupler Breakage Check Rule|Coupler Breakage Check Rule]]''' - executes child rules if a coupler breaks
*'''[[#Cinematic Camera Rule|Cinematic Camera Rule]]''' - provides several different cinematic style cameras with animations
*'''[[#Set Coupler Masks Rule|Set Coupler Masks Rule]]''' - sets the coupling/decoupling masks on selected vehicles
*'''[[#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


==='''Custom Script Rule'''===
==='''Wait for Camera View Mode Rule'''===


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


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:447264:1526>'''
*'''<kuid:-25:192>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


  '''None'''
    '''[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
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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
*'''[[#Set Camera Rule|Set Camera Rule]]''' - sets the target object and properties of the camera
 
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
 
'''[[#top|Back to Top]]'''
----
----
<table bgcolor=#ccffff>
 
<tr>
<table width="100%" bgcolor=#ffffaa>
<td>
'''[[#top|Back to Top]]''' | '''[[#A, B|A, B]]''' | '''[[#C|C]]''' | '''[[#D|D]]''' | '''[[#E, F, G|E, F, G]]''' | '''[[#H, I, J|H, I, J]]''' | '''[[#K, L, M|K, L, M]]''' | '''[[#N, O|N, O]]''' | '''[[#P, Q|P, Q]]''' | '''[[#R|R]]''' | '''[[#S-Se|S-Se]]''' | '''[[#Sh-Sz|Sh-Sz]]''' | '''[[#T|T]]''' | '''[[#U, V|U, V]]''' | '''[[#W, X, Y, Z|W, X, Y, Z]]'''
</td>
</tr>
</table>
<table width="100%" bgcolor=#ccffff>
<tr>
<tr>
<td>
<td>
=='''D'''==
=='''Danger, Derailment and Safety Rules'''==
</td>
</td>
</tr>
</tr>
</table>
</table>


==='''DestSign Table Rule'''===
==='''ATP Speed Limiter Rule'''===


Creates a list of destination names for a destination sign
Limits allowable speed over set limit


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid2:206816:99004:2>'''
*'''<kuid2:321959:1000:1>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 461: Line 559:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


  '''''<add destination>''''' - enter a destination name to be added to the destination sign roll
    '''Limits the speed to ''<value>'' mph over the set limit''' - enter speed value in mph
  '''''<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


==='''Directional Trigger Check Rule'''===
'''<u>Related Rules:</u>'''
    '''[[#AWS Configuration Rule|AWS Configuration Rule]]''' - configures the Trainz implementation of the Automatic Warning System when approaching signals


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


'''<u>Rule Properties:</u>'''
This rule configures the Trainz implementation of the Automatic Warning System when approaching signals


*'''<kuid2:532391:100003:1>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''DLS Rule''' by '''bobhahn'''
*'''<kuid2:60850:89002:3>'''


*'''Parent Rule'''
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


    '''[x] Trigger only once '''
     Select one of three option buttons:-
    '''[x] Wait for child rules to complete even if no trains are present in rule trigger'''
       '''( ) Active'''
    '''[x] Only activate when the entering vehicle of the train is heading ''<select direction>'' into the trigger''' - select one of two directions:-
       '''( ) Passive'''
      '''''forward'''''
      '''( ) Passive with HUD hidden'''
      '''''backward'''''
    '''[x] Simulate AWS for unfitted cabs?'''
    '''Triggers List'''
    '''[x] Use modern sound set for unfitted cabs?'''
      '''''<add trigger>''''' - select a trigger from the session list
 
      '''''<delete trigger>''''' - delete a selected trigger from the rule
==='''Clean Up Derailed Trains 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


[[file:Notes.PNG]] '''<u>Notes:</u>'''
Cleans up derailed train cars after a set time delay
#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]] '''<u>Related Rules:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
*'''[[#Trackside Check Rule|Trackside Check Rule]]''' - executes child rules when activated by a train. Provides different options to the '''Trigger Check Rule'''
*'''[[#Trigger Check Rule|Trigger Check Rule]]''' - executes child rules when a set train enters a set trigger (non-directional)


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''<kuid2:60850:89003:1>'''
*'''[[How to Control Signals in Sessions#Application 2: Halt Before Clear|How to Control Signals in Sessions: Halt Before Clear]]'''
*'''[[How to Use Message Popup Rule (Applications)]]'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Track Triggers]]'''
*'''[[How to Use Variables in Sessions (Examples)]]'''


==='''Disable/Enable Industry Rule'''===
*'''Base Rule'''


Enables/Disables vehicle load/unload for industry
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


'''<u>Rule Properties:</u>'''
    '''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


*'''<kuid2:401543:1171:1>'''
[[file:Notes.PNG]] '''<u>Notes:</u>'''
:Time is Trainz clock time, not real time.


*'''Built-in Rule'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Clean_up_Derailed_Trains_Rule</span>'''


  '''Load/unload ''<Disable/Enable>''''' - click to set to '''Disable''' or '''Enable'''
==='''Coupler Breakage Check Rule'''===
  '''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'''===
Executes child rules if there is a coupler breakage


Cancels (deletes) all current and waiting AI commands for all drivers
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid2:447264:1017:1>'''


*'''<kuid:400048:100603>'''
*'''Built-in Rule'''


*'''DLS Rule''' by '''callavsg'''
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


  '''None'''
    '''None'''


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#AI Start Rule|AI Start Rule]]''' - restarts all halted AI drivers
*'''[[#Coupler Breakage HUD Rule|Coupler Breakage HUD Rule]]''' - adds a coupler stress and breakage warning to the HUD
*'''[[#AI Stop Rule|AI Stop Rule]]''' - halts all AI drivers
*'''[[#Set Coupler Masks Rule|Set Coupler Masks Rule]]''' - sets the coupling/decoupling masks on selected vehicles


==='''Display Custom HUD Rule'''===
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
 
==='''Coupler Breakage HUD Rule'''===


Show or hide the Custom Heads Up Display.
HUD displays warning about coupler stress and breakage


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-3:10206>'''
*'''<kuid:-25:423>'''


*'''Base Rule'''
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Flash HUD Icon Rule|Flash HUD Icon Rule]]''' - flashes a HUD panel icon for a set duration.
*'''[[#Coupler Breakage Check Rule|Coupler Breakage Check Rule]]''' - executes child rules if a coupler breaks
*'''[[#mc Display Custom HUD V2 Rule (SP2 and later)|mc Display Custom HUD V2 Rule (SP2 and later)]]''' - shows or hides a graphical HUD.
*'''[[#Set Coupler Masks Rule|Set Coupler Masks Rule]]''' - sets the coupling/decoupling masks on selected vehicles
*'''[[#Quick CustomHud Manager Rule (SP2 and later)|Quick CustomHud Manager Rule (SP2 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]] '''<u>Trainz Wiki Links:</u>'''
==='''Junction Derailment Prevention Rule'''===
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Display_Custom_HUD_Rule</span>'''


==='''Display HTML Pages Rule'''===
Sets opposing (trailing) junctions ahead of a train to prevent derailments.  Works with both AI and manually driven trains.


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'''  
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid2:121843:100282:1>'''


*'''<kuid:-25:442>'''
*'''DLS Rule''' by '''pitkin'''


*'''Legacy Rule''' (replaced by '''Message Popup Rule''')
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


*'''Base Rule'''
    '''None'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Notes.PNG]] '''<u>Notes:</u>'''  
 
:This rule will not overrule a junction already locked by another AI train or locked against AI control using the '''Set Junctions Rule'''.
    '''''<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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Close Message Popup Rule|Close Message Popup Rule]]''' - closes a displayed pop-up browser window.
*'''[[#Lock All Junctions Rule|Lock All Junctions Rule]]''' - locks all junctions against user control
*'''[[#Message Popup Rule|Message Popup Rule]]''' - displays a pop-up browser window and waits for it to be closed.
*'''[[#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 HTML Page Rule|Set HTML Page Rule]]''' - sets parameters for the '''Display HTML Pages Rule'''
*'''[[#Set Junctions Rule|Set Junctions Rule]]''' - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control).
*'''[[#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'''===
==='''Replace Missing Vehicles Rule'''===


Displays a page containing a video clip from a HTML asset in a browser window.
Produces new trains to replace missing vehicles that have been removed from the session by the '''Clean Up Derailed Trains Rule'''


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:138>'''
*'''<kuid:447264:1214>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 626: Line 687:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''Display page ''<index.html>'' of html asset ''<click to select>'' in a new browser window
     '''[x] Respawn trains if they are abandoned for 10 minutes'''
      '''''index.html''''' - enter the filename of a HTML page in the selected HTML asset. The ''.html'' is optional in the filename.
    If checked:-
      '''''<click to select>''''' - select the HTML asset from those installed.
      Select one of two option buttons:-
 
          '''( ) Respawn trains at their original locations'''
[[file:Notes.PNG]] '''<u>Notes:</u>'''
          '''( ) Respawn trains from portals'''
:Video must be in a valid web format.
            '''''<+ 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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Play Sound Rule|Play Sound Rule]]''' - plays a wav sound file
*'''[[#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
 
==='''Safety System Engaged Check Rule'''===


==='''DisplayIndustryStatus Rule (color modified)'''===
Executes child rules if safety systems are applied.


Displays a summary of industry product levels when the "k" key is pressed.
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid:447264:1216>'''


*'''<kuid:622415:100001>'''
*'''Built-in Rule'''


*'''DLS Rule''' by '''lockheed02''' and '''marzipan'''
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''None'''
     '''[x] Trigger only once'''


[[file:Notes.PNG]] '''<u>Notes:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
:Pressing the '''k''' key in Driver mode will bring up a small window with a single link '''''Display Industry Status''''' (there may also be other links). Clicking this link will show the product levels of all industries.
*'''[[#Safety System Isolated Check Rule|Safety System Isolated Check Rule]]''' - executes child rules if safety systems have been isolated


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[#ExTrainz Manager Rule - TANE SP2|ExTrainz Manager Rule - TANE SP2]]''' - displays information on consists, industries and products in Driver and Surveyor.
*'''[[How to Use Parent and Child Rules]]'''


==='''Driver Command Check Rule'''===
==='''Safety System Isolated Check Rule'''===


Executes child rules if the driver commands match a set list.
Executes child rules if safety systems are isolated (disengaged).


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:447>'''
*'''<kuid:447264:1217>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 670: Line 735:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


  '''[x] Trigger rule once''' - check to allow the rule to execute only once
    '''[x] Trigger 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]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
*'''[[#Safety System Engaged Check Rule|Safety System Engaged Check Rule]]''' - executes child rules if safety systems have been engaged
*'''[[#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 Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
 
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Parent and Child Rules]]'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Driver_Command_Rule</span>'''


==='''Driver Command Rule'''===
==='''Set Coupler Masks Rule'''===


Specifies which commands will be available for the drivers
Set the coupling/decoupling  masks on the selected vehicles


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-3:10057>'''
*'''<kuid:-25:980>'''


*'''Base Rule'''
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
:
    For each installed Driver Command:-
    '''[x] ''Name of Driver Command'' and ''Description (if available)''''' - check to make that command available to the drivers


[[file:Notes.PNG]] '''<u>Notes:</u>'''
    '''''<Add vehicle>''''' - click to select a vehicle from the session 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:
    '''''<Add All>''''' - click to add all vehicles in the session list
::The ''Wait For Trigger'' command will not be available to any drivers if there are no triggers set.
    '''''<Delete All>''''' - click to remove all added vehicles from this rule
::The ''Call At'' command will not be available to any drivers if there are no industry active assets or passenger enabled stations.
      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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
*'''[[#Coupler Breakage Check Rule|Coupler Breakage Check Rule]]''' - executes child rules when a coupler breaks
*'''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
*'''[[#Coupler Breakage HUD Rule|Coupler Breakage HUD Rule]]''' - adds a coupler stress and breakage warning to the HUD
*'''[[#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 Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
==='''Signal Passed At Danger Check Rule'''===
*'''[[How to Use Driver Setup Rule#Driver Command Rule|How to Use Driver Command Rule]]'''


==='''Driver Main Menu Options Rule'''===
Executes child rules if a signal or stop mark is ''Passed at Danger (STOP)''.


Show/Hide the Driver Main Menu Bar
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid2:60850:89007:2>'''


*'''<kuid:-25:448>'''
*'''Built-in Rule'''


*'''Built-in Rule'''
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''''<Show/Hide>'' the Driver Main Menu Bar''' - click '''Show''' or '''Hide''' to select
     '''[x] Trigger only once'''
 
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[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]]


==='''Driver Schedule Rule'''===
==='''Speeding Check Rule'''===


Sets up a list of basic scheduled commands
Executes child rules if player controlled trains are over the local speed limit or over a set (custom) speed


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid2:82445:90001:9>'''
*'''<kuid2:60850:89004:3>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
    '''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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
    Select one of two options to set a speed limit to be observed
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
      '''( ) Watch for trains travelling above the posted speed limit'''
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
          '''''<speed value>''''' - click to enter a new overspeed tolerance value
*'''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
          '''''<speed units>''''' - click to select one from the list:-
*'''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
            '''''Km/h''''' - Kilometres per hour
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
            '''''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'''


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[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]]
*'''[[How to Use Parent and Child Rules]]'''


==='''Driver Setup Rule'''===
==='''Vehicle Physics Rule'''===


Creates the list of drivers for this session and assigns them their orders
Overrides the default vehicle physics properties for all vehicles or for those matching set criteria


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-16:2025>'''
*'''<kuid:-25:1052>'''


*'''Base Rule'''
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    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 %
==='''Wait for Derailment Rule'''===


    '''''<driver icon>''''' - click to select a new driver from the list of installed and built in drivers
Executes child rules when a derailment occurs
    '''''<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
 
[[file:Issues.PNG]] '''<u>Known Issues:</u>'''
:The '''Remove all existing Drivers first''' option does not appear to work


[[file:Notes.PNG]] '''<u>Notes:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
: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]] '''<u>Related Rules:</u>'''
*'''<kuid:-25:1053>'''
*'''[[#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
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''Built-in Rule'''
*'''[[How to Use Driver Setup Rule]]'''
 
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Driver_Setup_Rule</span>'''
*'''Parent Rule'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    '''[x] Trigger derailment watch once''' - check to execute the rule once only
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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
 
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
 
'''[[#top|Back to Top]]'''
----
----
<table bgcolor=#ccffff>
 
<tr>
<table width="100%" bgcolor=#ffffaa>
<td>
'''[[#top|Back to Top]]''' | '''[[#A, B|A, B]]''' | '''[[#C|C]]''' | '''[[#D|D]]''' | '''[[#E, F, G|E, F, G]]''' | '''[[#H, I, J|H, I, J]]''' | '''[[#K, L, M|K, L, M]]''' | '''[[#N, O|N, O]]''' | '''[[#P, Q|P, Q]]''' | '''[[#R|R]]''' | '''[[#S-Se|S-Se]]''' | '''[[#Sh-Sz|Sh-Sz]]''' | '''[[#T|T]]''' | '''[[#U, V|U, V]]''' | '''[[#W, X, Y, Z|W, X, Y, Z]]'''
</td>
</tr>
</table>
<table width="100%" bgcolor=#ccffff>
<tr>
<tr>
<td>
<td>
=='''E, F, G'''==
=='''Driver Rules'''==
</td>
</td>
</tr>
</tr>
</table>
</table>


==='''EIRS Weather Rule NE USA Rule'''===
==='''AI Start Rule'''===


Customize random weather rule relative to the North East Region of the United States.
Restarts all halted AI controlled trains. Drivers will continue with the commands in their driver command list.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid2:487222:1037:3>'''
*'''<kuid2:400048:100981:1>'''


*'''Built-in Rule'''
*'''DLS Rule''' by '''callavsg'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''Season ''<select>''''' - select one of:-
     '''None'''
      '''''Summer'''''
      '''''Fall'''''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
      '''''Winter'''''
*'''[[#AI Stop Rule|AI Stop Rule]]''' -  halts all AI drivers
      '''''Spring'''''
*'''[[#Disallow AI Rule|Disallow AI Rule]]''' -  cancels all AI driver commands
    '''Random Changeability (minutes) ''<value>''''' - select one of:-
 
      '''''2/5/10/15/20/30/45/60''''' - minutes''
==='''AI Stop Rule'''===
    '''Environment Settings ''<select>''''' - select one of:-
 
      '''''Disable/Enable'''''
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]] '''<u>Rule Properties:</u>'''
 
*'''<kuid2:400048:100980:1>'''
 
*'''DLS Rule''' by '''callavsg'''


[[file:Notes.PNG]] '''<u>Notes:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
:Minutes are Trainz clock times, not real times


    '''None'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Random Weather Rule v2|Random Weather Rule v2]]''' - randomly changes the weather according to entered parameters
*'''[[#AI Start Rule|AI Start Rule]]''' - restarts all halted AI drivers
*'''[[#Startup Options Rule|Startup Options Rule]]''' - sets the weather conditions at the start of a Session
*'''[[#Disallow AI Rule|Disallow AI Rule]]''' - cancels all AI driver commands
*'''[[#Weather Rule|Weather Rule]]''' - changes the weather conditions during Session play


==='''Enable/Disable Driver Commands Rule'''===
==='''Control Check 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
Executes child rules if the train control method has been altered or a specific method has been selected.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:480>'''
*'''<kuid:401543:1191>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
 
    '''<Enable/Disable>'' the following driver commands ...''' - click to select '''Enable''' or '''Disable'''
  '''Execute child rules when:''' - select one of two option buttons:-
    For each driver command:-
    '''( ) DCC mode is Selected'''
    '''[x] ''command name''''' - check to enable or disable
    '''( ) Cab mode is Selected'''
    '''[x] ''command name''''' - check to enable or disable
  '''Execute child rules:''' - select one of two option buttons:-
    '''[x] ''command name''''' - check to enable or disable
    '''( ) Every time control method is set'''
    etc
    '''( ) Once only'''
    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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
*'''[[#Control Type Rule|Control Type Rule]]''' - sets the control method
*'''[[#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
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Enable/Disable_Driver_Commands_Rule</span>'''
*'''[[How to Use Parent and Child Rules]]'''


==='''End Session Rule'''===  
==='''Control Type Rule'''===


End the Session with a fade out.
Sets the control method


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:482>'''
*'''<kuid:-16:2030>'''


*'''Built-in Rule'''
*'''Base Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


    '''Fade out over ''<value>'' seconds''' - enter number of seconds for fade out.
  '''Current control method is: ''<select>''''' - click to select one of
 
    '''''Easy Mode''''' - DCC (standard keyboard and mouse) control
[[file:Notes.PNG]] '''<u>Notes:</u>'''
    '''''Ask User''''' - let the user decide
:Seconds are Trainz clock time, not real time.
    '''''Realistic Mode''''' - Cab controls (on screen levers, throttles, buttons, etc)


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Session Complete Rule|Session Complete Rule]]''' - set the session to a percentage of completion
*'''[[#Control Check Rule|Control Check Rule]]''' - executes child rules if the train control method changes


==='''ExTrainz Manager Rule - TANE SP2'''===
==='''Disallow AI Rule'''===


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.
Cancels (deletes) all current and waiting AI commands for all drivers


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:160293:10029>'''
*'''<kuid:400048:100603>'''


*'''DLS Rule''' by '''trev999'''
*'''DLS Rule''' by '''callavsg'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


    '''Diagnostic mode is ''<On/Off>''''' - click to select ''On'' or ''Off''. When set ''On'' diagnostic messages will be added to the Trainz Log file.
  '''None'''
    '''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.
    '''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.
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
#Rolling stock installed in '''TANE''' or 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.
 
[[file:Issues.PNG]] '''<u>Known Issues:</u>'''
:This rule is NOT compatible with all industries.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#DisplayIndustryStatus Rule (color modified)|DisplayIndustryStatus Rule (color modified)]]''' - displays information on industry product levels.
*'''[[#AI Start Rule|AI Start Rule]]''' - restarts all halted AI drivers
*'''[[#AI Stop Rule|AI Stop Rule]]''' -  halts all AI drivers


==='''Fade In/Out Rule'''===
==='''Driver Command Check Rule'''===


Fade in or out within seconds, using specified color and opacity values.
Executes child rules if the driver commands match a set list.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid2:190611:200000:2>'''
*'''<kuid:-25:447>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


    '''Red percentage:            ''<value>''''' - enter the final % of red (0 = none, 100 = maximum)
  '''[x] Trigger rule once''' - check to allow the rule to execute only once
    '''Green percentage:           ''<value>''''' - enter the final % of green
  '''Driver character to watch the command list of ''<select>''' - select a driver name from the Session List''
    '''Blue percentage:            ''<value>''''' - enter the final % of blue
  '''Wait for driver character to have a command list that matches this:'''
    '''Alpha percentage (opacity): ''<value>''''' - enter the final % of opacity (0 = invisible, 100 = solid)
    '''''<add driver command>''''' - add a driver command from the session list. More commands can be added. Commands can be deleted.
    '''Fading duration:           ''<value>''''' - enter the number of seconds required for the fade
    '''''<add all>''''' - adds ALL driver commands in the session list. Individual commands can be removed.
    '''''<help>''''' - click to bring up help instructions
    '''''<delete all>''''' - deletes all entered driver commands from the session rule
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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 Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train


[[file:Notes.PNG]] '''<u>Notes:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
:Seconds are Trainz clock time, not real time.
*'''[[How to Use Parent and Child Rules]]'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Driver_Command_Rule</span>'''


==='''Flash HUD Icon Rule'''===
==='''Driver Command Rule'''===


Flashes a HUD panel icon for a set duration of time or instructs a HUD panel icon to start/stop.
Specifies which commands will be available for the drivers


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:968>'''
*'''<kuid:-3:10057>'''


*'''Built-in Rule'''
*'''Base Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
:
    For each installed Driver Command:-
    '''[x] ''Name of Driver Command'' and ''Description (if available)''''' - check to make that command available to the drivers


    Select one of two option buttons:-
[[file:Notes.PNG]] '''<u>Notes:</u>'''
    '''( ) Flash the ''<click to select>'' icon on the ''<click to select>'' HUD panel for a period of ''<value>'' seconds'''
: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:
      TIP: Select the HUD panel first (the second ''<click to select>'' link).
::The ''Wait For Trigger'' command will not be available to any drivers if there are no triggers set.
      Available HUD panels are (select one):-
::The ''Call At'' command will not be available to any drivers if there are no industry active assets or passenger enabled stations.
          '''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.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
*'''[[#mc Display Custom HUD V2 Rule (SP2 and later)|mc Display Custom HUD V2 Rule (SP2 and later)]]''' - shows or hides a graphical HUD.
*'''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
*'''[[#Quick CustomHud Manager Rule (SP2 and later)|Quick CustomHud Manager Rule (SP2 and later)]]''' - creates custom HUDs that can be assigned to different drivers
*'''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
*'''[[#Show/Hide HUD Panel Rule|Show/Hide HUD Panel Rule]]''' - shows or hides a HUD panel.
*'''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
*'''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
*'''[[#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]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Driver Setup Rule#Driver Command Rule|How to Use Driver Command Rule]]'''


==='''Focus Camera Rule'''===
==='''Driver Main Menu Options Rule'''===


Sets the initial camera view and starting vehicle for a session.
Show/Hide the Driver Main Menu Bar


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid2:122381:10014:1>'''
*'''<kuid:-25:448>'''


*'''DLS Rule''' by '''mizi'''
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''Focus camera to:''' - select one of two option buttons
     '''''<Show/Hide>'' the Driver Main Menu Bar''' - click '''Show''' or '''Hide''' to select
      '''( ) Map object'''
 
      '''( ) Vehicle'''
==='''Driver Schedule Rule'''===
    '''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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
Sets up a list of basic scheduled commands
*'''[[#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
*'''[[#Wait for Camera View Mode Rule|Wait for Camera View Mode Rule]]''' - executes child rules when the camera view is changed


==='''Generic TreeNode Debug Window Rule'''===
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


No description.
*'''<kuid2:82445:90001:9>'''


'''<u>Rule Properties:</u>'''
*'''Built-in Rule'''
 
*'''<kuid:30501:1042>'''
 
*'''Base Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
    '''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


    '''None'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
----
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
<table bgcolor=#ccffff>
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
<tr>
*'''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
<td>
*'''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
'''[[#top|Back to Top]]''' | '''[[#A, B|A, B]]''' | '''[[#C|C]]''' | '''[[#D|D]]''' | '''[[#E, F, G|E, F, G]]''' | '''[[#H, I, J|H, I, J]]''' | '''[[#K, L, M|K, L, M]]''' | '''[[#N, O|N, O]]''' | '''[[#P, Q|P, Q]]''' | '''[[#R|R]]''' | '''[[#S-Se|S-Se]]''' | '''[[#Sh-Sz|Sh-Sz]]''' | '''[[#T|T]]''' | '''[[#U, V|U, V]]''' | '''[[#W, X, Y, Z|W, X, Y, Z]]'''
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
</td>
</tr>
</table>
<table width="100%" bgcolor=#ccffff>
<tr>
<td>
=='''H, I, J'''==
</td>
</tr>
</table>
 
==='''Hide Product Overlays Rule'''===


Hides the commodity or product bar graphs that appear on active industries
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[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]]


'''<u>Rule Properties:</u>'''
==='''Driver Setup Rule'''===


*'''<kuid:400048:100970>'''
Creates the list of drivers for this session and assigns them their orders


*'''DLS Rule''' by '''callavsg'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
*'''<kuid:-16:2025>'''


  '''None'''
*'''Base Rule'''


==='''InputTable Rule'''===
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


Creates a list of message names to be used for various purposes including passing data to '''Driver Commands'''
    '''''<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
 
[[file:Issues.PNG]] ''''<u>Known Issues:</u>'''
:The '''Remove all existing Drivers first''' option does not appear to work
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
: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]] '''<u>Related Rules:</u>'''
*'''[[#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
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train
 
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Driver Setup Rule]]'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Driver_Setup_Rule</span>'''


'''<u>Rule Properties:</u>'''
==='''Enable/Disable Driver Commands Rule'''===


*'''<kuid2:131986:1012:1>'''
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]] '''<u>Rule Properties:</u>'''
 
*'''<kuid:-25:480>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 1,110: Line 1,160:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''''<add>''''' - click to add a new entry to the table
     '''<Enable/Disable>'' the following driver commands ...''' - click to select '''Enable''' or '''Disable'''
    Each new entry will require an input message
    For each driver command:-
      '''''<short message>''''' - enter a message. The message must be in a format that is specific for each purpose
    '''[x] ''command name''''' - check to enable or disable
      For the '''MoveTurntable''' driver command the message must be formatted as:-
    '''[x] ''command name''''' - check to enable or disable
          '''turntable,name_of_turntable,number_of_connecting_roads''' - the first entry must be the word ''turntable'' in lower case.
    '''[x] ''command name''''' - check to enable or disable
            ''name_of_turntable'' is the name of the turntable,
    etc
            ''number_of_connecting_roads'' is the number of tracks connecting to the turntable
    Select one of two option buttons:-
       For the '''WaitUntilTime''' driver command the message must be formatted as:-
      '''( ) click to accept all trains'''
           '''time,hour,minute''' - the first entry must be the word ''time'' in lower case,
       '''( ) click to accept trains matching specific criteria'''
            ''hour'' must be from 0 to 23,
          Selecting the second option will produce the following selection controls:-
             ''minute'' must be from 0 to 59.
           '''Specific vehicle''' - identify the specific vehicle or set of specific vehicles that will trigger the rule
      For the '''WaitUntilSVariable''' driver command the message must be formatted as:-
            '''''+''''' - click to add a ''specific'' vehicle from the session list
           '''svar,svar_name,svar_condition,value''' - the first entry must be the word ''svar'' in lower case,
             '''''x''''' - click to remove the ''specific'' vehicle from the rule
            ''svar_name'' is the name of the session variable,
           '''Vehicle types''''' - identify the ''type'' of vehicle or a set of vehicle ''types'' that will trigger the rule
             ''svar_condition'' is an equality (eg eq for equal, gt for greater than, etc)
             '''''+''''' - click to add a ''type'' of vehicle from the session list
            ''value'' is an integer value to be compared to the session variable.
            '''''x''''' - click to remove the ''type'' of vehicle from the rule
    Each entry in the table will be followed by the commands:-
          '''Drivers''''' - identify the ''drivers'' that will trigger the rule
      '''''cp''''' - click to copy this entry to a new entry
            '''''+''''' - click to add a ''driver'' from the session list
      '''''up''''' - click to move this entry up one level
            '''''x''''' - click to remove a ''driver'' from the rule
      '''''dn''''' - click to move this entry down one level
      '''''rm''''' - click to remove this entry from the table


==='''Interlocking Tower Configure Path Rule'''===
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
 
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
Alters settings on an interlocking tower path
*'''[[#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
*'''[[#Schedule Rule|Schedule Rule]]''' - allows a schedule of timed events to be applied to a train


'''<u>Rule Properties:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Enable/Disable_Driver_Commands_Rule</span>'''


*'''<kuid:401543:3205>'''
==='''JTG Correct Vehicle Lights'''===


*'''Base Rule'''
Corrects the brightness of vehicle headlights. Now obsolete.


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


  '''Interlocking Tower ''<select>''''' - to set Name and Objects
*'''<kuid2:478657:999103:1>'''


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''DLS Rule''' by '''jtg-trainz'''
*'''[[#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'''===
*''' Obsolete Rule''' (function is now built into TANE Driver Additional Tools Menu)


Will automatically react to messages from Interlocking Towers and display a path selection dialog to the player. Disable by removing rule from session
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


'''<u>Rule Properties:</u>'''
    '''None'''


*'''<kuid:401543:3203>'''
==='''Quick Portal Manager Standard Edition Rule (SP2 and later)'''===


*'''Base Rule'''
Manages portals and adds flexible timetables.


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


  '''[Checkbox] Show path activation message in Driver'''
*'''<kuid2:61392:5011:45>'''


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''DLS Rule''' by '''pguy'''
*'''[[#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.


==='''Interlocking Tower Set Path Rule'''===
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


Will set the state of an interlocking tower path for a train
    '''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'''.
      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 (SP2 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.


'''<u>Rule Properties:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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 (SP2 and later)|Quick CustomHud Manager Rule (SP2 and later)]]''' - create driver HUDs


*'''<kuid:401543:3204>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Quick_Portal_Manager</span>'''


*'''Base Rule'''
==='''QuickDrive Rule'''===
 
Changes the Session settings.
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid:401543:1184>'''
 
*'''Base Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


   '''Interlocking Tower ''<select>''''' - to set Name and Objects
   '''Open QuickDrive window when session is started          [x]''' - check to set
  '''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'''


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[#Interlocking Tower Configure Path Rule|Interlocking Tower Configure Path Rule]]''' - alters the settings on an interlocking tower path
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/QuickDrive_Rule</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 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)'''===
==='''Schedule Rule'''===


Provides more management and control options for interlocking towers.
Allows a schedule of timed events to be applied to a train


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid2:61392:8130:41>'''
*'''<kuid:-3:10185>'''


*'''DLS Rule''' by '''pguy'''
*'''Base Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''''<towers>''''' - click to select interlocking towers from the session list
     '''Insert track mark ''<select>''''' - select a track mark from the Session List
      '''''<do full check again>''''' - click to run an error check on all interlocking towers
    '''Arrival and Departure Time ''<Select>''''' - set time
       '''List of all available interlocking towers''' - for each tower:-
       '''''hh:mm:ss''''' - in hours/minutes/seconds
          '''''<view details>''''' - click to view and edit the tower properties
    '''Current Train ''<select>''''' - select from session list
          '''''<copy from>''''' - click to copy properties from another tower selected from the session list
    '''Insert destination ''<select>''''' - select from session list
    '''''<debug log>''''' - click to set the debug log properties
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
:Times are Trainz clock times, not real time


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Interlocking Tower Configure Path Rule|Interlocking Tower Configure Path Rule]]''' - alters the settings on an interlocking tower path
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
*'''[[#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.
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
*'''[[#Interlocking Tower Set Path Rule|Interlocking Tower Set Path Rule]]''' - sets the state of an interlocking tower path for a train
*'''[[#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


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WWWLinks.PNG]] ''''<u>Other Links:</u>'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Enhanced_Interlocking_Tower_Manager_Rule</span>'''
*'''<span class="plainlinks">http://www.auran.com/games/gamefiles/trainz/tutorial1.html</span>'''


==='''JTG Correct Vehicle Lights'''===
==='''Wait for Driver On/Off Train Rule'''===


Corrects the brightness of vehicle headlights. Now obsolete.
Executes child rules when a driver gets on or off a train


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid2:478657:999103:1>'''
*'''<kuid:-25:953>'''


*'''DLS Rule''' by '''jtg-trainz'''
*'''Built-in Rule'''


*''' Obsolete Rule''' (function is now built into TANE Driver Additional Tools Menu)
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


    '''None'''
  '''[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'''
==='''Junction Derailment Prevention 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 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]] '''<u>Related Rules:</u>'''
*'''[[#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
 
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
 
==='''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


Sets opposing (trailing) junctions ahead of a train to prevent derailments.  Works with both AI and manually driven trains.
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid2:401543:1173:1>'''


*'''<kuid2:121843:100282:1>'''
*'''Built-in Rule'''


*'''DLS Rule''' by '''pitkin'''
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


    '''None'''
  '''Assets Ownership:''' - select one of two option buttons:-
    '''( ) Wait for ownership of a specific Driver'''
    '''( ) Wait for ownership of Driver'''
  '''Driver or Vehicle ''<select>''''' - choose from session list


[[file:Notes.PNG]] '''<u>Notes:</u>'''  
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
:This rule will not overrule a junction already locked by another AI train or locked against AI control using the '''Set Junctions Rule'''.
*'''[[#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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[#Lock All Junctions Rule|Lock All Junctions Rule]]''' - locks all junctions against user control
*'''[[How to Use Parent and Child Rules]]'''
*'''[[#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).
'''[[#top|Back to Top]]'''
----
----
<table bgcolor=#ccffff>
 
<table width="100%" bgcolor=#ffffaa>
<tr>
<tr>
<td>
<td>
'''[[#top|Back to Top]]''' | '''[[#A, B|A, B]]''' | '''[[#C|C]]''' | '''[[#D|D]]''' | '''[[#E, F, G|E, F, G]]''' | '''[[#H, I, J|H, I, J]]''' | '''[[#K, L, M|K, L, M]]''' | '''[[#N, O|N, O]]''' | '''[[#P, Q|P, Q]]''' | '''[[#R|R]]''' | '''[[#S-Se|S-Se]]''' | '''[[#Sh-Sz|Sh-Sz]]''' | '''[[#T|T]]''' | '''[[#U, V|U, V]]''' | '''[[#W, X, Y, Z|W, X, Y, Z]]'''
=='''HUD (Heads Up Display) Rules'''==
</td>
</tr>
</table>
<table width="100%" bgcolor=#ccffff>
<tr>
<td>
=='''K, L, M'''==
</td>
</td>
</tr>
</tr>
</table>
</table>


==='''Lock All Junctions Rule'''===
==='''Cab Controls HUD Rule'''===
 
Was used to provide the HUD controls for the cabin view. Now obsolete.


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.
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid:-16:287428>'''


*'''<kuid:400048:100971>'''
*'''Base Rule'''


*'''DLS Rule''' by '''callavsg'''
*'''Obsolete Rule''' (function is now built into TANE)


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
Line 1,283: Line 1,412:
     '''None'''
     '''None'''


[[file:Notes.PNG]] '''<u>Notes:</u>'''
==='''Coupler Breakage HUD Rule'''===
:Individual junctions can still be set, locked and unlocked by using the '''Set Junction Rule'''


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
HUD displays warning about coupler stress and breakage
*'''[[#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).


==='''MaxPermittedSpeed Rule'''===
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


Sets the maximum permitted speed of locomotives under AI control
*'''<kuid:-25:423>'''
 
'''<u>Rule Properties:</u>'''
 
*'''<kuid2:60850:89000:7>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 1,302: Line 1,424:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


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


[[file:Notes.PNG]] '''<u>Notes:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
:This rule cannot be configured from the Session Rules list. It must be configured in the '''config.txt''' file of each locomotive. Instructions with an example are shown in the rule Properties
*'''[[#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


==='''mc Display Custom HUD V2 Rule (SP2 and later)'''===
==='''Display Custom HUD Rule'''===


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 (SP2 and later)'''
Show or hide the Custom Heads Up Display.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid2:61392:1072:10>'''
*'''<kuid:-3:10206>'''


*'''Legacy Rule''' (replaced by '''Quick CustomHUD Manager Rule (SP2 and later)''')
*'''Base Rule'''
 
*'''DLS Rule''' by '''pguy'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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.
*'''[[#Quick CustomHud Manager Rule (SP2 and later)|Quick CustomHud Manager Rule (SP2 and later)]]''' - creates custom HUDs that can be assigned to different drivers
*'''[[#Quick CustomHud Manager Rule (SP2 and later)|Quick CustomHud Manager Rule (SP2 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.
*'''[[#Show/Hide HUD Panel Rule|Show/Hide HUD Panel Rule]]''' - shows or hides a HUD panel.
Line 1,333: Line 1,456:
*'''[[#Wait for Click on HUD Icon Rule|Wait for Click on HUD Icon Rule]]''' - executes child rules when a HUD icon is clicked
*'''[[#Wait for Click on HUD Icon Rule|Wait for Click on HUD Icon Rule]]''' - executes child rules when a HUD icon is clicked


==='''Message Popup Rule'''===
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Display_Custom_HUD_Rule</span>'''
 
==='''Flash HUD Icon 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.
Flashes a HUD panel icon for a set duration of time or instructs a HUD panel icon to start/stop.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:1003>'''
*'''<kuid:-25:968>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 1,345: Line 1,471:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''[x] Pause game while message is displayed''' - stops the game until this message is closed
     Select one of two option buttons:-
    '''[x] Close previous popup windows''' - closes any Message Popups currently displayed before this message is shown
    '''( ) Flash the ''<click to select>'' icon on the ''<click to select>'' HUD panel for a period of ''<value>'' seconds'''
    '''Message location ''<Top Left/Top Right/Bottom Left/Bottom Right>''''' - select one to position the browser window on the screen
      TIP: Select the HUD panel first (the second ''<click to select>'' link).
    '''Message Source:''' - select one of three option buttons:-
       Available HUD panels are (select one):-
      '''( ) Custom text''' - the simplest and easiest option
           '''Bottom Right Menu'''
          '''Icon ''<Click here to set>''''' - (optional) shows a list of message icons. Select one to be displayed with the message
           '''Camera Controls'''
          '''Icon ''<Clear icon>''''' - clears any currently displayed message icon
           '''DCC Controls'''
          '''Custom text box''' Enter text to be displayed. You will be limited to about 6 lines of text.
           '''Driver Main Menu'''
              For longer messages or to include graphics, use the '''A predefined HTML page''' option.
      Available icons will depend on the HUD panel selected.
          '''''<HTML Wave>''''' - (optional) select the name of the HTML asset from the list shown that contains the wave file to be played.
    '''( ) ''<Start/Stop>'' flashing the ''<click to select>'' icon on the ''<click to select>'' HUD panel'''
          '''''<Wave Name>''''' - (optional) enter the name of a wave (.wav) sound file to be played.
      TIP: Select the HUD panel first (the second ''<click to select>'' link).
              The sound file must be in the HTML asset identified above. Filename is not case sensitive. Extension ".wav" is optional
      Available HUD panels are (select one):-
          '''[x] Autoplay Wave:''' - plays the .wav sound file as soon as message is displayed.
           '''Bottom Right Menu'''
              If unchecked the sound will not be played.
           '''Camera Controls'''
       '''( ) A predefined HTML page''' - requires a working knowledge of HTML
          '''DCC Controls'''
           '''''<HTML Asset>''''' - select the name of the HTML asset that contains the required HTML page from the list shown.
          '''Driver Main Menu'''
          '''''<HTML Page>''''' - enter the filename of the HTML page to be displayed. The page must be in the HTML asset identified above.
      Available icons will depend on the HUD panel selected.
              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.
 
[[file:Issues.PNG]] '''<u>Known Issues:</u>'''
: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.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Close Message Popup Rule|Close Message Popup Rule]]''' - closes a displayed pop-up browser window.
*'''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
*'''[[#Display HTML Pages Rule|Display HTML Pages Rule]]''' - display listed HTML files in order as a navigable sequence of pages.
*'''[[#mc Display Custom HUD V2 Rule (SP2 and later)|mc Display Custom HUD V2 Rule (SP2 and later)]]''' - shows or hides a graphical HUD.
*'''[[#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.
*'''[[#Quick CustomHud Manager Rule (SP2 and later)|Quick CustomHud Manager Rule (SP2 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]] '''<u>Trainz Wiki Links:</u>'''
==='''mc Display Custom HUD V2 Rule (SP2 and later)'''===
*'''[[How to Create a HTML Asset|How to Create a HTML Asset (Session Introduction Page and In Game Messages)]]'''
*'''[[How to Use Message Popup Rule]]'''
*'''[[How to Use Message Popup Rule (Applications)]]'''


==='''Minimap Options Rule'''===
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 (SP2 and later)'''


Sets the display options for the minimap.
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid2:61392:1072:10>'''


*'''<kuid:-25:636>'''
*'''Legacy Rule''' (replaced by '''Quick CustomHUD Manager Rule (SP2 and later)''')


*'''Built-in Rule'''
*'''DLS Rule''' by '''pguy'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
''Default values - all checked''
 
    '''[x] Map Textures'''
    '''Show or Hide the Custom Heads up Display''' - select one of two option buttons:-
    '''[x] Gradients'''
    '''( ) Show the Custom Heads up Display'''
    '''[x] Junctions'''
    '''( ) Hide the Custom Heads up Display'''
    '''[x] Signals'''
    '''[x] Triggers'''
    '''[x] Markers'''
    '''[x] Trackside Labels'''
    '''[x] Terrain Objects'''
    '''[x] Industrial Names'''
    '''[x] Named Objects'''
    '''[x] Consists'''


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Show/Hide Minimap Rule|Show/Hide Minimap Rule]]''' - shows the minimap window in Driver.
*'''[[#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.
*'''[[#Quick CustomHud Manager Rule (SP2 and later)|Quick CustomHud Manager Rule (SP2 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


==='''MissionCode Manager Rule (SP2 and later)'''===
==='''Quick CustomHud Manager Rule (SP2 and later)'''===


Enables the addition, editing and management of Mission Codes used to auto select paths in '''Interlocking Towers'''.
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)'''


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid2:61392:8200:50>'''
*'''<kuid2:61392:5020:47>'''


*'''DLS Rule''' by '''pguy'''
*'''DLS Rule''' by '''pguy'''


ENTRY UNDER CONSTRUCTION
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
    '''''<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 class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/MissionCodes_Manager</span>'''
      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


==='''MissionCode Stops and Timetable Manager Rule (SP2 and later)'''===
[[file:Notes.PNG]] '''<u>Notes:</u>'''
: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.


Enables the creation, editing and management of stop zones and timetables for trains following a path defined using mission codes.
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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
 
==='''Show/Hide HUD Panel Rule'''===
 
Shows or hides a HUD panel.
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid:-25:1047>'''


*'''<kuid2:61392:8300:50>'''
*'''Built-in Rule'''


*'''DLS Rule''' by '''pguy'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


ENTRY UNDER CONSTRUCTION
    '''''<Show/Hide>'' the ''<click to select>'' HUD panel''' - select '''''Show''''' or '''''Hide''''' and then select the HUD panel


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Mission_Code_Stops_and_TimeTables_Manager</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 (SP2 and later)|Quick CustomHud Manager Rule (SP2 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


==='''Multiplayer Rule'''===
==='''Variable Show Rule'''===


Enables the session to be taken online in a Multiplayer environment.
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.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:447264:1045>'''
*'''<kuid:-25:971>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 1,461: Line 1,601:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


    '''Suggested maximum number of players for this session ''<value>''''' - enter a number
  '''[x] Add'''
    '''Maximum number of drivers per player ''<value>''''' - enter a number
      '''''<variable-name>''''' - enter variable-name to add to HUD. Variable-name is case sensitive.
    '''Players are permitted to claim drivers            [x]''' - check to allow players to select a driver
      '''''<label>''''' - (optional) enter a short label to be displayed on the HUD in front of the variable value.
    '''Players can see each other's driver orders        [x]''' - check to allow players to view orders for other players
  '''[x] Remove'''
    '''Automatically target an available train on clients [x]''' - automatically assign a driver to each player
      '''''<variable-name>''''' - enter variable-name to remove from HUD. Variable-name is case sensitive.
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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.
*'''[[#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 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.


==='''Multiple Junction Alignment Check Rule'''===
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Variables in Sessions (Examples)]]
 
==='''Wait for Click on HUD Icon Rule'''===


Executes child rules if specific junctions are set.
Executes child rules when the user clicks on a selected HUD icon


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:168>'''
*'''<kuid:-25:951> <kuid:-25:970>''' - two versions built-in with different kuids, both have the same properties


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 1,481: Line 1,632:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''Wait until ''<selection>''''' - select from:-
     '''[x] Trigger Once'''
      '''any one''' - any of the junctions in the rule list (below) is set correctly
     '''HUD Panel ''<Click>''''' - click choose from list:-
      '''all''' - ALL of the junctions in the rule list are set correctly
       '''Bottom Right Menu'''
     '''''<Add junction>''''' - click to select a junction from the session list
      '''Camera Controls'''
    '''''<Add all>''''' - click to select ALL junctions in the session list
      '''DCC Controls'''
    '''''<Delete all>''''' - click to delete ALL selected junctions from the rule list
    '''Icon ''<Click>''''' - click to choose from list. Selections depends on HUD Panel chosen
      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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Lock All Junctions Rule|Lock All Junctions Rule]]''' - locks all junctions against user control
*'''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
*'''[[#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.
*'''[[#Flash HUD Icon Rule|Flash HUD Icon Rule]]''' - flashes a HUD panel icon for a set duration.
*'''[[#Set Junctions Rule|Set Junctions Rule]]''' - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control).
*'''[[#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 (SP2 and later)|Quick CustomHud Manager Rule (SP2 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.


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Control Junctions in Sessions]]'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Parent and Child Rules]]'''


==='''Multiple Resource Check Rule'''===
'''[[#top|Back to Top]]'''
----
 
<table width="100%" bgcolor=#ffffaa>
<tr>
<td>
=='''Industry Rules'''==
</td>
</tr>
</table>


Executes child rules if industries or vehicles reach set commodity levels. This rule replaces the older '''Resource Check Rule'''  
==='''Advanced Industry Load Configuration Rule'''===


'''<u>Rule Properties:</u>'''
Locks train controls when loading/unloading at an industry, overrides time settings for begin load and begin unload operations


*'''<kuid:-25:656>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''Built-in Rule'''
*'''<kuid:30501:100007>'''


*'''Parent Rule'''
*'''Base Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''<Product Level>''' - click to select a product test from two choices:-
     '''Target object ''<select>''''' - select industry object from session list
      '''''Reach/Exceed''''' - sets an upper limit for the resources being monitored.
    '''[x] Lock the train's controls during a stopped load/unload operation''' - check to disable driver controls while train is stopped and loading/unloading
          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.
    '''[x] Override 'begin load' and 'begin unload' durations to ''<value>'' seconds''' - if checked enter number of seconds to override
          The initial level in the object must be below the set upper limit.
 
      '''''Fall below''''' - sets a lower limit for the resources being monitored.
[[file:Notes.PNG]] '''<u>Notes:</u>'''
          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.
:Times are Trainz clock time, not real time
          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.
==='''Disable/Enable Industry Rule'''===
    '''''<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


[[file:Notes.PNG]] '''<u>Notes:</u>'''
Enables/Disables vehicle load/unload for industry
: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]] '''<u>Related Rules:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
*'''[[#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:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''<kuid2:401543:1171:1>'''
*'''[[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 Parent and Child Rules]]'''


----
*'''Built-in Rule'''
<table bgcolor=#ccffff>
<tr>
<td>
'''[[#top|Back to Top]]''' | '''[[#A, B|A, B]]''' | '''[[#C|C]]''' | '''[[#D|D]]''' | '''[[#E, F, G|E, F, G]]''' | '''[[#H, I, J|H, I, J]]''' | '''[[#K, L, M|K, L, M]]''' | '''[[#N, O|N, O]]''' | '''[[#P, Q|P, Q]]''' | '''[[#R|R]]''' | '''[[#S-Se|S-Se]]''' | '''[[#Sh-Sz|Sh-Sz]]''' | '''[[#T|T]]''' | '''[[#U, V|U, V]]''' | '''[[#W, X, Y, Z|W, X, Y, Z]]'''
</td>
</tr>
</table>
<table width="100%" bgcolor=#ccffff>
<tr>
<td>
=='''N, O'''==
</td>
</tr>
</table>


==='''Navigation Display Rule'''===
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


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.
  '''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'''


'''<u>Rule Properties:</u>'''
==='''DisplayIndustryStatus Rule (color modified)'''===


*'''<kuid2:401543:1161:1>'''
Displays a summary of industry product levels when the "k" key is pressed.
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid:622415:100001>'''


*'''Base Rule'''
*'''DLS Rule''' by '''lockheed02''' and '''marzipan'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''Unique set ID: ''<click here to set>''''' - enter a unique name for the navigation set. Name must be in lowercase and have no spaces.
     '''None'''
    '''Train (optional): ''<click here to set>''''' - select a rolling stock asset from the session list shown.
 
    Select one of three option buttons:-
[[file:Notes.PNG]] '''<u>Notes:</u>'''
    '''( ) All points must be completed in sequence:'''
:Pressing the '''k''' key in Driver mode will bring up a small window with a single link '''''Display Industry Status''''' (there may also be other links). Clicking this link will show the product levels of all industries.
      - 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.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Navigation Set Hide/Show Rule|Navigation Set Hide/Show Rule]]''' - makes a navigation set visible/invisible.
*'''[[#ExTrainz Manager Rule - TANE SP2|ExTrainz Manager Rule - TANE SP2]]''' - displays information on consists, industries and products in Driver and Surveyor.
*'''[[#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:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
==='''ExTrainz Manager Rule - TANE SP2'''===
*'''[[How to Use Navigation Point Rules]]'''
*'''[[How to Use Navigation Point Rules (Applications)]]'''


==='''Navigation Point Complete Rule'''===
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.


Manually completes a navigation point in a set
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid:160293:10029>'''


*'''<kuid:401543:1167>'''
*'''DLS Rule''' by '''trev999'''


*'''Base Rule'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
    '''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.
    '''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.


    '''Mark navigation point ''<click here to set>''''' - enter the navigation point number to be completed
[[file:Notes.PNG]] '''<u>Notes:</u>'''
    '''complete in set ''<click here to set>''''' - enter the unique name for the navigation set created using the '''Navigation Display Rule'''.
#Rolling stock installed in '''TANE''' or 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.
        Name must be in lowercase and have no spaces.
#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.


[[file:Issues.PNG]] '''<u>Known Issues:</u>'''
[[file:Issues.PNG]] ''''<u>Known Issues:</u>'''
:The rule will '''NOT''' check to see if the named navigation set and point exists or not.
:This rule is NOT compatible with all industries.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Navigation Display Rule|Navigation Display Rule]]''' - creates a set of navigation points.
*'''[[#DisplayIndustryStatus Rule (color modified)|DisplayIndustryStatus Rule (color modified)]]''' - displays information on industry product levels.
*'''[[#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.
==='''Multiple Resource Check Rule'''===
*'''[[#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


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
Executes child rules if industries or vehicles reach set commodity levels. This rule replaces the older '''Resource Check Rule'''  
*'''[[How to Use Navigation Point Rules]]'''
*'''[[How to Use Navigation Point Rules (Applications)]]'''


==='''Navigation Set Check Rule'''===
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


Executes child rules if a navigation set created with the '''Navigation Display Rule''' is complete (or incomplete).
*'''<kuid:-25:656>'''


'''<u>Rule Properties:</u>'''
*'''Built-in Rule'''
 
*'''<kuid:401543:1165>'''
 
*'''Base Rule'''


*'''Parent Rule'''
*'''Parent Rule'''
Line 1,651: Line 1,771:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''Checks if navigation point set ''<name>'':''' - enter the unique name for the navigation set created using the '''Navigation Display Rule'''.
     '''<Product Level>''' - click to select a product test from two choices:-
        Name must be in lowercase and have no spaces.
      '''''Reach/Exceed''''' - sets an upper limit for the resources being monitored.
    '''is ''<Complete/Incomplete>''''' - click to select one
          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


[[file:Issues.PNG]] '''<u>Known Issues:</u>'''
[[file:Notes.PNG]] '''<u>Notes:</u>'''
:The rule will '''NOT''' check to see if the named navigation set exists or not.
: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]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Navigation Display Rule|Navigation Display Rule]]''' - creates a set of navigation points.
*'''[[#Resource Check Rule|Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
*'''[[#Navigation Set Hide/Show Rule|Navigation Set Hide/Show Rule]]''' - makes a navigation set visible/invisible.
*'''[[#Resource Verify Rule (fixed)|Resource Verify Rule (fixed)]]''' - executes child rules when a set resource (commodity) level is reached
*'''[[#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:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Navigation Point Rules]]'''
*'''[[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 Navigation Point Rules (Applications)]]'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Parent and Child Rules]]'''


==='''Navigation Set Clear Rule'''===
==='''Power Station Rule'''===


Clears a navigation set removing any uncompleted navigation points
Sets up a Power Station and its electricity consumers


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:401543:1164>'''
*'''<kuid:-25:746>'''


*'''Base Rule'''
*'''Base Rule'''
Line 1,682: Line 1,811:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''''<Click here to set>''''' - enter the unique name for the navigation set created using the '''Navigation Display Rule'''.
     '''Power station ''<select>''''' - select a Power Station from the session list.
        Name must be in lowercase and have no spaces.
    '''Consumers:'''
      '''''<add object>''''' - add power consumers from the session list


[[file:Issues.PNG]] '''<u>Known Issues:</u>'''
==='''Resource Check Rule'''===
:The rule will '''NOT''' check to see if the named navigation set exists or not.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
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'''
*'''[[#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:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Navigation Point Rules]]'''
*'''[[How to Use Navigation Point Rules (Applications)]]'''


==='''Navigation Set Hide/Show Rule'''===
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


Shows and hides navigation sets. You can have multiple sets visible and hidden at the same time.
*'''<kuid:-25:1067>'''


'''<u>Rule Properties:</u>'''
*'''Legacy Rule''' (replaced by '''Multiple Resource Check Rule''')


*'''<kuid:401543:1163>'''
*'''Built-in Rule'''


*'''Base rule'''
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''''<visibility>''''' - click to select one
     Select one of two option buttons:-
      '''Hide''' - select to make the navigation set invisible
      '''( ) Watch industry queue'''
      '''Show''' - select to make the navigation set visible
          '''Target Object ''<select>''''' - select an industry from the session list
    '''''<click here to set>''''' - enter the unique name for the navigation set created using the '''Navigation Display Rule'''.
          '''Queue ''<select>''''' - select a product queue from the selected industry
        Name must be in lowercase and have no spaces.
          '''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'''


[[file:Issues.PNG]] '''<u>Known Issues:</u>'''
[[file:Notes.PNG]] '''<u>Notes:</u>'''
:The rule will '''NOT''' check to see if the named navigation set exists or not.
: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]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Navigation Display Rule|Navigation Display Rule]]''' - creates a set of navigation points.
*'''[[#Multiple Resource Check Rule|Multiple Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
*'''[[#Navigation Set Check Rule|Navigation Set Check Rule]]''' - executes child rules if a navigation set has completed or is incomplete.
*'''[[#Resource Verify Rule (fixed)|Resource Verify Rule (fixed)]]''' - executes child rules when a set resource (commodity) level is reached
*'''[[#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:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Navigation Point Rules]]'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Navigation Point Rules (Applications)]]'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Resource_Check_Rule</span>'''


==='''Objective Add Rule'''===
==='''Resource Verify Rule (fixed)'''===


Sets up a game Objective with ID and display Name
Executes child rules if a selected industry or vehicle reaches a set commodity level. The rule resets when all child rules have completed.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:401543:2001>'''
*'''<kuid:160293:10060>'''
 
*'''DLS Rule''' by '''trev999


*'''Base Rule'''
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''Priority ''<Select>''''' - select one of:-
     Select one of two option buttons:-
       '''''Above Normal'''''
    '''( ) Watch industry queue'''
       '''''Below Normal'''''
      '''Target object ''<click to select>''''' - click to select an industry from the session list.
       '''''Normal'''''
       '''Product ''<click to select>''''' - click to select an industry product.
      '''''Optional'''''
       '''Amount ''<value>''''' - enter a quantity for the selected product.
       '''''Urgent'''''
      Select one of two option buttons:-
    '''Completion Target Number ''<value>''''' - to set Completion Target Number
       '''( ) Complete when designated queue equals or exceeds designated amount'''
    '''Icon ''<select>''''' - to select Icon from list
      '''( ) Complete when designated queue falls below designated amount'''
    '''Display Name ''<enter>''''' - to insert Name
    '''( ) Watch vehicle queue'''
    '''Unique Objective ID ''<enter>''''' - enter a unique objective ID
       '''Target object ''<click to select>''''' - click to select a rolling stock vehicle from the session list.
    '''Custom Message ''<Text Box>''''' - insert typed message in text area
      '''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'''
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
#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]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Objective Check Rule|Objective Check Rule]]''' - executes child rules if an objective is completed
*'''[[#Multiple Resource Check Rule|Multiple Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
*'''[[#Objective Update Rule|Objective Update Rule]]''' - changes the progress of a game objective
*'''[[#Resource Check Rule|Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached


==='''Objective Check Rule'''===
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
 
==='''Station Visited Check Rule'''===


Executes child rules if an objective created with the '''Objective Add Rule''' is complete.
Executes child rules if specific trains call at set stations or industries


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:401543:2003>'''
*'''<kuid2:60850:89005:3>'''


*'''Base Rule'''
*'''Built-in Rule'''


*'''Parent Rule'''
*'''Parent Rule'''
Line 1,773: Line 1,915:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''Unique Objective ID ''<value>''''' - enter the unique ID created with the '''Objective Add Rule'''  
     '''Trigger: ''<select>''''' - click to select one of the following
     '''Mode ''<select>''''' - select one of three:-
      '''''Never''''' - stopping at the selected industries will never trigger the rule.
       '''''Wait for completion'''''
      '''''Once only''''' - the rule is triggered on the first visit only to any one of the selected industries
      '''''Wait for failure'''''
      '''''Once per industry''''' - the rule is triggered on the first visit to each industry with each individual product
      '''''Wait for progress'''''
      '''''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.
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
     '''''<select industry>''''' - select industry or industries from session list
*'''[[#Objective Add Rule|Objective Add Rule]]''' - sets up a game objective
    Select one of two option buttons:-
*'''[[#Objective Update Rule|Objective Update Rule]]''' - changes the progress of a game objective
       '''( ) 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


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Parent and Child Rules]]'''


==='''Objective Update Rule'''===
'''[[#top|Back to Top]]'''
----
 
<table width="100%" bgcolor=#ffffaa>
<tr>
<td>
=='''Interlocking Tower, Junction and Signal Rules'''==
</td>
</tr>
</table>
 
==='''Interlocking Tower Configure Path Rule'''===


Changes progress of an objective outcome created with the '''Objective Add Rule''' according to Property choices
Alters settings on an interlocking tower path


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:401543:2002>'''
*'''<kuid:401543:3205>'''


*'''Base Rule'''
*'''Base Rule'''  


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


    '''Unique Objective ID ''<value>''''' - enter the unique ID created with the '''Objective Add Rule'''
  '''Interlocking Tower ''<select>''''' - to set Name and Objects
    '''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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Objective Add Rule|Objective Add Rule]]''' - sets up a game objective
*'''[[#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.
*'''[[#Objective Check Rule|Objective Check Rule]]''' - executes child rules if an objective is completed
*'''[[#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.


==='''Ordered List Rule'''===
==='''Interlocking Tower Path Selection UI Rule'''===


Executes child rules in order once this rule starts
Will automatically react to messages from Interlocking Towers and display a path selection dialog to the player. Disable by removing rule from session


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:171>'''
*'''<kuid:401543:3203>'''


*'''Built-in Rule'''
*'''Base Rule'''


*'''Parent Rule'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
  '''[Checkbox] Show path activation message in Driver'''
 
    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'''
 
[[file:Issues.PNG]] '''<u>Known Issues:</u>'''
: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.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Progressive List Rule|Progressive List Rule]]''' - executes the first child rule on the first run, the second child on the second run, etc
*'''[[#Interlocking Tower Configure Path Rule|Interlocking Tower Configure Path Rule]]''' - alters the settings on an interlocking tower path
*'''[[#Random List Rule|Random List Rule]]''' - executes ONE randomly selected child rule
*'''[[#Interlocking Tower Set Path Rule|Interlocking Tower Set Path Rule]]''' - sets the state of an interlocking tower path for a train
*'''[[#Reset List Rule|Reset List Rule]]''' - executes all child rules continuously
*'''[[#Interlocking Tower Enhanced Manager Rule (SP2 and later)|Interlocking Tower Enhanced Manager Rule (SP2 and later)]]''' - more management and control options for interlocking towers.
*'''[[#Simultaneous List Rule|Simultaneous List Rule]]''' - executes all child rules simultaneously


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
==='''Interlocking Tower Set Path Rule'''===
*'''[[How to Use Parent and Child Rules]]'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Ordered_List</span>'''
----
<table bgcolor=#ccffff>
<tr>
<td>
'''[[#top|Back to Top]]''' | '''[[#A, B|A, B]]''' | '''[[#C|C]]''' | '''[[#D|D]]''' | '''[[#E, F, G|E, F, G]]''' | '''[[#H, I, J|H, I, J]]''' | '''[[#K, L, M|K, L, M]]''' | '''[[#N, O|N, O]]''' | '''[[#P, Q|P, Q]]''' | '''[[#R|R]]''' | '''[[#S-Se|S-Se]]''' | '''[[#Sh-Sz|Sh-Sz]]''' | '''[[#T|T]]''' | '''[[#U, V|U, V]]''' | '''[[#W, X, Y, Z|W, X, Y, Z]]'''
</td>
</tr>
</table>
<table width="100%" bgcolor=#ccffff>
<tr>
<td>
=='''P, Q'''==
</td>
</tr>
</table>


==='''Play Sound Rule'''===
Will set the state of an interlocking tower path for a train
 
Plays a wav sound file.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:1045>'''
*'''<kuid:401543:3204>'''


*'''Built-in Rule'''
*'''Base Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Display Video Rule|Display Video Rule]]''' - displays a page containing a video clip from a HTML asset in a browser window
*'''[[#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.


==='''Power Station Rule'''===
==='''Interlocking Tower Enhanced Manager Rule (SP2 and later)'''===


Sets up a Power Station and its electricity consumers
Provides more management and control options for interlocking towers.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:746>'''
*'''<kuid2:61392:8130:41>'''


*'''Base Rule'''
*'''DLS Rule''' by '''pguy'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''Power station ''<select>''''' - select a Power Station from the session list.
     '''''<towers>''''' - click to select interlocking towers from the session list
    '''Consumers:'''
      '''''<do full check again>''''' - click to run an error check on all interlocking towers
      '''''<add object>''''' - add power consumers from the session list
      '''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


==='''Progressive List Rule'''===
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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


Executes the first child rule on the first run, the second child on the second run, the third child on the third run, etc.
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Enhanced_Interlocking_Tower_Manager_Rule</span>'''


'''<u>Rule Properties:</u>'''
==='''Junction Derailment Prevention Rule'''===


*'''<kuid:-25:754>'''
Sets opposing (trailing) junctions ahead of a train to prevent derailments.  Works with both AI and manually driven trains.


*'''Built-in Rule'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''Parent Rule'''
*'''<kuid2:121843:100282:1>'''
 
*'''DLS Rule''' by '''pitkin'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


  '''After last child has been executed ...'''
    '''None'''
  '''''<successive runs will do nothing/the first child is chosen again>''''' - click to select one
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''  
:This rule will not overrule a junction already locked by another AI train or locked against AI control using the '''Set Junctions Rule'''.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Ordered List Rule|Ordered List Rule]]''' - executes child rules in order
*'''[[#Lock All Junctions Rule|Lock All Junctions Rule]]''' - locks all junctions against user control
*'''[[#Random List Rule|Random List Rule]]''' - executes ONE randomly selected child rule
*'''[[#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.
*'''[[#Reset List Rule|Reset List Rule]]''' - executes all child rules continuously
*'''[[#Set Junctions Rule|Set Junctions Rule]]''' - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control).
*'''[[#Simultaneous List Rule|Simultaneous List Rule]]''' - executes all child rules simultaneously
 
==='''Lock All Junctions Rule'''===


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
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.
*'''[[How to Use Parent and Child Rules]]'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Progressive_List</span>'''


==='''Quick CustomHud Manager Rule (SP2 and later)'''===
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


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)'''
*'''<kuid:400048:100971>'''


'''<u>Rule Properties:</u>'''
*'''DLS Rule''' by '''callavsg'''


*'''<kuid2:61392:5020:47>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


*'''DLS Rule''' by '''pguy'''
    '''None'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Notes.PNG]] '''<u>Notes:</u>'''
:Individual junctions can still be set, locked and unlocked by using the '''Set Junction Rule'''


    '''''<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'''.  
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
      This is NOT the standard OS clipboard.
*'''[[#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.
    '''''<Paste rule data from Clipboard>''''' - if data is held in the special clipboard area, then click to paste that data into the selected HUD.
*'''[[#Set Junctions Rule|Set Junctions Rule]]''' - sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control).
      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


[[file:Notes.PNG]] '''<u>Notes:</u>'''
==='''MissionCode Manager Rule (SP2 and later)'''===
: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:PageLink.PNG]] '''<u>Related Rules:</u>'''
Enables the addition, editing and management of Mission Codes used to auto select paths in '''Interlocking Towers'''.  
*'''[[#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


==='''Quick Portal Manager Standard Edition Rule (SP2 and later)'''===
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


Manages portals and adds flexible timetables.
*'''<kuid2:61392:8200:50>'''


'''<u>Rule Properties:</u>'''
*'''DLS Rule''' by '''pguy'''


*'''<kuid2:61392:5011:45>'''
ENTRY UNDER CONSTRUCTION


*'''DLS Rule''' by '''pguy'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/MissionCodes_Manager</span>'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
==='''MissionCode Stops and Timetable Manager Rule (SP2 and later)'''===


    '''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.
Enables the creation, editing and management of stop zones and timetables for trains following a path defined using mission codes.
    '''''<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 (SP2 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.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
*'''[[#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 (SP2 and later)|Quick CustomHud Manager Rule (SP2 and later)]]''' - create driver HUDs


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''<kuid2:61392:8300:50>'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Quick_Portal_Manager</span>'''


==='''Quick Session Variables Rule'''===
*'''DLS Rule''' by '''pguy'''


Allows the editing of session variables
ENTRY UNDER CONSTRUCTION


'''<u>Rule Properties:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Mission_Code_Stops_and_TimeTables_Manager</span>'''


*'''<kuid2:61392:5003:30>'''
==='''Multiple Junction Alignment Check Rule'''===


*'''DLS Rule''' by '''pguy'''
Executes child rules if specific junctions are set.


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


    '''''<local>''''' - click to edit local variables
*'''<kuid:-25:168>'''
      '''''<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


[[file:Issues.PNG]] '''<u>Known Issues:</u>'''
*'''Built-in Rule'''
: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:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''Parent Rule'''
*'''[[#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.
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
*'''[[#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.
    '''Wait until ''<selection>''''' - select from:-
*'''[[#Variable Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
      '''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
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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).
 
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Control Junctions in Sessions]]'''
*'''[[How to Use Parent and Child Rules]]'''


==='''QuickDrive Rule'''===
==='''Set Cleared Junctions Rule'''===


Changes the Session settings.
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'''


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:401543:1184>'''
*'''<kuid2:131986:157661:1>'''


*'''Base Rule'''
*'''DLS Rule''' by '''atilabarut'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


  '''Open QuickDrive window when session is started          [x]''' - check to set
    '''''Add Junction''''' - click to select a junction from the session junction list
  '''Set time to ''<hours:minutes>'' with a rate of ''<speed x>''''' - set start time and rate at which time advances
    '''''Add All''''' - click to add ALL junctions in the session junction list
  '''Enable gameplay Session Mode                            [x]''' - check to set. Gameplay mode restricts the players options
    '''''Delete All''''' - click to remove ALL entered junctions from the rule
  '''Enable in game help by default                          [x]''' - check to allow help options to be displayed
      '''Junction Options:''' - for each selected junction:-
  '''Set the default Control method to:''' - select one of two option buttons:-
          '''''<direction>''''' - click to select the junction direction
      '''( ) Easy Mode'''
            '''Left'''
      '''( ) Realistic Mode'''
            '''Center'''
      '''[x] Prevent player from changing this setting''' - check to set
            '''Right'''
  '''Realistic mode requires achievement: ''<text>'' in asset ''<asset name>''''' - enter achievement name and select an asset from Aurans Achievements
            '''Don't change'''
  '''Set the default derailment realism to:''' - select one of three option buttons:-
          '''''<user control>''''' - click to select a user control option
      '''( ) None'''
            '''Locked''' - the junction setting cannot be changed by the user
      '''( ) Arcade'''
            '''Unlocked''' - the junction setting can be changed by the user
      '''( ) Realistic'''
          '''''<AI control>''''' - click to select AI control
      '''[x] Prevent player from changing this setting''' - check to set
            '''Allows AI control''' - an AI train can switch the junction
  '''Set the default units to:''' - select one of three option buttons:-
            '''Blocks AI control''' - an AI train cannot switch the junction
      '''( ) Imperial'''
          '''''Remove''''' - click to remove this junction from the rule list
      '''( ) Metric'''
 
      '''( ) Default'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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).


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/QuickDrive_Rule</span>'''
*'''[[How to Control Junctions in Sessions]]'''
----
<table bgcolor=#ccffff>
<tr>
<td>
'''[[#top|Back to Top]]''' | '''[[#A, B|A, B]]''' | '''[[#C|C]]''' | '''[[#D|D]]''' | '''[[#E, F, G|E, F, G]]''' | '''[[#H, I, J|H, I, J]]''' | '''[[#K, L, M|K, L, M]]''' | '''[[#N, O|N, O]]''' | '''[[#P, Q|P, Q]]''' | '''[[#R|R]]''' | '''[[#S-Se|S-Se]]''' | '''[[#Sh-Sz|Sh-Sz]]''' | '''[[#T|T]]''' | '''[[#U, V|U, V]]''' | '''[[#W, X, Y, Z|W, X, Y, Z]]'''
</td>
</tr>
</table>
<table width="100%" bgcolor=#ccffff>
<tr>
<td>
=='''R'''==
</td>
</tr>
</table>


==='''Random List Rule'''===
==='''Set Junctions Rule'''===


Executes ONE randomly selected child rule once only. The rule will not repeat to randomly select another child rule
Sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control). '''''Warning:'' not compatible with Interlocking Tower Assets'''


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:758>'''
*'''<kuid:-25:1065>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''None'''
     '''''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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Ordered List Rule|Ordered List Rule]]''' - executes child rules in order
*'''[[#Junction Derailment Prevention Rule|Junction Derailment Prevention Rule]]''' - sets opposing junctions ahead of a train to prevent derailments
*'''[[#Progressive List Rule|Progressive List Rule]]''' - executes the first child rule on the first run, the second child rule on the second run, etc
*'''[[#Lock All Junctions Rule|Lock All Junctions Rule]]''' - locks all junctions against user control
*'''[[#Reset List Rule|Reset List Rule]]''' - executes all child rules continuously
*'''[[#Multiple Junction Alignment Check Rule|Multiple Junction Alignment Check Rule]]''' - executes child rules when junctions are aligned
*'''[[#Simultaneous List Rule|Simultaneous List Rule]]''' - executes all child rules simultaneously
*'''[[#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:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Control Junctions in Sessions]]'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Random_List</span>'''


==='''Random Weather Rule v2'''===
==='''Set Signal Extended Rule'''===


Randomly changes the weather conditions between set values over a set duration.
Sets the state of a selected signal '''''Warning:'' not compatible with Interlocking Tower Assets'''


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:169301:100132>'''
*'''<kuid2:47662:20002:4>'''


*'''DLS Rule''' by '''terry_wagstaff'''
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''Starting weather ''<select>'' - select one of:-
     '''''<Select signal>'' to ''<signal state>''''' - click to select a signal from the session list and click to select a state from the list -
          '''''Clear weather, no clouds, rain or snow'''''
      '''Automatic'''
          '''''Cloudy weather, no rain'''''
      '''Stop'''
          '''''Drizzle, light rain'''''
      '''Stop then Continue'''
          '''''Rain'''''
      '''Caution Left'''
          '''''Stormy weather that includes lightning and thunder'''''
      '''Caution Right'''
          '''''Snowing lightly'''''
      '''Caution'''
          '''''Medium snowfall'''''
      '''Advance Caution Left'''
          '''''Heavy snow'''''
      '''Advance Caution Right'''
    '''Best weather ''<select>'' - select one of:-
      '''Advance Caution'''
          '''''Clear weather, no clouds, rain or snow'''''
      '''Proceed Left'''
          '''''Cloudy weather, no rain'''''  
      '''Proceed Right'''
          '''''Drizzle, light rain'''''
      '''Proceed'''
          '''''Rain'''''
      '''Slow'''
          '''''Stormy weather that includes lightning and thunder'''''
      '''Medium'''
          '''''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


[[file:Notes.PNG]] '''<u>Notes:</u>'''
[[file:Notes.PNG]] '''<u>Notes:</u>'''
: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.
:The signal must support the state selected otherwise there will be no change in the signal


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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
*'''[[#Trigger Multiple Signals Rule|Trigger Multiple Signals Rule]]''' - sets selected signals to DANGER (STOP) when selected triggers are activated
*'''[[#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


==='''Randomize Rule'''===
==='''Trigger Multiple Signals Rule'''===


Generates a different set of random numbers each time the session is run.
Sets selected signals to DANGER (STOP) when selected triggers are activated. Signals will be at AUTOMATIC when the triggers are not activated.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:169301:100129>'''
*'''<kuid2:116387:26:1>'''


*'''DLS Rule''' by '''Terry_Wagstaff'''
*'''DLS Rule''' by '''maggs'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''None'''
     '''<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.


[[file:Notes.PNG]] '''<u>Notes:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
: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.
*'''[[#Set Signal Extended Rule|Set Signal Extended Rule]]''' -  sets a selected signal to a specific signal state


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
'''[[#top|Back to Top]]'''
*'''[[#Variable Random|Variable Random]]''' - sets a variable to a random integer value.
----
 
<table width="100%" bgcolor=#ffffaa>
<tr>
<td>
=='''Message Rules'''==
</td>
</tr>
</table>


==='''Ranked Session Begin Rule'''===
==='''Close Message Popup Rule'''===


Begins a ranked Session
Closes open message popups


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:401543:2031>'''
*'''<kuid:447264:1526>'''


*'''Base Rule'''
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


    '''Countdown Starting Value ''<value>'''''
  '''None'''
      '''''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'''


[[file:Notes.PNG]] '''<u>Notes:</u>'''
[[file:Issues.PNG]] ''''<u>Known Issues:</u>'''
:Times are Trainz clock time, not real time
:This rule only appears to work if it is a child of the rule that triggered the Message Popup Rule


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''Related Rule:'''
*'''[[#Ranked Session Complete Rule|Ranked Session Complete Rule]]''' - completes the active ranked Session
*'''[[#Message Popup Rule|Message Popup Rule]]''' - displays a pop-up browser window and waits for it to be closed.


==='''Ranked Session Complete Rule'''===
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Message Popup Rule]]'''
*'''[[How to Use Message Popup Rule (Applications)]]'''


Completes the active ranked Session
==='''DestSign Table Rule'''===


'''<u>Rule Properties:</u>'''
Creates a list of destination names for a destination sign


*'''<kuid:401543:2032>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid2:206816:99004:2>'''


*'''Base Rule'''
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


    '''Set the active ranked session as:''' - select one of two option buttons:-
  '''''<add destination>''''' - enter a destination name to be added to the destination sign roll
      '''( ) Complete'''
  '''''<import destinations from texture-group>''''' - select a list of destination names from session
      '''( ) Failed'''
  '''[x] Enable industries/stations as destination''' - check to set
    '''[x] Customize the completion message ''<text>''''' - enter a text message
  '''[x] Enable Track Marks as destinations''' - check to set
  '''[x] Enable table of destinations''' - check to set


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
==='''Display HTML Pages Rule'''===
*'''[[#Ranked Session Begin Rule|Ranked Session Begin Rule]]''' - begins a ranked Session


==='''Replace Missing Vehicles 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'''  


Produces new trains to replace missing vehicles that have been removed from the session by the '''Clean Up Derailed Trains Rule'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid:-25:442>'''


*'''<kuid:447264:1214>'''
*'''Legacy Rule''' (replaced by '''Message Popup Rule''')


*'''Built-in Rule'''
*'''Base Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''[x] Respawn trains if they are abandoned for 10 minutes'''
     '''''<Add Page>''''' - adds the HTML page ''index.html'' from the selected HTML asset
    If checked:-
       '''''<index.html>''''' - click to change the page name. The extension ''.html'' is optional
       Select one of two option buttons:-
    '''''<Add All>''''' - adds all HTML pages from the session list '''(this appears to be disabled in TANE)'''
          '''( ) Respawn trains at their original locations'''
    '''''<Delete All>''''' - delete all HTML pages from this property list
          '''( ) Respawn trains from portals'''
    '''[x] Prevent user from exiting browser until all pages viewed'''
            '''''<+ Add a new portal>''''' - click to enter the name of a portal, there can be more than one portal.
    '''[x] Disable closing of browser window by user'''
            Entered portal names that appear in red have not been found in the session
    '''[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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Clean Up Derailed Trains Rule|Clean Up Derailed Trains Rule]]''' - cleans up derailed train cars after a set time delay
*'''[[#Close Message Popup Rule|Close Message Popup Rule]]''' - closes a displayed pop-up browser window.
*'''[[#Wait for Derailment Rule|Wait for Derailment Rule]]''' - executes child rules when a derailment occurs
*'''[[#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'''
*'''[[#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.


==='''Reset List Rule'''===
==='''Display Video Rule'''===


Executes ALL child rules continuously in an ongoing infinite cycle
Displays a page containing a video clip from a HTML asset in a browser window.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:762>'''
*'''<kuid:-25:138>'''


*'''Built-in Rule'''
*'''Built-in Rule'''


*'''Parent Rule'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
    '''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.


    '''None'''
[[file:Notes.PNG]] '''<u>Notes:</u>'''  
:Video must be in a valid web format.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Ordered List Rule|Ordered List Rule]]''' - executes child rules in order
*'''[[#Play Sound Rule|Play Sound Rule]]''' - plays a wav sound file
*'''[[#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
*'''[[#Simultaneous List Rule|Simultaneous List Rule]]''' - executes all child rules simultaneously


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
==='''DisplayIndustryStatus Rule (color modified)'''===
*'''[[How to Use Parent and Child Rules]]'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Reset_List</span>'''


==='''Resource Check Rule'''===
Displays a summary of industry product levels when the "k" key is pressed.


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]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid:622415:100001>'''


*'''<kuid:-25:1067>'''
*'''DLS Rule''' by '''lockheed02''' and '''marzipan'''
 
*'''Legacy Rule''' (replaced by '''Multiple Resource Check Rule''')
 
*'''Built-in Rule'''
 
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     Select one of two option buttons:-
     '''None'''
      '''( ) 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'''


[[file:Notes.PNG]] '''<u>Notes:</u>'''
[[file:Notes.PNG]] '''<u>Notes:</u>'''
: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''.
:Pressing the '''k''' key in Driver mode will bring up a small window with a single link '''''Display Industry Status''''' (there may also be other links). Clicking this link will show the product levels of all industries.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Multiple Resource Check Rule|Multiple Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
*'''[[#ExTrainz Manager Rule - TANE SP2|ExTrainz Manager Rule - TANE SP2]]''' - displays information on consists, industries and products in Driver and Surveyor.
*'''[[#Resource Verify Rule (fixed)|Resource Verify Rule (fixed)]]''' - executes child rules when a set resource (commodity) level is reached


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
==='''ExTrainz Manager Rule - TANE SP2'''===
*'''[[How to Use Parent and Child Rules]]'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Resource_Check_Rule</span>'''


==='''Resource Verify Rule (fixed)'''===
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.


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]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid:160293:10029>'''


*'''<kuid:160293:10060>'''
*'''DLS Rule''' by '''trev999'''


*'''DLS Rule''' by '''trev999
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    '''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.
    '''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.
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
#Rolling stock installed in '''TANE''' or 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.
 
[[file:Issues.PNG]] ''''<u>Known Issues:</u>'''
:This rule is NOT compatible with all industries.
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#DisplayIndustryStatus Rule (color modified)|DisplayIndustryStatus Rule (color modified)]]''' - displays information on industry product levels.
 
==='''Fade In/Out Rule'''===
 
Fade in or out within seconds, using specified color and opacity values.
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid2:190611:200000:2>'''


*'''Parent Rule'''
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


    Select one of two option buttons:-
     '''Red percentage:            ''<value>''''' - enter the final % of red (0 = none, 100 = maximum)
     '''( ) Watch industry queue'''
    '''Green percentage:          ''<value>''''' - enter the final % of green
      '''Target object ''<click to select>''''' - click to select an industry from the session list.
    '''Blue percentage:            ''<value>''''' - enter the final % of blue
      '''Product ''<click to select>''''' - click to select an industry product.
     '''Alpha percentage (opacity): ''<value>''''' - enter the final % of opacity (0 = invisible, 100 = solid)
      '''Amount ''<value>''''' - enter a quantity for the selected product.
    '''Fading duration:            ''<value>''''' - enter the number of seconds required for the fade
      Select one of two option buttons:-
    '''''<help>''''' - click to bring up help instructions
      '''( ) 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'''


[[file:Notes.PNG]] '''<u>Notes:</u>'''
[[file:Notes.PNG]] '''<u>Notes:</u>'''
#This rule will only monitor a single commodity in a single industry or vehicle.
:Seconds are Trainz clock time, not real time.
#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]] '''<u>Related Rules:</u>'''
==='''Hide Product Overlays Rule'''===
*'''[[#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]] '''<u>Trainz Wiki Links:</u>'''
Hides the commodity or product bar graphs that appear on active industries
*'''[[How to Use Parent and Child Rules]]'''


----
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
<table bgcolor=#ccffff>
<tr>
<td>
'''[[#top|Back to Top]]''' | '''[[#A, B|A, B]]''' | '''[[#C|C]]''' | '''[[#D|D]]''' | '''[[#E, F, G|E, F, G]]''' | '''[[#H, I, J|H, I, J]]''' | '''[[#K, L, M|K, L, M]]''' | '''[[#N, O|N, O]]''' | '''[[#P, Q|P, Q]]''' | '''[[#R|R]]''' | '''[[#S-Se|S-Se]]''' | '''[[#Sh-Sz|Sh-Sz]]''' | '''[[#T|T]]''' | '''[[#U, V|U, V]]''' | '''[[#W, X, Y, Z|W, X, Y, Z]]'''
</td>
</tr>
</table>
<table width="100%" bgcolor=#ccffff>
<tr>
<td>
=='''S-Se'''==
</td>
</tr>
</table>


==='''Safety System Engaged Check Rule'''===
*'''<kuid:400048:100970>'''


Executes child rules if safety systems are applied.
*'''DLS Rule''' by '''callavsg'''
 
'''<u>Rule Properties:</u>'''
 
*'''<kuid:447264:1216>'''
 
*'''Built-in Rule'''
 
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


    '''[x] Trigger only once'''
  '''None'''


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
==='''InputTable Rule'''===
*'''[[#Safety System Isolated Check Rule|Safety System Isolated Check Rule]]''' - executes child rules if safety systems have been isolated


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
Creates a list of message names to be used for various purposes including passing data to '''Driver Commands'''
*'''[[How to Use Parent and Child Rules]]'''


==='''Safety System Isolated Check Rule'''===
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


Executes child rules if safety systems are isolated (disengaged).
*'''<kuid2:131986:1012:1>'''
 
'''<u>Rule Properties:</u>'''
 
*'''<kuid:447264:1217>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''[x] Trigger only once'''
     '''''<add>''''' - click to add a new entry to the table
 
    Each new entry will require an input message
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
      '''''<short message>''''' - enter a message. The message must be in a format that is specific for each purpose
*'''[[#Safety System Engaged Check Rule|Safety System Engaged Check Rule]]''' - executes child rules if safety systems have been engaged
      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.
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
            ''name_of_turntable'' is the name of the turntable,
*'''[[How to Use Parent and Child Rules]]'''
            ''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 '''WaitUntilSVariable''' driver command 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


==='''Schedule Rule'''===
==='''Message Popup Rule'''===


Allows a schedule of timed events to be applied to a train
Displays a pop-up browser window and waits for it to be closed. Closure can be manual (by the user) or by another rule.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-3:10185>'''
*'''<kuid:-25:1003>'''


*'''Base Rule'''
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''Insert track mark ''<select>''''' - select a track mark from the Session List
     '''[x] Pause game while message is displayed''' - stops the game until this message is closed
     '''Arrival and Departure Time ''<Select>''''' - set time
    '''[x] Close previous popup windows''' - closes any Message Popups currently displayed before this message is shown
      '''''hh:mm:ss''''' - in hours/minutes/seconds
    '''Message location ''<Top Left/Top Right/Bottom Left/Bottom Right>''''' - select one to position the browser window on the screen
    '''Current Train ''<select>''''' - select from session list
     '''Message Source:''' - select one of three option buttons:-
    '''Insert destination ''<select>''''' - select from session list
      '''( ) 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
[[file:Notes.PNG]] '''<u>Notes:</u>'''
          '''Icon ''<Clear icon>''''' - clears any currently displayed message icon
:Times are Trainz clock times, not real time
          '''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.
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
          '''''<HTML Wave>''''' - (optional) select the name of the HTML asset from the list shown that contains the wave file to be played.
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
          '''''<Wave Name>''''' - (optional) enter the name of a wave (.wav) sound file to be played.
*'''[[#Driver Command Rule|Driver Command Rule]]''' - specifies which commands will be available for the drivers
              The sound file must be in the HTML asset identified above. Filename is not case sensitive. Extension ".wav" is optional
*'''[[#Driver Schedule Rule|Driver Schedule Rule]]''' - sets up a list of basic scheduled driver commands
          '''[x] Autoplay Wave:''' - plays the .wav sound file as soon as message is displayed.
*'''[[#Driver Setup Rule|Driver Setup Rule]]''' - creates a list of drivers and assign them their orders
              If unchecked the sound will not be played.
*'''[[#Enable/Disable Driver Commands Rule|Enable/Disable Driver Commands Rule]]''' - enable/disable specific driver commands on certain drivers
      '''( ) 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.


''''<u>Other Links:</u>'''
[[file:Issues.PNG]] ''''<u>Known Issues:</u>'''
*'''<span class="plainlinks">http://www.auran.com/games/gamefiles/trainz/tutorial1.html</span>'''
: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.


==='''Session Complete Rule'''===
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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.


Set session to a percentage of completion.
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Create a HTML Asset|How to Create a HTML Asset (Session Introduction Page and In Game Messages)]]'''
*'''[[How to Use Message Popup Rule]]'''
*'''[[How to Use Message Popup Rule (Applications)]]'''
 
==='''Minimap Options Rule'''===
 
Sets the display options for the minimap.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:447264:1011>'''
*'''<kuid:-25:636>'''


*'''Base Rule'''
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
''Default values - all checked''
     '''Set session to percent complete ''<value>''''' - enter number as a percentage
     '''[x] Map Textures'''
     '''[x] Separate achievements for completion''' - check to set
    '''[x] Gradients'''
    '''[x] Junctions'''
    '''[x] Signals'''
    '''[x] Triggers'''
    '''[x] Markers'''
    '''[x] Trackside Labels'''
    '''[x] Terrain Objects'''
    '''[x] Industrial Names'''
    '''[x] Named Objects'''
     '''[x] Consists'''


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#End Session Rule|End Session Rule]]''' - end the Session with a fade out.
*'''[[#Show/Hide Minimap Rule|Show/Hide Minimap Rule]]''' - shows the minimap window in Driver.


==='''Session Debug Rule'''===
==='''Play Sound Rule'''===


Executes the first child if ''Debug'' mode is selected. Otherwise executes the second child rule.
Plays a wav sound file.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:30501:100180>'''
*'''<kuid:-25:1045>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''None'''
     '''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'''


[[file:Notes.PNG]] '''<u>Notes:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
: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.
*'''[[#Display Video Rule|Display Video Rule]]''' - displays a page containing a video clip from a HTML asset in a browser window
 
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''


==='''Session Metadata Rule'''===
==='''Session Metadata Rule'''===
Line 2,533: Line 2,621:
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.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:401543:2036>'''
*'''<kuid:401543:2036>'''
Line 2,555: Line 2,643:
:Time is Trainz clock time, not real time
:Time is Trainz clock time, not real time


==='''Set Camera Rule'''===
==='''Set Helper Icon Size Rule'''===


Sets the target object and properties of the camera.
Sets the size of helper icons such as the junction lever arrows.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:179>'''
*'''<kuid:-25:791>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 2,567: Line 2,655:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


    '''[x] Set the target object of the camera to:''' - if checked, select one of three option buttons:-
  '''Junction Arrows Size ''<Click>''''' - to set scale ratio smaller than default, default is 100%
      '''( ) 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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
==='''Set HTML Pages Rule'''===
*'''[[#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
*'''[[#Wait for Camera View Mode Rule|Wait for Camera View Mode Rule]]''' - executes child rules when the camera view is changed


==='''Set Coupler Masks Rule'''===
Instructs the Display HTML Pages rule to perform specific operations. This rule has been superseded by the '''Message Popup Rule'''


Set the coupling/decoupling  masks on the selected vehicles
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid:-25:792>'''


*'''<kuid:-25:980>'''
*'''Legacy Rule''' (replaced by '''Message Popup Rule''')


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 2,603: Line 2,671:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''''<Add vehicle>''''' - click to select a vehicle from the session list
     '''Operations to preform on the display HTML pages sequence browser'''
    '''''<Add All>''''' - click to add all vehicles in the session list
    Select one of six option buttons:-
    '''''<Delete All>''''' - click to remove all added vehicles from this rule
      '''( ) to instruct the sequence browser to ''<select>''''' - to choose page operations
      For each selected vehicle:-
      '''( ) to instruct the sequence browser to open the page ''<select>''''' - enter the HTML page name
      '''Coupling Mask'''
      '''( ) to set browser parameters ''<select>''''' - choose one of:-
           '''Front''' and '''Back''' - choose for each
          '''to Enable/Disable closing of the browser window by the user'''
            '''''Locked'''''
          '''to Enable/Disable scrolling on the sequence browser window'''
            '''''Unlocked'''''
           '''to Show/Hide the sequence browser window'''
      '''Decoupling Mask'''
      '''( ) Set the following flag for the page named ''<select>''''' - enter the HTML page name
           '''Front''' and '''Back''' - choose for each
          '''[x] Hide/Close window on 'done' action'''
            '''''Locked'''''
          '''[x] Window has no 'done' button'''
            '''''Unlocked'''''
          '''[x] Disable scrolling(not implemented yet)'''
       '''''<Remove>''''' - click to remove this vehicle from the rule
          '''[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)


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Coupler Breakage Check Rule|Coupler Breakage Check Rule]]''' - executes child rules when a coupler breaks
*'''[[#Display HTML Pages Rule|Display HTML Pages Rule]]''' - displays HTML pages in a browser window.
*'''[[#Coupler Breakage HUD Rule|Coupler Breakage HUD Rule]]''' - adds a coupler stress and breakage warning to the HUD
*'''[[#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.


==='''Set Cleared Junctions Rule'''===
==='''Show/Hide Layer 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'''
Shows or hides a layer from Driver.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid2:131986:157661:1>'''
*'''<kuid2:401543:1170:1>'''


*'''DLS Rule''' by '''atilabarut'''
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


    '''''Add Junction''''' - click to select a junction from the session junction list
  '''''<visibility>''''' - select one of two options
    '''''Add All''''' - click to add ALL junctions in the session junction list
      '''Show''' - select to make the layer visible
    '''''Delete All''''' - click to remove ALL entered junctions from the rule
      '''Hide''' - select to make the layer invisible
      '''Junction Options:''' - for each selected junction:-
  '''''<click here to set>''''' - enter name of layer. Name is case sensitive.
          '''''<direction>''''' - click to select the junction direction
 
            '''Left'''
[[file:BugMini.PNG]] '''<font color="red"><u>Known Bugs:</u></font>'''
            '''Center'''
:Layers set to '''Hide''' when a game is saved will be '''Shown''' when the game is reloaded
            '''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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:Issues.PNG]] ''''<u>Known Issues:</u>'''
*'''[[#Junction Derailment Prevention Rule|Junction Derailment Prevention Rule]]''' - sets opposing junctions ahead of a train to prevent derailments
:Rule will NOT check to see if the named layer exists or not
*'''[[#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).


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Control Junctions in Sessions]]'''
*'''[[How to Use Layers#Layers in Driver Mode|How to Use Layers: Layers in Driver Mode]]


==='''Set Helper Icon Size Rule'''===
==='''Show/Hide Minimap Rule'''===


Sets the size of helper icons such as the junction lever arrows.
Shows the minimap window in Driver.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:791>'''
*'''<kuid:-25:794>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 2,671: Line 2,734:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


  '''Junction Arrows Size ''<Click>''''' - to set scale ratio smaller than default, default is 100%
    '''''<Show/Hide>'' the driver Minimap Window''' - click to switch between '''Show''' and '''Hide'''.


==='''Set HTML Pages Rule'''===
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Minimap Options Rule|Minimap Options Rule]]''' - sets the display options for the minimap.


Instructs the Display HTML Pages rule to perform specific operations. This rule has been superseded by the '''Message Popup Rule'''
==='''Show/Hide On-screen Help Rule'''===


'''<u>Rule Properties:</u>'''
Shows or hides On-screen help in Driver.


*'''<kuid:-25:792>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''Legacy Rule''' (replaced by '''Message Popup Rule''')
*'''<kuid:401543:2020>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 2,687: Line 2,751:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''Operations to preform on the display HTML pages sequence browser'''
     '''On screen help (junction overlays, etc)''' - select one of three option buttons:-
    Select one of six option buttons:-
       '''( ) Show
       '''( ) to instruct the sequence browser to ''<select>''''' - to choose page operations
      '''( ) Hide
       '''( ) to instruct the sequence browser to open the page ''<select>''''' - enter the HTML page name
       '''( ) Leave Unchanged
       '''( ) to set browser parameters ''<select>''''' - choose one of:-
    '''On Screen Vehicle Names:''' - - select one of three option buttons:-
          '''to Enable/Disable closing of the browser window by the user'''
       '''( ) Show
          '''to Enable/Disable scrolling on the sequence browser window'''
      '''( ) Hide
          '''to Show/Hide the sequence browser window'''
      '''( ) Leave Unchanged
      '''( ) Set the following flag for the page named ''<select>''''' - enter the HTML page name
 
          '''[x] Hide/Close window on 'done' action'''
==='''Timed Limited Display HTML Rule (SP2 and later)'''===
          '''[x] Window has no 'done' button'''
 
          '''[x] Disable scrolling(not implemented yet)'''
Displays an HTML browser window for a limited time.
          '''[x] Spare setting 1'''
 
          '''[x] Spare setting 2'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
          '''[x] Spare setting 3'''
 
          '''[x] Spare setting 4'''
*'''<kuid2:61392:2005:32>'''
          '''[x] Spare setting 5'''
 
      '''( ) Use the page ''<select>''''' (enter HTML page name) '''from the HTML asset ''<select>''''' (select HTML asset)
*'''DLS Rule''' by '''pguy'''
      '''( ) Use the string table entry ''<select>''''' (enter Index) '''from the HTML asset ''<select>''''' (select HTML asset)
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
  '''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.
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
:Seconds are Trainz clock time, not real time.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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.
*'''[[#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.
*'''[[#Set HTML Page Rule|Set HTML Page Rule]]''' - sets parameters for the '''Display HTML Pages Rule'''


==='''Set Junctions Rule'''===
==='''Wait on Waybill Screen/Main Screen Rule'''===


Sets selected junctions to specific states (direction, locked/unlocked, allow/prevent AI control). '''''Warning:'' not compatible with Interlocking Tower Assets'''
Executes child rules when the Waybill window is opened or closed


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:1065>'''
*'''<kuid:-25:957>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''''Add Junction''''' - click to select a junction from the session junction list
     '''[x] Trigger rule once''' - check to trigger the rule once only
    '''''Add All''''' - click to add ALL junctions in the session junction list
     '''Wait for the Waybill window to be ''<opened/closed>''''' - select either '''opened''' or '''closed'''.
     '''''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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[#Junction Derailment Prevention Rule|Junction Derailment Prevention Rule]]''' - sets opposing junctions ahead of a train to prevent derailments
*'''[[How to Use Parent and Child Rules]]'''
*'''[[#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:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
'''[[#top|Back to Top]]'''
*'''[[How to Control Junctions in Sessions]]'''
----


==='''Set Signal Extended Rule'''===
<table width="100%" bgcolor=#ffffaa>
<tr>
<td>
=='''Miscellaneous Rules'''==
</td>
</tr>
</table>


Sets the state of a selected signal '''''Warning:'' not compatible with Interlocking Tower Assets'''
Some of these rules have no user accessible functions but may be used by other rules. Others do not fit in any other category.


'''<u>Rule Properties:</u>'''
==='''ConsistDataHandler Rule'''===


*'''<kuid2:47662:20002:4>'''
Was used by the '''QuickDrive Rule''' to place consists onto a route. Now obsolete.


*'''Built-in Rule'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
*'''<kuid:401543:1180>'''


    '''''<Select signal>'' to ''<signal state>''''' - click to select a signal from the session list and click to select a state from the list -
*'''Obsolete Rule''' (function is now built into '''TANE''')
      '''Automatic'''
 
      '''Stop'''
*'''Base Rule'''
      '''Stop then Continue'''
      '''Caution Left'''
      '''Caution Right'''
      '''Caution'''
      '''Advance Caution Left'''
      '''Advance Caution Right'''
      '''Advance Caution'''
      '''Proceed Left'''
      '''Proceed Right'''
      '''Proceed'''
      '''Slow'''
      '''Medium'''


[[file:Notes.PNG]] '''<u>Notes:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
:The signal must support the state selected otherwise there will be no change in the signal


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
    '''None'''
*'''[[#Trigger Multiple Signals Rule|Trigger Multiple Signals Rule]]''' - sets selected signals to DANGER (STOP) when selected triggers are activated
----
<table bgcolor=#ccffff>
<tr>
<td>
'''[[#top|Back to Top]]''' | '''[[#A, B|A, B]]''' | '''[[#C|C]]''' | '''[[#D|D]]''' | '''[[#E, F, G|E, F, G]]''' | '''[[#H, I, J|H, I, J]]''' | '''[[#K, L, M|K, L, M]]''' | '''[[#N, O|N, O]]''' | '''[[#P, Q|P, Q]]''' | '''[[#R|R]]''' | '''[[#S-Se|S-Se]]''' | '''[[#Sh-Sz|Sh-Sz]]''' | '''[[#T|T]]''' | '''[[#U, V|U, V]]''' | '''[[#W, X, Y, Z|W, X, Y, Z]]'''
</td>
</tr>
</table>
<table width="100%" bgcolor=#ccffff>
<tr>
<td>
=='''Sh-Sz'''==
</td>
</tr>
</table>


==='''Show/Hide HUD Panel Rule'''===
==='''Custom Script Rule'''===


Shows or hides a HUD panel.
No description


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:1047>'''
*'''<kuid:447264:1526>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 2,811: Line 2,851:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
==='''Generic TreeNode Debug Window Rule'''===
*'''[[#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 (SP2 and later)|Quick CustomHud Manager Rule (SP2 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


==='''Show/Hide Layer Rule'''===
No description.


Shows or hides a layer from Driver.
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid:30501:1042>'''


*'''<kuid2:401543:1170:1>'''
*'''Base Rule'''
 
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


  '''''<visibility>''''' - select one of two options
    '''None'''
      '''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]] '''<font color="red"><u>Known Bugs:</u></font>'''
==='''Session Debug Rule'''===
:Layers set to '''Hide''' when a game is saved will be '''Shown''' when the game is reloaded


[[file:Issues.PNG]] '''<u>Known Issues:</u>'''
Executes the first child if ''Debug'' mode is selected. Otherwise executes the second child rule.
:Rule will NOT check to see if the named layer exists or not


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
*'''[[How to Use Layers#Layers in Driver Mode|How to Use Layers: Layers in Driver Mode]]


==='''Show/Hide Minimap Rule'''===
*'''<kuid:30501:100180>'''


Shows the minimap window in Driver.
*'''Built-in Rule'''


'''<u>Rule Properties:</u>'''
*'''Parent Rule'''  
 
*'''<kuid:-25:794>'''
 
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:Notes.PNG]] '''<u>Notes:</u>'''  
*'''[[#Minimap Options Rule|Minimap Options Rule]]''' - sets the display options for the minimap.
: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.


==='''Show/Hide On-screen Help Rule'''===
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''


Shows or hides On-screen help in Driver.
'''[[#top|Back to Top]]'''
----
<table width="100%" bgcolor=#ffffaa>
<tr>
<td>


'''<u>Rule Properties:</u>'''
=='''Navigation Rules'''==
</td>
</tr>
</table>


*'''<kuid:401543:2020>'''
==='''Directional Trigger Check Rule'''===


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


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


    '''On screen help (junction overlays, etc)''' - select one of three option buttons:-
*'''<kuid2:532391:100003:1>'''
      '''( ) Show
      '''( ) Hide
      '''( ) Leave Unchanged
    '''On Screen Vehicle Names:''' -  - select one of three option buttons:-
      '''( ) Show
      '''( ) Hide
      '''( ) Leave Unchanged


==='''Signal Passed At Danger Check Rule'''===
*'''DLS Rule''' by '''bobhahn'''
 
Executes child rules if a signal or stop mark is ''Passed at Danger (STOP)''.
 
'''<u>Rule Properties:</u>'''
 
*'''<kuid2:60850:89007:2>'''
 
*'''Built-in Rule'''


*'''Parent Rule'''
*'''Parent Rule'''
Line 2,899: Line 2,914:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''[x] Trigger only once'''
     '''[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
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
#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]] '''<u>Related Rules:</u>'''
*'''[[#Trackside Check Rule|Trackside Check Rule]]''' - executes child rules when activated by a train. Provides different options to the '''Trigger Check Rule'''
*'''[[#Trigger Check Rule|Trigger Check Rule]]''' - executes child rules when a set train enters a set trigger (non-directional)


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Control Signals in Sessions#Application 2: Halt Before Clear|How to Control Signals in Sessions: Halt Before Clear]]'''
*'''[[How to Use Message Popup Rule (Applications)]]'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[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]]
*'''[[How to Use Track Triggers]]'''
*'''[[How to Use Variables in Sessions (Examples)]]'''


==='''Simultaneous List Rule'''===
==='''Navigation Display Rule'''===


Executes child rules simultaneously once this rule starts
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.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:1048>'''
*'''<kuid2:401543:1161:1>'''


*'''Built-in Rule'''
*'''Base Rule'''
 
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''Rule completes when ...''' - click to chose one of the following:-
     '''Unique set ID: ''<click here to set>''''' - enter a unique name for the navigation set. Name must be in lowercase and have no spaces.
      '''''one of the child rules has completed'''''
    '''Train (optional): ''<click here to set>''''' - select a rolling stock asset from the session list shown.
       '''''all child rules have reached a completed state'''''
    Select one of three option buttons:-
      '''''all child rules have reached a "was completed" state'''''
    '''( ) 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.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Ordered List Rule|Ordered List Rule]]''' - executes child rules in order
*'''[[#Navigation Set Hide/Show Rule|Navigation Set Hide/Show Rule]]''' - makes a navigation set visible/invisible.
*'''[[#Progressive List Rule|Progressive List Rule]]''' - executes the first child rule on the first run, the second child on the second run, etc
*'''[[#Navigation Set Check Rule|Navigation Set Check Rule]]''' - executes child rules if a navigation set has completed or is incomplete.
*'''[[#Random List Rule|Random List Rule]]''' - executes ONE randomly selected child rule
*'''[[#Navigation Set Clear Rule|Navigation Set Clear Rule]]''' - completes (terminates) a navigation set.
*'''[[#Reset List Rule|Reset List Rule]]''' - executes all child rules continuously
*'''[[#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:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[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]]'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Navigation Point Rules (Applications)]]'''
*'''[[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]]
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Simultaneous_List</span>'''


==='''Speeding Check Rule'''===
==='''Navigation Point Complete Rule'''===


Executes child rules if player controlled trains are over the local speed limit or over a set (custom) speed
Manually completes a navigation point in a set


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid2:60850:89004:3>'''
*'''<kuid:401543:1167>'''


*'''Built-in Rule'''
*'''Base Rule'''
 
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     Select one of two options to set a speed limit to be observed
     '''Mark navigation point ''<click here to set>''''' - enter the navigation point number to be completed
      '''( ) Watch for trains travelling above the posted speed limit'''
    '''complete in set ''<click here to set>''''' - enter the unique name for the navigation set created using the '''Navigation Display Rule'''.
          '''''<speed value>''''' - click to enter a new overspeed tolerance value
        Name must be in lowercase and have no spaces.
          '''''<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'''


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:Issues.PNG]] ''''<u>Known Issues:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
:The rule will '''NOT''' check to see if the named navigation set and point exists or not.


==='''Startup Options Rule'''===
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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


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'''.
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Navigation Point Rules]]'''
*'''[[How to Use Navigation Point Rules (Applications)]]'''
 
==='''Navigation Set Check Rule'''===
 
Executes child rules if a navigation set created with the '''Navigation Display Rule''' is complete (or incomplete).


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-16:10212>'''
*'''<kuid:401543:1165>'''


*'''Base Rule'''
*'''Base Rule'''
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''Current control method is ''<select>''''' - select one from:-
     '''Checks if navigation point set ''<name>'':''' - enter the unique name for the navigation set created using the '''Navigation Display Rule'''.
      '''''Easy Mode''''' - DCC (standard keyboard and mouse) control
        Name must be in lowercase and have no spaces.
      '''''Ask User''''' - let the user decide
     '''is ''<Complete/Incomplete>''''' - click to select one
      '''''Realistic Mode''''' - Cab controls (on screen levers, throttles, buttons, etc)
 
     '''Set weather to ''<select mode>'' with ''<select frequency>'' changeability''' - select
[[file:Issues.PNG]] ''''<u>Known Issues:</u>'''
      '''Weather mode:''' - select one of:-
:The rule will '''NOT''' check to see if the named navigation set exists or not.
          '''''Clear'''''
 
          '''''Cloudy'''''  
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
          '''''Drizzle'''''
*'''[[#Navigation Display Rule|Navigation Display Rule]]''' - creates a set of navigation points.
          '''''Rain'''''
*'''[[#Navigation Set Hide/Show Rule|Navigation Set Hide/Show Rule]]''' - makes a navigation set visible/invisible.
          '''''Stormy'''''
*'''[[#Navigation Set Clear Rule|Navigation Set Clear Rule]]''' - completes (terminates) a navigation set.
          '''''Light Snow'''''
*'''[[#Navigation Point Complete Rule|Navigation Point Complete Rule]]''' - manually completes (terminates) a specific navigation point in a set.
          '''''Medium Snow'''''
*'''[[#Wait on Navigation Point Rule|Wait on Navigation Point Rule]]''' - executes child rules when a navigation point has been completed
          '''''Heavy Snow'''''
 
      '''Changeability:''' - select one of:-
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
          '''''Off''''' - the weather will not change from the mode selected above
*'''[[How to Use Navigation Point Rules]]'''
          '''''Periodic''''' - slow gradual changes to the weather
*'''[[How to Use Navigation Point Rules (Applications)]]'''
          '''''Extreme''''' - rapid and extreme changes to the weather
*'''[[How to Use Parent and Child Rules]]'''
    '''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


[[file:Notes.PNG]] '''<u>Notes:</u>'''
==='''Navigation Set Clear Rule'''===
:Times are Trainz clock time, not real time


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
Clears a navigation set removing any uncompleted navigation points
*'''[[#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


==='''Station Visited Check Rule'''===
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


Executes child rules if specific trains call at set stations or industries
*'''<kuid:401543:1164>'''


'''<u>Rule Properties:</u>'''
*'''Base Rule'''


*'''<kuid2:60850:89005:3>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


*'''Built-in 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.


*'''Parent Rule'''
[[file:Issues.PNG]] ''''<u>Known Issues:</u>'''
:The rule will '''NOT''' check to see if the named navigation set exists or not.


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
 
*'''[[#Navigation Display Rule|Navigation Display Rule]]''' - creates a set of navigation points.
    '''Trigger: ''<select>''''' - click to select one of the following
*'''[[#Navigation Set Hide/Show Rule|Navigation Set Hide/Show Rule]]''' - makes a navigation set visible/invisible.
      '''''Never''''' - stopping at the selected industries will never trigger the rule.
*'''[[#Navigation Set Check Rule|Navigation Set Check Rule]]''' - executes child rules if a navigation set has completed or is incomplete.
      '''''Once only''''' - the rule is triggered on the first visit only to any one of the selected industries
*'''[[#Navigation Point Complete Rule|Navigation Point Complete Rule]]''' - manually completes (terminates) a specific navigation point in a set.
      '''''Once per industry''''' - the rule is triggered on the first visit to each industry with each individual product
*'''[[#Wait on Navigation Point Rule|Wait on Navigation Point Rule]]''' - executes child rules when a navigation point has been completed
      '''''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


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Navigation Point Rules]]'''
*'''[[How to Use Navigation Point Rules (Applications)]]'''


----
==='''Navigation Set Hide/Show Rule'''===
<table bgcolor=#ccffff>
<tr>
<td>
'''[[#top|Back to Top]]''' | '''[[#A, B|A, B]]''' | '''[[#C|C]]''' | '''[[#D|D]]''' | '''[[#E, F, G|E, F, G]]''' | '''[[#H, I, J|H, I, J]]''' | '''[[#K, L, M|K, L, M]]''' | '''[[#N, O|N, O]]''' | '''[[#P, Q|P, Q]]''' | '''[[#R|R]]''' | '''[[#S-Se|S-Se]]''' | '''[[#Sh-Sz|Sh-Sz]]''' | '''[[#T|T]]''' | '''[[#U, V|U, V]]''' | '''[[#W, X, Y, Z|W, X, Y, Z]]'''
</td>
</tr>
</table>
<table width="100%" bgcolor=#ccffff>
<tr>
<td>
=='''T'''==
</td>
</tr>
</table>
==='''Time and Rate Rule'''===


Sets the session start time and the rate at which time passes.
Shows and hides navigation sets. You can have multiple sets visible and hidden at the same time.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:889>'''
*'''<kuid:401543:1163>'''


*'''Built-in Rule'''
*'''Base rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''Set time to ''<hours:minutes>''''' - enter the clock starting time as hours ('''0-23''') and minutes ('''0-59''')
     '''''<visibility>''''' - click to select one
     '''with a rate of ''<1x>''''' - select a speed at which time will pass from '''1x''' (normal) to '''1440x''' (extremely fast)
      '''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.
 
[[file:Issues.PNG]] ''''<u>Known Issues:</u>'''
:The rule will '''NOT''' check to see if the named navigation set exists or not.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Startup Options Rule|Startup Options Rule]]''' - sets the startup options for a session including time and rate
*'''[[#Navigation Display Rule|Navigation Display Rule]]''' - creates a set of navigation points.
*'''[[#Timecheck Rule|Timecheck Rule]]''' - executes child rules at a set time.
*'''[[#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


==='''Timecheck Rule'''===
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Navigation Point Rules]]'''
*'''[[How to Use Navigation Point Rules (Applications)]]'''


Executes child rules at a set time.
==='''Schedule Rule'''===


'''<u>Rule Properties:</u>'''
Allows a schedule of timed events to be applied to a train


*'''<kuid2:122381:10008:3>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''Built-in Rule'''
*'''<kuid:-3:10185>'''


*'''Parent Rule'''
*'''Base Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''''<hh:mm:ss>''''' - enter execution time as hours (0-23), minutes (0-59) and seconds (0-59).
     '''Insert track mark ''<select>''''' - select a track mark from the Session List
     '''[x] Execution time is on the day after the start time''' - when checked delays execution until the following day.
    '''Arrival and Departure Time ''<Select>''''' - set time
 
      '''''hh:mm:ss''''' - in hours/minutes/seconds
[[file:Issues.PNG]] '''<u>Known Issues:</u>'''
     '''Current Train ''<select>''''' - select from session list
:Do not use this rule as a child of a repeating rule such as the '''Simultaneous List Rule''' or the '''Ordered List Rule'''.
    '''Insert destination ''<select>''''' - select from session list


[[file:Notes.PNG]] '''<u>Notes:</u>'''
[[file:Notes.PNG]] '''<u>Notes:</u>'''
:Times and days are Trainz clock times not real time.
:Times are Trainz clock times, not real time


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Time and Rate Rule|Time and Rate Rule]]''' - sets the session start time and the rate at which time passes.
*'''[[#Driver Command Check Rule|Driver Command Check Rule]]''' - executes child rules if the driver commands match a set list
*'''[[#Wait Rule|Wait Rule]]''' - executes child rules after waiting for a set number of seconds.
*'''[[#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
 
[[file:WWWLinks.PNG]] ''''<u>Other Links:</u>'''
*'''<span class="plainlinks">http://www.auran.com/games/gamefiles/trainz/tutorial1.html</span>'''


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
==='''Trackside Check Rule'''===
*'''[[How to Use Parent and Child Rules]]'''


==='''Timed Limited Display HTML Rule (SP2 and later)'''===
Executes child rules when a set train enters a set trigger. Similar to the '''Trigger Check Rule''' but provides different options.


Displays an HTML browser window for a limited time.
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid2:46162:100207:1>'''


*'''<kuid2:61392:2005:32>'''
*'''DLS Rule''' by '''Josefpav'''


*'''DLS Rule''' by '''pguy'''
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


  '''HTML Asset Name : ''<[Click to select HTML asset]>''''' - click to select an HTML asset from those installed
     '''Applies to:''' - select one of three option buttons:-
  '''Page filename : ''<value>''''' - click to enter the filename of the HTML page in the selected HTML asset. The ''.html'' filename extension is optional.
       '''( ) Junction'''
  '''Play duration (SessVar or duration in seconds) : ''<value>''''' - enter a SessVar name or the number of seconds.
       '''( ) Trigger'''
  '''Browser left position (SessVar or position) : ''<value>''''' - enter a SessVar name or the number of pixels from the left screen edge.
       '''( ) Trackmark'''
  '''Browser top position (SessVar or position) : ''<value>''''' - enter a SessVar name or the number of pixels from the top screen edge.
     '''Trackside object name: ''<specify>''''' - select object name from session list
  '''Browser width (SessVar or position) : ''<value>''''' - enter a SessVar name or the width in pixels.
     '''Wait for train to:''' - select one of three option buttons:-
  '''Browser height (SessVar or position) : ''<value>''''' - enter a SessVar name or the browser height.
       '''( ) Enter'''
  '''[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.
       '''( ) Stop at'''
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
:Seconds are Trainz clock time, not real time.
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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.
*'''[[#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]]'''
 
==='''Trackside Check Rule'''===
 
Executes child rules when a set train enters a set trigger. Similar to the '''Trigger Check Rule''' but provides different options.
 
'''<u>Rule Properties:</u>'''
 
*'''<kuid2:46162:100207:1>'''
 
*'''DLS Rule''' by '''Josefpav'''
 
*'''Parent Rule'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
     '''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'''
       '''( ) Leave'''
     '''[x] Auto reset this rule''' - check to execute the rule continuously
     '''[x] Auto reset this rule''' - check to execute the rule continuously
Line 3,178: Line 3,181:


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Directional Trigger Check Rule|Directional Trigger Check Rule]]''' - executes child rules when activated by a train moving in a set direction.
*'''[[#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|Trigger Check Rule]]''' - executes child rules when activated by a train


Line 3,188: Line 3,191:
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'''.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:1071>'''
*'''<kuid:-25:1071>'''
Line 3,221: Line 3,224:


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Directional Trigger Check Rule|Directional Trigger Check Rule]]''' - executes child rules when activated by a train moving in a set direction.
*'''[[#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 activated by a train. Provides different options to the '''Trigger Check Rule'''
*'''[[#Trackside Check Rule|Trackside Check Rule]]''' - executes child rules when activated by a train. Provides different options to the '''Trigger Check Rule'''


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Message Popup Rule (Applications)]]
*'''[[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 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 Parent and Child Rules]]'''
*'''[[How to Use Parent and Child Rules]]'''
Line 3,231: Line 3,234:
*'''[[How to Use Variables in Sessions (Examples)]]
*'''[[How to Use Variables in Sessions (Examples)]]


==='''Trigger Multiple Signals Rule'''===
==='''Wait on Navigation Point Rule'''===


Sets selected signals to DANGER (STOP) when selected triggers are activated. Signals will be at AUTOMATIC when the triggers are not activated.
Executes child rules when a specific navigation point is completed


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid2:116387:26:1>'''
*'''<kuid:401543:1168>'''


*'''DLS Rule''' by '''maggs'''
*'''Base Rule'''
 
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''<add signal>''' - select a signal from the Session List. More than one signal can be added.
     '''navigation point ''<click here to set>''''' - enter the number of the navigation point to be completed
      '''<delete>''' - remove a signal from the rule.
    '''in set ''<click here to set>''''' - enter the unique name for the navigation set created using the '''Navigation Display Rule'''.
    '''<add trigger>''' - select a trigger from the Session List. More than one trigger can be added.
      Name must be in lowercase and have no spaces.
      '''<delete>''' - remove a trigger from the rule.
 
[[file:Issues.PNG]] ''''<u>Known Issues:</u>'''
:The rule will '''NOT''' check to see if the named navigation set and point exists or not.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Set Signal Extended Rule|Set Signal Extended Rule]]''' - sets a selected signal to a specific signal state
*'''[[#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.
<table bgcolor=#ccffff>
*'''[[#Navigation Set Check Rule|Navigation Set Check Rule]]''' - executes child rules if a navigation set is complete or incomplete.
<tr>
*'''[[#Navigation Set Clear Rule|Navigation Set Clear Rule]]''' - completes (terminates) a navigation set.
<td>
*'''[[#Navigation Point Complete Rule|Navigation Point Complete Rule]]''' - manually completes (terminates) a specific navigation point in a set.
'''[[#top|Back to Top]]''' | '''[[#A, B|A, B]]''' | '''[[#C|C]]''' | '''[[#D|D]]''' | '''[[#E, F, G|E, F, G]]''' | '''[[#H, I, J|H, I, J]]''' | '''[[#K, L, M|K, L, M]]''' | '''[[#N, O|N, O]]''' | '''[[#P, Q|P, Q]]''' | '''[[#R|R]]''' | '''[[#S-Se|S-Se]]''' | '''[[#Sh-Sz|Sh-Sz]]''' | '''[[#T|T]]''' | '''[[#U, V|U, V]]''' | '''[[#W, X, Y, Z|W, X, Y, Z]]'''
 
</td>
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
</tr>
*'''[[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]]
</table>
*'''[[How to Use Navigation Point Rules]]'''
<table width="100%" bgcolor=#ccffff>
*'''[[How to Use Navigation Point Rules (Applications)]]'''
<tr>
*'''[[How to Use Parent and Child Rules]]'''
<td>
 
=='''U, V'''==
==='''Wait on Train Stop/Start Rule'''===
</td>
</tr>
</table>
==='''Variable Check Rule'''===


Executes child rules when a specific variable matches set conditions
Executes child rules when a train stops or starts moving


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:1049>'''
*'''<kuid:-25:1069>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 3,280: Line 3,282:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''''<variable-name>''''' - enter a variable-name. Variable name is case sensitive.
     '''[x] Trigger rule once'''
    Mathematical relationship, select one of:-
    '''Wait for a train that matches the following criteria to ''<select>''''' - select one of:-
       '''''is less than''''' - enter a '''''<value>''''' to test against
       '''''start moving'''''
       '''''is less than or equal to''''' - enter a '''''<value>''''' to test against
      '''''stop moving'''''
       '''''is equal to''''' - enter a '''''<value>''''' to test against
    Select one of two option buttons:-
      '''''is greater than or equal to''''' - enter a '''''<value>''''' to test against
       '''( ) click to accept all trains'''
      '''''is greater than''''' - enter a '''''<value>''''' to test against
       '''( ) click to accept trains matching specific criteria'''
      '''''is not equal to''''' - enter a '''''<value>''''' to test against
          Selecting the second option will produce the following selection controls:-
      '''''is between x and y''''' - enter a minimum '''''<x-value>''''' and a maximum '''''<y-value>'''''
          '''Specific vehicle''' - identify the specific vehicle or set of specific vehicles that will trigger the rule
    Evaluation type. Select one from:-
            '''''+''''' - click to add a ''specific'' vehicle from the session list
      '''''<This condition will be evaluated only once ...>''''' - any changes to the variable that occur after
            '''''x''''' - click to remove the ''specific'' vehicle from the rule
              it has been checked will not change the result of this rule
          '''Vehicle types''''' - identify the ''type'' of vehicle or a set of vehicle ''types'' that will trigger the rule
      '''''<This condition will be evaluated once every second>''''' - the rule will be rerun and the variable
            '''''+''''' - click to add a ''type'' of vehicle from the session list
              rechecked every second
            '''''x''''' - click to remove the ''type'' of vehicle from the rule
 
          '''Drivers''''' - identify the ''drivers'' that will trigger the rule
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
            '''''+''''' - click to add a ''driver'' from the session list
*'''[[#Quick Session Variables Rule|Quick Session Variables Rule]]''' - allows the editing of session variables.
            '''''x''''' - click to remove a ''driver'' from the rule
*'''[[#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 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.


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[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 Parent and Child Rules]]'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Variables in Sessions (Examples)]]


==='''Variable Modify Continuous Rule'''===
'''[[#top|Back to Top]]'''
----
 
<table width="100%" bgcolor=#ffffaa>
<tr>
<td>
=='''Resources Rules'''==
</td>
</tr>
</table>
 
==='''DisplayIndustryStatus Rule (color modified)'''===


Adds, subtracts or sets a value to a specified variable every second.
Displays a summary of industry product levels when the "k" key is pressed.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:1051>'''
*'''<kuid:622415:100001>'''


*'''Built-in Rule'''
*'''DLS Rule''' by '''lockheed02''' and '''marzipan'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


  '''''<Add/Subtract/Change variable to>''''' - select one.
    '''None'''
      '''''<value>''''' - enter value to add, subtract or apply to ''<variable-name>''
 
      '''''<variable-name>''''' - enter variable-name. Variable-name is case sensitive.
[[file:Notes.PNG]] '''<u>Notes:</u>'''
:Pressing the '''k''' key in Driver mode will bring up a small window with a single link '''''Display Industry Status''''' (there may also be other links). Clicking this link will show the product levels of all industries.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Quick Session Variables Rule|Quick Session Variables Rule]]''' - allows the editing of session variables.
*'''[[#ExTrainz Manager Rule - TANE SP2|ExTrainz Manager Rule - TANE SP2]]''' - displays information on consists, industries and products in Driver and Surveyor.
*'''[[#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 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 Modify Rule'''===
==='''ExTrainz Manager Rule - TANE SP2'''===


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.
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.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:1050>'''
*'''<kuid:160293:10029>'''


*'''Built-in Rule'''
*'''DLS Rule''' by '''trev999'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''Change ''<Add to variable/Subtract from variable/Change variable>''''' - click to select one from:-
     '''Diagnostic mode is ''<On/Off>''''' - click to select ''On'' or ''Off''. When set ''On'' diagnostic messages will be added to the Trainz Log file.
      '''Add to variable'''
    '''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.
          '''Add ''<value>''''' to '''variable ''<variable-name>''''' - enter value to add to variable, enter variable-name. Variable-name is case sensitive.
    '''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.
          '''''<Do not undo the alteration if the rule is stopped/Undo the alteration if the rule is stopped>''''' - click to select one.
    '''Search only rolling stock already in session ''<Yes/No>''''' - click to select ''Yes'' or ''No''. When set to ''Yes'' only those rolling stock assets
      '''Subtract from variable'''
      installed in the session can be searched.
          '''Subtract ''<value>''''' from '''variable ''<variable-name>''''' - enter value to subtract from variable, enter variable-name.
    '''Graphic colours: ''<When Red, the industry does not require service/When Green, the industry does not require service>''''' - click to switch
            Variable-name is case sensitive.
      between the two colour options.
          '''''<Do not undo the alteration if the rule is stopped/Undo the alteration if the rule is stopped>''''' - click to select one.
    '''Industry page size: ''<value>''''' - enter the number of industries to be displayed in the Industry List window (maximum 250).
      '''Change variable'''
    '''The following industries are excluded: ''<Add an industry to be excluded>''''' - name can be complete (e.g. "Coal Mine 2")
          '''Change variable ''<variable-name>'' to ''<value>''''' - enter variable-name, enter new value.  
      which will exclude that specific industry from the management list, or partial (e.g. "Coal") which will exclude all
            Variable-name is case sensitive. This change cannot be undone if the rule is stopped.
      industries with the word "Coal" in their names. Entries are not case sensitive.
    '''[x] (optional) Set the minimum value''' of '''''<variable-name>''''' to '''''<value>''''' - enter variable-name
      Once industries have been excluded, additional commands will appear for each excluded industry:-
      (this will already be set by the change option) and a value. Variable-name is case sensitive.
      '''''<delete> <industry name begins with/class name begins with> <name>''''' - click ''delete'' to remove this entry.
    '''[x] (optional) Set the maximum value''' of '''''<variable-name>''''' to '''''<value>''''' - enter variable-name
          - click ''industry name begins with/class name begins with'' to select between the two (see ''notes'' below).
      (this will already be set by the change option) and a value. Variable-name is case sensitive.
          - click ''name'' to edit the name.
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
#Rolling stock installed in '''TANE''' or 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.
 
[[file:Issues.PNG]] ''''<u>Known Issues:</u>'''
:This rule is NOT compatible with all industries.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Quick Session Variables Rule|Quick Session Variables Rule]]''' - allows the editing of session variables.
*'''[[#DisplayIndustryStatus Rule (color modified)|DisplayIndustryStatus Rule (color modified)]]''' - displays information on industry product levels.
*'''[[#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 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.


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
==='''Hide Product Overlays Rule'''===
*'''[[How to Use Variables in Sessions (Examples)]]
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Variable_Modify_Rule</span>'''


==='''Variable Random Rule'''===
Hides the commodity or product bar graphs that appear on active industries


Assigns a random integer value to a variable.
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid:400048:100970>'''


*'''<kuid:400260:100606>'''
*'''DLS Rule''' by '''callavsg'''
 
*'''DLS Rule''' by '''tram_'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


    '''Random variable ''<name>'' in ''minimum'' to ''maximum'' interval''' - enter name of variable. Variable-name is case sensitive.
  '''None'''
    '''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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
==='''Multiple Resource Check Rule'''===
*'''[[#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.
*'''[[#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 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.


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
Executes child rules if industries or vehicles reach set commodity levels. This rule replaces the older '''Resource Check Rule'''  
*'''[[How to Use Variables in Sessions (Examples)]]


==='''Variable Show Rule'''===
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


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:656>'''


'''<u>Rule Properties:</u>'''
*'''Built-in Rule'''


*'''<kuid:-25:971>'''
*'''Parent Rule'''
 
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


  '''[x] Add'''
    '''<Product Level>''' - click to select a product test from two choices:-
      '''''<variable-name>''''' - enter variable-name to add to HUD. Variable-name is case sensitive.
      '''''Reach/Exceed''''' - sets an upper limit for the resources being monitored.
      '''''<label>''''' - (optional) enter a short label to be displayed on the HUD in front of the variable value.
          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.
  '''[x] Remove'''
          The initial level in the object must be below the set upper limit.
      '''''<variable-name>''''' - enter variable-name to remove from HUD. Variable-name is case sensitive.
      '''''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
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
: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]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
*'''[[#Resource Check Rule|Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
*'''[[#Quick Session Variables Rule|Quick Session Variables Rule]]''' - allows the editing of session variables.
*'''[[#Resource Verify Rule (fixed)|Resource Verify Rule (fixed)]]''' - executes child rules when a set resource (commodity) level is reached
*'''[[#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 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.


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Variables in Sessions (Examples)]]
*'''[[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 Parent and Child Rules]]'''
 
==='''Resource Check Rule'''===


==='''Vehicle Physics 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'''


Overrides the default vehicle physics properties for all vehicles or for those matching set criteria
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid:-25:1067>'''


*'''<kuid:-25:1052>'''
*'''Legacy Rule''' (replaced by '''Multiple Resource Check Rule''')


*'''Built-in Rule'''
*'''Built-in Rule'''
*'''Parent Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
 
     Select one of two option buttons:-
     Select one of two option buttons:-
       '''( ) click to accept all trains'''
       '''( ) Watch industry queue'''
      '''( ) click to accept trains matching specific criteria'''
           '''Target Object ''<select>''''' - select an industry from the session list
          Selecting the second option will produce the following selection controls:-
          '''Queue ''<select>''''' - select a product queue from the selected industry
           '''Specific vehicle''' - identify the specific vehicle or set of specific vehicles that will trigger the rule
           '''Product ''<select>''''' - select a product from the selected queue
            '''''+''''' - click to add a ''specific'' vehicle from the session list
          '''Amount ''<value>''''' - enter a quantity
            '''''x''''' - click to remove the ''specific'' vehicle from the rule
           Select one of two option buttons:-
           '''Vehicle types''''' - identify the ''type'' of vehicle or a set of vehicle ''types'' that will trigger the rule
             '''( ) Complete when designated queue equals or exceeds required amount'''
            '''''+''''' - click to add a ''type'' of vehicle from the session list
             '''( ) Complete when designated queue falls below required amount'''
            '''''x''''' - click to remove the ''type'' of vehicle from the rule
       '''( ) Watch vehicle'''
           '''Drivers''''' - identify the ''drivers'' that will trigger the rule
          '''Target Object ''<select>''''' - select a rolling stock asset from the session list
             '''''+''''' - click to add a ''driver'' from the session list
          '''Queue ''<select>''''' - select a product queue from the selected rolling stock
             '''''x''''' - click to remove a ''driver'' from the rule
          '''Product ''<select>''''' - select a product from the selected queue
    '''Coupler Parameters:'''
          '''Amount ''<value>''''' - enter a quantity
      '''Couplers break at ''<value>'' kN expansion force''' - enter force value
          Select one of two option buttons:-
      '''Couplers break at when coupling above ''<value>'' kph''' - enter speed value
            '''( ) Complete when designated queue equals or exceeds required amount'''
       '''[x] Show coupler breakage in HUD''' - check to display breakage in on-screen HUD
            '''( ) Complete when designated queue falls below required amount'''
    '''Wheelslip Parameters:'''
 
      '''Maximum tractive effort adjusted by ''<value>'' %''' - enter adjustment as a %
[[file:Notes.PNG]] '''<u>Notes:</u>'''
      '''Traction is reduced to ''<value>'' % while wheelslipping''' - enter value as a %
: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''.
      '''Traction boost is ''<value>'' % while sanding''' - enter value as a %
 
    '''Sway Parameters:'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
      '''Cab sway level is set to ''<value>'' %''' - enter value as a %
*'''[[#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
<table bgcolor=#ccffff>
 
<tr>
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
<td>
*'''[[How to Use Parent and Child Rules]]'''
'''[[#top|Back to Top]]''' | '''[[#A, B|A, B]]''' | '''[[#C|C]]''' | '''[[#D|D]]''' | '''[[#E, F, G|E, F, G]]''' | '''[[#H, I, J|H, I, J]]''' | '''[[#K, L, M|K, L, M]]''' | '''[[#N, O|N, O]]''' | '''[[#P, Q|P, Q]]''' | '''[[#R|R]]''' | '''[[#S-Se|S-Se]]''' | '''[[#Sh-Sz|Sh-Sz]]''' | '''[[#T|T]]''' | '''[[#U, V|U, V]]''' | '''[[#W, X, Y, Z|W, X, Y, Z]]'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Resource_Check_Rule</span>'''
</td>
</tr>
</table>
<table width="100%" bgcolor=#ccffff>
<tr>
<td>
=='''W, X, Y, Z'''==
</td>
</tr>
</table>


==='''Wait for Camera View Mode Rule'''===
==='''Resource Verify Rule (fixed)'''===


Executes child rules when the camera view is changed to a selected view
Executes child rules if a selected industry or vehicle reaches a set commodity level. The rule resets when all child rules have completed.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:192>'''
*'''<kuid:160293:10060>'''


*'''Built-in Rule'''
*'''DLS Rule''' by '''trev999


*'''Parent Rule'''
*'''Parent Rule'''
Line 3,489: Line 3,489:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''[x] Trigger rule once''' - check to set
    Select one of two option buttons:-
    '''Wait for the camera to change to the ''<click to select>''''' - select one camera view mode from:-
     '''( ) Watch industry queue'''
       '''Cab View'''
      '''Target object ''<click to select>''''' - click to select an industry from the session list.
       '''External View'''
      '''Product ''<click to select>''''' - click to select an industry product.
      '''Tracking View'''
      '''Amount ''<value>''''' - enter a quantity for the selected product.
       '''Free Roaming'''
      Select one of two option buttons:-
    '''[x] Wait for the camera to target vehicle ''<click to select>''''' - if checked, select a vehicle from the Session list
       '''( ) 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'''
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
#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]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Cinematic Camera Rule|Cinematic Camera Rule]]''' - provides several different cinematic style cameras with animations
*'''[[#Multiple Resource Check Rule|Multiple Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
*'''[[#Focus Camera Rule|Focus Camera Rule]]''' - sets the initial camera view and starting vehicle for a session
*'''[[#Resource Check Rule|Resource Check Rule]]''' - executes child rules when set resource (commodity) levels are reached
*'''[[#Set Camera Rule|Set Camera Rule]]''' - sets the target object and properties of the camera


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Parent and Child Rules]]'''


==='''Wait for Click on HUD Icon Rule'''===
'''[[#top|Back to Top]]'''
----
 
<table width="100%" bgcolor=#ffffaa>
<tr>
<td>
=='''Session Sequence Rules'''==
</td>
</tr>
</table>
 
==='''Ordered List Rule'''===


Executes child rules when the user clicks on a selected HUD icon
Executes child rules in order once this rule starts


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:951> <kuid:-25:970>''' - two versions built-in with different kuids, both have the same properties
*'''<kuid:-25:171>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 3,519: Line 3,541:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''[x] Trigger Once'''
     Select one of two option buttons:-
    '''HUD Panel ''<Click>''''' - click choose from list:-
      '''( ) This process will repeat ''<value>'' time(s)''' - enter the number of times this rule is to be repeated
      '''Bottom Right Menu'''
      '''( ) This process will repeat forever'''
      '''Camera Controls'''
 
      '''DCC Controls'''
[[file:Issues.PNG]] ''''<u>Known Issues:</u>'''
    '''Icon ''<Click>''''' - click to choose from list. Selections depends on HUD Panel chosen
: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.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Display Custom HUD Rule|Display Custom HUD Rule]]''' - shows or hides the Custom Heads Up Display.
*'''[[#Progressive List Rule|Progressive List Rule]]''' - executes the first child rule on the first run, the second child on the second run, etc
*'''[[#Flash HUD Icon Rule|Flash HUD Icon Rule]]''' - flashes a HUD panel icon for a set duration.
*'''[[#Random List Rule|Random List Rule]]''' - executes ONE randomly selected child rule
*'''[[#mc Display Custom HUD V2 Rule (SP2 and later)|mc Display Custom HUD V2 Rule (SP2 and later)]]''' - shows or hides a graphical HUD.
*'''[[#Reset List Rule|Reset List Rule]]''' - executes all child rules continuously
*'''[[#Quick CustomHud Manager Rule (SP2 and later)|Quick CustomHud Manager Rule (SP2 and later)]]''' - creates custom HUDs that can be assigned to different drivers
*'''[[#Simultaneous List Rule|Simultaneous List Rule]]''' - executes all child rules simultaneously
*'''[[#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.


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Parent and Child Rules]]'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Ordered_List</span>'''


==='''Wait for Derailment Rule'''===
==='''Progressive List Rule'''===


Executes child rules when a derailment occurs
Executes the first child rule on the first run, the second child on the second run, the third child on the third run, etc.


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:1053>'''
*'''<kuid:-25:754>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 3,551: Line 3,573:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


    '''[x] Trigger derailment watch once''' - check to execute the rule once only
  '''After last child has been executed ...'''
  '''''<successive runs will do nothing/the first child is chosen again>''''' - click to select one


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Clean Up Derailed Trains Rule|Clean Up Derailed Trains Rule]]''' - cleans up derailed train cars after a set time delay
*'''[[#Ordered List Rule|Ordered List Rule]]''' - executes child rules in order
*'''[[#Replace Missing Vehicles Rule|Replace Missing Vehicles Rule]]''' - creates a replacement train after a derailment
*'''[[#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]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Parent and Child Rules]]'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Progressive_List</span>'''


==='''Wait for Driver On/Off Train Rule'''===
==='''Random List Rule'''===


Executes child rules when a driver gets on or off a train
Executes ONE randomly selected child rule once only. The rule will not repeat to randomly select another child rule


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:-25:953>'''
*'''<kuid:-25:758>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 3,574: Line 3,600:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


  '''[x] Trigger Rule Once''' - click to set''
    '''None'''
  '''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


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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
*'''[[#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
*'''[[#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]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Parent and Child Rules]]'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Random_List</span>'''


==='''Wait for Driver/Train to be Locally Owned Rule'''===
==='''Reset List 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
Executes ALL child rules continuously in an ongoing infinite cycle


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid2:401543:1173:1>'''
*'''<kuid:-25:762>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 3,610: Line 3,626:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


  '''Assets Ownership:''' - select one of two option buttons:-
    '''None'''
    '''( ) Wait for ownership of a specific Driver'''
    '''( ) Wait for ownership of Driver'''
  '''Driver or Vehicle ''<select>''''' - choose from session list


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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
*'''[[#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
*'''[[#Random List Rule|Random List Rule]]''' - executes ONE randomly selected child rule
*'''[[#Simultaneous List Rule|Simultaneous List Rule]]''' - executes all child rules simultaneously


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Parent and Child Rules]]'''
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Reset_List</span>'''


==='''Wait on Navigation Point Rule'''===
==='''Simultaneous List Rule'''===


Executes child rules when a specific navigation point is completed
Executes child rules simultaneously once this rule starts


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid:401543:1168>'''
*'''<kuid:-25:1048>'''


*'''Base Rule'''
*'''Built-in Rule'''


*'''Parent Rule'''
*'''Parent Rule'''
Line 3,635: Line 3,652:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''navigation point ''<click here to set>''''' - enter the number of the navigation point to be completed
     '''Rule completes when ...''' - click to chose one of the following:-
    '''in set ''<click here to set>''''' - enter the unique name for the navigation set created using the '''Navigation Display Rule'''.
      '''''one of the child rules has completed'''''
       Name must be in lowercase and have no spaces.
      '''''all child rules have reached a completed state'''''
 
       '''''all child rules have reached a "was completed" state'''''
[[file:Issues.PNG]] '''<u>Known Issues:</u>'''
:The rule will '''NOT''' check to see if the named navigation set and point exists or not.


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Navigation Display Rule|Navigation Display Rule]]''' - creates a set of navigation points.
*'''[[#Ordered List Rule|Ordered List Rule]]''' - executes child rules in order
*'''[[#Navigation Set Hide/Show Rule|Navigation Set Hide/Show Rule]]''' - makes a navigation set visible/invisible.
*'''[[#Progressive List Rule|Progressive List Rule]]''' - executes the first child rule on the first run, the second child on the second run, etc
*'''[[#Navigation Set Check Rule|Navigation Set Check Rule]]''' - executes child rules if a navigation set is complete or incomplete.
*'''[[#Random List Rule|Random List Rule]]''' - executes ONE randomly selected child rule
*'''[[#Navigation Set Clear Rule|Navigation Set Clear Rule]]''' - completes (terminates) a navigation set.
*'''[[#Reset List Rule|Reset List Rule]]''' - executes all child rules continuously
*'''[[#Navigation Point Complete Rule|Navigation Point Complete Rule]]''' - manually completes (terminates) a specific navigation point in a set.


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[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 Message Popup Rule (Applications)#Application 1: Timed Message|How to Use Message Popup Rule (Applications): Timed Message]]
*'''[[How to Use Navigation Point Rules]]'''
*'''[[How to Use Navigation Point Rules (Applications)]]'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[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]]
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Simultaneous_List</span>'''


==='''Wait on Train Stop/Start Rule'''===
'''[[#top|Back to Top]]'''
----


Executes child rules when a train stops or starts moving
<table width="100%" bgcolor=#ffffaa>
<tr>
<td>
=='''Speed Rules'''==
</td>
</tr>
</table>


'''<u>Rule Properties:</u>'''
==='''ATP Speed Limiter Rule'''===


*'''<kuid:-25:1069>'''
Limits allowable speed over set limit


*'''Built-in Rule'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''Parent Rule'''
*'''<kuid2:321959:1000:1>'''
 
*'''Built-in Rule'''


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''[x] Trigger rule once'''
     '''Limits the speed to ''<value>'' mph over the set limit''' - enter speed value in mph
    '''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


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
==='''Speeding Check Rule'''===
*'''[[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 Parent and Child Rules]]'''


==='''Wait on Waybill Screen/Main Screen Rule'''===
Executes child rules if player controlled trains are over the local speed limit or over a set (custom) speed


Executes child rules when the Waybill window is opened or closed
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


'''<u>Rule Properties:</u>'''
*'''<kuid2:60850:89004:3>'''
 
*'''<kuid:-25:957>'''


*'''Built-in Rule'''
*'''Built-in Rule'''
Line 3,705: Line 3,708:
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''


     '''[x] Trigger rule once''' - check to trigger the rule once only
     Select one of two options to set a speed limit to be observed
    '''Wait for the Waybill window to be ''<opened/closed>''''' - select either '''opened''' or '''closed'''.
      '''( ) Watch for trains travelling above the posted speed limit'''
 
          '''''<speed value>''''' - click to enter a new overspeed tolerance value
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
          '''''<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'''
 
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Parent and Child Rules]]'''


==='''Wait Rule'''===
==='''MaxPermittedSpeed Rule'''===


Executes child rules after waiting for set number of seconds
Sets the maximum permitted speed of locomotives under AI control


'''<u>Rule Properties:</u>'''
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''


*'''<kuid2:122381:10016:2>'''
*'''<kuid2:60850:89000:7>'''


*'''Built-in Rule'''
*'''Built-in Rule'''


*'''Parent Rule'''
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    '''None'''
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
:This rule cannot be configured from the Session Rules list. It must be configured in the '''config.txt''' file of each locomotive. Instructions with an example are shown in the rule Properties
 
'''[[#top|Back to Top]]'''
----
 
<table width="100%" bgcolor=#ffffaa>
<tr>
<td>
=='''Startup and Termination Rules'''==
</td>
</tr>
</table>


[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
==='''End Session Rule'''===


    '''''<click to set>''''' - enter the number of seconds for the wait delay
End the Session with a fade out.


[[file:Notes.PNG]] '''<u>Notes:</u>'''  
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
:Seconds is in Trainz clock time, not real time


[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''<kuid:-25:482>'''
 
*'''Built-in Rule'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    '''Fade out over ''<value>'' seconds''' - enter number of seconds for fade out.
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
:Seconds are Trainz clock time, not real time.
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Session Complete Rule|Session Complete Rule]]''' - set the session to a percentage of completion
 
==='''Multiplayer Rule'''===
 
Enables the session to be taken online in a Multiplayer environment.
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid:447264:1045>'''
 
*'''Built-in Rule'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    '''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
 
==='''Randomize Rule'''===
 
Generates a different set of random numbers each time the session is run.
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid:169301:100129>'''
 
*'''DLS Rule''' by '''Terry_Wagstaff'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    '''None'''
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
: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.
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Variable Random|Variable Random]]''' - sets a variable to a random integer value.
 
==='''Session Complete Rule'''===
 
Set session to a percentage of completion.
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid:447264:1011>'''
 
*'''Base Rule'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    '''Set session to percent complete ''<value>''''' - enter number as a percentage
    '''[x] Separate achievements for completion''' - check to set
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#End Session Rule|End Session Rule]]''' - end the Session with a fade out.
 
==='''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'''.
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid:-16:10212>'''
 
*'''Base Rule'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    '''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
      '''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
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
:Times are Trainz clock time, not real time
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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
 
'''[[#top|Back to Top]]'''
----
 
<table width="100%" bgcolor=#ffffaa>
<tr>
<td>
=='''Time Rules'''==
</td>
</tr>
</table>
 
==='''Clock Rule'''===
 
Rule needed for animated clocks.
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid2:62310:30041:2>'''
 
*'''Built-in Rule'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    '''None'''
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
: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.
 
==='''Time and Rate Rule'''===
 
Sets the session start time and the rate at which time passes.
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid:-25:889>'''
 
*'''Built-in Rule'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    '''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)
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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.


[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
==='''Timecheck Rule'''===
*'''[[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]]
Executes child rules at a set time.
*'''[[How to Use Parent and Child Rules]]'''
 
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
==='''Weather Rule'''===
 
 
*'''<kuid2:122381:10008:3>'''
Changes the weather conditions during Session play.
 
 
*'''Built-in Rule'''
'''<u>Rule Properties:</u>'''
 
 
*'''Parent Rule'''
*'''<kuid:-25:960>'''
 
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
*'''Built-in Rule'''
 
 
    '''''<hh:mm:ss>''''' - enter execution time as hours (0-23), minutes (0-59) and seconds (0-59).
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
    '''[x] Execution time is on the day after the start time''' - when checked delays execution until the following day.
 
 
    '''Set weather to ''<select mode>'' with ''<select frequency>'' changeability''' - select
[[file:Issues.PNG]] ''''<u>Known Issues:</u>'''
      '''Weather mode:''' - select one of:-
:Do not use this rule as a child of a repeating rule such as the '''Simultaneous List Rule''' or the '''Ordered List Rule'''.
          '''''Clear'''''
 
          '''''Cloudy'''''  
[[file:Notes.PNG]] '''<u>Notes:</u>'''
          '''''Drizzle'''''
:Times and days are Trainz clock times not real time.
          '''''Rain'''''
 
          '''''Stormy'''''
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
          '''''Light Snow'''''
*'''[[#Time and Rate Rule|Time and Rate Rule]]''' - sets the session start time and the rate at which time passes.
          '''''Medium Snow'''''
*'''[[#Wait Rule|Wait Rule]]''' - executes child rules after waiting for a set number of seconds.
          '''''Heavy Snow'''''
 
    '''Changeability:''' - select one of:-
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
          '''''Off''''' - the weather will not change from the mode selected above
*'''[[How to Use Parent and Child Rules]]'''
          '''''Periodic''''' - slow gradual changes to the weather
 
          '''''Extreme''''' - rapid and extreme changes to the weather
==='''Wait Rule'''===
 
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
Executes child rules after waiting for set number of seconds
*'''[[#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
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
*'''[[#Startup Options Rule|Startup Options Rule]]''' - sets the weather conditions at the start of a Session
 
*'''<kuid2:122381:10016:2>'''
 
*'''Built-in Rule'''
 
*'''Parent Rule'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    '''''<click to set>''''' - enter the number of seconds for the wait delay
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''  
:Seconds is in Trainz clock time, not real time
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#Timecheck Rule|Timecheck Rule]]''' - executes child rules at a set time.
 
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[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]]
*'''[[How to Use Parent and Child Rules]]'''
 
'''[[#top|Back to Top]]'''
----
 
<table width="100%" bgcolor=#ffffaa>
<tr>
<td>
=='''Variable Rules'''==
</td>
</tr>
</table>
 
==='''Quick Session Variables Rule'''===
 
Allows the editing of session variables
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid2:61392:5003:30>'''
 
*'''DLS Rule''' by '''pguy'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    '''''<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
 
[[file:Issues.PNG]] ''''<u>Known Issues:</u>'''
: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:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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 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 Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
 
==='''Variable Check Rule'''===
 
Executes child rules when a specific variable matches set conditions
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid:-25:1049>'''
 
*'''Built-in Rule'''
 
*'''Parent Rule'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    '''''<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
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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 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 Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
 
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Parent and Child Rules]]'''
*'''[[How to Use Variables in Sessions (Examples)]]
 
==='''Variable Modify Continuous Rule'''===
 
Adds, subtracts or sets a value to a specified variable every second.
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid:-25:1051>'''
 
*'''Built-in Rule'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
  '''''<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.
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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 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 Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
 
==='''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.
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid:-25:1050>'''
 
*'''Built-in Rule'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    '''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.
            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.
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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 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 Show Rule|Variable Show Rule]]''' - adds or removes a specified variable and a descriptive label to the custom HUD.
 
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Variables in Sessions (Examples)]]
*'''<span class="plainlinks">http://online.ts2009.com/mediaWiki/index.php/Variable_Modify_Rule</span>'''
 
==='''Variable Random Rule'''===
 
Assigns a random integer value to a variable.
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid:400260:100606>'''
 
*'''DLS Rule''' by '''tram_'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    '''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
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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.
*'''[[#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 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.
 
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Variables in Sessions (Examples)]]
 
==='''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.
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid:-25:971>'''
 
*'''Built-in Rule'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
  '''[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.
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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.
*'''[[#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 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.
 
[[file:WikiLink.PNG]] '''<u>Trainz Wiki Links:</u>'''
*'''[[How to Use Variables in Sessions (Examples)]]
 
'''[[#top|Back to Top]]'''
----
 
<table width="100%" bgcolor=#ffffaa>
<tr>
<td>
=='''Weather Rules'''==
</td>
</tr>
</table>
==='''EIRS Weather Rule NE USA Rule'''===
 
Customize random weather rule relative to the North East Region of the United States.
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid2:487222:1037:3>'''
 
*'''Built-in Rule'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    '''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'''''
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
:Minutes are Trainz clock times, not real times
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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
*'''[[#Weather Rule|Weather Rule]]''' - changes the weather conditions during Session play
 
==='''Random Weather Rule v2'''===
 
Randomly changes the weather conditions between set values over a set duration.
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid:169301:100132>'''
 
*'''DLS Rule''' by '''terry_wagstaff'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    '''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
 
[[file:Notes.PNG]] '''<u>Notes:</u>'''
: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.
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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
*'''[[#Weather Rule|Weather Rule]]''' - changes the weather conditions during Session play
 
==='''Weather Rule'''===
 
Changes the weather conditions during Session play.
 
[[file:Properties.PNG]] '''<u>Rule Properties:</u>'''
 
*'''<kuid:-25:960>'''
 
*'''Built-in Rule'''
 
[[file:Settings.PNG]] '''<u>Rule Settings:</u>'''
 
    '''Set weather to ''<select mode>'' with ''<select frequency>'' changeability''' - select
      '''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
 
[[file:PageLink.PNG]] '''<u>Related Rules:</u>'''
*'''[[#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
*'''[[#Startup Options Rule|Startup Options Rule]]''' - sets the weather conditions at the start of a Session
 
'''[[#top|Back to Top]]'''
----
----
<table bgcolor=#ccffff>
<tr>
<td>
'''[[#top|Back to Top]]''' | '''[[#A, B|A, B]]''' | '''[[#C|C]]''' | '''[[#D|D]]''' | '''[[#E, F, G|E, F, G]]''' | '''[[#H, I, J|H, I, J]]''' | '''[[#K, L, M|K, L, M]]''' | '''[[#N, O|N, O]]''' | '''[[#P, Q|P, Q]]''' | '''[[#R|R]]''' | '''[[#S-Se|S-Se]]''' | '''[[#Sh-Sz|Sh-Sz]]''' | '''[[#T|T]]''' | '''[[#U, V|U, V]]''' | '''[[#W, X, Y, Z|W, X, Y, Z]]'''
</td>
</tr>
</table>

Revision as of 22:50, 15 July 2018

TRAINZ A New Era (TANE) SP2. List of Trainz Session Rules by Categories with Properties. All rules are the Copyright of N3V Games

This page is always under construction. As new rules appear they will be added to this list.

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

Also available 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 TANE.
  • 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).

Achievement Rules

Achievement Check Rule

Executes child rules when achievement conditions have been met

Rule Properties:

  • <kuid:401543:1190>
  • Built-in Rule
  • Parent Rule

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

Trainz Wiki Links:

Consist Check Rule

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

Rule Properties:

  • <kuid:-25:1068>
  • Built-in Rule
  • Parent Rule

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

'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.

Trainz Wiki Links:

Multiple Resource Check Rule

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

Rule Properties:

  • <kuid:-25:656>
  • Built-in Rule
  • Parent Rule

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:

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.

Related Rules:

Trainz Wiki Links:

Objective Add Rule

Sets up a game Objective with ID and display Name

Rule Properties:

  • <kuid:401543:2001>
  • Base Rule

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

Related Rules:

Objective Check Rule

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

Rule Properties:

  • <kuid:401543:2003>
  • Base Rule
  • Parent Rule

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

Related Rules:

Trainz Wiki Links:

Objective Update Rule

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

Rule Properties:

  • <kuid:401543:2002>
  • Base Rule

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

Related Rules:

Ranked Session Begin Rule

Begins a ranked Session

Rule Properties:

  • <kuid:401543:2031>
  • Base Rule

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:

Times are Trainz clock time, not real time

Related Rules:

Ranked Session Complete Rule

Completes the active ranked Session

Rule Properties:

  • <kuid:401543:2032>
  • Base Rule

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

Related Rules:

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

Rule Properties:

  • <kuid:-25:1067>
  • Legacy Rule (replaced by Multiple Resource Check Rule)
  • Built-in Rule
  • Parent Rule

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:

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.

Related Rules:

Trainz Wiki Links:

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.

Rule Properties:

  • <kuid:160293:10060>
  • DLS Rule by trev999
  • Parent Rule

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:

  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.

Related Rules:

Trainz Wiki Links:

Station Visited Check Rule

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

Rule Properties:

  • <kuid2:60850:89005:3>
  • Built-in Rule
  • Parent Rule

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

Trainz Wiki Links:

Back to Top


Camera Rules

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.

Rule Properties:

  • <kuid2:401543:1166:3>
  • Built-in Rule

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:

Times are Trainz clock times, not real times

Related Rules:

Focus Camera Rule

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

Rule Properties:

  • <kuid2:122381:10014:1>
  • DLS Rule by mizi

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

Related Rules:

Set Camera Rule

Sets the target object and properties of the camera.

Rule Properties:

  • <kuid:-25:179>
  • Built-in Rule

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

Related Rules:

Wait for Camera View Mode Rule

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

Rule Properties:

  • <kuid:-25:192>
  • Built-in Rule
  • Parent Rule

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

Related Rules:

Trainz Wiki Links:

Back to Top


Danger, Derailment and Safety Rules

ATP Speed Limiter Rule

Limits allowable speed over set limit

Rule Properties:

  • <kuid2:321959:1000:1>
  • Built-in Rule

Rule Settings:

   Limits the speed to <value> mph over the set limit - enter speed value in mph
Related Rules:
   AWS Configuration Rule - configures the Trainz implementation of the Automatic Warning System when approaching signals

AWS Configuration Rule

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

Rule Properties:

  • <kuid2:60850:89002:3>
  • Built-in Rule

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?

Clean Up Derailed Trains Rule

Cleans up derailed train cars after a set time delay

Rule Properties:

  • <kuid2:60850:89003:1>
  • Base Rule

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:

Time is Trainz clock time, not real time.

Related Rules:

Trainz Wiki Links:

Coupler Breakage Check Rule

Executes child rules if there is a coupler breakage

Rule Properties:

  • <kuid2:447264:1017:1>
  • Built-in Rule
  • Parent Rule

Rule Settings:

   None

Related Rules:

Trainz Wiki Links:

Coupler Breakage HUD Rule

HUD displays warning about coupler stress and breakage

Rule Properties:

  • <kuid:-25:423>
  • Built-in Rule

Rule Settings:

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

Related Rules:

Junction Derailment Prevention Rule

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

Rule Properties:

  • <kuid2:121843:100282:1>
  • DLS Rule by pitkin

Rule Settings:

   None

Notes:

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:

  • 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).

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

Rule Properties:

  • <kuid:447264:1214>
  • Built-in Rule

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

Related Rules:

Safety System Engaged Check Rule

Executes child rules if safety systems are applied.

Rule Properties:

  • <kuid:447264:1216>
  • Built-in Rule
  • Parent Rule

Rule Settings:

   [x] Trigger only once

Related Rules:

Trainz Wiki Links:

Safety System Isolated Check Rule

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

Rule Properties:

  • <kuid:447264:1217>
  • Built-in Rule
  • Parent Rule

Rule Settings:

   [x] Trigger only once

Related Rules:

Trainz Wiki Links:

Set Coupler Masks Rule

Set the coupling/decoupling masks on the selected vehicles

Rule Properties:

  • <kuid:-25:980>
  • Built-in Rule

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

Related Rules:

Signal Passed At Danger Check Rule

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

Rule Properties:

  • <kuid2:60850:89007:2>
  • Built-in Rule
  • Parent Rule

Rule Settings:

   [x] Trigger only once

Trainz Wiki Links:

Speeding Check Rule

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

Rule Properties:

  • <kuid2:60850:89004:3>
  • Built-in Rule
  • Parent Rule

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

Trainz Wiki Links:

Vehicle Physics Rule

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

Rule Properties:

  • <kuid:-25:1052>
  • Built-in Rule

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 %

Wait for Derailment Rule

Executes child rules when a derailment occurs

Rule Properties:

  • <kuid:-25:1053>
  • Built-in Rule
  • Parent Rule

Rule Settings:

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

Related Rules:

Trainz Wiki Links:

Back to Top


Driver Rules

AI Start Rule

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

Rule Properties:

  • <kuid2:400048:100981:1>
  • DLS Rule by callavsg

Rule Settings:

   None

Related Rules:

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.

Rule Properties:

  • <kuid2:400048:100980:1>
  • DLS Rule by callavsg

Rule Settings:

   None

Related Rules:

Control Check Rule

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

Rule Properties:

  • <kuid:401543:1191>
  • Built-in Rule
  • Parent Rule

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

Related Rules:

Trainz Wiki Links:

Control Type Rule

Sets the control method

Rule Properties:

  • <kuid:-16:2030>
  • Base Rule

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)

Related Rules:

Disallow AI Rule

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

Rule Properties:

  • <kuid:400048:100603>
  • DLS Rule by callavsg

Rule Settings:

  None

Related Rules:

Driver Command Check Rule

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

Rule Properties:

  • <kuid:-25:447>
  • Built-in Rule
  • Parent Rule

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

Related Rules:

Trainz Wiki Links:

Driver Command Rule

Specifies which commands will be available for the drivers

Rule Properties:

  • <kuid:-3:10057>
  • Base Rule

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:

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.

Related Rules:

Trainz Wiki Links:

Driver Main Menu Options Rule

Show/Hide the Driver Main Menu Bar

Rule Properties:

  • <kuid:-25:448>
  • Built-in Rule

Rule Settings:

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

Driver Schedule Rule

Sets up a list of basic scheduled commands

Rule Properties:

  • <kuid2:82445:90001:9>
  • Built-in Rule

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

Related Rules:

Trainz Wiki Links:

Driver Setup Rule

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

Rule Properties:

  • <kuid:-16:2025>
  • Base Rule

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

'Known Issues:

The Remove all existing Drivers first option does not appear to work

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

Related Rules:

Trainz Wiki Links:

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

Rule Properties:

  • <kuid:-25:480>
  • Built-in Rule

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

Related Rules:

Trainz Wiki Links:

JTG Correct Vehicle Lights

Corrects the brightness of vehicle headlights. Now obsolete.

Rule Properties:

  • <kuid2:478657:999103:1>
  • DLS Rule by jtg-trainz
  • Obsolete Rule (function is now built into TANE Driver Additional Tools Menu)

Rule Settings:

   None

Quick Portal Manager Standard Edition Rule (SP2 and later)

Manages portals and adds flexible timetables.

Rule Properties:

  • <kuid2:61392:5011:45>
  • DLS Rule by pguy

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 (SP2 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.

Related Rules:

Trainz Wiki Links:

QuickDrive Rule

Changes the Session settings.

Rule Properties:

  • <kuid:401543:1184>
  • Base Rule

Rule Settings:

  Open QuickDrive window when session is started          [x] - check to set
  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

Trainz Wiki Links:

Schedule Rule

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

Rule Properties:

  • <kuid:-3:10185>
  • Base Rule

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

Notes:

Times are Trainz clock times, not real time

Related Rules:

'Other Links:

Wait for Driver On/Off Train Rule

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

Rule Properties:

  • <kuid:-25:953>
  • Built-in Rule
  • Parent Rule

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

Related Rules:

Trainz Wiki Links:

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

Rule Properties:

  • <kuid2:401543:1173:1>
  • Built-in Rule
  • Parent Rule

Rule Settings:

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

Related Rules:

Trainz Wiki Links:

Back to Top


HUD (Heads Up Display) Rules

Cab Controls HUD Rule

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

Rule Properties:

  • <kuid:-16:287428>
  • Base Rule
  • Obsolete Rule (function is now built into TANE)

Rule Settings:

   None

Coupler Breakage HUD Rule

HUD displays warning about coupler stress and breakage

Rule Properties:

  • <kuid:-25:423>
  • Built-in Rule

Rule Settings:

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

Related Rules:

Display Custom HUD Rule

Show or hide the Custom Heads Up Display.

Rule Properties:

  • <kuid:-3:10206>
  • Base Rule

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

Related Rules:

Trainz Wiki Links:

Flash HUD Icon Rule

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

Rule Properties:

  • <kuid:-25:968>
  • Built-in Rule

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.

Related Rules:

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 (SP2 and later)

Rule Properties:

  • <kuid2:61392:1072:10>
  • Legacy Rule (replaced by Quick CustomHUD Manager Rule (SP2 and later))
  • DLS Rule by pguy

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

Related Rules:

Quick CustomHud Manager Rule (SP2 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)

Rule Properties:

  • <kuid2:61392:5020:47>
  • DLS Rule by pguy

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:

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.

Related Rules:

Show/Hide HUD Panel Rule

Shows or hides a HUD panel.

Rule Properties:

  • <kuid:-25:1047>
  • Built-in Rule

Rule Settings:

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

Related Rules:

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.

Rule Properties:

  • <kuid:-25:971>
  • Built-in Rule

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.

Related Rules:

Trainz Wiki Links:

Wait for Click on HUD Icon Rule

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

Rule Properties:

  • <kuid:-25:951> <kuid:-25:970> - two versions built-in with different kuids, both have the same properties
  • Built-in Rule
  • Parent Rule

Rule Settings:

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

Related Rules:

Trainz Wiki Links:

Back to Top


Industry Rules

Advanced Industry Load Configuration Rule

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

Rule Properties:

  • <kuid:30501:100007>
  • Base Rule

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:

Times are Trainz clock time, not real time

Disable/Enable Industry Rule

Enables/Disables vehicle load/unload for industry

Rule Properties:

  • <kuid2:401543:1171:1>
  • Built-in Rule

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

DisplayIndustryStatus Rule (color modified)

Displays a summary of industry product levels when the "k" key is pressed.

Rule Properties:

  • <kuid:622415:100001>
  • DLS Rule by lockheed02 and marzipan

Rule Settings:

   None

Notes:

Pressing the k key in Driver mode will bring up a small window with a single link Display Industry Status (there may also be other links). Clicking this link will show the product levels of all industries.

Related Rules:

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.

Rule Properties:

  • <kuid:160293:10029>
  • DLS Rule by trev999

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.
   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.

Notes:

  1. Rolling stock installed in TANE or 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.

'Known Issues:

This rule is NOT compatible with all industries.

Related Rules:

Multiple Resource Check Rule

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

Rule Properties:

  • <kuid:-25:656>
  • Built-in Rule
  • Parent Rule

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:

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.

Related Rules:

Trainz Wiki Links:

Power Station Rule

Sets up a Power Station and its electricity consumers

Rule Properties:

  • <kuid:-25:746>
  • Base Rule

Rule Settings:

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

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

Rule Properties:

  • <kuid:-25:1067>
  • Legacy Rule (replaced by Multiple Resource Check Rule)
  • Built-in Rule
  • Parent Rule

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:

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.

Related Rules:

Trainz Wiki Links:

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.

Rule Properties:

  • <kuid:160293:10060>
  • DLS Rule by trev999
  • Parent Rule

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:

  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.

Related Rules:

Trainz Wiki Links:

Station Visited Check Rule

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

Rule Properties:

  • <kuid2:60850:89005:3>
  • Built-in Rule
  • Parent Rule

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

Trainz Wiki Links:

Back to Top


Interlocking Tower, Junction and Signal Rules

Interlocking Tower Configure Path Rule

Alters settings on an interlocking tower path

Rule Properties:

  • <kuid:401543:3205>
  • Base Rule

Rule Settings:

  Interlocking Tower <select> - to set Name and Objects

Related Rules:

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

Rule Properties:

  • <kuid:401543:3203>
  • Base Rule

Rule Settings:

  [Checkbox] Show path activation message in Driver

Related Rules:

Interlocking Tower Set Path Rule

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

Rule Properties:

  • <kuid:401543:3204>
  • Base Rule

Rule Settings:

  Interlocking Tower <select> - to set Name and Objects

Related Rules:

Interlocking Tower Enhanced Manager Rule (SP2 and later)

Provides more management and control options for interlocking towers.

Rule Properties:

  • <kuid2:61392:8130:41>
  • DLS Rule by pguy

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

Related Rules:

Trainz Wiki Links:

Junction Derailment Prevention Rule

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

Rule Properties:

  • <kuid2:121843:100282:1>
  • DLS Rule by pitkin

Rule Settings:

   None

Notes:

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:

  • 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).

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.

Rule Properties:

  • <kuid:400048:100971>
  • DLS Rule by callavsg

Rule Settings:

   None

Notes:

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

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).

MissionCode Manager Rule (SP2 and later)

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

Rule Properties:

  • <kuid2:61392:8200:50>
  • DLS Rule by pguy

ENTRY UNDER CONSTRUCTION

Trainz Wiki Links:

MissionCode Stops and Timetable Manager Rule (SP2 and later)

Enables the creation, editing and management of stop zones and timetables for trains following a path defined using mission codes.

Rule Properties:

  • <kuid2:61392:8300:50>
  • DLS Rule by pguy

ENTRY UNDER CONSTRUCTION

Trainz Wiki Links:

Multiple Junction Alignment Check Rule

Executes child rules if specific junctions are set.

Rule Properties:

  • <kuid:-25:168>
  • Built-in Rule
  • Parent Rule

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

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).

Trainz Wiki Links:

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

Rule Properties:

  • <kuid2:131986:157661:1>
  • DLS Rule by atilabarut

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

Related Rules:

Trainz Wiki Links:

Set Junctions Rule

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

Rule Properties:

  • <kuid:-25:1065>
  • Built-in Rule

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

Related Rules:

Trainz Wiki Links:

Set Signal Extended Rule

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

Rule Properties:

  • <kuid2:47662:20002:4>
  • Built-in Rule

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

Notes:

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

Related Rules:

Trigger Multiple Signals Rule

Sets selected signals to DANGER (STOP) when selected triggers are activated. Signals will be at AUTOMATIC when the triggers are not activated.

Rule Properties:

  • <kuid2:116387:26:1>
  • DLS Rule by maggs

Rule Settings:

   <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:

Back to Top


Message Rules

Close Message Popup Rule

Closes open message popups

Rule Properties:

  • <kuid:447264:1526>
  • Built-in Rule

Rule Settings:

  None

'Known Issues:

This rule only appears to work if it is a child of the rule that triggered the Message Popup Rule
  • Related Rule:
  • Message Popup Rule - displays a pop-up browser window and waits for it to be closed.

Trainz Wiki Links:

DestSign Table Rule

Creates a list of destination names for a destination sign

Rule Properties:

  • <kuid2:206816:99004:2>
  • Built-in Rule

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

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

Rule Properties:

  • <kuid:-25:442>
  • Legacy Rule (replaced by Message Popup Rule)
  • Base Rule

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

Related Rules:

Display Video Rule

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

Rule Properties:

  • <kuid:-25:138>
  • Built-in Rule

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:

Video must be in a valid web format.

Related Rules:

DisplayIndustryStatus Rule (color modified)

Displays a summary of industry product levels when the "k" key is pressed.

Rule Properties:

  • <kuid:622415:100001>
  • DLS Rule by lockheed02 and marzipan

Rule Settings:

   None

Notes:

Pressing the k key in Driver mode will bring up a small window with a single link Display Industry Status (there may also be other links). Clicking this link will show the product levels of all industries.

Related Rules:

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.

Rule Properties:

  • <kuid:160293:10029>
  • DLS Rule by trev999

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.
   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.

Notes:

  1. Rolling stock installed in TANE or 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.

'Known Issues:

This rule is NOT compatible with all industries.

Related Rules:

Fade In/Out Rule

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

Rule Properties:

  • <kuid2:190611:200000:2>
  • Built-in Rule

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:

Seconds are Trainz clock time, not real time.

Hide Product Overlays Rule

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

Rule Properties:

  • <kuid:400048:100970>
  • DLS Rule by callavsg

Rule Settings:

  None

InputTable Rule

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

Rule Properties:

  • <kuid2:131986:1012:1>
  • Built-in Rule

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 WaitUntilSVariable driver command 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

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.

Rule Properties:

  • <kuid:-25:1003>
  • Built-in Rule

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.

'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.

Related Rules:

Trainz Wiki Links:

Minimap Options Rule

Sets the display options for the minimap.

Rule Properties:

  • <kuid:-25:636>
  • Built-in Rule

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

Related Rules:

Play Sound Rule

Plays a wav sound file.

Rule Properties:

  • <kuid:-25:1045>
  • Built-in Rule

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

Related Rules:

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

Session Metadata Rule

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

Rule Properties:

  • <kuid:401543:2036>
  • Base Rule

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:

Time is Trainz clock time, not real time

Set Helper Icon Size Rule

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

Rule Properties:

  • <kuid:-25:791>
  • Built-in Rule

Rule Settings:

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

Set HTML Pages Rule

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

Rule Properties:

  • <kuid:-25:792>
  • Legacy Rule (replaced by Message Popup Rule)
  • Built-in Rule

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)

Related Rules:

Show/Hide Layer Rule

Shows or hides a layer from Driver.

Rule Properties:

  • <kuid2:401543:1170:1>
  • Built-in Rule

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.

Known Bugs:

Layers set to Hide when a game is saved will be Shown when the game is reloaded

'Known Issues:

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

Trainz Wiki Links:

Show/Hide Minimap Rule

Shows the minimap window in Driver.

Rule Properties:

  • <kuid:-25:794>
  • Built-in Rule

Rule Settings:

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

Related Rules:

Show/Hide On-screen Help Rule

Shows or hides On-screen help in Driver.

Rule Properties:

  • <kuid:401543:2020>
  • Built-in Rule

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

Timed Limited Display HTML Rule (SP2 and later)

Displays an HTML browser window for a limited time.

Rule Properties:

  • <kuid2:61392:2005:32>
  • DLS Rule by pguy

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:

Seconds are Trainz clock time, not real time.

Related Rules:

Wait on Waybill Screen/Main Screen Rule

Executes child rules when the Waybill window is opened or closed

Rule Properties:

  • <kuid:-25:957>
  • Built-in Rule
  • Parent Rule

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.

Trainz Wiki Links:

Back to Top


Miscellaneous Rules

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

ConsistDataHandler Rule

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

Rule Properties:

  • <kuid:401543:1180>
  • Obsolete Rule (function is now built into TANE)
  • Base Rule

Rule Settings:

   None

Custom Script Rule

No description

Rule Properties:

  • <kuid:447264:1526>
  • Built-in Rule

Rule Settings:

  None

Generic TreeNode Debug Window Rule

No description.

Rule Properties:

  • <kuid:30501:1042>
  • Base Rule

Rule Settings:

   None

Session Debug Rule

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

Rule Properties:

  • <kuid:30501:100180>
  • Built-in Rule
  • Parent Rule

Rule Settings:

   None

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.

Trainz Wiki Links:

Back to Top


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.

Rule Properties:

  • <kuid2:532391:100003:1>
  • DLS Rule by bobhahn
  • Parent Rule

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:

  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.

Related Rules:

  • Trackside Check Rule - executes child rules when activated by a train. Provides different options to the Trigger Check Rule
  • Trigger Check Rule - executes child rules when a set train enters a set trigger (non-directional)

Trainz Wiki Links:

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.

Rule Properties:

  • <kuid2:401543:1161:1>
  • Base Rule

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.

Related Rules:

Trainz Wiki Links:

Manually completes a navigation point in a set

Rule Properties:

  • <kuid:401543:1167>
  • Base Rule

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.

'Known Issues:

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

Related Rules:

Trainz Wiki Links:

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

Rule Properties:

  • <kuid:401543:1165>
  • Base Rule
  • Parent Rule

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

'Known Issues:

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

Related Rules:

Trainz Wiki Links:

Clears a navigation set removing any uncompleted navigation points

Rule Properties:

  • <kuid:401543:1164>
  • Base Rule

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.

'Known Issues:

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

Related Rules:

Trainz Wiki Links:

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

Rule Properties:

  • <kuid:401543:1163>
  • Base rule

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.

'Known Issues:

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

Related Rules:

Trainz Wiki Links:

Schedule Rule

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

Rule Properties:

  • <kuid:-3:10185>
  • Base Rule

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

Notes:

Times are Trainz clock times, not real time

Related Rules:

'Other Links:

Trackside Check Rule

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

Rule Properties:

  • <kuid2:46162:100207:1>
  • DLS Rule by Josefpav
  • Parent Rule

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

Related Rules:

Trainz Wiki Links:

Trigger Check Rule

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

Rule Properties:

  • <kuid:-25:1071>
  • Built-in Rule
  • Parent Rule

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

Related Rules:

Trainz Wiki Links:

Wait on Navigation Point Rule

Executes child rules when a specific navigation point is completed

Rule Properties:

  • <kuid:401543:1168>
  • Base Rule
  • Parent Rule

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.

'Known Issues:

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

Related Rules:

Trainz Wiki Links:

Wait on Train Stop/Start Rule

Executes child rules when a train stops or starts moving

Rule Properties:

  • <kuid:-25:1069>
  • Built-in Rule
  • Parent Rule

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

Trainz Wiki Links:

Back to Top


Resources Rules

DisplayIndustryStatus Rule (color modified)

Displays a summary of industry product levels when the "k" key is pressed.

Rule Properties:

  • <kuid:622415:100001>
  • DLS Rule by lockheed02 and marzipan

Rule Settings:

   None

Notes:

Pressing the k key in Driver mode will bring up a small window with a single link Display Industry Status (there may also be other links). Clicking this link will show the product levels of all industries.

Related Rules:

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.

Rule Properties:

  • <kuid:160293:10029>
  • DLS Rule by trev999

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.
   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.

Notes:

  1. Rolling stock installed in TANE or 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.

'Known Issues:

This rule is NOT compatible with all industries.

Related Rules:

Hide Product Overlays Rule

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

Rule Properties:

  • <kuid:400048:100970>
  • DLS Rule by callavsg

Rule Settings:

  None

Multiple Resource Check Rule

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

Rule Properties:

  • <kuid:-25:656>
  • Built-in Rule
  • Parent Rule

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:

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.

Related Rules:

Trainz Wiki Links:

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

Rule Properties:

  • <kuid:-25:1067>
  • Legacy Rule (replaced by Multiple Resource Check Rule)
  • Built-in Rule
  • Parent Rule

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:

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.

Related Rules:

Trainz Wiki Links:

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.

Rule Properties:

  • <kuid:160293:10060>
  • DLS Rule by trev999
  • Parent Rule

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:

  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.

Related Rules:

Trainz Wiki Links:

Back to Top


Session Sequence Rules

Ordered List Rule

Executes child rules in order once this rule starts

Rule Properties:

  • <kuid:-25:171>
  • Built-in Rule
  • Parent Rule

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

'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.

Related Rules:

Trainz Wiki Links:

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.

Rule Properties:

  • <kuid:-25:754>
  • Built-in Rule
  • Parent Rule

Rule Settings:

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

Related Rules:

Trainz Wiki Links:

Random List Rule

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

Rule Properties:

  • <kuid:-25:758>
  • Built-in Rule
  • Parent Rule

Rule Settings:

   None

Related Rules:

Trainz Wiki Links:

Reset List Rule

Executes ALL child rules continuously in an ongoing infinite cycle

Rule Properties:

  • <kuid:-25:762>
  • Built-in Rule
  • Parent Rule

Rule Settings:

   None

Related Rules:

Trainz Wiki Links:

Simultaneous List Rule

Executes child rules simultaneously once this rule starts

Rule Properties:

  • <kuid:-25:1048>
  • Built-in Rule
  • Parent Rule

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

Related Rules:

Trainz Wiki Links:

Back to Top


Speed Rules

ATP Speed Limiter Rule

Limits allowable speed over set limit

Rule Properties:

  • <kuid2:321959:1000:1>
  • Built-in Rule

Rule Settings:

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

Speeding Check Rule

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

Rule Properties:

  • <kuid2:60850:89004:3>
  • Built-in Rule
  • Parent Rule

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

Trainz Wiki Links:

MaxPermittedSpeed Rule

Sets the maximum permitted speed of locomotives under AI control

Rule Properties:

  • <kuid2:60850:89000:7>
  • Built-in Rule

Rule Settings:

   None

Notes:

This rule cannot be configured from the Session Rules list. It must be configured in the config.txt file of each locomotive. Instructions with an example are shown in the rule Properties

Back to Top


Startup and Termination Rules

End Session Rule

End the Session with a fade out.

Rule Properties:

  • <kuid:-25:482>
  • Built-in Rule

Rule Settings:

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

Notes:

Seconds are Trainz clock time, not real time.

Related Rules:

Multiplayer Rule

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

Rule Properties:

  • <kuid:447264:1045>
  • Built-in Rule

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

Randomize Rule

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

Rule Properties:

  • <kuid:169301:100129>
  • DLS Rule by Terry_Wagstaff

Rule Settings:

   None

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.

Related Rules:

Session Complete Rule

Set session to a percentage of completion.

Rule Properties:

  • <kuid:447264:1011>
  • Base Rule

Rule Settings:

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

Related Rules:

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.

Rule Properties:

  • <kuid:-16:10212>
  • Base Rule

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
      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:

Times are Trainz clock time, not real time

Related Rules:

Back to Top


Time Rules

Clock Rule

Rule needed for animated clocks.

Rule Properties:

  • <kuid2:62310:30041:2>
  • Built-in Rule

Rule Settings:

   None

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.

Time and Rate Rule

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

Rule Properties:

  • <kuid:-25:889>
  • Built-in Rule

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)

Related Rules:

Timecheck Rule

Executes child rules at a set time.

Rule Properties:

  • <kuid2:122381:10008:3>
  • Built-in Rule
  • Parent Rule

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.

'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:

Times and days are Trainz clock times not real time.

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.

Trainz Wiki Links:

Wait Rule

Executes child rules after waiting for set number of seconds

Rule Properties:

  • <kuid2:122381:10016:2>
  • Built-in Rule
  • Parent Rule

Rule Settings:

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

Notes:

Seconds is in Trainz clock time, not real time

Related Rules:

Trainz Wiki Links:

Back to Top


Variable Rules

Quick Session Variables Rule

Allows the editing of session variables

Rule Properties:

  • <kuid2:61392:5003:30>
  • DLS Rule by pguy

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

'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.

Related Rules:

Variable Check Rule

Executes child rules when a specific variable matches set conditions

Rule Properties:

  • <kuid:-25:1049>
  • Built-in Rule
  • Parent Rule

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

Related Rules:

Trainz Wiki Links:

Variable Modify Continuous Rule

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

Rule Properties:

  • <kuid:-25:1051>
  • Built-in Rule

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.

Related Rules:

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.

Rule Properties:

  • <kuid:-25:1050>
  • Built-in Rule

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.
            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.

Related Rules:

Trainz Wiki Links:

Variable Random Rule

Assigns a random integer value to a variable.

Rule Properties:

  • <kuid:400260:100606>
  • DLS Rule by tram_

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

Related Rules:

Trainz Wiki Links:

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.

Rule Properties:

  • <kuid:-25:971>
  • Built-in Rule

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.

Related Rules:

Trainz Wiki Links:

Back to Top


Weather Rules

EIRS Weather Rule NE USA Rule

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

Rule Properties:

  • <kuid2:487222:1037:3>
  • Built-in Rule

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:

Minutes are Trainz clock times, not real times

Related Rules:

Random Weather Rule v2

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

Rule Properties:

  • <kuid:169301:100132>
  • DLS Rule by terry_wagstaff

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:

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:

Weather Rule

Changes the weather conditions during Session play.

Rule Properties:

  • <kuid:-25:960>
  • Built-in Rule

Rule Settings:

   Set weather to <select mode> with <select frequency> changeability - select
      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

Related Rules:

Back to Top