if event.type == "train" then rc = get_rc() if rc:find("d23a_leave") ~= nil then rc = rc:gsub("d23a_leave", "d23_unload") end set_rc(rc) end