-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathCirqus Voltaire (Bally 1997, Dozer 2.1, SSF Mod).vbs
3333 lines (2892 loc) · 78.6 KB
/
Cirqus Voltaire (Bally 1997, Dozer 2.1, SSF Mod).vbs
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
' Cirqus Voltaire / IPD No. 4059 / October, 1997 / 4 Players
' VP913 1.2 by JPSalas 2012
' Thanks to all the authors (Pinball Ken, Scapino, Pacdude, Fuseball, Wpcmame) who made this table before me.
' Since I have never played or seen the real table, this table is based on their tables.
' Thanks to Strangeleo for asking this table and his help with some graphics and testing the table.
' Parts of the script from the older tables.
' VPX version by Dozer and ninuzzu
' Thalamus 2018-07-24
' Table has already "Positional Sound Playback Functions" and "Supporting Ball & Sound Functions"
' Changed UseSolenoids=1 to 2
' Thalamus 2018-12-18 : Added FFv2
' No special SSF tweaks yet.
Option Explicit
Randomize
' .5 = lower volume
' 1.5 = higher volume
Const VolFlip = 1 ' Flipper volume.
'-------------------------------------------------
Const Dozer_Cab = 0 ' LEAVE THIS TURNED OFF
'-------------------------------------------------
dim B2SOn:B2SOn = 1 'Activate The DirectB2S / DOF system.
Const DOFs = False 'Activate this to mute mech sounds for DOF
'-------------------------------------------------
'##### Choose the ROM, uncomment to use
'Const cGameName = "cv_20h" 'home rom without credits
Const cGameName = "cv_20hc" 'arcade rom with credits
'Const cGameName = "cv_14" 'arcade rom with credits
'-------------------------------------------------
'******** DMD OPTIONS *************
'
'The 3 options below decide how the DMD is going to be rendered.
'
'Setting this option to 0 will use the old style DMD which sits in front
'of the ramps and is not integrated into the table.
'
'Setting this option to 1 will use the new flasher based integrated DMD.
'By also setting the variable "dmdcolor" below you can change the color
'of the DMD to one of the 8 colors listed.
'Setting this option to 2 will use the new flasher based integrated DMD
'and will also allow you to set the DMD to a special 4 color mode which
'must be enabled via the VPM setup program. If you use this option the "dmdcolor"
'variable below will have no effect as the DMD must be set to a base color to render
'the 4 color option properly.
'
Const IntegratedDMDType = 1 '0 = Off / 1 Normal / 2 Color.
'-------------------------------------------------
Const DMD_Plastic = 0 'Render a plastic cover over the DMD display.
'-------------------------------------------------
Const BackGlassDMD = 0 ' Place a static image on the playfield DMD if you use a 3 screen cab and don't want to use either
' the integrated DMD or the normal DMD positioned on the playfield.
'-------------------------------------------------
Const dmdcolor = 2 'Set the color of the NORMAL Integrated DMD - '0 = Orange / 1 = Green / 2 = Red / 3 = Pink / 4 = Blue / 5 Cyan / 6 Purple / 7 Yellow
'-------------------------------------------------
Const DMD_Rot = 0 'Rotate the Standard DMD - 1 = Rotate/ 0 = Normal
'-------------------------------------------------
'********* GRAPHICS & TABLE OPTIONS ************
Const Ringmaster_Motor = 1 'Play a motor sound when the Ringmaster raises / lowers.
Const Ringmaster_Speed = 120
'-------------------------------------------------
Const Ramp_End_Bounce = 1 'Simulate the ball boucing off the ramp ends before dropping.
'-------------------------------------------------
'##### Render Spiral Flipper logos instead of Williams
Const Spiral_Flipper_Logo = 0
'-------------------------------------------------
'##### Render Rubber Posts with Yellow Texture instead of Black.
Const Yellow_Prim_Posts = 1
'-------------------------------------------------
'##### Turn on Ramp Ambient Flasher effect.
'1 = On / 0 = Off
Const Prim_Reflect = 1
'-------------------------------------------------
'##### Turn The OverBright Neons Tube lights on or off.
'1 = On / 0 = Off
Const BrightTube = 1
'-------------------------------------------------
'#### Is the aftermarket Plamsa Mod Orb Visible?
'1 = On / 0 = Off
Const Plasmamod = 0
'##########################################
'THE NEXT TWO VARIABLES CONTROL THE DEFAULT COLORS
'OF THE NEON TUBE AND CAPTIVE BALL WHEN THE TABLE
'FIRST STARTS. THEY CAN BOTH BE CHANGED IN GAME BY
'PRESSING THE EXTRA BALL KEY.
'##########################################
'#### Set the Color of the Neon Tube here.
'1 = Green / 2 = Red / 3 = Pink / 4 = Blue / 5 Cyan / 6 Purple / 7 Yellow / 8 Orange
Const NeonColor = 3
'##########################################
'#### Set the Color of the Menagerie / Cue / Wildball etc. etc. here.
'1 = Green / 2 = Red / 3 = Pink / 4 = Blue / 5 Cyan / 6 Purple / 7 Yellow / 8 Orange
Const Wildballcolor = 3
'##########################################
Dim RampMagBall
'######### END OF TABLE OPTIONS ###########
If IntegratedDMDType = 1 then
If dmdcolor = 0 then
dmd.color = RGB(255,128,0)
dmd1.color = RGB(255,128,0)
dmd.opacity = 170
dmd1.opacity = 170
Ramp1038.image = "backwall999_orange"
End If
If dmdcolor = 1 then
dmd.color = RGB(0,255,0)
dmd1.color = RGB(0,255,0)
dmd.opacity = 100
dmd1.opacity = 100
Ramp1038.image = "backwall999_green"
End If
If dmdcolor = 2 then
dmd.color = RGB(255,0,0)
dmd1.color = RGB(255,0,0)
dmd.opacity = 100
dmd1.opacity = 100
Ramp1038.image = "backwall999_red"
End If
If dmdcolor = 3 then
dmd.color = RGB(255,0,255)
dmd1.color = RGB(255,0,255)
dmd.opacity = 100
dmd1.opacity = 100
Ramp1038.image = "backwall999_purple"
End If
If dmdcolor = 4 then
dmd.color = RGB(0,0,255)
dmd1.color = RGB(0,0,255)
dmd.opacity = 100
dmd1.opacity = 100
Ramp1038.image = "backwall999_blue"
End If
If dmdcolor = 5 then
dmd.color = RGB(0,255,255)
dmd1.color = RGB(0,255,255)
dmd.opacity = 100
dmd1.opacity = 100
Ramp1038.image = "backwall999_cyan"
End If
If dmdcolor = 6 then
dmd.color = RGB(204,153,255)
dmd1.color = RGB(204,153,255)
dmd.opacity = 100
dmd1.opacity = 100
Ramp1038.image = "backwall999_pink"
End If
If dmdcolor = 7 then
dmd.color = RGB(255,255,0)
dmd1.color = RGB(255,255,0)
dmd.opacity = 100
dmd1.opacity = 100
Ramp1038.image = "backwall999_yellow"
End If
End If
If dmd_plastic = 1 Then
DMD2.visible = 1
End If
If ramp_end_bounce = 1 Then
LRSK.enabled = 0
RRSK.enabled = 0
RRS.collidable = 0
LRS.collidable = 0
End If
'If IntegratedDMDType = 0 Then
'Const UseVPMDMD = 0
'End If
If IntegratedDMDType = 1 Then
Const UseVPMDMD = 1
End If
If IntegratedDMDType = 2 Then
Const UseVPMColoredDMD = 1
End If
Dim DesktopMode:DesktopMode = Table1.ShowDT
If DesktopMode = True Then
Cover1.TopMaterial = "Plastic Cover Clear1"
Cover2.TopMaterial = "Plastic Cover Clear1"
Cover3.TopMaterial = "Plastic Cover Clear1"
Cover4.material = "Plastic Cover Clear1"
Cover5.material = "Plastic Cover Clear1"
Cover6.material = "Plastic Cover Clear1"
Cover7.material = "Plastic Cover Clear1"
Cover8.material = "Plastic Cover Clear1"
Plastic_SlingL.material = "Plastic Cover Clear1"
Plastic_SlingR.material = "Plastic Cover Clear1"
Plastic_RM.material = "Plastic Cover Clear1"
'Ramp15.image = "Right_rail_brighter_D"
Can1.visible = 1
Can2.visible = 1
Can4.visible = 1
Wheel.visible = 1
Wheel1.visible = 1
F21c.height = 200
F24c.height = 200
F25c.height = 200
F26c.height = 170
F21c.Y = F21c.Y - 150
F24c.Y = F24c.Y - 150
F25c.Y = F25c.Y - 150
F26c.Y = F26c.Y - 150
F26c.X = F26c.X + 20
F21c.RotY = 90
F24c.RotY = 90
F25c.RotY = 90
F26c.RotY = 90
F37c.Height = 270
F37c.RotY = 90
DiscP.ObjRotX = -10
F1.Intensity = 12
'Light127.X = Light127.X -5
'Light7.X = Light7.X - 5
'LH1.visible = 1
'LH2.visible = 1
Prim_CenterRamp.material = "Ramps-Plastic_DT"
Prim_NeonRamp.material = "Ramps-Plastic_DT"
DMD1.visible = 1:DMD.visible = 0
DMD2.visible = 0
If DMD_Plastic = 1 Then
DMD3.visible = 1
Prim_Cabside.size_Z = 1
End If
else
Prim_Cabside.size_Z = 3
F1.Intensity = 0
Can1.visible = 0
Can2.visible = 0
Can4.visible = 0
Wheel.visible = 0
Wheel1.visible = 0
Ramp15.visible = 0
Ramp16.visible = 0
'LH1.visible = 1
'LH2.visible = 1
'LH1.Intensity = 1
'LH2.Intensity = 1
Prim_CenterRamp.material = "Ramps-Plastic"
Prim_NeonRamp.material = "Ramps-Plastic"
DMD1.visible = 0:DMD.visible = 1
End If
'###########################################
Dim Sound1, Sound2, Sound3, Sound4, Sound5, B2SController
LoadVPM "01560000", "WPC.VBS", 3.46
' Thalamus - for Fast Flip v2
' NoUpperRightFlipper
NoUpperLeftFlipper
Sub LoadVPM(VPMver, VBSfile, VBSver) 'Add new call to InitializeOptions to allow selection of controller through F6 menu
On Error Resume Next
If ScriptEngineMajorVersion < 5 Then MsgBox "VB Script Engine 5.0 or higher required"
ExecuteGlobal GetTextFile(VBSfile)
If Err Then MsgBox "Unable to open " & VBSfile & ". Ensure that it is in the same folder as this table. " & vbNewLine & Err.Description
'InitializeOptions 'Enables New Controller change through F6 menu, so it needs to be placed before Controller selection
'Select Case cController
'Case 1:
Set Controller = CreateObject("VPinMAME.Controller")
If Err Then MsgBox "Can't Load VPinMAME." & vbNewLine & Err.Description
If VPMver>"" Then If Controller.Version < VPMver Or Err Then MsgBox "VPinMAME ver " & VPMver & " required."
If VPinMAMEDriverVer < VBSver Or Err Then MsgBox VBSFile & " ver " & VBSver & " or higher required."
'Case 2:
'Set Controller = CreateObject("UltraVP.BackglassServ")
'Case 3:
'Set Controller = CreateObject("B2S.Server")
'End Select
If Err then
msgbox "Invalid controller selected, defaulting to VPinMame"
Set controller = CreateObject("VPinMAME.Controller")
End If
If B2SOn = 1 Then
Set B2SController=CreateObject("B2S.Server")
B2SController.B2SName = "cv_dmd"
B2SController.Run
if not IsObject(B2SController) then B2SOn=0
End If
On Error Goto 0
End Sub
'==============================
Dim xxpp
If Yellow_Prim_Posts = 1 Then
For each xxpp in Rposts:xxpp.Image = "rubber-post-t1-yellow":next
else
For each xxpp in Rposts:xxpp.Image = "rubber-post-t1-black":next
End If
If Spiral_Flipper_Logo = 1 Then
LogoL.visible = 1
LogoR.visible = 1
else
LogoL.visible = 0
LogoR.visible = 0
End If
If BackGlassDMD = 1 AND IntegratedDMDType = 0 Then
Ramp1038.image = "backwall999_cv"
'DMD2.visible = 0
'else
'Ramp1038.image = "backwall999"
'DMD2.visible = 1
End If
If BrightTube = 1 Then
Light44.Intensity = 2
else
Light44.Intensity = 0
End If
If Plasmamod = 1 Then
DiscP.visible = 1
HexPost9.visible = 1
Bolt55.visible=0
Light118.Intensity = 5
else
DiscP.visible = 0
HexPost9.visible = 0
Bolt55.visible=1
Light118.Intensity = 0
End If
Dim wbcolor
If wildballcolor = 1 then
wbcolor = RGB(0,255,0)
End If
If wildballcolor = 2 then
wbcolor = RGB(255,0,0)
End If
If wildballcolor = 3 then
wbcolor = RGB(255,0,255)
End If
If wildballcolor = 4 then
wbcolor = RGB(0,0,255)
End If
If wildballcolor = 5 then
wbcolor = RGB(0,255,255)
End If
If wildballcolor = 6 then
wbcolor = RGB(204,153,255)
End If
If wildballcolor = 7 then
wbcolor = RGB(255,255,0)
End If
If wildballcolor = 8 then
wbcolor = RGB(255,128,0)
End If
'Colors
Dim bulb
If NeonColor = 1 Then
Neon_On.Color = RGB(0,255,0)
Neon_On.ColorFull = RGB(0,255,0)
Neon_Off.Color = RGB(0,255,0)
Neon_Off.ColorFull = RGB(0,255,0)
for each bulb in aNeons
bulb.Color=RGB(0,255,0)
next
for each bulb in bNeons
bulb.Color=RGB(0,255,0)
next
F37c.imageA = "aGreen"
F37c.imageB = "aGreen"
Prim_Neon_ON.material = "green_tube"
If prim_reflect = 1 Then
'Prim_LockRamp.material = "metal_green"
End If
CNeons = 1
'dmd.opacity = 100
'dmd1.opacity = 100
'Ramp1038.image = "backwall999_green"
End If
If NeonColor = 2 Then
Neon_On.Color = RGB(255,0,0)
Neon_On.ColorFull = RGB(255,0,0)
Neon_Off.Color = RGB(255,0,0)
Neon_Off.ColorFull = RGB(255,0,0)
for each bulb in aNeons
bulb.Color=RGB(255,0,0)
next
for each bulb in bNeons
bulb.Color=RGB(255,0,0)
next
F37c.imageA = "aRed"
F37c.imageB = "aRed"
Prim_Neon_ON.material = "red_tube"
If prim_reflect = 1 Then
'Prim_LockRamp.material = "metal_red"
End If
CNeons = 2
'dmd.opacity = 100
'dmd1.opacity = 100
'Ramp1038.image = "backwall999_red"
End If
If NeonColor = 3 Then
Neon_On.Color = RGB(255,0,255)
Neon_On.ColorFull = RGB(255,0,255)
Neon_Off.Color = RGB(255,0,255)
Neon_Off.ColorFull = RGB(255,0,255)
for each bulb in aNeons
bulb.Color=RGB(255,0,255)
next
for each bulb in bNeons
bulb.Color=RGB(255,0,255)
next
F37c.imageA = "aPurple"
F37c.imageB = "aPurple"
Prim_Neon_ON.material = "purple_tube"
If prim_reflect = 1 Then
'Prim_LockRamp.material = "metal_purple"
End If
CNeons = 3
'dmd.opacity = 100
'dmd1.opacity = 100
'Ramp1038.image = "backwall999_purple"
End If
If NeonColor = 4 Then
Neon_On.Color = RGB(0,0,255)
Neon_On.ColorFull = RGB(0,0,255)
Neon_Off.Color = RGB(0,0,255)
Neon_Off.ColorFull = RGB(0,0,255)
for each bulb in aNeons
bulb.Color=RGB(0,0,255)
next
for each bulb in bNeons
bulb.Color=RGB(0,0,255)
next
F37c.imageA = "aBlue"
F37c.imageB = "aBlue"
Prim_Neon_ON.material = "blue_tube"
If prim_reflect = 1 Then
'Prim_LockRamp.material = "metal_blue"
End If
CNeons = 4
'dmd.opacity = 100
'dmd1.opacity = 100
'Ramp1038.image = "backwall999_blue"
End If
If NeonColor = 5 Then
Neon_On.Color = RGB(0,255,255)
Neon_On.ColorFull = RGB(0,255,255)
Neon_Off.Color = RGB(0,255,255)
Neon_Off.ColorFull = RGB(0,255,255)
for each bulb in aNeons
bulb.Color=RGB(0,255,255)
next
for each bulb in bNeons
bulb.Color=RGB(0,255,255)
next
F37c.imageA = "aCyan"
F37c.imageB = "aCyan"
Prim_Neon_ON.material = "cyan_tube"
If prim_reflect = 1 Then
'Prim_LockRamp.material = "metal_cyan"
End If
CNeons = 5
'dmd.opacity = 100
'dmd1.opacity = 100
'Ramp1038.image = "backwall999_cyan"
End If
If NeonColor = 6 Then
Neon_On.Color = RGB(204,153,255)
Neon_On.ColorFull = RGB(204,153,255)
Neon_Off.Color = RGB(204,153,255)
Neon_Off.ColorFull = RGB(204,153,255)
for each bulb in aNeons
bulb.Color=RGB(204,153,255)
next
for each bulb in bNeons
bulb.Color=RGB(204,153,255)
next
F37c.imageA = "aPink"
F37c.imageB = "aPink"
Prim_Neon_ON.material = "pink_tube"
If prim_reflect = 1 Then
'Prim_LockRamp.material = "metal_pink"
End If
cNeons = 6
'dmd.opacity = 100
'dmd1.opacity = 100
'Ramp1038.image = "backwall999_pink"
End If
If NeonColor = 7 Then
Neon_On.Color = RGB(255,255,0)
Neon_On.ColorFull = RGB(255,255,0)
Neon_Off.Color = RGB(255,255,0)
Neon_Off.ColorFull = RGB(255,255,0)
for each bulb in aNeons
bulb.Color=RGB(255,255,0)
next
for each bulb in bNeons
bulb.Color=RGB(255,255,0)
next
F37c.imageA = "aYellow"
F37c.imageB = "aYellow"
Prim_Neon_ON.material = "yellow_tube"
If prim_reflect = 1 Then
'Prim_LockRamp.material = "metal_yellow"
End If
CNeons = 7
'dmd.opacity = 100
'dmd1.opacity = 100
'Ramp1038.image = "backwall999_yellow"
End If
If NeonColor = 8 Then
Neon_On.Color = RGB(255,128,0)
Neon_On.ColorFull = RGB(255,128,0)
Neon_Off.Color = RGB(255,128,0)
Neon_Off.ColorFull = RGB(255,128,0)
for each bulb in aNeons
bulb.Color=RGB(255,128,0)
next
for each bulb in bNeons
bulb.Color=RGB(255,128,0)
next
F37c.imageA = "aOrange"
F37c.imageB = "aOrange"
Prim_Neon_ON.material = "orange_tube"
If prim_reflect = 1 Then
'Prim_LockRamp.material = "metal_orange"
End If
CNeons = 8
'dmd.opacity = 170
'dmd1.opacity = 170
'Ramp1038.image = "backwall999_orange"
End If
' ----------------------------------------
Dim cneons
Sub Cycle_Neons
WBDes.enabled = 1
NewBCol.enabled = 1
If cneons > 7 Then
cneons = 0
End If
cneons = cneons + 1
If cneons = 8 Then
If IntegratedDMDType = 1 Then
dmd.opacity = 170
dmd1.opacity = 170
DOF 120,0
DOF 121,0
DOF 122,0
DOF 123,0
DOF 124,0
DOF 125,0
DOF 126,0
DOF 127,1
End If
Neon_On.Color = RGB(255,128,0)
Neon_On.ColorFull = RGB(255,128,0)
Neon_Off.Color = RGB(255,128,0)
Neon_Off.ColorFull = RGB(255,128,0)
for each bulb in aNeons
bulb.Color=RGB(255,128,0)
next
for each bulb in bNeons
bulb.Color=RGB(255,128,0)
next
wbcolor = RGB(255,128,0)
If IntegratedDMDType = 1 then
dmd.color = RGB(255,128,0)
dmd1.color = RGB(255,128,0)
End If
F37c.imageA = "aOrange"
F37c.imageB = "aOrange"
''NeonColor = 1
Prim_Neon_ON.material = "orange_tube"
If prim_reflect = 1 Then
Prim_LockRamp.material = "metal_orange"
End If
Prim_CenterRamp.material = "Ramps-Plastic_O"
If DMD_Plastic = 1 Then
DMD2.imageA = "Plastic_Ramp_2012_ORANGE"
DMD2.imageB = "Plastic_Ramp_2012_ORANGE"
DMD3.imageA = "Plastic_Ramp_2012_ORANGE"
DMD3.imageB = "Plastic_Ramp_2012_ORANGE"
End If
Ramp1038.image = "backwall999_orange"
End If
If cneons = 1 Then
dmd.opacity = 100
dmd1.opacity = 100
DOF 120,1 ' Green
DOF 121,0
DOF 122,0
DOF 123,0
DOF 124,0
DOF 125,0
DOF 126,0
DOF 127,0
Neon_On.Color = RGB(0,255,0)
Neon_On.ColorFull = RGB(0,255,0)
Neon_Off.Color = RGB(0,255,0)
Neon_Off.ColorFull = RGB(0,255,0)
for each bulb in aNeons
bulb.Color=RGB(0,255,0)
next
for each bulb in bNeons
bulb.Color=RGB(0,255,0)
next
wbcolor = RGB(0,255,0)
If IntegratedDMDType = 1 then
dmd.color = RGB(0,255,0)
dmd1.color = RGB(0,255,0)
End If
F37c.imageA = "aGreen"
F37c.imageB = "aGreen"
'NeonColor = 1
Prim_Neon_ON.material = "green_tube"
If prim_reflect = 1 Then
Prim_LockRamp.material = "metal_green"
End If
Prim_CenterRamp.material = "Ramps-Plastic_G"
If DMD_Plastic = 1 Then
DMD2.imageA = "Plastic_Ramp_2012_GREEN"
DMD2.imageB = "Plastic_Ramp_2012_GREEN"
DMD3.imageA = "Plastic_Ramp_2012_GREEN"
DMD3.imageB = "Plastic_Ramp_2012_GREEN"
End If
Ramp1038.image = "backwall999_green"
End If
If cneons = 2 Then
dmd.opacity = 100
dmd1.opacity = 100
DOF 120,0
DOF 121,1
DOF 122,0
DOF 123,0
DOF 124,0
DOF 125,0
DOF 126,0
DOF 127,0
Neon_On.Color = RGB(255,0,0)
Neon_On.ColorFull = RGB(255,0,0)
Neon_Off.Color = RGB(255,0,0)
Neon_Off.ColorFull = RGB(255,0,0)
for each bulb in aNeons
bulb.Color=RGB(255,0,0)
next
for each bulb in bNeons
bulb.Color=RGB(255,0,0)
next
wbcolor = RGB(255,0,0)
If IntegratedDMDType = 1 then
dmd.color = RGB(255,0,0)
dmd1.color = RGB(255,0,0)
End If
F37c.imageA = "aRed"
F37c.imageB = "aRed"
Prim_Neon_ON.material = "red_tube"
'NeonColor = 2
If prim_reflect = 1 Then
Prim_LockRamp.material = "metal_red"
End If
Prim_CenterRamp.material = "Ramps-Plastic_R"
If DMD_Plastic = 1 Then
DMD2.imageA = "Plastic_Ramp_2012_RED"
DMD2.imageB = "Plastic_Ramp_2012_RED"
DMD3.imageA = "Plastic_Ramp_2012_RED"
DMD3.imageB = "Plastic_Ramp_2012_RED"
End If
Ramp1038.image = "backwall999_red"
End If
If cneons = 3 Then
dmd.opacity = 100
dmd1.opacity = 100
DOF 120,0
DOF 121,0
DOF 122,1
DOF 123,0
DOF 124,0
DOF 125,0
DOF 126,0
DOF 127,0
Neon_On.Color = RGB(255,0,255)
Neon_On.ColorFull = RGB(255,0,255)
Neon_Off.Color = RGB(255,0,255)
Neon_Off.ColorFull = RGB(255,0,255)
for each bulb in aNeons
bulb.Color=RGB(255,0,255)
next
for each bulb in bNeons
bulb.Color=RGB(255,0,255)
next
wbcolor = RGB(255,0,255)
If IntegratedDMDType = 1 then
dmd.color = RGB(255,0,255)
dmd1.color = RGB(255,0,255)
End If
F37c.imageA = "aPurple"
F37c.imageB = "aPurple"
'NeonColor = 3
If prim_reflect = 1 Then
Prim_LockRamp.material = "metal_purple"
End If
Prim_Neon_ON.material = "purple_tube"
Prim_CenterRamp.material = "Ramps-Plastic_Pu"
If DMD_Plastic = 1 Then
DMD2.imageA = "Plastic_Ramp_2012_PURPLE"
DMD2.imageB = "Plastic_Ramp_2012_PURPLE"
DMD3.imageA = "Plastic_Ramp_2012_PURPLE"
DMD3.imageB = "Plastic_Ramp_2012_PURPLE"
End If
Ramp1038.image = "backwall999_purple"
End If
If cneons = 4 Then
dmd.opacity = 100
dmd1.opacity = 100
DOF 120,0
DOF 121,0
DOF 122,0
DOF 123,1
DOF 124,0
DOF 125,0
DOF 126,0
DOF 127,0
Neon_On.Color = RGB(0,0,255)
Neon_On.ColorFull = RGB(0,0,255)
Neon_Off.Color = RGB(0,0,255)
Neon_Off.ColorFull = RGB(0,0,255)
for each bulb in aNeons
bulb.Color=RGB(0,0,255)
next
for each bulb in bNeons
bulb.Color=RGB(0,0,255)
next
wbcolor = RGB(0,0,255)
If IntegratedDMDType = 1 then
dmd.color = RGB(0,0,255)
dmd1.color = RGB(0,0,255)
End If
F37c.imageA = "aBlue"
F37c.imageB = "aBlue"
'NeonColor = 4
If prim_reflect = 1 Then
Prim_LockRamp.material = "metal_blue"
End If
Prim_Neon_ON.material = "blue_tube"
Prim_CenterRamp.material = "Ramps-Plastic_B"
If DMD_Plastic = 1 Then
DMD2.imageA = "Plastic_Ramp_2012_BLUE"
DMD2.imageB = "Plastic_Ramp_2012_BLUE"
DMD3.imageA = "Plastic_Ramp_2012_BLUE"
DMD3.imageB = "Plastic_Ramp_2012_BLUE"
End If
Ramp1038.image = "backwall999_blue"
End If
If cneons = 5 Then
dmd.opacity = 100
dmd1.opacity = 100
DOF 120,0
DOF 121,0
DOF 122,0
DOF 123,0
DOF 124,1
DOF 125,0
DOF 126,0
DOF 127,0
Neon_On.Color = RGB(0,255,255)
Neon_On.ColorFull = RGB(0,255,255)
Neon_Off.Color = RGB(0,255,255)
Neon_Off.ColorFull = RGB(0,255,255)
for each bulb in aNeons
bulb.Color=RGB(0,255,255)
next
for each bulb in bNeons
bulb.Color=RGB(0,255,255)
next
wbcolor = RGB(0,255,255)
If IntegratedDMDType = 1 then
dmd.color = RGB(0,255,255)
dmd1.color = RGB(0,255,255)
End If
F37c.imageA = "aCyan"
F37c.imageB = "aCyan"
'NeonColor = 5
If prim_reflect = 1 Then
Prim_LockRamp.material = "metal_cyan"
End If
Prim_Neon_ON.material = "cyan_tube"
If DMD_Plastic = 1 Then
DMD2.imageA = "Plastic_Ramp_2012_CYAN"
DMD2.imageB = "Plastic_Ramp_2012_CYAN"
DMD3.imageA = "Plastic_Ramp_2012_CYAN"
DMD3.imageB = "Plastic_Ramp_2012_CYAN"
End If
Ramp1038.image = "backwall999_cyan"
End If
If cneons = 6 Then
dmd.opacity = 100
dmd1.opacity = 100
DOF 120,0
DOF 121,0
DOF 122,0
DOF 123,0
DOF 124,0
DOF 125,1
DOF 126,0
DOF 127,0
Neon_On.Color = RGB(204,153,255)
Neon_On.ColorFull = RGB(204,153,255)
Neon_Off.Color = RGB(204,153,255)
Neon_Off.ColorFull = RGB(204,153,255)
for each bulb in aNeons
bulb.Color=RGB(204,153,255)
next
for each bulb in bNeons
bulb.Color=RGB(204,153,255)
next
wbcolor = RGB(204,153,255)
If IntegratedDMDType = 1 then
dmd.color = RGB(204,153,255)
dmd1.color = RGB(204,153,255)
End If
F37c.imageA = "aPink"
F37c.imageB = "aPink"
Prim_Neon_ON.material = "pink_tube"
'NeonColor = 6
If prim_reflect = 1 Then
Prim_LockRamp.material = "metal_pink"
End If
Prim_CenterRamp.material = "Ramps-Plastic_Pk"
If DMD_Plastic = 1 Then
DMD2.imageA = "Plastic_Ramp_2012_PINK"
DMD2.imageB = "Plastic_Ramp_2012_PINK"
DMD3.imageA = "Plastic_Ramp_2012_PINK"
DMD3.imageB = "Plastic_Ramp_2012_PINK"
End If
Ramp1038.image = "backwall999_pink"
End If
If cneons = 7 Then
dmd.opacity = 100
dmd1.opacity = 100
DOF 120,0
DOF 121,0
DOF 122,0
DOF 123,0
DOF 124,0
DOF 125,0
DOF 126,1
DOF 127,0
Neon_On.Color = RGB(255,255,0)
Neon_On.ColorFull = RGB(255,255,0)
Neon_Off.Color = RGB(255,255,0)
Neon_Off.ColorFull = RGB(255,255,0)
for each bulb in aNeons
bulb.Color=RGB(255,255,0)
next
for each bulb in bNeons
bulb.Color=RGB(255,255,0)
next
wbcolor = RGB(255,255,0)
If IntegratedDMDType = 1 then
dmd.color = RGB(255,255,0)
dmd1.color = RGB(255,255,0)
End If
F37c.imageA = "aYellow"
F37c.imageB = "aYellow"
'NeonColor = 7
If prim_reflect = 1 Then
Prim_LockRamp.material = "metal_yellow"
End If
Prim_Neon_ON.material = "yellow_tube"
Prim_CenterRamp.material = "Ramps-Plastic_Y"
If DMD_Plastic = 1 Then
DMD2.imageA = "Plastic_Ramp_2012_YELLOW"
DMD2.imageB = "Plastic_Ramp_2012_YELLOW"
DMD3.imageA = "Plastic_Ramp_2012_YELLOW"
DMD3.imageB = "Plastic_Ramp_2012_YELLOW"
End If
Ramp1038.image = "backwall999_yellow"
End If
End Sub
Dim nxx, non
Sub Neons(enabled)
If enabled Then
DOF 37,1
non = 1
Prim_Neon_Off.visible = 0
Prim_Neon_On.visible = 1
If cneons = 1 AND prim_reflect = 1 Then
Prim_LockRamp.material = "metal_green"
End If
If cneons = 2 AND prim_reflect = 1 Then
Prim_LockRamp.material = "metal_red"
End If
If cneons = 3 AND prim_reflect = 1 Then
Prim_LockRamp.material = "metal_purple"
End If
If cneons = 4 AND prim_reflect = 1 Then
Prim_LockRamp.material = "metal_blue"
End If
If cneons = 5 AND prim_reflect = 1 Then
Prim_LockRamp.material = "metal_cyan"
End If
If cneons = 6 AND prim_reflect = 1 Then
Prim_LockRamp.material = "metal_pink"
End If
If cneons = 7 AND prim_reflect = 1 Then
Prim_LockRamp.material = "metal_yellow"
End If
If cneons = 8 AND prim_reflect = 1 Then
Prim_LockRamp.material = "metal_orange"