blob: 8b9e9189b2e7daa3dabe29dc4d13cd2306750327 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
if event.train then
st_name = "NYE Square"
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), 120, 0)
if flip then
atc_set_text_outside("4 - Showroom")
digiline_send("monitor", "4 Showroom "..rwt.to_string(next_dep_time, true))
set_rc("SH")
else
digiline_send("monitor", "4 Ice Mountain "..rwt.to_string(next_dep_time, true))
atc_set_text_outside("4 - Ice Mountain")
set_rc("IM")
end
atc_set_text_inside(st_name.."\nDeparture: "..rwt.to_string(next_dep_time, true))
atc_send("A0 B0 W O"..doors)
schedule(next_dep_time, "depart")
elseif event.schedule then
atc_send("A1OCD1SM")
digiline_send("monitor", "Last Departure: | "..rwt.to_string(rwt.now(), true))
atc_set_text_inside("")
depart = true
end
|