Session Rule List with Parameters

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
Line 4: Line 4:
 
This is a list of the Trainz Session Rules: These rules can be copied and pasted to show how you're programming your Session
 
This is a list of the Trainz Session Rules: These rules can be copied and pasted to show how you're programming your Session
  
'''Achievement Check Rule:''' This rule allows you to customize session gameplay based on whether the player has received an achievement.
+
 +
'''Achievement Rules'''
  
Properties: ??
+
Achievement Check Rule This rule allows you to customize session gameplay based on whether the player has received an achievement
  
'''Advanced Industry Load Configuration Rule:''' Names industry, lock train's controls, overrides begin load and begin unload
+
Advanced Industry Load Configuration: Names industry, lock train's controls?, overrides begin load and begin unload
 +
  Target object ?? name of object such as Power Station, Coal Pit or Portal
 +
  Lock train's controls checked during a stopped load/unload operation
 +
  Override 'begin load' and 'begin unload' checked # of seconds to override
  
Properties:
+
Multiple Resource Check: Checks resource for completion
Target Object: value: name the object such as Power Station, Coal Pit, Portal, etc.
+
Wait for the designated queues from choose fall below, reach/exceed
Lock train's controls: value: checked, during a stopped load/unload operation
+
Units number amount of units
Override 'begin load' and 'begin unload' durations to_seconds: value: check, number of seconds to override
+
Products click choose from session list
 +
Add Object click choose from session list
  
'''ATP Speed Limited:''' This rule limits speed over set limit
+
Objective Add: Sets up a game Objective with ID and display Name
 +
Priority click choose Above Normal, Below Normal, Normal,
 +
Optional, Urgent
 +
Completion Target click to set target number
 +
Icon click choose from list
 +
Display Name click insert Name
 +
Unique Objective ID click set ID
 +
Custom Message insert typed message in text area
  
Properties:
+
Objective Check: Executes child rules when objective is complete
Speed limit over the set limit: value: mph
+
Unique Objective ID click insert ID number
 +
Mode click choose Wait for completion, Wait for failure, Wait
 +
for progress
  
'''AWS Configuration:''' This rule configures the Trainz implementation AWS
+
Objective Update: Changes progress outcome according to Property choices
 
+
Unique Objective ID click to set ID number
Properties:
+
Monday, September 18, 2017 Page 1 of 18
Active: value: fill-in
+
Mode click Set objective as Decrement progress/Increment
Passive: value: fill-in
+
progress/Reset objective/Set objects as
Passive with HUD hidden: value: fill-in
+
complete/Set objects as failed/Set progress/Set
Simulate AWS for unfitted cabs?: value: check
+
progress only if greater
Use modern sound set for unfitted cabs?: value: check
+
Amount click insert number
'''Cab Controls HUD:''' This rule is OBSOLETE! Cab-mode control HUD now integrated into Driver
+
Power Station Rule Sets up Station and Consumers
 
+
Power Station click to choose from session Stations
'''Cinematic Camera:''' This Rule provides several different cinematic style cameras
+
Consumers(Add Object) click to choose from session list
 
+
Ranked Session Begin Begins a ranked Session
Properties:
+
Countdown requires a Starting Value insert hrs., min,sec
  Lock camera controls for the duration: value: check
+
1 through 5 stars, points for each star insert number of points
  Prevent train control for duration: value: check
+
Session timer mode fill-in chooses: Timer, Countdown, None
  Camera target: value: name, any of the many objects in the session
+
Ranked Session Complete Completes the active ranked Session
  Camera mode: value: fill-in, Stationary, Circle targeted object, Move from one point to another(zoom, pan,etc)
+
Set the active ranked session as fill-in choose: Complete, Failed
  Initial Camera Values: number: value, Pitch, Yaw, Zoom
+
Customize the completion message check insert text message
  Total time to animate: value: number in seconds
+
Resource Check Check the progress of the amount of a resource and target
 
+
object
'''Clean Up Derailed Trains:''' This rule cleans up derailed traincars
+
Watch industry queue or Watch vehicle fill-in choose one or the other
 
+
Note: Both have: Target Object, Queue: click to choose
Properties:
+
Complete when designated queue fill-in equals or exceeds required amount, falls below
  Set delay to clean up derailed train cars to: value: hrs, min,sec
+
required amount
 
+
Session Complete Rule Set session to a percentage of completion
'''Clock Rule:''' Rule needed for animated clocks, you need to apply this rule to your session to make use of the animated clocks, see forum for code to include in you clock object to work with this rule
+
Set session to percent complete click to insert number in percent
 
+
Separate achievements for completion check
Properties:
+
Station Visited Check Rule Waits for any train to call at one of the designated stations
  Scripted clocks: value: ?? This rule send message to update the clocks on your map, only scripted clocks will work with this rule
+
Trigger click to choose from list
 
+
Add Industry click to add from session list
'''Close Message Popups:''' This rule closes message popup
+
Accept all trains fill-in
 
+
Accept trains matching specific criteria fill-in to choose from session list
Properties:
+
Danger Rules
  None
+
ATP Speed Limiter Limits speed over set limit
 
+
speed limit over the set limit mph
'''Consist Check:''' Checks for a specific train, can be disabled
+
AWS Configuration This rule configures the Trainz implementation of AWS
 
+
Use modern sound set for unfitted cabs? check
Properties:
+
Simulate AWS for unfitted cabs? check
  Enforce strict exclusive testing: value: check
+
Passive with HUD hidden fill-in
  Rule Disabled: value: fill-in
+
Active fill-in
  Complete whenever a train matching the description exists: consist list: fill-in
+
Passive fill-in
    Note: one of the fill-ins must be indicated
+
Clean UP Derailed Trains Cleans up derailed train cars
 
+
Set delay to clean up derailed train cars values
'''ConsistDataHandler Rule:''' Helps to place on a route a consist.  Consist databundle datahandler.  This rule is used by the QuickDrive Rule to add consists on routes while thery are running in Driver Mode.  This rule has no input/outputs of its own, please refer to the QuickDrive rule to acces its funtionality.
+
Coupler Breakage Check Checks for breaking couplers. No parameters.
 
+
None
Properties:
+
Coupler Breakage HUD HUD displays warning about coupler stress and breakage
  None
+
Show the Coupler Breakage Display fill-in must choose one or the other
 
+
Hide the Coupler Breakage Display fill-in must choose one or the other
'''Control Check Rule:''' Activates child rules based on the control method changes
+
Replace Missing Vehicles Rule Produce new trains to replace missing vehicles that have
 
+
been removed from the session by the cleanup derailed
Properties:
+
vehicles rule
  Execute child rules when: DCC mode is selected or Cab mode is selected: value: fill-in
+
Respawn trains if they are abandoned check
  Execute child rules: Every time control method is set or once only: fill-in  
+
Respawn trains fill-in choose: at their original locations, from portals
  Note: must choose one or the other
+
from Session List
 
+
Safety System Engaged Check Rule Checks for safety systems making penalty applications on
'''Control Type:''' Sets control types
+
users
 
+
Trigger only once check
Properties:
+
Safety System Isolated Check Rule Checks for safety systems being isolated by users
  Current control method is: Easy Mode, Ask User, Realistic Mode: value: Choice
+
Trigger only once check
  Note: One of the three
+
Set Coupler Masks Set the coupling/decoupling  masks on the selected vehicles
 
+
Add vehicle click to select from session list
'''Coupler Breakage Check:''' Checks for breaking coupiers
+
  Coupling Mask, Decoupling Mask: click to select: lock or unlock
 
+
Add All click to select all vehicle in session
Properties:
+
Delete All click to delete all vehicle from list
  None
+
Signal Passed At Danger Check Rule Checks for Drivers passing signals at danger
 
+
Trigger only once check to set
'''Coupler Breakage HUD:''' HUD displays warning about coupler stress and breakage
+
Speeding Check Rule Checks to see if player control trains are over the speed
 
+
Watch for trains travelling above the fill-in
Properties:
+
  Allow an over speed tolerance of click to insert mph over posted limit
  Show the Coupler Breakage Display: value: fill-in
+
Watch for trains travelling above a fill-in to insert custom speed limit
  Hide the Coupler Breakage Display: value: fill-in
+
  Warning: This method is very
  Note: must choose one or the other
+
Vehicle Physics Overrides the default vehicle physics properties
 
+
Accept all trains fill-in
'''CPC:Emit Train:''' Used to emit trains from the Central Portal Control on Triggered Events. Also works with the Un-Portal Rule
+
Cab sway level is set ? % click to insert percent of sway
 
+
Traction boost is % ? while  sanding click to insert percent of boost
Properties:
+
Tractions reduced to ? % while click to set traction percent
  Portal Index from CPC: value: number
+
Maximum tractive effort adjusted by ? click to insert percent amount
  Use Unportal: value: yes/no
+
Show coupler breakage in HUD check to set
  Delay from Trigger to Emit: value: number in seconds
+
Couplers break when coupling above ? click to set speed
 
+
Accept trains matching specific criteria fill-in to insert specific trains
'''CPC:Emit Train on Trigger:''' Used to emit trains fromthe Central Portal Control on Triggers.  Also works with the Un-Portal Rule
+
Couplers break at ? kN check to insert amount of force
 
+
Wait for Derailment Waits for a derailment to occur
Properties:
+
Trigger derailment watch once check to set
  Portal Index from PCP: value: number
+
Navigation
  Use Un-Portal: value: yes/no
+
DestSignTable Table for creating a table of destination signs
  Delay from Trigger to Emit: value: number in seconds
+
Enable Track Marks as destinations check
  Trigger: value: add Trigger
+
Enable table of destinations check
 
+
Import destination from texture-group. name
'''Custom Script:''' Custom scripted rule
+
Destination Name name
 
+
Enable industries/stations as check
Properties:
+
Interlocking Tower Configure Path Alters settings on an interlocking tower path
  None
+
Interlocking Tower choose Name and Objects
 
+
Interlocking Tower Path Selection UI Will automatically react to messages from Interlocking
'''Destination Sign Table:''' Table for creating a table of destination signs
+
Towers and display a path selection dialog to the player.   
 
+
Disable by removing rule from session
Properties:
+
Show path activation message in Driver check
  Destination Name: value: Name
+
  Import destination from texture-group:  Select texture-group: value: Name
+
Interlocking Tower Set Path Will set the state of an interlocking tower path for a train
  Enable industries/stations as destinations: value: check
+
Interlocking Tower choose Names and Objects
  Enable Track Marks as destinations: value: check
+
Multiple Junction Alignment Check Checks multiple junctions are in alignment
  Enable table of destinations: value: check
+
Wait until the following junctions are choose all or anyone
 
+
Add junction click add junction from session list
'''Disable/Enable Industry:''' Disables vehicle load/unload for industry
+
Add all click add all junctions from session list
 
+
Delete all click deletes all junctions from rule list
Properties:
+
Navigation Display Creates a navigation point
  Load/Unload for industry: value: Disable/Enable value: choose Industry
+
Navigation mode choose, fill-in All points must be completed in sequence, Points
  Apply to every vehicle in the session: value: fill-in
+
will be completed in sequence, but can be
  Apply only to a specific vehicle list: value:  fill-in values: Add vehicle/Add all vehicles/ Remove all vehicles
+
skipped, All points must be completed, but in any
  Note: One of the Applies must be selected
+
Note: See help icon for more
 
+
Style click choose Required Stop, Automatic, Manual
'''Display Custom HUD:''' Show or hide the Custom Heads Up Display
+
Display Text insert text
 
+
Location click choose train vehicle from session list
Properties:
+
Train(optional) choose train from session list
  Show the Custom Heads Up Display: value: fill-in
+
Unique set ID name must be lowercase and no spaces
  Hide the Custom Heads Up Display: value: fill-in
+
Icon click choose from list
  Note: One must be chosen
+
Navigation Point Complete Marks a navigation point complete
 
+
Mark navigation point click set index number
'''Display HTML Pages:''' Creates a browser to display the listed HTML files in order as a navigatable sequence of pages
+
Complete in set click to set ID
 
+
Navigation Set Check Checks if a navigation point is complete/incomplete
Properties:
+
Checks if navigation point is set click set ID
  Add Page: value: From Source Asset
+
Is click Complete, Incomplete
  Add All: value: From Source Asset
+
Navigation Set Clear Clears a navigation point set
  Delete All: value: From Source Asset
+
Clear the navigation point set click to set ID
  Set browser parameters:
+
Navigation Set Hide/Show Show or hide navigation point set
    Prevent user from exiting browser until all pages viewed: value: check
+
The navigation point click hide, show
    Disable closing of browser window by user: value: check
+
Navigation point set click to set ID
    Disable browser window scrolling: value: check
+
Schedule Rule Allows a schedule of timed events to be applied to a train
    Make browser window invisible: value: check
+
Insert track mark click to select from session list
    Set position-Under Construction!!!: value: check
+
    Set size-Under Construction!!!: value: check
+
  Use the page
+
    Index html: value: page name
+
  From asset HTML
+
    Click to select: value: HTML Assets as the hidden button
+
 
+
'''Display Video:''' Displays a page from a HTML asset in a browser window
+
 
+
Properties:
+
  Display page index html: value: HTML page Name
+
  of html assets value: click, select type
+
  Note: also can give the video a Name
+
 
+
'''Driver Command:''' Specify which commands will be available for the drivers
+
 
+
Properties:
+
  Cab: Set Control- Sets a cab node control
+
  Cab: Wait- Maintains current control state until some condition is met
+
  Change Destination Sign- Changes the destination signs of a train
+
  Couple- Couple train to designated vehicle
+
  Decouple- Decouples the train at the specified vehicle
+
  Delete Train- Causes the train and its driver to be deleted from the session
+
  Drive schedule- Driver command that causes the driver character to carry out the tasks specified by his train's schedule
+
  Drive To- Allows a driver character to take a train either to a destination industry or a specific track in a destination industry.  Will take the shortest path to get there
+
  Drive To Industry- Drive to a specific Industry
+
  Drive to Track mark- Driver command that allows a driver character to take a train to a specific trackmark on the map.  Will take the shortest path to get there
+
  Drive Via Track mark- Driver command that allows a driver character to take a train through a specific trackmark for its journey. Will take the shortest path to get there
+
  Drive To Station V2- No description
+
  Drive To Track mark Kist V2- No description
+
  Halt Train- Brings the train to a complete stop
+
  Headlights On/Off-Allows the driver to switch the headlights on and off
+
  Hornz- Driver sounds the train horn
+
  Instant Load Command- Instantly load a train with a random product selected from its product que.  InstanLoad will not load locos or loco tenders
+
  Instant Load Locos- Instantly load all locos in a train-useful for trains generated automatically by portals etc.  All locos with product queues(eg Phil_Cs) and all tenders will have all available ques loaded
+
  InstantUnload- Instantly unload a train-useful for trains generated automatically by portal etc. Every product que found in each industry-activated car will be unloaded.  InstantUnload will not unload locos or loco tenders
+
  Interior Lights Command- Driver command to switch interior lights on or off for the current train
+
  Load- Loads the train's vehicles at the industry the driver is currently at with the train
+
  MoveTurntable- TRS2008: Move turntable to a stop point
+
  Navigate To- Allows a driver character to take a train either to a destination iindustry or a specific track in a destinatin industry.  Will attempt to route around trains to get there
+
  Navigate To Trackmark- Driver command that allows a driver character to take a train to a specific trackmark on the map. Will attempt to route around trains to get there
+
  Navigate Via Trackmark- Driver command that allows a driver character to take a train through a specific trackmark for its journey.  Will attempt to route around trains to get there
+
  NavigateToStation V2- No description
+
  NavigateToTrackMarkList V2- Noi description
+
  Notify- Notifies the player of schedule progress/completion
+
  ReleaseJuncion- Lets a driver release the junction they have been holding
+
  ReverseTram- Reverse a tram(max 2 cars)
+
  Run Around- Instructs the driver to uncouple his locomotive from and run-around it to recouple up to the other end of the train
+
  Set Max Speed To- No description
+
  Terminate Passenger Train- This command wil terminate a passenger train at the current passenger station.  This will cause all of the passengers to disembark for the traiinYou must issue a 'Drive To' command for a passenger
+
    station before using this command
+
  UnCouplerFrom- A new Uncople driver command that allows you to uncouple from vehicle number (with 0 being the first vehicle in the consist)
+
  Unload- Unload train vehicles at current industry location
+
  VR Set Train Lamps-Driver command that sets the train lamps
+
  WaitFor- Pauses the driver's scheule or optionally random period of time
+
  WaitForRandom- TRS2008: Wait for specified or optionally random period of time
+
  WaitForTrigger- Tell a driver to wait until a trigger you select is touched by a train you select(or any train)
+
  WaitUntil- No description
+
 
+
'''Driver Command Check:''' Verifies the driver comands of a driver character
+
 
+
Properties:
+
  Trigger rule once: Value: check
+
  Driver character to watch the commands list of: value: name Driver
+
  Wait for a driver character to have a command list that matches this: Add Driver command: Value: add driver command, Add All, Delete All
+
 
+
'''Driver Main Menu Options:''' Show the Driver Main Menu Bar
+
 
+
Properties:
+
  The Driver Main Bar: Value: Show/Hide choice
+
 
+
'''Driver Schedule Rule:''' Execution of basic scheduled commands
+
 
+
Properties:
+
  Driver Schedule Rule assigned to: Value: Name Driver
+
  Commands: Value: Insert Driver Commands in Drive Schedule
+
  Classic style: If there is a schedule running, do not emit a new schedule: value: fill-in
+
  Killer style: If there is a schedule running, clean it and emit a new one: value: fill-in
+
  Cooperative style: If there is a schedule running, append the new one: value: fill-in
+
  Active style:  Emit a new schedule, only if already there is a schedule running: value: Fill-in
+
  NOTE: Only one of the fill-in can be choosen
+
 
+
'''Driver Setup:'''  Create the list of drivers for this session, and assign them their orders
+
 
+
Properties:
+
  The following drivers will be available: Value: Add drivers name
+
  Remove all existing Drivers first: Value: check
+
  Generate new Drivers for empty trains(In addition to those detailed above, new drivers will be generated for any empty trains): Value: check
+
 
+
'''EIRS Weather Rule NE USA:'''  Customise random weather rule relative to the north east region of the United States
+
 
+
Properties:
+
  Set season to Summer/Winter/Fall/Spring : value: Choice
+
  Change every minutes: value: number of minutes
+
  Environmental impact Disable/Enable: Value: Choice
+
 
   
 
   
'''Enable/Disable Driver Commands:''' enable/Disable specific driver commandson certain drivers
+
 
+
Note: Both has an arrival and departure set time hr:min:sec
Properties:
+
Current Train click to select from session list
  The following driver commands for all driver characters on trains the match the criteria below: Value: Check Driver Commands
+
Insert destination click to select from session list
  Train criteria, All trains: Value: fill-in
+
Set Junctions Sets the selected junctions to a specific state Warning: not
  Train criteria, Only trains matching criteria: Value: List train criteria
+
compatible with Interlocking Tower Assets
 
+
Add Junction click to select session junction list
'''End Session:''' End the session without saving session
+
Add All click
 
+
Delete All click
Properties:
+
Warning: Not compatible with
  End the session. Fade out over seconds: Value: number of seconds
+
Set Signal Extended rule Warning: not compatible with Interlocking Tower Assets
 
+
Set signal click to select from session list
'''Fade in/out:''' Fade in or out within seconds, color and opacity considered
+
State ' to select state from list
 
+
Trigger Check Waits for any train to enter one of the designated triggers
Properties:
+
Accept all trains fill-in
  Red percentage: value: percent amount
+
Accept trains matching specific criteria fill-in to choose from session list
  Green percentage: value: percent amount
+
Add Trigger click to choose from session list
  Blue percentage: value: percent amount
+
Trigger only once check to set
  Alpha percentage(opacity): percent amount
+
Wait for child rules to complete even if check to set
  Fading duration: value: number of seconds
+
Only activate when the entering click to choose forward, backward
  NOTE:  Sets or removes overlay color, black = 0% all colors, white = 100% of all colors, fade out = alpha near 100%, fade in = alpha at 0%, make one rule to fade in and another rule to fade out
+
Wait on Navigation Point Waits for a nav point to be complete
 
+
Wait for navigation point ? click to choose from session list
'''Flash HUD icon:'''  Flashes a HUD panel icon for a set duration of time or instructs a HUD panel icon to start/stop flashing
+
in set ? to be completed click to insert ID
 
+
Wait on Train Stop/Start Wait for a train to stop or start
Properties:
+
Accept all trains fill-in to set
  Flash HUD Panel selection: value: Bottom Right Menu, Camera Controls, DCC Controls, Driver Main Menu
+
Accept trains matching specific criteria fill-in to set and choose from session list
    Icon: value: depends on HUD Panel selection
+
Wait for a train that matches the click to choose: start moving, stop moving
    Time duration in seconds: value: number of seconds
+
Trigger rule once check to set
  Start/Stop: value: Start or Stop
+
Note: One or the other fill-ins must be
    Select HUD Panel: value:  see above
+
Drivers
    Icon: value: depends on HUD Panel selection
+
Control Type Sets control type
  Note: Either Flash or Start/Stop must be choosen
+
Current control method is: Easy Mode, Choice one of the three
 
+
'''Generic TreeNode Debug Window:''' No description
+
CPC: Emit Train Used to Emit Trains from the Central Portal Control on
 
+
Triggered Events.  Also works with the Un-Portal Rule
Properties:
+
Portal index form CPC value
  None
+
Use UnPortal Yes/No
 
+
Delay from Trigger to Emit: Seconds value
'''InputTable:''' Creating a list of messages names to be used for various purposes
+
CPC: Emit Train On Trigger Used to Emit Trains from the Central Portal Control on
 
+
Triggers, Also works with the Un-Portal Rule
Properties:
+
Trigger add Trigger
  Add: Value: Message Name
+
Portal index from PCP value
 
+
Use UnPortal yes/no
'''Interlocking Tower Configuration Path:'''  Alters settings on an interlocking tower path
+
Delay from Trigger to Emit: seconds value
 
+
Disable/Enable Industry Disables vehicle load/unload for industry
Properties:
+
Apply to every vehicle in the session fill-in
  Interlocking Tower: Value: Set name and objects
+
Apply only to a specific vehicle list fill-in Add vehicle/Add all vehicles/Remove all vehicles
 
+
Note: One of the Applies will always be
'''Interlocking Tower Path Selection UI:''' Will automatically react to messages from interlocking Towers and display a path selection dialog to the player.  If you wish to disable teh interface simply remove this rule from your
+
Load/Unload for industry Disable/Enable choose Industry
    session
+
Driver Command Specify which commands will be available for the drivers
 
+
Navigate To Track mark- Driver
Properties:
+
Release Junction - Lets a driver release
  Show path activation messages in Driver: Value: Check
+
Notify- Notifies the player of schedule
 
+
NavigateToTrackMarkList V2- No
'''Interlocking Tower Set Path:'''  Will set the stae of an interlocking tower path for a train
+
NavigateToStation V2- No description
 
+
ReverseTram- Reverse a tram(max 2
Properties:
+
Navigate Via Track mark- Driver
  Interlocking Tower: Value: Name and Objects
+
UnCouplerFrom- A new Uncouple driver
 
+
Navigate To- Allows a driver character
'''MaxPermittedSpeed:''' Controls AI behavior, when active AI trains only go as fast as permitted
+
Halt Train- Brings the train to a
 
+
Run Around- Instructs the driver to
Properties:
+
Terminate Passenger Train- This station before using this command
  Config.txt file: Value: Set the 'max_permitted_speed-60850 tag in mph or kph
+
MoveTurntable- TRS2008: Move
  Add: Value: <KUID2:60850:88000:4> to config.txt and kuid-table for compatible. Old root level config tag will show warning in CMP and problems in foreign language builds
+
Unload- Unload train vehicles at current
 
+
VR Set Train Lamps-Driver command
'''Message Popup:''' Displays a pop-up message in a browser window and waits for it to be closed
+
WaitFor- Pauses the driver's schedule or
 
+
WaitForRandom- TRS2008: Wait for
Properties:
+
WaitForTrigger- Tell a driver to wait
  Pause game while message is displayed: Value: Check
+
WaitUntil- No description
  Close previous message popup windows: Value: Check
+
Set Max Speed To- No description
  Message location: Value: Top Lift, Top Right, Bottom Left, Bottom Right
+
Drive Via Track mark- Driver command
  Message source: Custom text/ A pre-defined HTML page(advanced), A pre-defined string-table entry from a HTML asset(advanced): Value: Choose one
+
Load- Loads the train's vehicles at the
    Note: Choices of source determine multiple inputs.  Can write custom text in textbox
+
Cab Wait maintains current control state until some
 
+
condition is met
'''Minimap Options:''' Sets the options for the minimap
+
Change Destination Sign Changes signs of a train
 
+
Couple- Couple train to designate
Properties:
+
Decouple- Decouples the train at the
  Types of items to display on the Minimap when viewed: Value: Map Textures, Gradients, Junctions, Signals, Triggers, Markers, Trackside Labels, Terrian Objects, Industry Names, Named Objects, Consists
+
Delete Train- Causes the train and its
  Note: All can be checked or unchecked
+
Drive Schedule- Driver command that
 
+
Drive To- Allows a driver character to
'''Multiplayer Rule:'''  Enables this session to be taken online in a Multiplayer environment
+
Hornz- Driver sounds the train horn
 
+
Drive to Track mark- Driver command
Properties:
+
Cab Set Control cab mode control
  Suggested maximum number of players for this session: Value: number
+
Drive To Station V2- No description
  Maximum number of drivers per player: Value: number
+
Drive To Track mark List V2- No
  Players are permitted to claim drivers: Value: check
+
Headlights On/Off-Allows the driver to
  Automatically target an available train on clients: Value: check
+
Instant Load Command- Instantly load a
 
+
Instant Load Locos- Instantly load all
'''Multiple Junction Alignment Check:''' Checks multiple junctions are in alignment
+
InstantUnload- Instantly unload a train-
 
+
Interior Lights Command- Driver
Properties:
+
Drive To Industry- Drive to a specific
  Wait until the following junctions are set to its corresponding set state: Value:  all or anyone
+
Driver Command Check Verifies the driver commands of a driver character
  Add Junction: Value: click, Add Junction to list
+
Wait for driver character to have add driver, all, delete all
  Add All: Value: click, Adds all available junctions to the list
+
Trigger Rule once check
  Deletes all: Value: click, Deletes all junctions from list
+
Driver character to watch the name driver
 
+
'''Multiple Resource Check:''' Checks resource for completion
+
Driver Main Menu Options Show the Driver Main Menu Bar
 
+
The Driver Main Bar choice show/hide
Properties:
+
Driver Schedule Rule Execution of basic scheduled commands
  Wait for the designated queues from the listed vehicles/industries to collectively:  Value: fall below, reach/exceed
+
Note: Only one of the fill-in can be
  having units: Value: number
+
Driver Schedule Rule assigned to name driver
  products: Value: click to choose product from list
+
Commands insert driver commands in Drive Schedule
  Add Object:  Value: Click, choose from session list
+
Classic style: If there is a schedule fill-in
 
+
Killer style: If there is a schedule fill-in
'''Navigation Display:''' Creates a navigation point
+
Cooperative style: If there is a schedule fill-in
 
+
Active style: Emit a new schedule, only fill-in
Properties:
+
Driver Setup Create the list of drivers for this session and assign them
  Unique set ID: Value: Name(must be lowercase and no spaces)
+
their orders
  Train(optional): Value: Train vehicle from session list
+
Generate new Drivers for empty check
  Navigation mode: Value: Fillin, choose one, All points must be completed in sequence, Points will be completed in sequence, but can be skipped, All points must be completed, but in any order
+
The following drivers will be available Driver's Name Add
  Location: Value: Click, Choose Train vehicle from session list
+
Remove all existing Drivers first check
  Icon:  Value: Click, Choose from list
+
Enable/Disable Driver Commands Enable/Disable specific driver commands on certain drivers
  Display text: Value: Type text
+
Assign Driver commands check Driver Commands
  Style: Value: Click, Required Stop/Automatic/Manual
+
Train criteria fill in all trains
  Note: See help icon for more information
+
Train criteria list train only trains matching criteria
 
+
MaxPermittedSpeed Controls AI behavior. When active AI Trains only go as fast
'''Navigation Point Complete:''' Marks a navigation point complete
+
as permitted
 
+
Config/txt file tag 'max_permitted_speed-60850 in mph or kph
Properties:
+
Add to config.txt and kuid-table for value <KUID2:60850:88000:4
  Mark navigation point: Value: click to set index number
+
Note: Old root level config tag will
  Complete in set: Value: click to set ID
+
QuickDrive rule Change the Session settings and add consists in Driver
 
+
Set Time to insert time
'''Navigation Set Check:''' Checks if a navigation point is complete/incomplete
+
QuickDrive Consist Option List by
 
+
Rate of Change insert rate as number times
Properties:
+
Enable gameplay Session Mode check
  Checks if navigation point set: Value: click to set ID
+
Enable in game help by default check
  Is: Value: complete/incomplete
+
Set the default Control method to fill-in choose: Easy Mode, Realistic Mode
 
+
'''Navigation Set Clear:'''  Clears a navigation point set
+
Prevent player from changing this check
 
+
Realistic mode requires achievement add Achievement's Name
Properties:
+
In Asset choose Auran achievements
  Clear the navigation point set: Value: click to set ID
+
Set the default derailment realism level fill-in choose: Nome, Arcade, Realistic
 
+
Prevent player from changing 10.0 check
'''Navigation Set Hide/Show:''' Show or hide navigation point set
+
Set the default units to fill-in choose: Imperial, Metric, Default
 
+
Open QuickDriver Window when check
Properties:
+
Wait for Driver On/Off Train Waits for a Driver to get off of a train
  The navigation point: Value: click to set hide/show
+
Note: One or the other fill-ins must be
  Navigation point set: Value: click to set ID
+
Accept trains matching specific criteria fill-in to select from session list
 
+
Accept all trains fill-in to set
'''Objective Add:''' Sets up a game Objective with ID and display name
+
Trigger rule once check to set
 
+
Wait for a driver character to get ? a click to select: On, Off
Properties:
+
Wait for Driver/Train to be Locally Waits for a specific driver or train car to be locally owned,
  Unique objective ID: Value: click to set ID
+
Owned then executes child rules. If the driver/train car becomes
  Display Name: Value: click to set Name
+
unowned again the child rules are paused
  Icon: Value: click to set Icon, choose from list
+
Wait for ownership of a specific Driver fill-in to set
  Priority: Value: click to set, Above normal, Below normal, Normal, Optional, Urgent
+
Wait for ownership of Driver fill-in to set
  Completion target: click to set target number
+
Note: One or the other fill-in must be
  Custom messageValue: Type message in text area
+
Driver or Vehicle click to choose from session lists
 
+
List Configurations Rules
'''Objective Check:''' Executes children rules when objective is completed
+
Control Check Rule Activates child rules based on the control method changes
 
+
Excite child rules when: DCC mode is fill-in one or the other
Properties:
+
Excite child rules: Every time control fill-in one or the other
  Unique objective ID: Value: click to insert ID number
+
Ordered List Child rules will be executed in order once this rule starts
  Mode: Value:  click to choose, Wait for completion/Wait for failure/Wait for progress
+
Note: One of the two must be chosen
 
+
This process will repeat fill-in click to add number of repeats
'''Objective UpDate:''' Changes progress outcome according to Property choices
+
This process will repeat forever fill-in
 
+
Progressive List The first child rule is executed on the first run, second child
Properties:
+
executed on second run, etc.
  Unique objective ID: Value: click to set ID number
+
  Mode: Value: Value: click to set, Set objective as Decrement progress/Increment progress/Reset objective/Set objects as complete/Set objects as failed/Set progress/Set progress only if greater
+
After last child run is executed click to choose: First child is chosen again, It will be
  Amount: Value: click to set amount number
+
used for all successive runs, Successive runs will
 
+
do nothing
'''Ordered List:'''  Child rules will be executed in order once this rule starts
+
Random List One of the child rules indented under this rule will be
 
+
executed randomly
Properties:
+
Once one of the child rule is
  This process will repeat: Value: fill-in, click to add number of repeats
+
Reset List Resets and starts all child rules in an ongoing infinite cycle
  This process will repeat forever:  fill-in
+
None
  Note: One of the two must be choosen
+
Simultaneous List Child rules are executed simultaneously once this rules
 
+
Rules completes when click choose all rules have reached completed state,
'''Play Sound:''' Plays a wav sound file
+
was completed state
 
+
Wait for HTML Pages Waits for the Display HTML Pages sequence browser to
Properties:
+
open/close a specific HTML Page
  Play the wav file of HTML asset: Value: click to Name File
+
  Page name click to insert Page Name
  Asset: Value: click to choose
+
Note: One or the other fill-ins must be
  Rule completes when: Value: click to choose sound has just started/sound has finished playing
+
Close page fill-in to set
 +
  named ? click to insert name
 +
One the page fill-in to open
 +
Trigger Rule Once check to set
 +
Wait on MiniMap Screen/Main Screen Waits for the MiniMap window to be opened
 +
Wait for the MiniMap window to be ? click to set: opened, closed
 +
Trigger Rule once check to set
 +
Camera Rules
 +
Cinematic Camera Provides several different cinematic style cameras
 +
Lock camera controls for the duration check
 +
Prevent rain control for duration check
 +
Camera target: name any of the many objects in session
 +
Camera mode: Stationary, Circle fill-in
 +
Initial camera values: Pitch, Yaw, Zoom value
 +
Total time to animate: seconds value
 +
Set Camera Sets the target object and properties of the camera.
 +
Preforming the selected properties
 +
 +
Change the camera view mode to check to choose: Cab View, External View, Tracking
 +
View, Free Roaming
 +
Vehicle fill-in choose from session vehicles
 +
Set the camera flags to enable/disable check to choose different properties from list
 +
  Junction fill-in choose from session junctions
 +
Set the target objet of the camera to check
 +
  Map object fill-in choose from map objects
 +
Wait for Camera View Mode Waits for the camera to be changed to the designated view
 +
Trigger rule once check to set
 +
Wait for the camera to change to the ? click to choose: Cab View, External View, Tracking
 +
View, Free Roaming View
 +
Wait for the camera to target vehicle ? click to choose form session list
 +
Correspondence Rules
 +
Close Message Popups Closes message popup
 +
None
 +
Custom Script Custom scripted rule. No Parameters
 +
None
 +
Display Custom HUD Show or hide the Custom Heads Up Display
 +
Note: One must be chosen
 +
Show the Custom Heads Up Display fill-in
 +
Hid the Custom Heads Up Display fill-in
 +
Display HTML Pages Creates a browser to display the listed HTML files in order
 +
as a navigable sequence of pages
 +
4  Make browser window invisible check
 +
1 Index html page name
 +
2 From Asset HTML as the hidden button click to select
 +
Use the page
 +
6  Set size-Under Construction!!! check
 +
5  Set position-Under Construction!!! check
 +
2  Disable closing of browser window check
 +
1 Prevent user from exiting browser check
 +
 +
Set browser parameters
 +
Delete All From Source Assets
 +
Add All From Source Assets
 +
Add Page From Source Assets
 +
3  Disable browser window scrolling check
 +
Display Video Displays a page from a HTML assets in a browser window
 +
html assets select type
 +
Note: can also give the video a name
 +
Display page index html page Name
 +
End Session End Session without saving
 +
End the Session number seconds
 +
Fade in/out Fade in or out within seconds, color and opacity considered
 +
Blue percentage number percent
 +
Note: Make one rule to fade in another
 +
Note: Sets or removes color overlay,
 +
Alpha percentage(opacity) number percent
 +
Green percentage number percent
 +
Red percentage number percent
 +
Fading duration, fade out = alpha near number seconds
 +
Flash HUD Icon Flashes a HUD panel icon for a set duration of time or  
 +
instructs a HUD panel icon to start/stop
 +
Flash HUD panel type choose Bottom right menu/Camera Controls/DCC  
 +
Controls/Driver Main Menu
 +
Icon choose depends on HUD panel
 +
Time duration number seconds
 +
Start/Stop
 +
Select HUD Panel to start/stop choose Start/Stop
 +
Icon choose see 1
 +
Note: Either Flash or Start/Stop must  
 +
GenericTreeNode Debug Window None
 +
None
 +
 +
InputTable Creating a list of message names to be used for various  
 +
purposes
 +
Add Name message
 +
Message Popup Displays a pop-up browser window and waits to be closed
 +
Note: Choice of source determine multi
 +
Message source choose one Custom text/A pre-defined HTML  
 +
page(advanced/A pre-defined string-table from  
 +
HTML asset(advanced)
 +
Close previous message pop-up check
 +
Pause game while window is displayed check
 +
Window location choose one Top Lift/Top Right/ Bottom Left/Bottom Right
 +
Minimap Options Sets the display options for the minimap
 +
Types of items to display on the check Textures, Gradients, Junctions, Signals, Triggers,  
 +
Markers, Trackside Labels, Terrian Objects,  
 +
Industry Names, Named Objects, Consists
 +
Note: All can be checked or unchecked
 +
Play Sound Plays a wav sound file
 +
Play a wav file of HTML Assets click to Name file
 +
Asset click to choose
 +
Rule completes when click to choose: Sound just started, Sound has finished
 +
playing
 +
Session Debug Rule Executes the first child if debug mode is selected.
 +
Otherwise the second child. Once this child is complete,
 +
this rule will be complete
 +
None
 +
Session Metadata Sets session metadata in the config file. Info can be read by
 +
other systems and displayed to the player
 +
Length click to insert minutes
 +
Difficulty click to select: Normal, Tutorial, Easy, Hard, Expert
 +
Type click to select: Simulation or Challenge
 +
Set Helper Icon Size Sets the size of helper icons such as the junction lever
 +
Scale junction lever arrows to be click to set percentage of default
 +
 +
Set HTML Pages instructs the Display HTML Pages rule to perform specific
 +
operations
 +
    Spare setting 5 check
 +
    Spare setting 2 check
 +
  Assets ' to select from list
 +
  Index click to select String Table Entry
 +
Use the string table entry from the fill-in
 +
    Asset click to select from list
 +
Use the page index html form the HTML fill-in
 +
    Spare setting 4 check 2
 +
    Spare setting 3 check
 +
    Disable scrolling(not implemented) none
 +
    Window has no 'done' Button check
 +
Choose one of the following fill-in
 +
    Hide/Close window on 'done' action check
 +
    Index html click to select HTML Page Name
 +
  Set the following flags for the page click HTML Page Name
 +
  Set browser parameters to click to set Closing Window by user, scrolling on
 +
browser window, hide browser window
 +
  Instructs the sequence browser to click to set  HTML Page Name
 +
  Instruct the sequence browser to click to set to: Close, Done check button, Previous
 +
page, Next Page, First Page, Last Page, Hide
 +
Window, Show Window
 +
    Spare setting 1 check
 +
Show/Hide HUD Panel Shows or hides a HUD panel
 +
Show, Hide click to select
 +
HUD Panel click to select from list
 +
Show/Hide Layer Shows or hides a layer from Driver
 +
The layer click to choose hide, show
 +
Layer's name click to add Layer's Name
 +
Show/Hide Minimap Shows the Driver the minimap window
 +
Minimap Window click to show, hide window
 +
 +
Show/hide on-screen help Shows or hides On-screen help in Driver
 +
On screen help fill-in to Show, Hide, Leave unchanged
 +
Vehicles names fill-in to choose Show, Hide, Leave unchanged
 +
Wait for Click on HUD Icon Waits for a click on the HUD Icon
 +
Trigger rule once check to set
 +
Choose HUD Panel click to choose Panel from list
 +
Wait for a click on? Icon click choice depends on HUD Panel
 +
Wait on Waybill Screen/Main Screen Waits for the Waybill window to be opened
 +
Trigger rule once check to set
 +
Wait for the Waybill window to be ? click to set: opened, closed
 +
Startup Rules
 +
Multiplayer Rule Enables this session to be taken online in a Multiplayer
 +
environment
 +
Suggested maximum number of players number
 +
Maximum number of drivers per player number
 +
Players are permitted to claim drivers check
 +
Automatically target an available train check
 +
Startup Options Specifies the starting options for the session
 +
Set derailment realism to click to choose None, arcade, Realistic
 +
Current control method is click to choose Ask user, Realistic mode, Easy mode
 +
Show in-game help check
 +
Use units in Driver click to choose default, imperial, metric,
 +
Set Time to click to insert hours and minutes
 +
Set Weather to click to choose from list
 +
Changeability click to choose Off, Periodic, Extreme
 +
  Rate of click to choose from list
 +
Time Rules
 +
Clock Rule Rule needed for animated clocks, you need to apply this rule
 +
to your session to make use of the animated clocks, see
 +
forum for code to include in you clock object to work with
 +
this rule
 
   
 
   
 
+
'''Power Station Rule:''' Sets up Station and Consumers
+
This rule send messages to update the
 
+
Timecheck Executes child rules at a certain time
Properties:
+
Child rules will be executed at click to insert hours, minutes, seconds(24 hrs. format)
  Power Station: Value: click to choose from session Stations
+
Execution time is on the day after the check
  Consumers(Add Object): Value: click to choose from session list
+
Timed limited display HTML Displays an html browser window for a limited time
 
+
Alert show ability click to choose not reshowable on request,  
'''Progressive List:''' The first child rule is executed on the first run, second child executed on second run, etc
+
reshowable on request
 
+
Browser left position(SessVar or click to insert number
Properties:
+
Display duration(SessVar or duratiion in click to insert number of seconds
  After last child run is executed: Value:  click to choose, the first child is chosen again/it will be used for all successive runs/successive runs will do nothing
+
HTLM Asset Name click to select from list
 
+
Browser height(SessVar or position) click to insert number
'''QuickDrive rule:''' Change the Session settings and add consists in Driver
+
Browser width(SessVar or position) click to insert number
 
+
Browser top position(SessVar or click to insert number
Properties:
+
Page filename click to insert file name
 
+
Timing Check Rule Triggers subrules if called within the time window specified
'''Random List:''' One of the child rules indented under this rule will be execited randomly
+
Start of time window click to insert hours, minutes, seconds
 
+
End of time window click to insert hours, minutes, seconds
Properties:
+
Wait Wait for number of seconds
 
+
Wait for ? Seconds click to insert number of seconds
'''Ranked Session Begin:''' Begins a ranked Session
+
Plus/minus ? Seconds click to insert number of seconds of variance
 
+
Wait for Click on HUD Icon Same as 96.0
Properties:
+
Variable Rules
 
+
Variable Check If variable 'score' is less than 'number' the child rules will  
'''Ranked Session Complete:''' Completes the active ranked Session
+
be executed in order
 
+
  A score click to insert number
Properties:
+
Condition click to choose evaluated only one, changes after
 
+
check will not affect this rule, evaluated once
'''Replace Missing Vehicles Rule:''' Produce new trains to replace missing vehicles that have been removed from the session by the clean up derailed vehicles rule
+
every second
 
+
Test that variable click to select name of variable from session list
Properties:
+
  is click to select from list
 
+
'''Reset List:''' Resets and starts all child rules in an ongoing infinite cycle
+
Variable Modify Change amount of variable score
 
+
Value click to insert maximum number
Properties:
+
Amount to change click to insert number
 
+
Variable click to select from session variable names
'''Resource Check:''' Check the progress of the amount of a resource and target object
+
If rule is stopped click to choose: Do not undo the alteration, Undo the  
 
+
alteration
Properties:
+
Set the minimum value fill-in
 
+
  Variable click to choose variable name from session list
'''Safety System Engaged Check Rule:''' Checks for safety systems making penalty applications on users
+
Amount click to insert minimum score
 
+
Maximum fill-in
Properties:
+
  Variable Name click to choose from session list
 
+
Change click to choose from: Add to variable, Subtract from
'''Safety System Isolated Check Rule:''' Checks for safety systems being isolated by users
+
variable, Change variable to
 
+
Variable Modify Continuous Adds a value to variable 'score' every second
Properties:
+
'Score' click to insert variable name
 
+
Change 'score' click to set: Add to, Subtract from, Change variable to
'''Schedule Rule:''' Allows a schedule of timed events to be applied to a train
+
Amount to change click to insert amount of change each second
 
+
Variable Show Adds the variable 'Score the custom HUD with label none
Properties:
+
Add variable to the custom HUD check to set
 
+
  Name Variable click to insert Name
'''Session Complete Rule:''' Set session to a percentage of completion
+
Variable label click to insert Property Label
 
+
Remove variable click to insert Property Label
Properties:
+
Weather Rules
 
+
EIRS Weather Rule NE USA Customize random weather rule relative to the North East
'''Session Debug Rule:''' Executes the first child if debug mode is selected. Otherwise thesecond child. Once this child is complete, this rule will be complete
+
Region of the United States
 
+
Set season to choose Summer/Winter/Fall/Spring
Properties:
+
Change every minutes number of minutes
 
+
Environmental impact choose Disable/Enable
'''Session Metadata:''' Sets session metadata in the config file. Info can be read by other systems and displayed to the player
+
Weather Set the weather conditions
 
+
With ? changeability ' to set: Off, Periodic, Extreme
Properties:
+
Set weather to ? click to set: Clear, Cloudy, Drizzle, Rain, Stormy, Light,
 
+
Medium Snow, Heavy Show
'''Set Camera:''' Sets the trget object and properties of the camer. Proforming the selected properties
+
 
+
Properties:
+
 
+
'''Set Coupler Masks:''' Set the coupling/decoupling masks on the selected vehicles
+
 
+
Properties:
+
 
+
'''Set Helper Icon Size:''' Sets the size of helper icons such as the junction lever arrows
+
 
+
Properties:
+
 
+
'''Set HTML Pages:''' instructs the Display HTML Pages rule to perform speific operations
+
 
+
Properties:
+
 
+
'''Set Junctions:''' Sets the selected junctions to a specific state Warning: not compatible with Interlocking Tower Assets
+
 
+
Properties:
+
 
+
'''Set Signal Extended rule:''' Warning: not compatible with Interlocking Tower Assets
+
 
+
Properties:
+
 
+
'''Show/Hide HUD Panel:''' Shows or hides a HUD panel
+
 
+
Properties:
+
 
+
'''Show/Hide Layer:'''
+
 
+
Properties:
+
 
+
'''Show/Hide Minimap:'''
+
 
+
Properties:
+
 
+
'''Show/hide on-screen help:'''
+
 
+
Properties:
+
 
+
'''Signal Passed At Danger Check Rule:'''
+
 
+
Properties:
+
 
+
'''Simultaneous List:'''
+
 
+
Properties:
+
 
+
'''Speeding Check Rule:'''
+
 
+
Properties:
+
 
+
'''Startup Options:'''
+
 
+
Properties:
+
 
+
'''Station Visited Check Rule:'''
+
 
+
Properties:
+
 
+
'''Timecheck:'''
+
 
+
Properties:
+
 
+
'''Timed limited display HTML:'''
+
 
+
Properties:
+
 
+
'''Timing Check Rule:'''
+
 
+
Properties:
+
 
+
'''Trigger Check:'''
+
 
+
Properties:
+
 
+
'''Variable Check:'''
+
 
+
Properties:
+
 
+
'''Variable Modify:'''
+
 
+
Properties:
+
 
+
'''Variable Modify Continuous:'''
+
 
+
Properties:
+
 
+
'''Variable Show:'''
+
 
+
Properties:
+
 
+
'''Vehicle Physics:'''
+
 
+
Properties:
+
 
+
'''Wait:'''
+
 
+
Properties:
+
 
+
'''Wait for Camera View Mode:'''
+
 
+
Properties:
+
 
+
'''Wait for Click on HUD Icon:'''
+
 
+
Properties:
+
 
+
'''Wait for Click on HUD Icon:'''
+
 
+
Properties:
+
 
+
'''Wait for Derailment:'''
+
 
+
Properties:
+
 
+
'''Wait for Driver On/Off Train:'''
+
 
+
Properties:
+
 
+
'''Wait for Driver/Train to be Locally Owned:'''
+
 
+
Properties:
+
 
+
'''Wait for HTML Pages:'''
+
 
+
Properties:
+
 
+
'''Wait on MiniMap Screen/Main Screen:'''
+
 
+
Properties:
+

Revision as of 05:10, 19 September 2017

Session Rule List (Work in progress) Please Note: All rules are copyrighted by N3V Games


This is a list of the Trainz Session Rules: These rules can be copied and pasted to show how you're programming your Session


Achievement Rules

Achievement Check Rule This rule allows you to customize session gameplay based on whether the player has received an achievement

Advanced Industry Load Configuration: Names industry, lock train's controls?, overrides begin load and begin unload

 Target object	??	name of object such as Power Station, Coal Pit or Portal
 Lock train's controls	checked	during a stopped load/unload operation
 Override 'begin load' and 'begin unload'	checked	# of seconds to override

Multiple Resource Check: Checks resource for completion Wait for the designated queues from choose fall below, reach/exceed Units number amount of units Products click choose from session list Add Object click choose from session list

Objective Add: Sets up a game Objective with ID and display Name Priority click choose Above Normal, Below Normal, Normal, Optional, Urgent Completion Target click to set target number Icon click choose from list Display Name click insert Name Unique Objective ID click set ID Custom Message insert typed message in text area

Objective Check: Executes child rules when objective is complete Unique Objective ID click insert ID number Mode click choose Wait for completion, Wait for failure, Wait for progress

Objective Update: Changes progress outcome according to Property choices Unique Objective ID click to set ID number Monday, September 18, 2017 Page 1 of 18 Mode click Set objective as Decrement progress/Increment progress/Reset objective/Set objects as complete/Set objects as failed/Set progress/Set progress only if greater Amount click insert number Power Station Rule Sets up Station and Consumers Power Station click to choose from session Stations Consumers(Add Object) click to choose from session list Ranked Session Begin Begins a ranked Session Countdown requires a Starting Value insert hrs., min,sec 1 through 5 stars, points for each star insert number of points Session timer mode fill-in chooses: Timer, Countdown, None Ranked Session Complete Completes the active ranked Session Set the active ranked session as fill-in choose: Complete, Failed Customize the completion message check insert text message Resource Check Check the progress of the amount of a resource and target object Watch industry queue or Watch vehicle fill-in choose one or the other Note: Both have: Target Object, Queue: click to choose Complete when designated queue fill-in equals or exceeds required amount, falls below required amount Session Complete Rule Set session to a percentage of completion Set session to percent complete click to insert number in percent Separate achievements for completion check Station Visited Check Rule Waits for any train to call at one of the designated stations Trigger click to choose from list Add Industry click to add from session list Accept all trains fill-in Accept trains matching specific criteria fill-in to choose from session list Danger Rules ATP Speed Limiter Limits speed over set limit speed limit over the set limit mph AWS Configuration This rule configures the Trainz implementation of AWS Use modern sound set for unfitted cabs? check Simulate AWS for unfitted cabs? check Passive with HUD hidden fill-in Active fill-in Passive fill-in Clean UP Derailed Trains Cleans up derailed train cars Set delay to clean up derailed train cars values Coupler Breakage Check Checks for breaking couplers. No parameters. None Coupler Breakage HUD HUD displays warning about coupler stress and breakage Show the Coupler Breakage Display fill-in must choose one or the other Hide the Coupler Breakage Display fill-in must choose one or the other Replace Missing Vehicles Rule Produce new trains to replace missing vehicles that have been removed from the session by the cleanup derailed vehicles rule Respawn trains if they are abandoned check Respawn trains fill-in choose: at their original locations, from portals from Session List Safety System Engaged Check Rule Checks for safety systems making penalty applications on users Trigger only once check Safety System Isolated Check Rule Checks for safety systems being isolated by users Trigger only once check Set Coupler Masks Set the coupling/decoupling masks on the selected vehicles Add vehicle click to select from session list Coupling Mask, Decoupling Mask: click to select: lock or unlock Add All click to select all vehicle in session Delete All click to delete all vehicle from list Signal Passed At Danger Check Rule Checks for Drivers passing signals at danger Trigger only once check to set Speeding Check Rule Checks to see if player control trains are over the speed Watch for trains travelling above the fill-in Allow an over speed tolerance of click to insert mph over posted limit Watch for trains travelling above a fill-in to insert custom speed limit Warning: This method is very Vehicle Physics Overrides the default vehicle physics properties Accept all trains fill-in Cab sway level is set ? % click to insert percent of sway Traction boost is % ? while sanding click to insert percent of boost Tractions reduced to ? % while click to set traction percent Maximum tractive effort adjusted by ? click to insert percent amount Show coupler breakage in HUD check to set Couplers break when coupling above ? click to set speed Accept trains matching specific criteria fill-in to insert specific trains Couplers break at ? kN check to insert amount of force Wait for Derailment Waits for a derailment to occur Trigger derailment watch once check to set Navigation DestSignTable Table for creating a table of destination signs Enable Track Marks as destinations check Enable table of destinations check Import destination from texture-group. name Destination Name name Enable industries/stations as check Interlocking Tower Configure Path Alters settings on an interlocking tower path Interlocking Tower choose Name and Objects Interlocking Tower Path Selection UI Will automatically react to messages from Interlocking Towers and display a path selection dialog to the player. Disable by removing rule from session Show path activation message in Driver check

Interlocking Tower Set Path Will set the state of an interlocking tower path for a train Interlocking Tower choose Names and Objects Multiple Junction Alignment Check Checks multiple junctions are in alignment Wait until the following junctions are choose all or anyone Add junction click add junction from session list Add all click add all junctions from session list Delete all click deletes all junctions from rule list Navigation Display Creates a navigation point Navigation mode choose, fill-in All points must be completed in sequence, Points will be completed in sequence, but can be skipped, All points must be completed, but in any Note: See help icon for more Style click choose Required Stop, Automatic, Manual Display Text insert text Location click choose train vehicle from session list Train(optional) choose train from session list Unique set ID name must be lowercase and no spaces Icon click choose from list Navigation Point Complete Marks a navigation point complete Mark navigation point click set index number Complete in set click to set ID Navigation Set Check Checks if a navigation point is complete/incomplete Checks if navigation point is set click set ID Is click Complete, Incomplete Navigation Set Clear Clears a navigation point set Clear the navigation point set click to set ID Navigation Set Hide/Show Show or hide navigation point set The navigation point click hide, show Navigation point set click to set ID Schedule Rule Allows a schedule of timed events to be applied to a train Insert track mark click to select from session list


Note: Both has an arrival and departure set time hr:min:sec Current Train click to select from session list Insert destination click to select from session list Set Junctions Sets the selected junctions to a specific state Warning: not compatible with Interlocking Tower Assets Add Junction click to select session junction list Add All click Delete All click Warning: Not compatible with Set Signal Extended rule Warning: not compatible with Interlocking Tower Assets Set signal click to select from session list State ' to select state from list Trigger Check Waits for any train to enter one of the designated triggers Accept all trains fill-in Accept trains matching specific criteria fill-in to choose from session list Add Trigger click to choose from session list Trigger only once check to set Wait for child rules to complete even if check to set Only activate when the entering click to choose forward, backward Wait on Navigation Point Waits for a nav point to be complete Wait for navigation point ? click to choose from session list in set ? to be completed click to insert ID Wait on Train Stop/Start Wait for a train to stop or start Accept all trains fill-in to set Accept trains matching specific criteria fill-in to set and choose from session list Wait for a train that matches the click to choose: start moving, stop moving Trigger rule once check to set Note: One or the other fill-ins must be Drivers Control Type Sets control type Current control method is: Easy Mode, Choice one of the three

CPC: Emit Train Used to Emit Trains from the Central Portal Control on Triggered Events. Also works with the Un-Portal Rule Portal index form CPC value Use UnPortal Yes/No Delay from Trigger to Emit: Seconds value CPC: Emit Train On Trigger Used to Emit Trains from the Central Portal Control on Triggers, Also works with the Un-Portal Rule Trigger add Trigger Portal index from PCP value Use UnPortal yes/no Delay from Trigger to Emit: seconds value Disable/Enable Industry Disables vehicle load/unload for industry Apply to every vehicle in the session fill-in Apply only to a specific vehicle list fill-in Add vehicle/Add all vehicles/Remove all vehicles Note: One of the Applies will always be Load/Unload for industry Disable/Enable choose Industry Driver Command Specify which commands will be available for the drivers Navigate To Track mark- Driver Release Junction - Lets a driver release Notify- Notifies the player of schedule NavigateToTrackMarkList V2- No NavigateToStation V2- No description ReverseTram- Reverse a tram(max 2 Navigate Via Track mark- Driver UnCouplerFrom- A new Uncouple driver Navigate To- Allows a driver character Halt Train- Brings the train to a Run Around- Instructs the driver to Terminate Passenger Train- This station before using this command MoveTurntable- TRS2008: Move Unload- Unload train vehicles at current VR Set Train Lamps-Driver command WaitFor- Pauses the driver's schedule or WaitForRandom- TRS2008: Wait for WaitForTrigger- Tell a driver to wait WaitUntil- No description Set Max Speed To- No description Drive Via Track mark- Driver command Load- Loads the train's vehicles at the Cab Wait maintains current control state until some condition is met Change Destination Sign Changes signs of a train Couple- Couple train to designate Decouple- Decouples the train at the Delete Train- Causes the train and its Drive Schedule- Driver command that Drive To- Allows a driver character to Hornz- Driver sounds the train horn Drive to Track mark- Driver command Cab Set Control cab mode control Drive To Station V2- No description Drive To Track mark List V2- No Headlights On/Off-Allows the driver to Instant Load Command- Instantly load a Instant Load Locos- Instantly load all InstantUnload- Instantly unload a train- Interior Lights Command- Driver Drive To Industry- Drive to a specific Driver Command Check Verifies the driver commands of a driver character Wait for driver character to have add driver, all, delete all Trigger Rule once check Driver character to watch the name driver

Driver Main Menu Options Show the Driver Main Menu Bar The Driver Main Bar choice show/hide Driver Schedule Rule Execution of basic scheduled commands Note: Only one of the fill-in can be Driver Schedule Rule assigned to name driver Commands insert driver commands in Drive Schedule Classic style: If there is a schedule fill-in Killer style: If there is a schedule fill-in Cooperative style: If there is a schedule fill-in Active style: Emit a new schedule, only fill-in Driver Setup Create the list of drivers for this session and assign them their orders Generate new Drivers for empty check The following drivers will be available Driver's Name Add Remove all existing Drivers first check Enable/Disable Driver Commands Enable/Disable specific driver commands on certain drivers Assign Driver commands check Driver Commands Train criteria fill in all trains Train criteria list train only trains matching criteria MaxPermittedSpeed Controls AI behavior. When active AI Trains only go as fast as permitted Config/txt file tag 'max_permitted_speed-60850 in mph or kph Add to config.txt and kuid-table for value <KUID2:60850:88000:4 Note: Old root level config tag will QuickDrive rule Change the Session settings and add consists in Driver Set Time to insert time QuickDrive Consist Option List by Rate of Change insert rate as number times Enable gameplay Session Mode check Enable in game help by default check Set the default Control method to fill-in choose: Easy Mode, Realistic Mode

Prevent player from changing this check Realistic mode requires achievement add Achievement's Name In Asset choose Auran achievements Set the default derailment realism level fill-in choose: Nome, Arcade, Realistic Prevent player from changing 10.0 check Set the default units to fill-in choose: Imperial, Metric, Default Open QuickDriver Window when check Wait for Driver On/Off Train Waits for a Driver to get off of a train Note: One or the other fill-ins must be Accept trains matching specific criteria fill-in to select from session list Accept all trains fill-in to set Trigger rule once check to set Wait for a driver character to get ? a click to select: On, Off Wait for Driver/Train to be Locally Waits for a specific driver or train car to be locally owned, Owned then executes child rules. If the driver/train car becomes unowned again the child rules are paused Wait for ownership of a specific Driver fill-in to set Wait for ownership of Driver fill-in to set Note: One or the other fill-in must be Driver or Vehicle click to choose from session lists List Configurations Rules Control Check Rule Activates child rules based on the control method changes Excite child rules when: DCC mode is fill-in one or the other Excite child rules: Every time control fill-in one or the other Ordered List Child rules will be executed in order once this rule starts Note: One of the two must be chosen This process will repeat fill-in click to add number of repeats This process will repeat forever fill-in Progressive List The first child rule is executed on the first run, second child executed on second run, etc.

After last child run is executed click to choose: First child is chosen again, It will be used for all successive runs, Successive runs will do nothing Random List One of the child rules indented under this rule will be executed randomly Once one of the child rule is Reset List Resets and starts all child rules in an ongoing infinite cycle None Simultaneous List Child rules are executed simultaneously once this rules Rules completes when click choose all rules have reached completed state, was completed state Wait for HTML Pages Waits for the Display HTML Pages sequence browser to open/close a specific HTML Page Page name click to insert Page Name Note: One or the other fill-ins must be Close page fill-in to set named ? click to insert name One the page fill-in to open Trigger Rule Once check to set Wait on MiniMap Screen/Main Screen Waits for the MiniMap window to be opened Wait for the MiniMap window to be ? click to set: opened, closed Trigger Rule once check to set Camera Rules Cinematic Camera Provides several different cinematic style cameras Lock camera controls for the duration check Prevent rain control for duration check Camera target: name any of the many objects in session Camera mode: Stationary, Circle fill-in Initial camera values: Pitch, Yaw, Zoom value Total time to animate: seconds value Set Camera Sets the target object and properties of the camera. Preforming the selected properties

Change the camera view mode to check to choose: Cab View, External View, Tracking View, Free Roaming Vehicle fill-in choose from session vehicles Set the camera flags to enable/disable check to choose different properties from list Junction fill-in choose from session junctions Set the target objet of the camera to check Map object fill-in choose from map objects Wait for Camera View Mode Waits for the camera to be changed to the designated view Trigger rule once check to set Wait for the camera to change to the ? click to choose: Cab View, External View, Tracking View, Free Roaming View Wait for the camera to target vehicle ? click to choose form session list Correspondence Rules Close Message Popups Closes message popup None Custom Script Custom scripted rule. No Parameters None Display Custom HUD Show or hide the Custom Heads Up Display Note: One must be chosen Show the Custom Heads Up Display fill-in Hid the Custom Heads Up Display fill-in Display HTML Pages Creates a browser to display the listed HTML files in order as a navigable sequence of pages 4 Make browser window invisible check 1 Index html page name 2 From Asset HTML as the hidden button click to select Use the page 6 Set size-Under Construction!!! check 5 Set position-Under Construction!!! check 2 Disable closing of browser window check 1 Prevent user from exiting browser check

Set browser parameters Delete All From Source Assets Add All From Source Assets Add Page From Source Assets 3 Disable browser window scrolling check Display Video Displays a page from a HTML assets in a browser window html assets select type Note: can also give the video a name Display page index html page Name End Session End Session without saving End the Session number seconds Fade in/out Fade in or out within seconds, color and opacity considered Blue percentage number percent Note: Make one rule to fade in another Note: Sets or removes color overlay, Alpha percentage(opacity) number percent Green percentage number percent Red percentage number percent Fading duration, fade out = alpha near number seconds Flash HUD Icon Flashes a HUD panel icon for a set duration of time or instructs a HUD panel icon to start/stop Flash HUD panel type choose Bottom right menu/Camera Controls/DCC Controls/Driver Main Menu Icon choose depends on HUD panel Time duration number seconds Start/Stop Select HUD Panel to start/stop choose Start/Stop Icon choose see 1 Note: Either Flash or Start/Stop must GenericTreeNode Debug Window None None

InputTable Creating a list of message names to be used for various purposes Add Name message Message Popup Displays a pop-up browser window and waits to be closed Note: Choice of source determine multi Message source choose one Custom text/A pre-defined HTML page(advanced/A pre-defined string-table from HTML asset(advanced) Close previous message pop-up check Pause game while window is displayed check Window location choose one Top Lift/Top Right/ Bottom Left/Bottom Right Minimap Options Sets the display options for the minimap Types of items to display on the check Textures, Gradients, Junctions, Signals, Triggers, Markers, Trackside Labels, Terrian Objects, Industry Names, Named Objects, Consists Note: All can be checked or unchecked Play Sound Plays a wav sound file Play a wav file of HTML Assets click to Name file Asset click to choose Rule completes when click to choose: Sound just started, Sound has finished playing Session Debug Rule Executes the first child if debug mode is selected. Otherwise the second child. Once this child is complete, this rule will be complete None Session Metadata Sets session metadata in the config file. Info can be read by other systems and displayed to the player Length click to insert minutes Difficulty click to select: Normal, Tutorial, Easy, Hard, Expert Type click to select: Simulation or Challenge Set Helper Icon Size Sets the size of helper icons such as the junction lever Scale junction lever arrows to be click to set percentage of default

Set HTML Pages instructs the Display HTML Pages rule to perform specific operations Spare setting 5 check Spare setting 2 check Assets ' to select from list Index click to select String Table Entry Use the string table entry from the fill-in Asset click to select from list Use the page index html form the HTML fill-in Spare setting 4 check 2 Spare setting 3 check Disable scrolling(not implemented) none Window has no 'done' Button check Choose one of the following fill-in Hide/Close window on 'done' action check Index html click to select HTML Page Name Set the following flags for the page click HTML Page Name Set browser parameters to click to set Closing Window by user, scrolling on browser window, hide browser window Instructs the sequence browser to click to set HTML Page Name Instruct the sequence browser to click to set to: Close, Done check button, Previous page, Next Page, First Page, Last Page, Hide Window, Show Window Spare setting 1 check Show/Hide HUD Panel Shows or hides a HUD panel Show, Hide click to select HUD Panel click to select from list Show/Hide Layer Shows or hides a layer from Driver The layer click to choose hide, show Layer's name click to add Layer's Name Show/Hide Minimap Shows the Driver the minimap window Minimap Window click to show, hide window

Show/hide on-screen help Shows or hides On-screen help in Driver On screen help fill-in to Show, Hide, Leave unchanged Vehicles names fill-in to choose Show, Hide, Leave unchanged Wait for Click on HUD Icon Waits for a click on the HUD Icon Trigger rule once check to set Choose HUD Panel click to choose Panel from list Wait for a click on? Icon click choice depends on HUD Panel Wait on Waybill Screen/Main Screen Waits for the Waybill window to be opened Trigger rule once check to set Wait for the Waybill window to be ? click to set: opened, closed Startup Rules Multiplayer Rule Enables this session to be taken online in a Multiplayer environment Suggested maximum number of players number Maximum number of drivers per player number Players are permitted to claim drivers check Automatically target an available train check Startup Options Specifies the starting options for the session Set derailment realism to click to choose None, arcade, Realistic Current control method is click to choose Ask user, Realistic mode, Easy mode Show in-game help check Use units in Driver click to choose default, imperial, metric, Set Time to click to insert hours and minutes Set Weather to click to choose from list Changeability click to choose Off, Periodic, Extreme Rate of click to choose from list Time Rules Clock Rule Rule needed for animated clocks, you need to apply this rule to your session to make use of the animated clocks, see forum for code to include in you clock object to work with this rule


This rule send messages to update the Timecheck Executes child rules at a certain time Child rules will be executed at click to insert hours, minutes, seconds(24 hrs. format) Execution time is on the day after the check Timed limited display HTML Displays an html browser window for a limited time Alert show ability click to choose not reshowable on request, reshowable on request Browser left position(SessVar or click to insert number Display duration(SessVar or duratiion in click to insert number of seconds HTLM Asset Name click to select from list Browser height(SessVar or position) click to insert number Browser width(SessVar or position) click to insert number Browser top position(SessVar or click to insert number Page filename click to insert file name Timing Check Rule Triggers subrules if called within the time window specified Start of time window click to insert hours, minutes, seconds End of time window click to insert hours, minutes, seconds Wait Wait for number of seconds Wait for ? Seconds click to insert number of seconds Plus/minus ? Seconds click to insert number of seconds of variance Wait for Click on HUD Icon Same as 96.0 Variable Rules Variable Check If variable 'score' is less than 'number' the child rules will be executed in order A score click to insert number Condition click to choose evaluated only one, changes after check will not affect this rule, evaluated once every second Test that variable click to select name of variable from session list is click to select from list

Variable Modify Change amount of variable score Value click to insert maximum number Amount to change click to insert number Variable click to select from session variable names If rule is stopped click to choose: Do not undo the alteration, Undo the alteration Set the minimum value fill-in Variable click to choose variable name from session list Amount click to insert minimum score Maximum fill-in Variable Name click to choose from session list Change click to choose from: Add to variable, Subtract from variable, Change variable to Variable Modify Continuous Adds a value to variable 'score' every second 'Score' click to insert variable name Change 'score' click to set: Add to, Subtract from, Change variable to Amount to change click to insert amount of change each second Variable Show Adds the variable 'Score the custom HUD with label none Add variable to the custom HUD check to set Name Variable click to insert Name Variable label click to insert Property Label Remove variable click to insert Property Label Weather Rules EIRS Weather Rule NE USA Customize random weather rule relative to the North East Region of the United States Set season to choose Summer/Winter/Fall/Spring Change every minutes number of minutes Environmental impact choose Disable/Enable Weather Set the weather conditions With ? changeability ' to set: Off, Periodic, Extreme Set weather to ? click to set: Clear, Cloudy, Drizzle, Rain, Stormy, Light, Medium Snow, Heavy Show

Personal tools