The idea is awesome--I just wish it weren't limited to data but could be extended to accommodate for logic as well. What I mean is something along the lines of:
As a workaround, simple boolean expressions ("var1 && var2
Were there a practical workaround to this problem, map-specific logic could be transparently plugged into the scripts to extend their capabilities, by enhancing their "awareness" of their execution context. Suppose, for the sake of argument, that on some map "M" there is a tunnel between two stops, and that we would like AI buses to unconditionally switch their lights on while transiting between those two stops. The script could then have its default behavior overridden, by consulting the map-specific rules for the lighting subsystem (i.e., in the first hypothetical example, by delegating to some "M_lights_frame" macro); the latter, having full "knowledge" over the map's characteristics (distance between stops; stop profiles; anticipated min/max passengers boarding at a particular stop; etc.) could then forward this information to assist its caller in adapting in the most realistic way possible.
Ah, daydreaming can be so much fun...