; 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) = 0
$Sub(4) = 1
$Sub(5) = 2
$Sub(6) = 2
$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) = 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 Ishinden Line$Chr(13)Chashinai to Takahagi$Chr(13)Express train$Chr(13)$Chr(13)ATS-SN / ATS-P$Chr(13)Up to 8 cars
.Timetable Express train

; train
; -----
With Train
$Sub(00) = 9, $Sub(01) = 8
$Sub(10) = 9, $Sub(11) = 6
$Sub(20) = 9, $Sub(21) = 6
$Sub(30) = 9, $Sub(31) = 4
$Sub(40) = 1, $Sub(41) = 6
$Sub(50) = 1, $Sub(51) = 6
$Sub(60) = 1, $Sub(61) = 4
$Sub(70) = 2, $Sub(71) = 4
$Sub(9) = $Rnd(0;7)
.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_shimokanesawa.include)
$Include(..\forward_shimokanesawa_1.include)
$Include(..\forward_shimokanesawa_3.include)
$Include(..\forward_shimokanesawa_yamauchi_central.include)
$Include(..\forward_yamauchi_central_r_r.include)
$Include(..\forward_yamauchi_central_ashikari.include)
$Include(..\forward_ashikari_ichigaya.include)
$Include(..\forward_ichigaya_express.include)
$Include(..\forward_ichigaya_samegawa.include)
$Include(..\forward_samegawa_express.include)
$Include(..\forward_samegawa_takahagi.include)
$Include(..\forward_takahagi_1.include;1;..\forward_takahagi_2.include;1;..\forward_takahagi_3.include;1)

100,.Sta Siding;$Sub(90).5500;;;0;;;;;0
400,.Sta Chashinai;;$Sub(90).5630;;1;;;;;80
1300,.Sta Tomikawa;B;;;-1;;;;;80
2200,.Sta Sunagawa;B;;;1;;;;;80
3500,.Sta Nakafurano;S:$Sub(90).5940;$Sub(91).0000;;-1;;;;;125
4400,.Sta Utashinai;P;;;1;;;;;125
5400,.Sta Tatemachi;P;;;1;;;;;125
6100,.Sta Shimokanesawa;S:$Sub(91).0305;$Sub(91).0325;;-1;;;;;160
7500,.Sta Itazuma;B;;;-1;;;;;160
8500,.Sta Yamauchi East;B;;;1;;;;;160
9700,.Sta Yamauchi Central;$Sub(91).0700;$Sub(91).0730;;-1;;;;;125
10800,.Sta Ashikari;P;;;-1;;;;;125
11700,.Sta Ichigaya;P;;;-1;;;;;125
13400,.Sta Samegawa;S:$Sub(91).1050;;;1;;;;;100
14600,.Sta Takahagi;S:$Sub(91).1320;T;;$Sub(278);1;;;;100