diff options
Diffstat (limited to 'nodes/(-1477,9,-83).lua')
-rw-r--r-- | nodes/(-1477,9,-83).lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nodes/(-1477,9,-83).lua b/nodes/(-1477,9,-83).lua new file mode 100644 index 0000000..21d7954 --- /dev/null +++ b/nodes/(-1477,9,-83).lua @@ -0,0 +1,29 @@ +if event.train then +st_name = "Shouwroom" +flip = not flip +end + +doors = "L" + if event.train then + local time_now = rwt.now() + local next_dep_time = rwt.next_rpt(rwt.add(time_now, 10), 240, 0) +if flip then + atc_set_text_outside("4 - Schwarzschild Street") + digiline_send("monitor", "4 Schwarzschild St . "..rwt.to_string(next_dep_time, true)) + set_rc("SC") +else + digiline_send("monitor", "4 NYE Square "..rwt.to_string(next_dep_time, true)) + atc_set_text_outside("4 - NYE Square") + set_rc("NY") +end + atc_set_text_inside(st_name.."\nDeparture: "..rwt.to_string(next_dep_time, true)) + atc_send("B0 W O"..doors) + schedule(next_dep_time, "depart") + elseif event.schedule then + atc_send("OCD1SM") + set_route("shrdep", "*") + digiline_send("monitor", "Last Departure: | "..rwt.to_string(rwt.now(), true)) + atc_set_text_inside("") + depart = true + end +--
\ No newline at end of file |