-
Notifications
You must be signed in to change notification settings - Fork 0
/
HokkaidoTrains.nml
4636 lines (3990 loc) · 211 KB
/
HokkaidoTrains.nml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# 0 ".\\HokkaidoTrains.pnml"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 ".\\HokkaidoTrains.pnml"
# 1 "src/grf_settings.pnml" 1
grf {
grfid: "JHT\01";
name: string(STR_GRF_NAME);
desc: string(STR_GRF_DESC);
version: 1;
min_compatible_version: 1;
// 設定画面のパラメータを定義する
param 0 {
param_basecostbuy {
type: int;
name: string(STR_PARAM_BASECOSTBUY_NAME);
desc: string(STR_PARAM_BASECOSTBUY_DESC);
min_value: 0;
max_value: 2;
def_value: 1;
names: {
0: string(STR_PARAM_LOW);
1: string(STR_PARAM_NORMAL);
2: string(STR_PARAM_HIGH);
};
}
}
param 1 {
param_basecostrun {
type: int;
name: string(STR_PARAM_BASECOSTRUN_NAME);
desc: string(STR_PARAM_BASECOSTRUN_DESC);
min_value: 0;
max_value: 4;
def_value: 2;
names: {
0: string(STR_PARAM_VLOW);
1: string(STR_PARAM_LOW);
2: string(STR_PARAM_NORMAL);
3: string(STR_PARAM_HIGH);
4: string(STR_PARAM_VHIGH);
};
}
}
param 2 {
param_capacity_settings {
type: int;
name: string(STR_PARAM_CAPACITY_SETTINGS_NAME);
desc: string(STR_PARAM_CAPACITY_SETTINGS_DESC);
min_value: 0;
max_value: 3;
def_value: 0;
names: {
0: string(STR_PARAM_CAPACITY_SETTINGS_REAL);
1: string(STR_PARAM_LOW);
2: string(STR_PARAM_NORMAL);
3: string(STR_PARAM_HIGH);
};
}
}
param 3 {
param_isenable_variable_capacity {
type: bool;
name: string(STR_PARAM_ISVARIABLE_CAPACITY_NAME);
desc: string(STR_PARAM_ISVARIABLE_CAPACITY_DESC);
bit: 1;
}
}
param 4 {
param_variable_expcapacity {
type: int;
name: string(STR_PARAM_VARIABLE_EXPCAPACITY_NAME);
desc: string(STR_PARAM_VARIABLE_EXPCAPACITY_DESC);
min_value: 0;
max_value: 1200;
def_value: 60;
}
}
param 5 {
param_variable_urbcapacity {
type: int;
name: string(STR_PARAM_VARIABLE_URBCAPACITY_NAME);
desc: string(STR_PARAM_VARIABLE_URBCAPACITY_DESC);
min_value: 0;
max_value: 1200;
def_value: 60;
}
}
param 6 {
param_variable_comcapacity {
type: int;
name: string(STR_PARAM_VARIABLE_COMCAPACITY_NAME);
desc: string(STR_PARAM_VARIABLE_COMCAPACITY_DESC);
min_value: 0;
max_value: 1200;
def_value: 60;
}
}
param 7 {
param_loading_settings {
type: int;
name: string(STR_PARAM_LOADING_SETTINGS_NAME);
desc: string(STR_PARAM_LOADING_SETTINGS_DESC);
min_value: 0;
max_value: 2;
def_value: 2;
names: {
0: string(STR_PARAM_LOW);
1: string(STR_PARAM_NORMAL);
2: string(STR_PARAM_HIGH);
};
}
}
}
# 2 ".\\HokkaidoTrains.pnml" 2
# 1 "src/utilities.pnml" 1
train_width_32_px = 1;
railtypetable {
RAIL,
ELRL,
RAILTYPE_ELECTRIC: [NABE, NAAE, RAIL],
RAILTYPE_DIESEL: [NAAN, RAIL],
}
basecost {
PR_BUILD_VEHICLE_TRAIN : param_basecostbuy -1;
// PR_BUILD_VEHICLE_WAGON: param_basecostbuy +3;
// PR_RUNNING_TRAIN_STEAM: param_basecostrun +1;
PR_RUNNING_TRAIN_DIESEL: param_basecostrun +1;
PR_RUNNING_TRAIN_ELECTRIC: param_basecostrun +1;
}
template tmpl_vehicle_basic(x, y) {
[x, y, 8, 24, -3, -16]
[x + 9, y, 22, 20, -13, -13]
[x + 32, y, 32, 17, -14, -13]
[x + 65, y, 22, 20, -5, -12]
// [x, y, 8, 24, -3, -12]
// [x + 9, y, 22, 20, -14, -12]
// [x + 32, y, 32, 16, -16, -12]
// [x + 65, y, 22, 20, -6, -12]
}
// template tmpl_vehicle_4_views(num) {
// tmpl_vehicle_basic(1, 1 + 25 * num)
// }
template tmpl_vehicle_8_views(num, isReversed) {
tmpl_vehicle_basic(isReversed ? 89 : 1, 1 + 25 * num)
tmpl_vehicle_basic(isReversed ? 1 : 89, 1 + 25 * num)
}
// xrel, yrelは表示画面のオフセット
template tmpl_vehicle_single(num, xsize, ysize, xrel, yrel) {
[1, 11 + 25 * num, xsize, ysize, xrel, yrel]
}
# 3 ".\\HokkaidoTrains.pnml" 2
# 1 "src/variables.pnml" 1
param_capacity_commuter =
param_isenable_variable_capacity ? param_variable_urbcapacity :
param_capacity_settings == 0 ? 210 :
param_capacity_settings == 1 ? 60 :
param_capacity_settings == 2 ? 120 : 180;
param_capacity_suburban =
param_isenable_variable_capacity ? param_variable_urbcapacity :
param_capacity_settings == 0 ? 140 :
param_capacity_settings == 1 ? 55 :
param_capacity_settings == 2 ? 105 : 160;
param_capacity_express =
param_isenable_variable_capacity ? param_variable_expcapacity :
param_capacity_settings == 0 ? 70 :
param_capacity_settings == 1 ? 40 :
param_capacity_settings == 2 ? 80 : 120;
param_loading_commuter = param_loading_express * 3;
param_loading_suburban = param_loading_express * 2;
param_loading_express =
param_loading_settings == 1 ? 20 :
param_loading_settings == 2 ? 30 : 50;
param_diesel_decay_factor = 2;
# 4 ".\\HokkaidoTrains.pnml" 2
# 1 "src/vehicle_id.pnml" 1
// ID(数字)を事前定義しておくと、動的にIDが変更されてセーブデータの互換性がなくなるのを防げる
item(FEAT_TRAINS, emu721_3cars , 3011) {}
item(FEAT_TRAINS, emu721_6cars , 3012) {}
item(FEAT_TRAINS, emu731_3cars , 3021) {}
item(FEAT_TRAINS, emu733_3cars , 3031) {}
item(FEAT_TRAINS, emu733_6cars , 3032) {}
item(FEAT_TRAINS, emu735_3cars , 3041) {}
item(FEAT_TRAINS, dmu201_3cars , 3051) {}
item(FEAT_TRAINS, emu785_0_5cars , 3061) {}
item(FEAT_TRAINS, emu785_0_4cars , 3062) {}
item(FEAT_TRAINS, emu785_0_2cars , 3063) {}
item(FEAT_TRAINS, emu789_0_6cars , 3071) {}
item(FEAT_TRAINS, emu789_0_3cars , 3072) {}
item(FEAT_TRAINS, emu789_0_2cars , 3073) {}
item(FEAT_TRAINS, emu785_300_2cars , 3074) {}
item(FEAT_TRAINS, emu789_1000_5cars, 3081) {}
item(FEAT_TRAINS, dmu261_0_4cars , 3091) {}
item(FEAT_TRAINS, dmu261_0_2cars , 3092) {}
item(FEAT_TRAINS, dmu261_1000_7cars, 3101) {}
item(FEAT_TRAINS, dmu261_1000_5cars, 3102) {}
item(FEAT_TRAINS, dmu261_1000_2cars, 3103) {}
item(FEAT_TRAINS, dmu261_1000_1car , 3104) {}
item(FEAT_TRAINS, dmu281_7cars , 3111) {}
item(FEAT_TRAINS, dmu281_1car , 3112) {}
item(FEAT_TRAINS, dmu283_6cars , 3113) {}
item(FEAT_TRAINS, dmu283_1car , 3114) {}
item(FEAT_TRAINS, emu737_2cars , 3121) {}
item(FEAT_TRAINS, dmuH100 , 3131) {}
# 5 ".\\HokkaidoTrains.pnml" 2
# 1 "src/vehicles.pnml" 1
# 1 "src/vehicles/721group/721group_main.pnml" 1
spriteset( set_721_purchase, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_single(0, 64, 14, -25, -10) }
alternative_sprites(set_721_purchase, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_single(0, 64, 14, -25, -10) }
spriteset(set_721_front_tc_tomakomai, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views( 1, 0) }
spriteset(set_721_rear_tc_tomakomai, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views( 2, 0) }
spriteset(set_721_unlited_tc_tomakomai, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views( 3, 0) }
spriteset(set_721_front_tc_otaru, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views( 4, 0) }
spriteset(set_721_rear_tc_otaru, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views( 5, 0) }
spriteset(set_721_unlited_tc_otaru, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views( 6, 0) }
spriteset(set_721_mp_thyristor, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views( 7, 0) }
spriteset(set_721_tu_renew, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views( 8, 0) }
spriteset(set_721_tn, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views( 9, 0) }
spriteset(set_721_front_tcu_tomakomai_renew, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(10, 0) }
spriteset(set_721_rear_tcu_tomakomai_renew, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(11, 0) }
spriteset(set_721_unlited_tcu_tomakomai_renew, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(12, 0) }
spriteset(set_721_front_tcu_tomakomai_init, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(13, 0) }
spriteset(set_721_rear_tcu_tomakomai_init, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(14, 0) }
spriteset(set_721_unlited_tcu_tomakomai_init, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(15, 0) }
spriteset(set_721_mp_vvvf, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(16, 0) }
spriteset(set_721_tu_init, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(17, 0) }
spriteset(set_721_front_mc_otaru, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(18, 0) }
spriteset(set_721_rear_mc_otaru, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(19, 0) }
spriteset(set_721_unlited_mc_otaru, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(20, 0) }
spriteset(set_721_mn, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(21, 0) }
spriteset(set_721_front_tc_otaru_hood, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(22, 0) }
spriteset(set_721_rear_tc_otaru_hood, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(23, 0) }
spriteset(set_721_unlited_tc_otaru_hood, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(24, 0) }
spriteset(set_721_front_mc_otaru_hood, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(25, 0) }
spriteset(set_721_rear_mc_otaru_hood, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(26, 0) }
spriteset(set_721_unlited_mc_otaru_hood, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(27, 0) }
spriteset(set_721f_front_tc_tomakomai, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views( 1, 1) }
spriteset(set_721f_rear_tc_tomakomai, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views( 2, 1) }
spriteset(set_721f_unlited_tc_tomakomai, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views( 3, 1) }
spriteset(set_721f_front_tc_otaru, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views( 4, 1) }
spriteset(set_721f_rear_tc_otaru, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views( 5, 1) }
spriteset(set_721f_unlited_tc_otaru, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views( 6, 1) }
spriteset(set_721f_mp_thyristor, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views( 7, 1) }
spriteset(set_721f_tu_renew, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views( 8, 1) }
spriteset(set_721f_tn, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views( 9, 1) }
spriteset(set_721f_front_tcu_tomakomai_renew, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(10, 1) }
spriteset(set_721f_rear_tcu_tomakomai_renew, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(11, 1) }
spriteset(set_721f_unlited_tcu_tomakomai_renew, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(12, 1) }
spriteset(set_721f_front_tcu_tomakomai_init, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(13, 1) }
spriteset(set_721f_rear_tcu_tomakomai_init, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(14, 1) }
spriteset(set_721f_unlited_tcu_tomakomai_init, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(15, 1) }
spriteset(set_721f_mp_vvvf, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(16, 1) }
spriteset(set_721f_tu_init, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(17, 1) }
spriteset(set_721f_front_mc_otaru, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(18, 1) }
spriteset(set_721f_rear_mc_otaru, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(19, 1) }
spriteset(set_721f_unlited_mc_otaru, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(20, 1) }
spriteset(set_721f_mn, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(21, 1) }
spriteset(set_721f_front_tc_otaru_hood, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(22, 1) }
spriteset(set_721f_rear_tc_otaru_hood, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(23, 1) }
spriteset(set_721f_unlited_tc_otaru_hood, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(24, 1) }
spriteset(set_721f_front_mc_otaru_hood, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(25, 1) }
spriteset(set_721f_rear_mc_otaru_hood, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(26, 1) }
spriteset(set_721f_unlited_mc_otaru_hood, "gfx/8bpp/721-8bpp.png") { tmpl_vehicle_8_views(27, 1) }
alternative_sprites(set_721_front_tc_tomakomai, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views( 1, 0) }
alternative_sprites(set_721_rear_tc_tomakomai, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views( 2, 0) }
alternative_sprites(set_721_unlited_tc_tomakomai, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views( 3, 0) }
alternative_sprites(set_721_front_tc_otaru, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views( 4, 0) }
alternative_sprites(set_721_rear_tc_otaru, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views( 5, 0) }
alternative_sprites(set_721_unlited_tc_otaru, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views( 6, 0) }
alternative_sprites(set_721_mp_thyristor, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views( 7, 0) }
alternative_sprites(set_721_tu_renew, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views( 8, 0) }
alternative_sprites(set_721_tn, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views( 9, 0) }
alternative_sprites(set_721_front_tcu_tomakomai_renew, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(10, 0) }
alternative_sprites(set_721_rear_tcu_tomakomai_renew, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(11, 0) }
alternative_sprites(set_721_unlited_tcu_tomakomai_renew, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(12, 0) }
alternative_sprites(set_721_front_tcu_tomakomai_init, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(13, 0) }
alternative_sprites(set_721_rear_tcu_tomakomai_init, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(14, 0) }
alternative_sprites(set_721_unlited_tcu_tomakomai_init, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(15, 0) }
alternative_sprites(set_721_mp_vvvf, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(16, 0) }
alternative_sprites(set_721_tu_init, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(17, 0) }
alternative_sprites(set_721_front_mc_otaru, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(18, 0) }
alternative_sprites(set_721_rear_mc_otaru, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(19, 0) }
alternative_sprites(set_721_unlited_mc_otaru, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(20, 0) }
alternative_sprites(set_721_mn, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(21, 0) }
alternative_sprites(set_721_front_tc_otaru_hood, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(22, 0) }
alternative_sprites(set_721_rear_tc_otaru_hood, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(23, 0) }
alternative_sprites(set_721_unlited_tc_otaru_hood, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(24, 0) }
alternative_sprites(set_721_front_mc_otaru_hood, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(25, 0) }
alternative_sprites(set_721_rear_mc_otaru_hood, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(26, 0) }
alternative_sprites(set_721_unlited_mc_otaru_hood, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(27, 0) }
alternative_sprites(set_721f_front_tc_tomakomai, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views( 1, 1) }
alternative_sprites(set_721f_rear_tc_tomakomai, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views( 2, 1) }
alternative_sprites(set_721f_unlited_tc_tomakomai, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views( 3, 1) }
alternative_sprites(set_721f_front_tc_otaru, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views( 4, 1) }
alternative_sprites(set_721f_rear_tc_otaru, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views( 5, 1) }
alternative_sprites(set_721f_unlited_tc_otaru, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views( 6, 1) }
alternative_sprites(set_721f_mp_thyristor, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views( 7, 1) }
alternative_sprites(set_721f_tu_renew, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views( 8, 1) }
alternative_sprites(set_721f_tn, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views( 9, 1) }
alternative_sprites(set_721f_front_tcu_tomakomai_renew, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(10, 1) }
alternative_sprites(set_721f_rear_tcu_tomakomai_renew, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(11, 1) }
alternative_sprites(set_721f_unlited_tcu_tomakomai_renew, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(12, 1) }
alternative_sprites(set_721f_front_tcu_tomakomai_init, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(13, 1) }
alternative_sprites(set_721f_rear_tcu_tomakomai_init, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(14, 1) }
alternative_sprites(set_721f_unlited_tcu_tomakomai_init, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(15, 1) }
alternative_sprites(set_721f_mp_vvvf, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(16, 1) }
alternative_sprites(set_721f_tu_init, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(17, 1) }
alternative_sprites(set_721f_front_mc_otaru, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(18, 1) }
alternative_sprites(set_721f_rear_mc_otaru, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(19, 1) }
alternative_sprites(set_721f_unlited_mc_otaru, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(20, 1) }
alternative_sprites(set_721f_mn, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(21, 1) }
alternative_sprites(set_721f_front_tc_otaru_hood, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(22, 1) }
alternative_sprites(set_721f_rear_tc_otaru_hood, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(23, 1) }
alternative_sprites(set_721f_unlited_tc_otaru_hood, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(24, 1) }
alternative_sprites(set_721f_front_mc_otaru_hood, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(25, 1) }
alternative_sprites(set_721f_rear_mc_otaru_hood, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(26, 1) }
alternative_sprites(set_721f_unlited_mc_otaru_hood, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/721-32bpp.png") { tmpl_vehicle_8_views(27, 1) }
spriteset(set_731_purchase, "gfx/8bpp/731-8bpp.png") { tmpl_vehicle_single(0, 64, 14, -25, -10) }
alternative_sprites(set_731_purchase, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/731-32bpp_gradient.png") { tmpl_vehicle_single(0, 64, 14, -25, -10) }
spriteset(set_731_front_tc, "gfx/8bpp/731-8bpp.png") { tmpl_vehicle_8_views( 1, 0) }
spriteset(set_731_rear_tc, "gfx/8bpp/731-8bpp.png") { tmpl_vehicle_8_views( 2, 0) }
spriteset(set_731_unlited_tc, "gfx/8bpp/731-8bpp.png") { tmpl_vehicle_8_views( 3, 0) }
spriteset(set_731_mp, "gfx/8bpp/731-8bpp.png") { tmpl_vehicle_8_views( 4, 0) }
spriteset(set_731f_front_tc, "gfx/8bpp/731-8bpp.png") { tmpl_vehicle_8_views( 1, 1) }
spriteset(set_731f_rear_tc, "gfx/8bpp/731-8bpp.png") { tmpl_vehicle_8_views( 2, 1) }
spriteset(set_731f_unlited_tc,"gfx/8bpp/731-8bpp.png") { tmpl_vehicle_8_views( 3, 1) }
spriteset(set_731f_mp, "gfx/8bpp/731-8bpp.png") { tmpl_vehicle_8_views( 4, 1) }
alternative_sprites(set_731_front_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/731-32bpp_gradient.png") { tmpl_vehicle_8_views( 1, 0) }
alternative_sprites(set_731_rear_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/731-32bpp_gradient.png") { tmpl_vehicle_8_views( 2, 0) }
alternative_sprites(set_731_unlited_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/731-32bpp_gradient.png") { tmpl_vehicle_8_views( 3, 0) }
alternative_sprites(set_731_mp, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/731-32bpp_gradient.png") { tmpl_vehicle_8_views( 4, 0) }
alternative_sprites(set_731f_front_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/731-32bpp_gradient.png") { tmpl_vehicle_8_views( 1, 1) }
alternative_sprites(set_731f_rear_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/731-32bpp_gradient.png") { tmpl_vehicle_8_views( 2, 1) }
alternative_sprites(set_731f_unlited_tc,ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/731-32bpp_gradient.png") { tmpl_vehicle_8_views( 3, 1) }
alternative_sprites(set_731f_mp, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/731-32bpp_gradient.png") { tmpl_vehicle_8_views( 4, 1) }
spriteset(set_733_purchase, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_single(0, 64, 14, -25, -10) }
alternative_sprites(set_733_purchase, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_single(0, 64, 14, -25, -10) }
spriteset(set_733_front_tc, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views( 1, 0) }
spriteset(set_733_rear_tc, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views( 2, 0) }
spriteset(set_733_unlited_tc, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views( 3, 0) }
spriteset(set_733_tn, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views( 4, 0) }
spriteset(set_733_mp, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views( 5, 0) }
spriteset(set_733_3000_tu, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views( 6, 0) }
spriteset(set_733_3000_mp, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views( 7, 0) }
spriteset(set_733_1000_front_tc, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views( 8, 0) }
spriteset(set_733_1000_rear_tc, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views( 9, 0) }
spriteset(set_733_1000_unlited_tc, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views(10, 0) }
spriteset(set_733_1000_mp, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views(11, 0) }
spriteset(set_733_front_tc_nh, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views(12, 0) }
spriteset(set_733_rear_tc_nh, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views(13, 0) }
spriteset(set_733_unlited_tc_nh, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views(14, 0) }
spriteset(set_733f_front_tc, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views( 1, 1) }
spriteset(set_733f_rear_tc, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views( 2, 1) }
spriteset(set_733f_unlited_tc, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views( 3, 1) }
spriteset(set_733f_tn, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views( 4, 1) }
spriteset(set_733f_mp, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views( 5, 1) }
spriteset(set_733f_3000_tu, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views( 6, 1) }
spriteset(set_733f_3000_mp, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views( 7, 1) }
spriteset(set_733f_1000_front_tc, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views( 8, 1) }
spriteset(set_733f_1000_rear_tc, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views( 9, 1) }
spriteset(set_733f_1000_unlited_tc, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views(10, 1) }
spriteset(set_733f_1000_mp, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views(11, 1) }
spriteset(set_733f_front_tc_nh, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views(12, 1) }
spriteset(set_733f_rear_tc_nh, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views(13, 1) }
spriteset(set_733f_unlited_tc_nh, "gfx/8bpp/733-8bpp.png") { tmpl_vehicle_8_views(14, 1) }
alternative_sprites(set_733_front_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views( 1, 0) }
alternative_sprites(set_733_rear_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views( 2, 0) }
alternative_sprites(set_733_unlited_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views( 3, 0) }
alternative_sprites(set_733_tn, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views( 4, 0) }
alternative_sprites(set_733_mp, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views( 5, 0) }
alternative_sprites(set_733_3000_tu, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views( 6, 0) }
alternative_sprites(set_733_3000_mp, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views( 7, 0) }
alternative_sprites(set_733_1000_front_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views( 8, 0) }
alternative_sprites(set_733_1000_rear_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views( 9, 0) }
alternative_sprites(set_733_1000_unlited_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views(10, 0) }
alternative_sprites(set_733_1000_mp, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views(11, 0) }
alternative_sprites(set_733_front_tc_nh, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views(12, 0) }
alternative_sprites(set_733_rear_tc_nh, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views(13, 0) }
alternative_sprites(set_733_unlited_tc_nh, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views(14, 0) }
alternative_sprites(set_733f_front_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views( 1, 1) }
alternative_sprites(set_733f_rear_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views( 2, 1) }
alternative_sprites(set_733f_unlited_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views( 3, 1) }
alternative_sprites(set_733f_tn, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views( 4, 1) }
alternative_sprites(set_733f_mp, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views( 5, 1) }
alternative_sprites(set_733f_3000_tu, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views( 6, 1) }
alternative_sprites(set_733f_3000_mp, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views( 7, 1) }
alternative_sprites(set_733f_1000_front_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views( 8, 1) }
alternative_sprites(set_733f_1000_rear_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views( 9, 1) }
alternative_sprites(set_733f_1000_unlited_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views(10, 1) }
alternative_sprites(set_733f_1000_mp, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views(11, 1) }
alternative_sprites(set_733f_front_tc_nh, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views(12, 1) }
alternative_sprites(set_733f_rear_tc_nh, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views(13, 1) }
alternative_sprites(set_733f_unlited_tc_nh, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/733-32bpp.png") { tmpl_vehicle_8_views(14, 1) }
spriteset(set_735_purchase, "gfx/8bpp/735-8bpp.png") { tmpl_vehicle_single(0, 64, 14, -25, -10) }
alternative_sprites(set_735_purchase, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/735-32bpp.png") { tmpl_vehicle_single(0, 64, 14, -25, -10) }
spriteset(set_735_front_tc, "gfx/8bpp/735-8bpp.png") { tmpl_vehicle_8_views( 1, 0) }
spriteset(set_735_rear_tc, "gfx/8bpp/735-8bpp.png") { tmpl_vehicle_8_views( 2, 0) }
spriteset(set_735_unlited_tc, "gfx/8bpp/735-8bpp.png") { tmpl_vehicle_8_views( 3, 0) }
spriteset(set_735_mp, "gfx/8bpp/735-8bpp.png") { tmpl_vehicle_8_views( 4, 0) }
spriteset(set_735f_front_tc, "gfx/8bpp/735-8bpp.png") { tmpl_vehicle_8_views( 1, 1) }
spriteset(set_735f_rear_tc, "gfx/8bpp/735-8bpp.png") { tmpl_vehicle_8_views( 2, 1) }
spriteset(set_735f_unlited_tc,"gfx/8bpp/735-8bpp.png") { tmpl_vehicle_8_views( 3, 1) }
spriteset(set_735f_mp, "gfx/8bpp/735-8bpp.png") { tmpl_vehicle_8_views( 4, 1) }
alternative_sprites(set_735_front_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/735-32bpp.png") { tmpl_vehicle_8_views( 1, 0) }
alternative_sprites(set_735_rear_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/735-32bpp.png") { tmpl_vehicle_8_views( 2, 0) }
alternative_sprites(set_735_unlited_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/735-32bpp.png") { tmpl_vehicle_8_views( 3, 0) }
alternative_sprites(set_735_mp, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/735-32bpp.png") { tmpl_vehicle_8_views( 4, 0) }
alternative_sprites(set_735f_front_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/735-32bpp.png") { tmpl_vehicle_8_views( 1, 1) }
alternative_sprites(set_735f_rear_tc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/735-32bpp.png") { tmpl_vehicle_8_views( 2, 1) }
alternative_sprites(set_735f_unlited_tc,ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/735-32bpp.png") { tmpl_vehicle_8_views( 3, 1) }
alternative_sprites(set_735f_mp, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/735-32bpp.png") { tmpl_vehicle_8_views( 4, 1) }
spriteset(set_dc201_purchase, "gfx/8bpp/dc201-8bpp.png") { tmpl_vehicle_single(0, 64, 14, -25, -10) }
alternative_sprites(set_dc201_purchase, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/dc201-32bpp_gradient.png") { tmpl_vehicle_single(0, 64, 14, -25, -10) }
spriteset(set_dc201_front_mc, "gfx/8bpp/dc201-8bpp.png") { tmpl_vehicle_8_views( 1, 0) }
spriteset(set_dc201_rear_mc, "gfx/8bpp/dc201-8bpp.png") { tmpl_vehicle_8_views( 2, 0) }
spriteset(set_dc201_unlited_mc, "gfx/8bpp/dc201-8bpp.png") { tmpl_vehicle_8_views( 3, 0) }
spriteset(set_dc201_mn, "gfx/8bpp/dc201-8bpp.png") { tmpl_vehicle_8_views( 4, 0) }
spriteset(set_dc201f_front_mc, "gfx/8bpp/dc201-8bpp.png") { tmpl_vehicle_8_views( 1, 1) }
spriteset(set_dc201f_rear_mc, "gfx/8bpp/dc201-8bpp.png") { tmpl_vehicle_8_views( 2, 1) }
spriteset(set_dc201f_unlited_mc,"gfx/8bpp/dc201-8bpp.png") { tmpl_vehicle_8_views( 3, 1) }
spriteset(set_dc201f_mn, "gfx/8bpp/dc201-8bpp.png") { tmpl_vehicle_8_views( 4, 1) }
alternative_sprites(set_dc201_front_mc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/dc201-32bpp_gradient.png") { tmpl_vehicle_8_views( 1, 0) }
alternative_sprites(set_dc201_rear_mc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/dc201-32bpp_gradient.png") { tmpl_vehicle_8_views( 2, 0) }
alternative_sprites(set_dc201_unlited_mc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/dc201-32bpp_gradient.png") { tmpl_vehicle_8_views( 3, 0) }
alternative_sprites(set_dc201_mn, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/dc201-32bpp_gradient.png") { tmpl_vehicle_8_views( 4, 0) }
alternative_sprites(set_dc201f_front_mc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/dc201-32bpp_gradient.png") { tmpl_vehicle_8_views( 1, 1) }
alternative_sprites(set_dc201f_rear_mc, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/dc201-32bpp_gradient.png") { tmpl_vehicle_8_views( 2, 1) }
alternative_sprites(set_dc201f_unlited_mc,ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/dc201-32bpp_gradient.png") { tmpl_vehicle_8_views( 3, 1) }
alternative_sprites(set_dc201f_mn, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP, "gfx/32bpp/dc201-32bpp_gradient.png") { tmpl_vehicle_8_views( 4, 1) }
// 721series
// Tomakomai
switch(FEAT_TRAINS, SELF, sw_721_front_tc_tomakomai, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
1: set_721_front_tc_tomakomai;
default: set_721_unlited_tc_tomakomai;
}
switch(FEAT_TRAINS, SELF, sw_721f_rear_tc_tomakomai, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
1: set_721f_rear_tc_tomakomai;
default: set_721f_unlited_tc_tomakomai;
}
// Otaru
switch(FEAT_TRAINS, SELF, sw_721_front_tc_otaru, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
1: set_721_front_tc_otaru;
default: set_721_unlited_tc_otaru;
}
switch(FEAT_TRAINS, SELF, sw_721f_rear_tc_otaru, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
1: set_721f_rear_tc_otaru;
default: set_721f_unlited_tc_otaru;
}
// Tomakomai Renew
switch(FEAT_TRAINS, SELF, sw_721_front_tcu_tomakomai_renew, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
1: set_721_front_tcu_tomakomai_renew;
default: set_721_unlited_tcu_tomakomai_renew;
}
switch(FEAT_TRAINS, SELF, sw_721f_rear_tcu_tomakomai_renew, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
1: set_721f_rear_tcu_tomakomai_renew;
default: set_721f_unlited_tcu_tomakomai_renew;
}
// Tomakomai Init
switch(FEAT_TRAINS, SELF, sw_721_front_tcu_tomakomai_init, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
1: set_721_front_tcu_tomakomai_init;
default: set_721_unlited_tcu_tomakomai_init;
}
switch(FEAT_TRAINS, SELF, sw_721f_rear_tcu_tomakomai_init, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
1: set_721f_rear_tcu_tomakomai_init;
default: set_721f_unlited_tcu_tomakomai_init;
}
// Otaru
switch(FEAT_TRAINS, SELF, sw_721_front_mc_otaru, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
1: set_721_front_mc_otaru;
default: set_721_unlited_mc_otaru;
}
switch(FEAT_TRAINS, SELF, sw_721f_rear_mc_otaru, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
1: set_721f_rear_mc_otaru;
default: set_721f_unlited_mc_otaru;
}
// Otaru Hood
switch(FEAT_TRAINS, SELF, sw_721_front_tc_otaru_hood, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
1: set_721_front_tc_otaru_hood;
default: set_721_unlited_tc_otaru_hood;
}
switch(FEAT_TRAINS, SELF, sw_721f_rear_tc_otaru_hood, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
1: set_721f_rear_tc_otaru_hood;
default: set_721f_unlited_tc_otaru_hood;
}
// Otaru Hood for MC
switch(FEAT_TRAINS, SELF, sw_721_front_mc_otaru_hood, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
1: set_721_front_mc_otaru_hood;
default: set_721_unlited_mc_otaru_hood;
}
switch(FEAT_TRAINS, SELF, sw_721f_rear_mc_otaru_hood, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
1: set_721f_rear_mc_otaru_hood;
default: set_721f_unlited_mc_otaru_hood;
}
switch(FEAT_TRAINS, SELF, sw_721_3cars_initial, position_in_articulated_veh) {
// Mc721 + Mp721 + Tc721
0: sw_721_front_mc_otaru_hood;
1: set_721_mp_thyristor;
2: sw_721f_rear_tc_tomakomai;
}
switch(FEAT_TRAINS, SELF, sw_721f_3cars_initial, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x000000FF, 0x41]%3]) {
0: sw_721f_rear_mc_otaru_hood;
1: set_721f_mp_thyristor;
2: sw_721_front_tc_tomakomai;
}
switch(FEAT_TRAINS, SELF, sw_721_6cars_miduseat_initial, position_in_articulated_veh) {
// Mc721 + Mp721 + Tu721 + Mn720 + Mp721 + Tc721
0: set_721_front_mc_otaru;
1: set_721_mp_thyristor;
2: set_721_tu_init;
3: set_721_mn;
4: set_721_mp_thyristor;
5: set_721f_rear_tc_tomakomai;
}
switch(FEAT_TRAINS, SELF, sw_721f_6cars_miduseat_initial, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x000000FF, 0x41]%6]) {
0: set_721f_rear_mc_otaru;
1: set_721f_mp_thyristor;
2: set_721f_tu_init;
3: set_721f_mn;
4: set_721f_mp_thyristor;
5: set_721_front_tc_tomakomai;
}
switch(FEAT_TRAINS, SELF, sw_721_3cars_ctruseat_initial, position_in_articulated_veh) {
// Mc721 + Mp721 + Tcu721
0: sw_721_front_mc_otaru_hood;
1: set_721_mp_thyristor;
2: sw_721f_rear_tcu_tomakomai_init;
}
switch(FEAT_TRAINS, SELF, sw_721f_3cars_ctruseat_initial, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x000000FF, 0x41]%3]) {
0: sw_721f_rear_mc_otaru_hood;
1: set_721f_mp_thyristor;
2: sw_721_front_tcu_tomakomai_init;
}
switch(FEAT_TRAINS, SELF, sw_721_6cars_miduseat_renewal, position_in_articulated_veh) {
// Mc721 + Mp721 + Tu721 + Mn720 + Mp721 + Tc721
0: set_721_front_mc_otaru;
1: set_721_mp_thyristor;
2: set_721_tu_renew;
3: set_721_mn;
4: set_721_mp_thyristor;
5: set_721f_rear_tc_tomakomai;
}
switch(FEAT_TRAINS, SELF, sw_721f_6cars_miduseat_renewal, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x000000FF, 0x41]%6]) {
0: set_721f_rear_mc_otaru;
1: set_721f_mp_thyristor;
2: set_721f_tu_renew;
3: set_721f_mn;
4: set_721f_mp_thyristor;
5: set_721_front_tc_tomakomai;
}
switch(FEAT_TRAINS, SELF, sw_721_3cars_ctruseat_renewal, position_in_articulated_veh) {
// Mc721 + Mp721 + Tcu721
0: sw_721_front_mc_otaru_hood;
1: set_721_mp_thyristor;
2: sw_721f_rear_tcu_tomakomai_renew;
}
switch(FEAT_TRAINS, SELF, sw_721f_3cars_ctruseat_renewal, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x000000FF, 0x41]%3]) {
0: sw_721f_rear_mc_otaru_hood;
1: set_721f_mp_thyristor;
2: sw_721_front_tcu_tomakomai_renew;
}
switch(FEAT_TRAINS, SELF, sw_721_3cars_vvvf, position_in_articulated_veh) {
// Tc721 + Mp721 + Tc721
0: sw_721_front_tc_otaru_hood;
1: set_721_mp_vvvf;
2: sw_721f_rear_tc_tomakomai;
}
switch(FEAT_TRAINS, SELF, sw_721f_3cars_vvvf, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x000000FF, 0x41]%3]) {
0: sw_721f_rear_tc_otaru_hood;
1: set_721f_mp_vvvf;
2: sw_721_front_tc_tomakomai;
}
switch(FEAT_TRAINS, SELF, sw_721_6cars_vvvf_miduseat_renewal, position_in_articulated_veh) {
// Tc721 + Mp721 + Tu721 + Tn720 + Mp721 + Tc721
0: set_721_front_tc_otaru;
1: set_721_mp_vvvf;
2: set_721_tu_renew;
3: set_721_tn;
4: set_721_mp_vvvf;
5: set_721f_rear_tc_tomakomai;
}
switch(FEAT_TRAINS, SELF, sw_721f_6cars_vvvf_miduseat_renewal, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x000000FF, 0x41]%6]) {
0: set_721f_rear_tc_otaru;
1: set_721f_mp_vvvf;
2: set_721f_tu_renew;
3: set_721f_tn;
4: set_721f_mp_vvvf;
5: set_721_front_tc_tomakomai;
}
switch(FEAT_TRAINS, SELF, sw_721_3cars_vvvf_ctruseat_renewal, position_in_articulated_veh) {
// Tc721 + Mp721 + Tcu721
0: sw_721_front_mc_otaru_hood;
1: set_721_mp_vvvf;
2: sw_721f_rear_tcu_tomakomai_renew;
}
switch(FEAT_TRAINS, SELF, sw_721f_3cars_vvvf_ctruseat_renewal, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x000000FF, 0x41]%3]) {
0: sw_721f_rear_mc_otaru_hood;
1: set_721f_mp_vvvf;
2: sw_721_front_tcu_tomakomai_renew;
}
switch(FEAT_TRAINS, SELF, sw_721_3cars_formations, cargo_subtype) {
0: sw_721_3cars_initial;
1: sw_721_3cars_ctruseat_initial;
2: sw_721_3cars_ctruseat_renewal;
3: sw_721_3cars_vvvf;
4: sw_721_3cars_vvvf_ctruseat_renewal;
default: CB_FAILED;
}
switch(FEAT_TRAINS, SELF, sw_721f_3cars_formations, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x0000FFFF, 0xF2]]) {
0: sw_721f_3cars_initial;
1: sw_721f_3cars_ctruseat_initial;
2: sw_721f_3cars_ctruseat_renewal;
3: sw_721f_3cars_vvvf;
4: sw_721f_3cars_vvvf_ctruseat_renewal;
default: CB_FAILED;
}
switch(FEAT_TRAINS, SELF, sw_721_6cars_formations, cargo_subtype) {
0: sw_721_6cars_vvvf_miduseat_renewal;
1: sw_721_6cars_miduseat_renewal;
2: sw_721_6cars_miduseat_initial;
default: CB_FAILED;
}
switch(FEAT_TRAINS, SELF, sw_721f_6cars_formations, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x0000FFFF, 0xF2]]) {
0: sw_721f_6cars_vvvf_miduseat_renewal;
1: sw_721f_6cars_miduseat_renewal;
2: sw_721f_6cars_miduseat_initial;
default: CB_FAILED;
}
// 731series
switch(FEAT_TRAINS, SELF, sw_731_front_tc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_731_unlited_tc;
default: set_731_front_tc;
}
switch(FEAT_TRAINS, SELF, sw_731_rear_tc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_731_unlited_tc;
default: set_731_rear_tc;
}
switch(FEAT_TRAINS, SELF, sw_731f_front_tc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_731f_unlited_tc;
default: set_731f_front_tc;
}
switch(FEAT_TRAINS, SELF, sw_731f_rear_tc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_731f_unlited_tc;
default: set_731f_rear_tc;
}
switch(FEAT_TRAINS, SELF, sw_731_3cars_initial, position_in_articulated_veh) {
0: sw_731_front_tc;
1: set_731_mp;
2: sw_731f_rear_tc;
}
switch(FEAT_TRAINS, SELF, sw_731f_3cars_initial, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x000000FF, 0x41]%3]) {
0: sw_731f_rear_tc;
1: set_731f_mp;
2: sw_731_front_tc;
}
switch(FEAT_TRAINS, SELF, sw_731_3cars_formations, cargo_subtype) {
default: sw_731_3cars_initial;
}
switch(FEAT_TRAINS, SELF, sw_731f_3cars_formations, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x0000FFFF, 0xF2]]) {
default: sw_731f_3cars_initial;
}
// 733series
switch(FEAT_TRAINS, SELF, sw_733_front_tc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_733_unlited_tc;
default: set_733_front_tc;
}
switch(FEAT_TRAINS, SELF, sw_733f_rear_tc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_733f_unlited_tc;
default: set_733f_rear_tc;
}
switch(FEAT_TRAINS, SELF, sw_733f_front_tc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_733f_unlited_tc;
default: set_733f_front_tc;
}
switch(FEAT_TRAINS, SELF, sw_733_front_tc_nh, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_733_unlited_tc_nh;
default: set_733_front_tc_nh;
}
switch(FEAT_TRAINS, SELF, sw_733_rear_tc_nh, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_733_unlited_tc_nh;
default: set_733_rear_tc_nh;
}
switch(FEAT_TRAINS, SELF, sw_733f_front_tc_nh, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_733f_unlited_tc_nh;
default: set_733f_front_tc_nh;
}
switch(FEAT_TRAINS, SELF, sw_733f_rear_tc_nh, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_733f_unlited_tc_nh;
default: set_733f_rear_tc_nh;
}
switch(FEAT_TRAINS, SELF, sw_733_1000_front_tc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_733_1000_unlited_tc;
default: set_733_1000_front_tc;
}
switch(FEAT_TRAINS, SELF, sw_733_1000_rear_tc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_733_1000_unlited_tc;
default: set_733_1000_rear_tc;
}
switch(FEAT_TRAINS, SELF, sw_733f_1000_front_tc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_733f_1000_unlited_tc;
default: set_733f_1000_front_tc;
}
switch(FEAT_TRAINS, SELF, sw_733f_1000_rear_tc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_733f_1000_unlited_tc;
default: set_733f_1000_rear_tc;
}
switch(FEAT_TRAINS, SELF, sw_733_3cars_initial, position_in_articulated_veh) {
0: sw_733_front_tc;
1: set_733_mp;
2: sw_733f_rear_tc;
}
switch(FEAT_TRAINS, SELF, sw_733f_3cars_initial, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x000000FF, 0x41]%3]) {
0: sw_733f_rear_tc;
1: set_733f_mp;
2: sw_733_front_tc;
}
switch(FEAT_TRAINS, SELF, sw_733_3cars_1000, position_in_articulated_veh) {
0: sw_733_1000_front_tc;
1: set_733_1000_mp;
2: sw_733f_1000_rear_tc;
}
switch(FEAT_TRAINS, SELF, sw_733f_3cars_1000, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x000000FF, 0x41]%3]) {
0: sw_733f_1000_rear_tc;
1: set_733f_1000_mp;
2: sw_733_1000_front_tc;
}
switch(FEAT_TRAINS, SELF, sw_733_6cars_3000, position_in_articulated_veh) {
// <-Otaru Tomakomai->
// Tc + Mp + Tu + Tn + Mp + Tc
0: sw_733_front_tc_nh;
1: set_733_3000_mp;
2: set_733_3000_tu;
3: set_733_tn;
4: set_733_3000_mp;
5: sw_733f_rear_tc_nh;
}
switch(FEAT_TRAINS, SELF, sw_733f_6cars_3000, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x000000FF, 0x41]%6]) {
0: sw_733f_rear_tc_nh;
1: set_733f_3000_mp;
2: set_733f_3000_tu;
3: set_733f_tn;
4: set_733f_3000_mp;
5: sw_733_front_tc_nh;
}
switch(FEAT_TRAINS, SELF, sw_733_3cars_formations, cargo_subtype) {
0: sw_733_3cars_initial;
1: sw_733_3cars_1000;
}
switch(FEAT_TRAINS, SELF, sw_733f_3cars_formations, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x0000FFFF, 0xF2]]) {
0: sw_733f_3cars_initial;
1: sw_733f_3cars_1000;
}
switch(FEAT_TRAINS, SELF, sw_733_6cars_formations, cargo_subtype) {
0: sw_733_6cars_3000;
}
switch(FEAT_TRAINS, SELF, sw_733f_6cars_formations, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x0000FFFF, 0xF2]]) {
0: sw_733f_6cars_3000;
}
// 735series
switch(FEAT_TRAINS, SELF, sw_735_front_tc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_735_unlited_tc;
default: set_735_front_tc;
}
switch(FEAT_TRAINS, SELF, sw_735_rear_tc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_735_unlited_tc;
default: set_735_rear_tc;
}
switch(FEAT_TRAINS, SELF, sw_735f_front_tc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_735f_unlited_tc;
default: set_735f_front_tc;
}
switch(FEAT_TRAINS, SELF, sw_735f_rear_tc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_735f_unlited_tc;
default: set_735f_rear_tc;
}
switch(FEAT_TRAINS, SELF, sw_735_3cars_initial, position_in_articulated_veh) {
0: sw_735_front_tc;
1: set_735_mp;
2: sw_735f_rear_tc;
}
switch(FEAT_TRAINS, SELF, sw_735f_3cars_initial, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x000000FF, 0x41]%3]) {
0: sw_735f_rear_tc;
1: set_735f_mp;
2: sw_735_front_tc;
}
switch(FEAT_TRAINS, SELF, sw_735_3cars_formations, cargo_subtype) {
default: sw_735_3cars_initial;
}
switch(FEAT_TRAINS, SELF, sw_735f_3cars_formations, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x0000FFFF, 0xF2]]) {
default: sw_735f_3cars_initial;
}
// DC201series
switch(FEAT_TRAINS, SELF, sw_dc201_front_mc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_dc201_unlited_mc;
default: set_dc201_front_mc;
}
switch(FEAT_TRAINS, SELF, sw_dc201_rear_mc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_dc201_unlited_mc;
default: set_dc201_rear_mc;
}
switch(FEAT_TRAINS, SELF, sw_dc201f_front_mc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_dc201f_unlited_mc;
default: set_dc201f_front_mc;
}
switch(FEAT_TRAINS, SELF, sw_dc201f_rear_mc, (position_in_consist == 0 || position_in_consist_from_end == 0)) {
0: set_dc201f_unlited_mc;
default: set_dc201f_rear_mc;
}
switch(FEAT_TRAINS, SELF, sw_dc201_3cars_initial, position_in_articulated_veh) {
0: sw_dc201_front_mc;
1: set_dc201_mn;
2: sw_dc201f_rear_mc;
}
switch(FEAT_TRAINS, SELF, sw_dc201f_3cars_initial, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x000000FF, 0x41]%3]) {
0: sw_dc201f_rear_mc;
1: set_dc201f_mn;
2: sw_dc201_front_mc;
}
switch(FEAT_TRAINS, SELF, sw_dc201_3cars_formations, cargo_subtype) {
default: sw_dc201_3cars_initial;
}
switch(FEAT_TRAINS, SELF, sw_dc201f_3cars_formations, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x0000FFFF, 0xF2]]) {
default: sw_dc201f_3cars_initial;
}
// switch(FEAT_TRAINS, SELF, sw_721group_mucar_flformations, [
// // 1: 連続何両目か見る
// // 2: MUCarの制御車両を指定する
// // 3: 制御車両が何両目か見る
// // 4: 制御車両のIDを取得する
// STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F),
// STORE_TEMP(var[0x61, 0, 0x000000FF, 0x41]+1,1),
// STORE_TEMP((position_in_consist_from_end-position_in_consist)-LOAD_TEMP(1), 0x10F),
// var[0x61, 0, 0x0000FFFF, 0xC6]
// ]){
// emu721: sw_721f_formations;
// emu731: sw_731f_formations;
// emu733: sw_733f_formations;
// emu735: sw_735f_formations;
// dmu201: sw_dc201f_formations;
// default: CB_FAILED;
// }
switch(FEAT_TRAINS, SELF, sw_721group_flformation, [STORE_TEMP(position_in_consist_from_end-position_in_consist, 0x10F), var[0x61, 0, 0x0000FFFF, 0xC6]]){
emu721_3cars: sw_721f_3cars_formations;
emu721_6cars: sw_721f_6cars_formations;
emu731_3cars: sw_731f_3cars_formations;
emu733_3cars: sw_733f_3cars_formations;
emu733_6cars: sw_733f_6cars_formations;
emu735_3cars: sw_735f_3cars_formations;
dmu201_3cars: sw_dc201f_3cars_formations;
default: CB_FAILED;
}
switch(FEAT_TRAINS, PARENT, sw_721_3cars_gfx_main, vehicle_is_reversed) {
1: sw_721group_flformation;
default: sw_721_3cars_formations;
}
switch(FEAT_TRAINS, PARENT, sw_721_6cars_gfx_main, vehicle_is_reversed) {
1: sw_721group_flformation;
default: sw_721_6cars_formations;
}
switch(FEAT_TRAINS, PARENT, sw_731_3cars_gfx_main, vehicle_is_reversed) {
1: sw_721group_flformation;