there was an example somewhere, but i can't find it. it basically goes like:Emperor Jake wrote:OK, I'll admit I don't know how to code that yet.Transportman wrote: Ok. Would be nice if all trains (also the ones without 25kV AC) would be available if the track set is not detected, but if there is still a playable set with only the 25kV AC it is not that bad.Of course, I will try it, and implement it wen I figure it out
<Action 0> Install Railtype Translation Table: "RAIL" "25AC" "15AC" [...]
<Action 7> If Railtype available: "15AC" => Skip 1 Sprite
<Action 0> Install Railtype Translation Table: "RAIL" "ELRL" "ELRL" [...]
Then, all engines which use "25AC" or "15AC" railtype will be remapped to "ELRL"