summaryrefslogtreecommitdiff
path: root/Crossroads/nodes
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:52:58 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:52:58 +0200
commit2bc25ce37584f16844ec38101b7e711476123db7 (patch)
tree302fdaa28cfaa1d76db7bd731065d4053b26dbcd /Crossroads/nodes
parent843a5836aceb04cf120e24a2996156b35631096d (diff)
downloadluaatc_envs-2bc25ce37584f16844ec38101b7e711476123db7.tar.gz
luaatc_envs-2bc25ce37584f16844ec38101b7e711476123db7.tar.bz2
luaatc_envs-2bc25ce37584f16844ec38101b7e711476123db7.zip
State at 2021-05-12
Diffstat (limited to 'Crossroads/nodes')
-rw-r--r--Crossroads/nodes/(2260,5,893).lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/Crossroads/nodes/(2260,5,893).lua b/Crossroads/nodes/(2260,5,893).lua
index 2149070..0b22fc6 100644
--- a/Crossroads/nodes/(2260,5,893).lua
+++ b/Crossroads/nodes/(2260,5,893).lua
@@ -1,8 +1,13 @@
if event.type == "train" then
+ local exp = "2"
+ local rec = get_line() or ""
+ local res = exp==rec and "PASS" or ("FAIL | %s"):format(rec)
+ digiline_send("lcd", res)
atc_send("OCBBWI+R;")
end
if event.type == "ext_int" then
if atc_id then
+ digiline_send("lcd", "...")
set_line("1")
atc_set_text_outside("LINE 1")
atc_send("S4")