I'm working on a little engine set that will contain at most like 20 engines, but i quickly got hundreds of repeating lines in my nml file. Especially for the common properties of trains.
What i would like to do is defining constants like in the following example, but i dont know what syntax to use or even if its possible as i didn't found doc about this on nml wiki. Anyone can help ?
Code: Select all
COMMON_ENGINE_PROPERTIES {
track_type: ELRL;
engine_class: ENGINE_CLASS_ELECTRIC;
sprite_id: SPRITE_ID_NEW_TRAIN;
and so on...
}
item(FEAT_TRAINS, EE303) {
property {
COMMON_ENGINE_PROPERTIES
name: string(STR_EE303_NAME);
speed: 201 km/h;
power: 4200 kW;
...
I plan on making a set of fictional electric engines and EMUs to enhance the default set, drawn according to OpenGFX style.
Introduced from the early 80s until 2050, these trains will provide higher speeds and power than the default electric units without upgrading your railways to monorail or maglev.
Should i publish a separated development thread ?