; 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)

; brightness
; ----------
$Sub(0) = 80
$Sub(1) = 36
$Sub(2) = 110
$Sub(3) = 180
$Sub(95) = $Sub($Sub(99))
$Sub(0) = 155
$Sub(1) = 111
$Sub(2) = 185
$Sub(3) = 255
$Sub(96) = $Sub($Sub(99))

; interval
; --------
$Sub(00) = 85, $Sub(01) = 170 ,; 2min
$Sub(10) = 125, $Sub(11) = 250 ,; 3min
$Sub(20) = 125, $Sub(21) = 250 ,; 3min
$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 Takahagi Line$Chr(13)Kishigawa South to Takahagi$Chr(13)Local train$Chr(13)$Chr(13)ATS-SN / ATS-P$Chr(13)Up to 8 cars
.Timetable Local 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) = 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_kishigawa_south_siding_1.include;1;..\forward_kishigawa_south_siding_2.include;1;..\forward_kishigawa_south_siding_3.include;1)
$Include(..\forward_kishigawa_south_siding_common.include)
$Include(..\forward_kishigawa_south_siding_local.include)
$Include(..\forward_kishigawa_south_kainan_local.include)
$Include(..\forward_kainan_local.include)
$Include(..\forward_kainan_2.include)
$Include(..\forward_kainan_yamauchi_central.include)
$Include(..\forward_yamauchi_central_l_r.include)
$Include(..\forward_yamauchi_central_ashikari.include)
$Include(..\forward_ashikari_ichigaya.include)
$Include(..\forward_ichigaya_local.include)
$Include(..\forward_ichigaya_samegawa.include)
$Include(..\forward_samegawa_local.include)
$Include(..\forward_samegawa_takahagi.include)
$Include(..\forward_takahagi_1.include;1;..\forward_takahagi_2.include;1;..\forward_takahagi_3.include;1)


05200,.Sta Siding;$Sub(90).4950;;;0
05900,.Sta Kishigawa South;;$Sub(90).5235;;1;;;;;100
06600,.Sta Kishigawa North;;;;-1;;;;;160
07400,.Sta Kainan;;;;-1;;;;;160
08825,.Sta Yamauchi South;;;;-1;;;;;125
09700,.Sta Yamauchi Central;$Sub(90).5905;$Sub(90).5935;;1;;;;;100
10800,.Sta Ashikari;;;;-1;;;;;125
11700,.Sta Ichigaya;;;;-1;;;;;125
13400,.Sta Samegawa;$Sub(91).0510;;;-1;1;;;;100
14600,.Sta Takahagi;S:$Sub(91).0800;T;;$Sub(278);1;;;;100