; 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) = 07, $Sub(01) = 08
$Sub(10) = 13, $Sub(11) = 14
$Sub(20) = 19, $Sub(21) = 20
$Sub(30) = 23, $Sub(31) = 24
$Sub(90) = $Sub($Sub(99)0)
$Sub(91) = $Sub($Sub(99)1)

; interval
; --------
$Sub(00) = 125, $Sub(01) = 250 ,; 3min
$Sub(10) = 125, $Sub(11) = 250 ,; 3min
$Sub(20) = 210, $Sub(21) = 420 ,; 5min
$Sub(30) = 335, $Sub(31) = 670 ,; 8min
$Sub(92) = $Sub($Sub(99)0)
$Sub(93) = $Sub($Sub(99)1)

; route
; -----
With Route
.Change 1
.Comment Minaminaka Line$Chr(13)Chashinai to Minaminaka$Chr(13)Passing train$Chr(13)$Chr(13)ATS-SN$Chr(13)Up to 8 cars
.Timetable Local train

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

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



; -------------------------------

With Track

$Include(..\forward_chashinai_siding_1.include;1;..\forward_chashinai_siding_2.include;1)
$Include(..\forward_chashinai_sunagawa.include)
$Include(..\forward_sunagawa_nakafurano.include)
$Include(..\forward_nakafurano_utashinai.include)
$Include(..\forward_utashinai_minaminaka.include)
$Include(..\forward_minaminaka_1.include;1;..\forward_minaminaka_2.include;1)

100,.Sta Siding;$Sub(90).5400;;;0;;;;;0
400,.Sta Chashinai;B;;;1;;;;;0
1300,.Sta Tomikawa;B;;;-1;;;;;0
2200,.Sta Sunagawa;B;;;1;;;;;0
3500,.Sta Nakafurano;B;;;-1;;;;;0
4400,.Sta Utashinai;B;;;1;;;;;0
5300,.Sta Donari (closed);P;;;-1;;;;;0
5900,.Sta Kotohira;B;;;1;;;;;0
7000,.Sta Nakayima;B;;;-1;;;;;0
7600,.Sta Minaminaka;P;;;;1;;;;0
7775,.Sta Siding;S;T;;0;;;;;0