Script SC32 Departure signal (by adlet)
This script implements visual states on a station departure signal.",
With the release of script SC30 Main line signals, departure signals were integrated there. I recommend using SC30 going forward. This script will be retained for compatibility.
This script does not change the signal’s actual state (pass or stop), it is visual only.
It is intended for a departure station. Most of the time the next signal down will be a balise. Therefore this script does not contemplate linking to the next signal, or "Caution" ("yellow") aspects, except for departure on a branch. It will work as a main line signal too, just can’t be linked to other signals.
The signal is intended to be off (unlit) (or could be set to red) without a train nearby. When a train is ready to depart from the station (e.g. 30 seconds prior) it will be lit as "Ready to depart". The signal will turn red or green (or yellow for diverging routes) the moment the train departs. The signal will stay lit for a few seconds after the train passes it and then turn off.
If the train passes through the station without stopping, the signal will be lit red or green (or yellow) on approach (e.g. 500 meters). It will stay lit for a few seconds after the train passes it and then turn off.
When the signal is red, the approaching trains will coast at the speed you set (e.g. 30 km/h). When the train is within 100 m of the signal, this speed reduces to 15 km/h (hard-coded).
Ready to operate up to three aspects when added to a signal, with default aspects – requires a single click. Two additional aspects can be added via lines/line tags and as station extension.
Can be added to the signal with a single click unless you change default aspects.