Vehicle-running-numbers container

From TrainzOnline
Revision as of 10:22, 6 May 2016 by Pw3r (Talk | contribs)

Jump to: navigation, search

The vehicle-running-numbers container is an optional subcontainer used by KIND Traincar assets to define the behaviour of automatic random running-number generation. Support for this subcontainer was added in Trainz A New Era as a faster alternative to various custom scripts which attempt to do the same thing.

Contents

Supported Tags

The vehicle-running-numbers container supports the following tags. Each tag is shown here with its default value.

 running-numbers                   ""
 multiple-unit-increment-front     0
 multiple-unit-increment-rear      0


running-numbers

Type: Text
Desc: Specifies the valid running-number range(s) to randomly select from. This can be a list, a range, or any combination of both. For example:
 running-numbers                   "12345,67890,30000-31000"

This example will cause the traincar to be randomly assigned the running number 12345, 67890, or any number in between 30000 and 31000 (inclusive). Running numbers are assigned on train placement, and can be overridden using the traincar properties dialog.

multiple-unit-increment-front

Type: Integer
Desc: Used for assigning sequential/identical running numbers to multiple-unit trains. See the following section for more information about multiple units.

multiple-unit-increment-rear

Type: Boolean
Desc: Used for assigning sequential/identical running numbers to multiple-unit trains. See the following section for more information about multiple units.
Personal tools