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


; overview
; --------
; -sub-   -meaning-
; 87      fog color R
; 88      fog color G
; 89      fog color B
; 90      first hour
; 91      second hour
; 92      run interval min
; 93      run interval max
; 94      -unused-
; 95      tunnel brightness
; 96      station brightness
; 97      fog disabled [59]; fog enabled [32]
; 98      non-night [0]; night [1]
; 99      sunrise [0]; day [1]; sunset [2]; night [3]

; 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) = 85, $Sub(11) = 170 ,; 2min
$Sub(20) = 125, $Sub(21) = 250 ,; 3min
$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)Sunagawa to Ashikari$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) = 1, $Sub(01) = 4
$Sub(10) = 1, $Sub(11) = 4
$Sub(20) = 1, $Sub(21) = 6
$Sub(30) = 1, $Sub(31) = 6
$Sub(40) = 1, $Sub(41) = 6
$Sub(50) = 2, $Sub(51) = 4
$Sub(60) = 9, $Sub(61) = 6
$Sub(9) = $Rnd(0;6)
.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_sunagawa_siding.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_siding.include)

1975,.Sta Siding;$Sub(91).0100;;;0;;;;;0
2200,.Sta Sunagawa;;$Sub(91).0220;;1;;;;;80
3500,.Sta Nakafurano;$Sub(91).0400;$Sub(91).0420;;-1;;;;;100
4400,.Sta Utashinai;;;;1;;;;;100
5400,.Sta Tatemachi;;;;1;;;;;125
6100,.Sta Shimokanesawa;$Sub(91).0850;$Sub(91).0910;;-1;;;;;100
7500,.Sta Itazuma;;;;-1;;;;;125
8500,.Sta Yamauchi East;;;;1;;;;;160
9700,.Sta Yamauchi Central;$Sub(91).1430;;;-1;;;;;80
10800,.Sta Ashikari;S:$Sub(91).1625;$Sub(91).1655;;-1;1;;;;0
11100,.Sta Siding;S:$Sub(91).1750;T;;0;1;;;;0