; An overview of Sub variables is available
; in the common.include file.


; time of day
; -----------
; 0 = sunrise
; 1 = daylight
; 2 = sunset
; 3 = night
$Sub(0) = 0
$Sub(1) = 0
$Sub(2) = 0
$Sub(3) = 1
$Sub(4) = 1
$Sub(5) = 1
$Sub(6) = 1
$Sub(7) = 2
$Sub(8) = 2
$Sub(9) = 3
$Sub(99) = $Sub($Rnd(0;9))

; hours
; -----
$Sub(00) = 06, $Sub(01) = 07
$Sub(10) = 13, $Sub(11) = 14
$Sub(20) = 19, $Sub(21) = 20
$Sub(30) = 00, $Sub(31) = 01
$Sub(90) = $Sub($Sub(99)0)
$Sub(91) = $Sub($Sub(99)1)

; interval
; --------
$Sub(00) = 85, $Sub(01) = 170 ,; 2min
$Sub(10) = 125, $Sub(11) = 250 ,; 3min
$Sub(20) = 170, $Sub(21) = 335 ,; 4min
$Sub(30) = 295, $Sub(31) = 590 ,; 7min
$Sub(92) = $Sub($Sub(99)0)
$Sub(93) = $Sub($Sub(99)1)

; route
; -----
With Route
.Change 1
.Comment Misaki Line$Chr(13)Tawaramoto to Hitachiomiya$Chr(13)Passing train$Chr(13)$Chr(13)ATC$Chr(13)Up to 8 cars
.Timetable Passing train

; train
; -----
With Train
$Sub(00) = 9, $Sub(01) = 8
$Sub(10) = 9, $Sub(11) = 8
$Sub(20) = 9, $Sub(21) = 8
$Sub(30) = 9, $Sub(31) = 6
$Sub(40) = 9, $Sub(41) = 6
$Sub(50) = 9, $Sub(51) = 4
$Sub(9) = $Rnd(0;5)
.Folder Chashinai\ch$Sub($Sub(9)0)000-$Sub($Sub(9)1)

; common structures and configurations
; ------------------------------------
$include(..\common.include)



; -------------------------------------------------------------
; track position 20000 forward equals track position 0 backward
; -------------------------------------------------------------

With Track

$Include(..\forward_tawaramoto_siding_1.include;1;..\forward_tawaramoto_siding_2.include;1;..\forward_tawaramoto_siding_3.include;1;..\forward_tawaramoto_siding_4.include;1)
$Include(..\forward_tawaramoto_misaki.include)
$Include(..\forward_misaki_onomichi.include)
$Include(..\forward_onomichi_natori.include)
$Include(..\forward_natori_izumozaki_south.include)
$Include(..\forward_izumozaki_south_section_1.include)
$Include(..\forward_izumozaki_south_izumozaki_north.include)
$Include(..\forward_izumozaki_north_hitachiomiya.include)

00100,.Sta Siding;$Sub(90).5810;;;0;;;;;0
00600,.Sta Tawaramoto;B;;;1;;1;;;0
02125,.Sta Misaki;B;;;1;;1;;;125
02900,.Sta Onomichi;B;;;-1;;1;;;160
03900,.Sta Fukuyama;B:$Sub(91).0530;;;1;;1;;;200
05000,.Sta Tagajo;B;;;1;;1;;;200
06100,.Sta Natori;B;;;-1;;1;;;200
07300,.Sta Shiogama;B;;;1;;1;;;200
08350,.Sta Izumozaki South;B:$Sub(91).1340;;;1;;1;;;200
09300,.Sta Izumozaki North;B;;;-1;;1;;;160
10250,.Sta Motegi;B;;;1;;1;;;125
11600,.Sta Shirosato;B;;;1;;1;;;100
12700,.Sta Hitachiomiya;B:$Sub(91).2115;T;;1;;0;;;100