Arngrim

Untitled

Jan 29th, 2018
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.62 KB | None | 0 0
  1. Option Explicit
  2. Randomize
  3.  
  4. On Error Resume Next
  5. ExecuteGlobal GetTextFile("controller.vbs")
  6. If Err Then MsgBox "You need the controller.vbs in order to run this table, available in the vp10 package"
  7. On Error Goto 0
  8.  
  9. Const cGameName="pwerplab",UseSolenoids=2,UseLamps=0,UseGI=0,SSolenoidOn="SolOn",SSolenoidOff="SolOff", SCoin="coin"
  10. '"pwerplab" for freeplay
  11.  
  12. Dim enableBallControl
  13.  
  14. enableBallControl = 0 ' 1 to enable, 0 to disable
  15.  
  16. LoadVPM "01500100", "BALLY.VBS", 3.10
  17. Dim DesktopMode: DesktopMode = Table1.ShowDT
  18.  
  19. Dim BallShadows: Ballshadows=1 '******************set to 1 to turn on Ball shadows
  20. Dim FlipperShadows: FlipperShadows=1 '***********set to 1 to turn on Flipper shadows
  21.  
  22. If DesktopMode = True Then 'Show Desktop components
  23. Ramp16.visible=1
  24. Ramp15.visible=1
  25. Else
  26. Ramp16.visible=0
  27. Ramp15.visible=0
  28. End if
  29.  
  30. '*************************************************************
  31. 'Solenoid Call backs
  32. '**********************************************************************************************************
  33.  
  34. SolCallback(1)="SolPostDown"
  35. SolCallback(2)="vpmSolSound SoundFX(""chime1"",DOFChimes),"
  36. SolCallback(3)="vpmSolSound SoundFX(""chime2"",DOFChimes),"
  37. SolCallback(4)="vpmSolSound SoundFX(""chime3"",DOFChimes),"
  38. SolCallBack(5)="vpmSolSound SoundFX(""chime4"",DOFChimes),"
  39. SolCallback(6)="vpmSolSound SoundFX(""Knocker"",DOFKnocker),"
  40. SolCallback(7)="bsTrough.SolOut"
  41. SolCallBack(8)="solsaucer"
  42. SolCallback(15)="SolRDropUp"
  43. SolCallback(13)="SolLDropUp"
  44. SolCallback(17)="SolPostUp"
  45. SolCallback(19)="vpmNudge.SolGameOn"
  46.  
  47.  
  48. SolCallback(sLRFlipper) = "SolRFlipper"
  49. SolCallback(sLLFlipper) = "SolLFlipper"
  50.  
  51.  
  52. Sub SolLFlipper(Enabled)
  53. If Enabled Then
  54. PlaySound SoundFX("fx_Flipperup",DOFFlippers):LeftFlipper.RotateToEnd:LeftFlipper1.RotateToEnd
  55. Else
  56. PlaySound SoundFX("fx_Flipperdown",DOFFlippers):LeftFlipper.RotateToStart:LeftFlipper1.RotateToStart
  57. End If
  58. End Sub
  59.  
  60. Sub SolRFlipper(Enabled)
  61. If Enabled Then
  62. PlaySound SoundFX("fx_Flipperup",DOFFlippers):RightFlipper.RotateToEnd:RightFlipper1.RotateToEnd
  63. Else
  64. PlaySound SoundFX("fx_Flipperdown",DOFFlippers):RightFlipper.RotateToStart:RightFlipper1.RotateToStart
  65. End If
  66. End Sub
  67.  
  68. '**********************************************************************************************************
  69.  
  70. 'Solenoid Controlled toys
  71. '**********************************************************************************************************
  72.  
  73. Sub SolSaucer(Enable)
  74. If Enable then
  75. bsSaucer2.ExitSol_On
  76. RKick = 0
  77. kickarmtop_prim.ObjRotX = -12
  78. RKickTimer.Enabled = 1
  79. End If
  80. End Sub
  81.  
  82. Sub SolPostUp(Enabled)
  83. If CenterPost_prim.TransZ=-24 Then PlaySound SoundFX("centerpost",DOFContactors) End If
  84. If Enabled Then
  85. SetLamp 150, 1
  86. Post.IsDropped=0
  87. flipperleft_prim.image= "leftflipperON"
  88. flipperright_prim.image= "rightflipperON"
  89. CenterPost_prim.TransZ = 0
  90. End If
  91. End Sub
  92.  
  93. Sub SolPostDown(Enabled)
  94. If CenterPost_prim.TransZ=0 Then PlaySound SoundFX("centerpost",DOFContactors) End If
  95. If Enabled Then
  96. SetLamp 150, 0
  97. Post.IsDropped=1
  98. flipperleft_prim.image= "leftflipperOFF"
  99. flipperright_prim.image= "rightflipperOFF"
  100. CenterPost_prim.Transz = -24
  101. End If
  102. End Sub
  103.  
  104. if ballshadows=1 then
  105. BallShadowUpdate.enabled=1
  106. else
  107. BallShadowUpdate.enabled=0
  108. end if
  109.  
  110. if flippershadows=1 then
  111. FlipperLSh.visible=1
  112. FlipperRSh.visible=1
  113. FlipperLSh1.visible=1
  114. FlipperRSh1.visible=1
  115. else
  116. FlipperLSh.visible=0
  117. FlipperRSh.visible=0
  118. FlipperLSh1.visible=0
  119. FlipperRSh1.visible=0
  120. end if
  121.  
  122.  
  123. 'Primitive Flipper Code
  124. Sub FlipperTimer_Timer
  125. LUFlogo.roty = LeftFlipper.currentangle - -110
  126. RUFlogo.roty = RightFlipper.currentangle - -70
  127. flipperleft_prim.rotz = leftflipper.currentangle
  128. flipperright_prim.rotz = rightflipper.currentangle
  129. if FlipperShadows=1 then
  130. FlipperLsh.rotz= LeftFlipper.currentangle
  131. FlipperLsh1.rotz= LeftFlipper1.currentangle - 12
  132. FlipperRsh.rotz= RightFlipper.currentangle
  133. FlipperRsh1.rotz= RightFlipper1.currentangle - -12
  134. end if
  135.  
  136. if l12.state=1 Then
  137. metalguide_prim.image="pp_metalalllit"
  138. Else
  139. metalguide_prim.image="pp_metal"
  140. end if
  141. End Sub
  142.  
  143. '*****************************************
  144. ' BALL SHADOW
  145. '*****************************************
  146. Dim BallShadow
  147. BallShadow = Array (BallShadow1,BallShadow2,BallShadow3,BallShadow4,BallShadow5)
  148.  
  149. Sub BallShadowUpdate_timer()
  150. Dim BOT, b
  151. BOT = GetBalls
  152. ' hide shadow of deleted balls
  153. If UBound(BOT)<(tnob-1) Then
  154. For b = (UBound(BOT) + 1) to (tnob-1)
  155. BallShadow(b).visible = 0
  156. Next
  157. End If
  158. ' exit the Sub if no balls on the table
  159. If UBound(BOT) = -1 Then Exit Sub
  160. ' render the shadow for each ball
  161. For b = 0 to UBound(BOT)
  162. If BOT(b).X < Table1.Width/2 Then
  163. BallShadow(b).X = ((BOT(b).X) - (Ballsize/16) + ((BOT(b).X - (Table1.Width/2))/17))' + 13
  164. Else
  165. BallShadow(b).X = ((BOT(b).X) + (Ballsize/16) + ((BOT(b).X - (Table1.Width/2))/17))' - 13
  166. End If
  167. ballShadow(b).Y = BOT(b).Y + 10
  168. If BOT(b).Z > 20 Then
  169. BallShadow(b).visible = 1
  170. Else
  171. BallShadow(b).visible = 0
  172. End If
  173. Next
  174. End Sub
  175.  
  176.  
  177. '**********************************************************************************************************
  178.  
  179. 'Initiate Table
  180. '**********************************************************************************************************
  181.  
  182. Dim bsTrough, bsSaucer2, dtbank1, dtbank2
  183. Sub Table1_Init
  184. vpmInit Me
  185. On Error Resume Next
  186. With Controller
  187. .GameName = cGameName
  188. If Err Then MsgBox "Can't start Game" & cGameName & vbNewLine & Err.Description : Exit Sub
  189. .SplashInfoLine = "Power Play (Bally 1977)"&chr(13)&"v. 1.0"
  190. .HandleMechanics=0
  191. .HandleKeyboard=0
  192. .ShowDMDOnly=1
  193. .ShowFrame=0
  194. .ShowTitle=0
  195. .hidden = 1
  196. On Error Resume Next
  197. .Run GetPlayerHWnd
  198. If Err Then MsgBox Err.Description
  199. On Error Goto 0
  200. End With
  201. On Error Goto 0
  202.  
  203. PinMAMETimer.Interval = PinMAMEInterval
  204. PinMAMETimer.Enabled = 1
  205.  
  206. vpmNudge.TiltSwitch = swTilt
  207. vpmNudge.Sensitivity = 1
  208. vpmNudge.TiltObj = Array(Bumper1,Bumper2,Bumper3,LeftSlingshot,RightSlingshot)
  209.  
  210. Set bsTrough = New cvpmBallStack
  211. bsTrough.InitSw 0, 8, 0, 0, 0, 0, 0, 0
  212. bsTrough.InitKick BallRelease, 80, 6
  213. bsTrough.InitExitSnd SoundFX("ballrelease",DOFContactors), SoundFX("Solenoid",DOFContactors)
  214. bsTrough.Balls = 1
  215.  
  216. Set bsSaucer2 = New cvpmBallStack
  217. bsSaucer2.InitSaucer kicker1, 32, 150, 8
  218. bsSaucer2.KickAngleVar = 3
  219. bsSaucer2.KickForceVar = 3
  220. bsSaucer2.InitExitSnd SoundFX("Popper",DOFContactors), SoundFX("Solenoid",DOFContactors)
  221.  
  222. set dtbank1 = new cvpmdroptarget
  223. dtbank1.initdrop array(sw21, sw22, sw23, sw24), array(21, 22, 23, 24)
  224. dtbank1.initsnd SoundFX("DTDrop",DOFDropTargets),SoundFX("DTReset",DOFContactors)
  225.  
  226. set dtbank2 = new cvpmdroptarget
  227. dtbank2.initdrop array(sw20, sw19, sw18, sw17), array(20, 19, 18, 17)
  228. dtbank2.initsnd SoundFX("DTDrop",DOFDropTargets),SoundFX("DTReset",DOFContactors)
  229.  
  230. Post.IsDropped=1
  231.  
  232. '*****GI Lights On
  233. dim xx
  234. For each xx in GI:xx.State = 1: Next
  235.  
  236. ''*****Drop Lights Off
  237. For each xx in DTLeftLights: xx.state=0:Next
  238. For each xx in DTRightLights: xx.state=0:Next
  239.  
  240. End Sub
  241.  
  242. '**********************************************************************************************************
  243. 'Plunger code
  244. '**********************************************************************************************************
  245.  
  246. Sub Table1_KeyDown(ByVal KeyCode)
  247. If KeyDownHandler(keycode) Then Exit Sub
  248. If keycode = PlungerKey Then Plunger.Pullback:playsound"plungerpull"
  249.  
  250. '************************ Start Ball Control 1/3
  251. if enableBallControl then
  252. if keycode = 46 then ' C Key
  253. If contball = 1 Then
  254. contball = 0
  255. Else
  256. contball = 1
  257. End If
  258. End If
  259. if keycode = 48 then 'B Key
  260. If bcboost = 1 Then
  261. bcboost = bcboostmulti
  262. Else
  263. bcboost = 1
  264. End If
  265. End If
  266. End If
  267. if keycode = 203 then bcleft = 1 ' Left Arrow
  268. if keycode = 200 then bcup = 1 ' Up Arrow
  269. if keycode = 208 then bcdown = 1 ' Down Arrow
  270. if keycode = 205 then bcright = 1 ' Right Arrow
  271.  
  272. '************************ End Ball Control 1/3
  273.  
  274. End Sub
  275.  
  276. Sub Table1_KeyUp(ByVal KeyCode)
  277. If KeyUpHandler(keycode) Then Exit Sub
  278. If keycode = PlungerKey Then Plunger.Fire:PlaySound"plunger"
  279.  
  280. '************************ Start Ball Control 2/3
  281. if keycode = 203 then bcleft = 0 ' Left Arrow
  282. if keycode = 200 then bcup = 0 ' Up Arrow
  283. if keycode = 208 then bcdown = 0 ' Down Arrow
  284. if keycode = 205 then bcright = 0 ' Right Arrow
  285. '************************ End Ball Control 2/3
  286.  
  287. End Sub
  288.  
  289. '************************ Start Ball Control 3/3
  290. Sub StartControl_Hit()
  291. Set ControlBall = ActiveBall
  292. contballinplay = true
  293. End Sub
  294.  
  295. Sub StopControl_Hit()
  296. contballinplay = false
  297. End Sub
  298.  
  299. Dim bcup, bcdown, bcleft, bcright, contball, contballinplay, ControlBall, bcboost
  300. Dim bcvel, bcyveloffset, bcboostmulti
  301.  
  302. bcboost = 1 'Do Not Change - default setting
  303. bcvel = 4 'Controls the speed of the ball movement
  304. bcyveloffset = -0.01 'Offsets the force of gravity to keep the ball from drifting vertically on the table, should be negative
  305. bcboostmulti = 3 'Boost multiplier to ball veloctiy (toggled with the B key)
  306.  
  307. Sub BallControl_Timer()
  308. If Contball and ContBallInPlay then
  309. If bcright = 1 Then
  310. ControlBall.velx = bcvel*bcboost
  311. ElseIf bcleft = 1 Then
  312. ControlBall.velx = - bcvel*bcboost
  313. Else
  314. ControlBall.velx=0
  315. End If
  316.  
  317. If bcup = 1 Then
  318. ControlBall.vely = -bcvel*bcboost
  319. ElseIf bcdown = 1 Then
  320. ControlBall.vely = bcvel*bcboost
  321. Else
  322. ControlBall.vely= bcyveloffset
  323. End If
  324. End If
  325. End Sub
  326. '************************ End Ball Control 3/3
  327.  
  328.  
  329. '**********************************************************************************************************
  330.  
  331. ' Drain hole and kickers
  332. Sub Drain_Hit:bsTrough.addball me : playsound"drain" : DOF 103, DOFPulse : End Sub
  333. Sub kicker1_Hit:playsound"fx_balldrop":bsSaucer2.AddBall 0:End Sub
  334.  
  335. ' Droptargets
  336. Sub sw20_Dropped:dtbank2.Hit 1
  337. R1DA.state=1
  338. End Sub
  339.  
  340. Sub sw19_Dropped:dtbank2.Hit 2
  341. R1DB.state=1
  342. End Sub
  343.  
  344. Sub sw18_Dropped:dtbank2.Hit 3
  345. R1DC.state=1:L1DC.state=1
  346. End Sub
  347.  
  348. Sub sw17_Dropped:dtbank2.Hit 4
  349. End Sub
  350.  
  351. Sub sw21_Dropped:dtbank1.Hit 1
  352. End Sub
  353.  
  354. Sub sw22_Dropped:dtbank1.Hit 2
  355. L1DC.state=1
  356. End Sub
  357.  
  358. Sub sw23_Dropped:dtbank1.Hit 3
  359. L1DB.state=1
  360. End Sub
  361.  
  362. Sub sw24_Dropped:dtbank1.Hit 4
  363. L1DA.state=1
  364. End Sub
  365.  
  366. Sub SolLDropUp(enabled)
  367. dim xx
  368. if enabled then
  369. dtBank1.SolDropUp enabled
  370. For each xx in DTLeftLights: xx.state=0:Next
  371. end if
  372. End Sub
  373.  
  374. Sub SolRDropUp(enabled)
  375. dim xx
  376. if enabled then
  377. dtBank2.SolDropUp enabled
  378. For each xx in DTRightLights: xx.state=0:Next
  379. end if
  380. End Sub
  381.  
  382. 'Rollovers
  383. Sub sw25a_Hit:Controller.Switch(25) = 1 : playsound"rollover" : End Sub
  384. Sub sw25a_UnHit:Controller.Switch(25) = 0:End Sub
  385. Sub sw25b_Hit:Controller.Switch(25) = 1 : playsound"rollover" : End Sub
  386. Sub sw25b_UnHit:Controller.Switch(25) = 0:End Sub
  387. Sub sw28_Hit:Controller.Switch(28) = 1 : playsound"rollover" : End Sub
  388. Sub sw28_UnHit:Controller.Switch(28) = 0:End Sub
  389. Sub sw5_Hit:Controller.Switch(5) = 1 : playsound"rollover" : End Sub
  390. Sub sw5_UnHit:Controller.Switch(5) = 0:End Sub
  391. Sub sw35_Hit:Controller.Switch(35) = 1 : playsound"rollover" : End Sub
  392. Sub sw35_UnHit:Controller.Switch(35) = 0:End Sub
  393. Sub sw30_Hit:Controller.Switch(30) = 1 : playsound"rollover" : End Sub
  394. Sub sw30_UnHit:Controller.Switch(30) = 0:End Sub
  395. Sub sw4_Hit:Controller.Switch(4) = 1 : playsound"rollover" : End Sub
  396. Sub sw4_UnHit:Controller.Switch(4) = 0:End Sub
  397. Sub sw34_Hit:Controller.Switch(34) = 1 : playsound"rollover" : End Sub
  398. Sub sw34_UnHit:Controller.Switch(34) = 0:End Sub
  399. Sub sw29_Hit:Controller.Switch(29) = 1 : playsound"rollover" : End Sub
  400. Sub sw29_UnHit:Controller.Switch(29) = 0:End Sub
  401. Sub sw32b_Hit:Controller.Switch(33) = 1 : playsound"rollover" : End Sub
  402. Sub sw32b_UnHit:Controller.Switch(33) = 0:End Sub
  403. Sub sw27_Hit:Controller.Switch(27) = 1 : playsound"rollover" : End Sub
  404. Sub sw27_UnHit:Controller.Switch(27) = 0:End Sub
  405. Sub sw28_Hit:Controller.Switch(28) = 1 : playsound"rollover" : End Sub
  406. Sub sw28_UnHit:Controller.Switch(28) = 0:End Sub
  407. Sub sw1a_Hit:Controller.Switch(1) = 1 : playsound"rollover" : DOF 101, DOFOn : End Sub
  408. Sub sw1a_UnHit:Controller.Switch(1) = 0: DOF 101, DOFOff : End Sub
  409. Sub sw1b_Hit:Controller.Switch(1) = 1 : playsound"rollover" : DOF 102, DOFOn : End Sub
  410. Sub sw1b_UnHit:Controller.Switch(1) = 0: DOF 102, DOFOff : End Sub
  411.  
  412. 'Bumpers
  413. Sub Bumper1_Hit : vpmTimer.PulseSw(38) : playsound SoundFX("fx_bumper1",DOFContactors): End Sub
  414. Sub Bumper2_Hit : vpmTimer.PulseSw(40) : playsound SoundFX("fx_bumper2",DOFContactors): End Sub
  415. Sub Bumper3_Hit : vpmTimer.PulseSw(39) : playsound SoundFX("fx_bumper3",DOFContactors): End Sub
  416.  
  417. 'Stand Up Targets
  418. Sub sw32_Hit:vpmTimer.PulseSw (33):playsound SoundFX("target",DOFTargets):End Sub
  419. Sub sw2_Hit:vpmTimer.PulseSw (2):playsound SoundFX("target",DOFTargets):End Sub
  420.  
  421. '***************************************************
  422. ' JP's VP10 Fading Lamps & Flashers
  423. ' Based on PD's Fading Light System
  424. ' SetLamp 0 is Off
  425. ' SetLamp 1 is On
  426. ' fading for non opacity objects is 4 steps
  427. '***************************************************
  428.  
  429. Dim LampState(200), FadingLevel(200)
  430. Dim FlashSpeedUp(200), FlashSpeedDown(200), FlashMin(200), FlashMax(200), FlashLevel(200)
  431.  
  432. InitLamps() ' turn off the lights and flashers and reset them to the default parameters
  433. LampTimer.Interval = 5 'lamp fading speed
  434. LampTimer.Enabled = 1
  435.  
  436. ' Lamp & Flasher Timers
  437.  
  438. Sub LampTimer_Timer()
  439. Dim chgLamp, num, chg, ii
  440. chgLamp = Controller.ChangedLamps
  441. If Not IsEmpty(chgLamp) Then
  442. For ii = 0 To UBound(chgLamp)
  443. LampState(chgLamp(ii, 0) ) = chgLamp(ii, 1) 'keep the real state in an array
  444. FadingLevel(chgLamp(ii, 0) ) = chgLamp(ii, 1) + 4 'actual fading step
  445. Next
  446. End If
  447. UpdateLamps
  448. End Sub
  449.  
  450. Sub UpdateLamps()
  451. NFadeLm 1, l1
  452. NFadeL 1, l1a
  453. NFadeLm 2, l2
  454. NFadeL 2, l2a
  455. NFadeLm 3, l3
  456. NFadeL 3, l3a
  457. NFadeLm 4, l4
  458. NFadeL 4, l4a
  459. NFadeLm 5, l5
  460. NFadeL 5, l5a
  461. NFadeLm 6, l6
  462. NFadeL 6, l6a
  463. NFadeLm 7, l7
  464. NFadeL 7, l7a
  465. NFadeLm 8, l8
  466. NFadeL 8, l8a
  467. NFadeLm 11, l11
  468. NFadeL 11, l11a
  469. NFadeLm 12, l12
  470. NFadeLm 12, l12a
  471. NFadeLm 12, l12c
  472. NFadeLm 12, l12d
  473. NFadeLm 17, l17
  474. NFadeL 17, l17a
  475. NFadeLm 18, l18
  476. NFadeL 18, l18a
  477. NFadeLm 19, l19
  478. NFadeL 19, l19a
  479. NFadeLm 20, l20
  480. NFadeL 20, l20a
  481. NFadeLm 21, l21
  482. NFadeL 21, l21a
  483. NFadeLm 23, l23
  484. NFadeL 23, l23a
  485. NFadeLm 25, l25
  486. NFadeL 25, l25a
  487. NFadeLm 28, l28
  488. NFadeLm 28, l28a
  489. NFadeLm 28, l28c
  490. NFadeLm 28, l28d
  491. NFadeLm 33, l33
  492. NFadeL 33, l33a
  493. NFadeLm 34, l34
  494. NFadeL 34, l34a
  495. NFadeLm 35, l35
  496. NFadeL 35, l35a
  497. NFadeLm 37, l37
  498. NFadeL 37, l37a
  499. NFadeLm 39, l39
  500. NFadeL 39, l39a
  501. NFadeLm 41, l41
  502. NFadeL 41, l41a
  503. NFadeLm 42, l42
  504. NFadeL 42, l42a
  505. NFadeLm 44, l44
  506. NFadeL 44, l44a
  507. NFadeLm 49, l49
  508. NFadeL 49, l49a
  509. NFadeLm 52, l52
  510. NFadeL 52, l52a
  511. NFadeLm 53, l53
  512. NFadeL 53, l53a
  513. NFadeLm 55, l55
  514. NFadeL 55, l55a
  515. NFadeLm 57, l57
  516. NFadeL 57, l57a
  517. NFadeLm 58, l58
  518. NFadeL 58, l58a
  519. NFadeL 59, l59 'Apron credit
  520. NFadeLm 60, l60
  521. NFadeL 60, l60a
  522. NFadeLm 150, l150
  523. End Sub
  524.  
  525.  
  526. ' div lamp subs
  527.  
  528. Sub InitLamps()
  529. Dim x
  530. For x = 0 to 200
  531. LampState(x) = 0 ' current light state, independent of the fading level. 0 is off and 1 is on
  532. FadingLevel(x) = 4 ' used to track the fading state
  533. FlashSpeedUp(x) = 0.4 ' faster speed when turning on the flasher
  534. FlashSpeedDown(x) = 0.2 ' slower speed when turning off the flasher
  535. FlashMax(x) = 1 ' the maximum value when on, usually 1
  536. FlashMin(x) = 0 ' the minimum value when off, usually 0
  537. FlashLevel(x) = 0 ' the intensity of the flashers, usually from 0 to 1
  538. Next
  539. End Sub
  540.  
  541. Sub AllLampsOff
  542. Dim x
  543. For x = 0 to 200
  544. SetLamp x, 0
  545. Next
  546. End Sub
  547.  
  548. Sub SetLamp(nr, value)
  549. If value <> LampState(nr) Then
  550. LampState(nr) = abs(value)
  551. FadingLevel(nr) = abs(value) + 4
  552. End If
  553. End Sub
  554.  
  555. ' Lights: used for VP10 standard lights, the fading is handled by VP itself
  556.  
  557. Sub NFadeL(nr, object)
  558. Select Case FadingLevel(nr)
  559. Case 4:object.state = 0:FadingLevel(nr) = 0
  560. Case 5:object.state = 1:FadingLevel(nr) = 1
  561. End Select
  562. End Sub
  563.  
  564. Sub NFadeLm(nr, object) ' used for multiple lights
  565. Select Case FadingLevel(nr)
  566. Case 4:object.state = 0
  567. Case 5:object.state = 1
  568. End Select
  569. End Sub
  570.  
  571. 'Lights, Ramps & Primitives used as 4 step fading lights
  572. 'a,b,c,d are the images used from on to off
  573.  
  574. Sub FadeObj(nr, object, a, b, c, d)
  575. Select Case FadingLevel(nr)
  576. Case 4:object.image = b:FadingLevel(nr) = 6 'fading to off...
  577. Case 5:object.image = a:FadingLevel(nr) = 1 'ON
  578. Case 6, 7, 8:FadingLevel(nr) = FadingLevel(nr) + 1 'wait
  579. Case 9:object.image = c:FadingLevel(nr) = FadingLevel(nr) + 1 'fading...
  580. Case 10, 11, 12:FadingLevel(nr) = FadingLevel(nr) + 1 'wait
  581. Case 13:object.image = d:FadingLevel(nr) = 0 'Off
  582. End Select
  583. End Sub
  584.  
  585. Sub FadeObjm(nr, object, a, b, c, d)
  586. Select Case FadingLevel(nr)
  587. Case 4:object.image = b
  588. Case 5:object.image = a
  589. Case 9:object.image = c
  590. Case 13:object.image = d
  591. End Select
  592. End Sub
  593.  
  594. Sub NFadeObj(nr, object, a, b)
  595. Select Case FadingLevel(nr)
  596. Case 4:object.image = b:FadingLevel(nr) = 0 'off
  597. Case 5:object.image = a:FadingLevel(nr) = 1 'on
  598. End Select
  599. End Sub
  600.  
  601. Sub NFadeObjm(nr, object, a, b)
  602. Select Case FadingLevel(nr)
  603. Case 4:object.image = b
  604. Case 5:object.image = a
  605. End Select
  606. End Sub
  607.  
  608. ' Flasher objects
  609.  
  610. Sub Flash(nr, object)
  611. Select Case FadingLevel(nr)
  612. Case 4 'off
  613. FlashLevel(nr) = FlashLevel(nr) - FlashSpeedDown(nr)
  614. If FlashLevel(nr) < FlashMin(nr) Then
  615. FlashLevel(nr) = FlashMin(nr)
  616. FadingLevel(nr) = 0 'completely off
  617. End if
  618. Object.IntensityScale = FlashLevel(nr)
  619. Case 5 ' on
  620. FlashLevel(nr) = FlashLevel(nr) + FlashSpeedUp(nr)
  621. If FlashLevel(nr) > FlashMax(nr) Then
  622. FlashLevel(nr) = FlashMax(nr)
  623. FadingLevel(nr) = 1 'completely on
  624. End if
  625. Object.IntensityScale = FlashLevel(nr)
  626. End Select
  627. End Sub
  628.  
  629. Sub Flashm(nr, object) 'multiple flashers, it just sets the flashlevel
  630. Object.IntensityScale = FlashLevel(nr)
  631. End Sub
  632.  
  633. 'Reels
  634. Sub FadeReel(nr, reel)
  635. Select Case FadingLevel(nr)
  636. Case 2:FadingLevel(nr) = 0
  637. Case 3:FadingLevel(nr) = 2
  638. Case 4:reel.Visible = 0:FadingLevel(nr) = 3
  639. Case 5:reel.Visible = 1:FadingLevel(nr) = 1
  640. End Select
  641. End Sub
  642.  
  643. 'Inverted Reels
  644. Sub FadeIReel(nr, reel)
  645. Select Case FadingLevel(nr)
  646. Case 2:FadingLevel(nr) = 0
  647. Case 3:FadingLevel(nr) = 2
  648. Case 4:reel.Visible = 1:FadingLevel(nr) = 3
  649. Case 5:reel.Visible = 0:FadingLevel(nr) = 1
  650. End Select
  651. End Sub
  652.  
  653. '**********************************************************************************************************
  654. 'Digital Display
  655. '**********************************************************************************************************
  656.  
  657. Dim Digits(32)
  658. ' 1st Player
  659. Digits(0) = Array(LED10,LED11,LED12,LED13,LED14,LED15,LED16)
  660. Digits(1) = Array(LED20,LED21,LED22,LED23,LED24,LED25,LED26)
  661. Digits(2) = Array(LED30,LED31,LED32,LED33,LED34,LED35,LED36)
  662. Digits(3) = Array(LED40,LED41,LED42,LED43,LED44,LED45,LED46)
  663. Digits(4) = Array(LED50,LED51,LED52,LED53,LED54,LED55,LED56)
  664. Digits(5) = Array(LED60,LED61,LED62,LED63,LED64,LED65,LED66)
  665. Digits(6) = Array(LED70,LED71,LED72,LED73,LED74,LED75,LED76)
  666.  
  667. ' 2nd Player
  668. Digits(7) = Array(LED80,LED81,LED82,LED83,LED84,LED85,LED86)
  669. Digits(8) = Array(LED90,LED91,LED92,LED93,LED94,LED95,LED96)
  670. Digits(9) = Array(LED100,LED101,LED102,LED103,LED104,LED105,LED106)
  671. Digits(10) = Array(LED110,LED111,LED112,LED113,LED114,LED115,LED116)
  672. Digits(11) = Array(LED120,LED121,LED122,LED123,LED124,LED125,LED126)
  673. Digits(12) = Array(LED130,LED131,LED132,LED133,LED134,LED135,LED136)
  674. Digits(13) = Array(LED140,LED141,LED142,LED143,LED144,LED145,LED146)
  675.  
  676. ' 3rd Player
  677. Digits(14) = Array(LED150,LED151,LED152,LED153,LED154,LED155,LED156)
  678. Digits(15) = Array(LED160,LED161,LED162,LED163,LED164,LED165,LED166)
  679. Digits(16) = Array(LED170,LED171,LED172,LED173,LED174,LED175,LED176)
  680. Digits(17) = Array(LED180,LED181,LED182,LED183,LED184,LED185,LED186)
  681. Digits(18) = Array(LED190,LED191,LED192,LED193,LED194,LED195,LED196)
  682. Digits(19) = Array(LED200,LED201,LED202,LED203,LED204,LED205,LED206)
  683. Digits(20) = Array(LED210,LED211,LED212,LED213,LED214,LED215,LED216)
  684.  
  685. ' 4th Player
  686. Digits(21) = Array(LED220,LED221,LED222,LED223,LED224,LED225,LED226)
  687. Digits(22) = Array(LED230,LED231,LED232,LED233,LED234,LED235,LED236)
  688. Digits(23) = Array(LED240,LED241,LED242,LED243,LED244,LED245,LED246)
  689. Digits(24) = Array(LED250,LED251,LED252,LED253,LED254,LED255,LED256)
  690. Digits(25) = Array(LED260,LED261,LED262,LED263,LED264,LED265,LED266)
  691. Digits(26) = Array(LED270,LED271,LED272,LED273,LED274,LED275,LED276)
  692. Digits(27) = Array(LED280,LED281,LED282,LED283,LED284,LED285,LED286)
  693.  
  694. ' Credits
  695. Digits(28) = Array(LED4,LED2,LED6,LED7,LED5,LED1,LED3)
  696. Digits(29) = Array(LED18,LED9,LED27,LED28,LED19,LED8,LED17)
  697. ' Balls
  698. Digits(30) = Array(LED39,LED37,LED48,LED49,LED47,LED29,LED38)
  699. Digits(31) = Array(LED67,LED58,LED69,LED77,LED68,LED57,LED59)
  700.  
  701. Sub DisplayTimer_Timer
  702. Dim ChgLED,ii,num,chg,stat,obj
  703. ChgLed = Controller.ChangedLEDs(&Hffffffff, &Hffffffff)
  704. If Not IsEmpty(ChgLED) Then
  705. If DesktopMode = True Then
  706. For ii = 0 To UBound(chgLED)
  707. num = chgLED(ii, 0) : chg = chgLED(ii, 1) : stat = chgLED(ii, 2)
  708. if (num < 32) then
  709. For Each obj In Digits(num)
  710. If chg And 1 Then obj.State = stat And 1
  711. chg = chg\2 : stat = stat\2
  712. Next
  713. else
  714. end if
  715. next
  716. end if
  717. end if
  718. End Sub
  719.  
  720. '**********Sling Shot Animations
  721. ' Rstep and Lstep are the variables that increment the animation
  722. '****************
  723. Dim RStep, Lstep, RKick, LA, RC, LC, RA, RB, RD
  724.  
  725. Sub RightSlingShot_Slingshot
  726. vpmtimer.pulsesw 36
  727. PlaySound SoundFX("right_slingshot",DOFContactors), 0, 1, 0.05, 0.05
  728. RSling.Visible = 0
  729. RSling1.Visible = 1
  730. sling1.TransZ = -20
  731. RStep = 0
  732. RightSlingShot.TimerEnabled = 1
  733. End Sub
  734.  
  735. Sub RightSlingShot_Timer
  736. Select Case RStep
  737. Case 3:RSLing1.Visible = 0:RSLing2.Visible = 1:sling1.TransZ = -10
  738. Case 4:RSLing2.Visible = 0:RSLing.Visible = 1:sling1.TransZ = 0:RightSlingShot.TimerEnabled = 0
  739. End Select
  740. RStep = RStep + 1
  741. End Sub
  742.  
  743. Sub LeftSlingShot_Slingshot
  744. vpmtimer.pulsesw 37
  745. PlaySound SoundFX("left_slingshot",DOFContactors),0,1,-0.05,0.05
  746. LSling.Visible = 0
  747. LSling1.Visible = 1
  748. sling2.TransZ = -32
  749. LStep = 0
  750. LeftSlingShot.TimerEnabled = 1
  751. End Sub
  752.  
  753. Sub LeftSlingShot_Timer
  754. Select Case LStep
  755. Case 3:LSLing1.Visible = 0:LSLing2.Visible = 1:sling2.TransZ = -10
  756. Case 4:LSLing2.Visible = 0:LSLing.Visible = 1:sling2.TransZ = 0:LeftSlingShot.TimerEnabled = 0
  757. End Select
  758. LStep = LStep + 1
  759. End Sub
  760.  
  761. Sub WallLA_Hit
  762. RubberLA.Visible = 0
  763. RubberLA1.Visible = 1
  764. LA = 0
  765. WallLA.TimerEnabled = 1
  766. End Sub
  767.  
  768. Sub WallLA_Timer
  769. Select Case LA
  770. Case 3:RubberLA1.Visible = 0:RubberLA2.Visible = 1
  771. Case 4:RubberLA2.Visible = 0:RubberLA.Visible = 1:WallLA.TimerEnabled = 0:
  772. End Select
  773. LA = LA + 1
  774. End Sub
  775. '
  776. Sub WallLC_Hit
  777. RubberLC.Visible = 0
  778. RubberLC1.Visible = 1
  779. LC = 0
  780. WallLC.TimerEnabled = 1
  781. End Sub
  782.  
  783. Sub WallLC_Timer
  784. Select Case LC
  785. Case 3:RubberLC1.Visible = 0:RubberLC2.Visible = 1
  786. Case 4:RubberLC2.Visible = 0:RubberLC.Visible = 1:WallLC.TimerEnabled = 0:
  787. End Select
  788. LC = LC + 1
  789. End Sub
  790. '
  791. Sub WallRA_Hit
  792. RubberRA.Visible = 0
  793. RubberRA1.Visible = 1
  794. RA = 0
  795. WallRA.TimerEnabled = 1
  796. End Sub
  797.  
  798. Sub WallRA_Timer
  799. Select Case RA
  800. Case 3:RubberRA1.Visible = 0:RubberRA2.Visible = 1
  801. Case 4:RubberRA2.Visible = 0:RubberRA.Visible = 1:WallRA.TimerEnabled = 0:
  802. End Select
  803. RA = RA + 1
  804. End Sub
  805. '
  806. Sub WallRC_Hit
  807. RubberRC.Visible = 0
  808. RubberRC1.Visible = 1
  809. RC = 0
  810. WallRC.TimerEnabled = 1
  811. End Sub
  812.  
  813. Sub WallRC_Timer
  814. Select Case RC
  815. Case 3:RubberRC1.Visible = 0:RubberRC2.Visible = 1
  816. Case 4:RubberRC2.Visible = 0:RubberRC.Visible = 1:WallRC.TimerEnabled = 0:
  817. End Select
  818. RC = RC + 1
  819. End Sub
  820. '
  821. Sub sw3a_Hit
  822. DOF 105, DOFPulse
  823. vpmTimer.PulseSw 3
  824. RubberDL.Visible = 0
  825. RubberDL1.Visible = 1
  826. RB = 0
  827. sw3a.TimerEnabled = 1
  828. End Sub
  829.  
  830. Sub sw3a_Timer
  831. Select Case RB
  832. Case 3:RubberDL1.Visible = 0:RubberDL2.Visible = 1
  833. Case 4:RubberDL2.Visible = 0:RubberDL.Visible = 1:sw3a.TimerEnabled = 0:
  834. End Select
  835. RB = RB + 1
  836. End Sub
  837. '
  838. Sub sw3b_Slingshot
  839. DOF 106, DOFPulse
  840. vpmTimer.PulseSw 3
  841. RubberDR.Visible = 0
  842. RubberDR1.Visible = 1
  843. RD = 0
  844. sw3b.TimerEnabled = 1
  845. End Sub
  846.  
  847. Sub sw3b_Timer
  848. Select Case RD
  849. Case 3:RubberDR1.Visible = 0:RubberDR2.Visible = 1
  850. Case 4:RubberDR2.Visible = 0:RubberDR.Visible = 1:sw3b.TimerEnabled = 0:
  851. End Select
  852. RD = RD + 1
  853. End Sub
  854.  
  855.  
  856. Sub RKickTimer_Timer
  857. Select Case RKick
  858. Case 1:kickarmtop_prim.ObjRotX = -50
  859. Case 2:kickarmtop_prim.ObjRotX = -50
  860. Case 3:kickarmtop_prim.ObjRotX = -50
  861. Case 4:kickarmtop_prim.ObjRotX = -50
  862. Case 5:kickarmtop_prim.ObjRotX = -50
  863. Case 6:kickarmtop_prim.ObjRotX = -50
  864. Case 7:kickarmtop_prim.ObjRotX = -50
  865. Case 8:kickarmtop_prim.ObjRotX = -50
  866. Case 9:kickarmtop_prim.ObjRotX = -50
  867. Case 10:kickarmtop_prim.ObjRotX = -50
  868. Case 11:kickarmtop_prim.ObjRotX = -24
  869. Case 12:kickarmtop_prim.ObjRotX = -12
  870. Case 13:kickarmtop_prim.ObjRotX = 0:RKickTimer.Enabled = 0
  871. End Select
  872. RKick = RKick + 1
  873. End Sub
  874.  
  875. ' *********************************************************************
  876. ' Supporting Ball & Sound Functions
  877. ' *********************************************************************
  878.  
  879. Function Vol(ball) ' Calculates the Volume of the sound based on the ball speed
  880. Vol = Csng(BallVel(ball) ^2 / 1000)
  881. End Function
  882.  
  883. Function Pan(ball) ' Calculates the pan for a ball based on the X position on the table. "table1" is the name of the table
  884. Dim tmp
  885. tmp = ball.x * 2 / table1.width-1
  886. If tmp > 0 Then
  887. Pan = Csng(tmp ^10)
  888. Else
  889. Pan = Csng(-((- tmp) ^10) )
  890. End If
  891. End Function
  892.  
  893. Function Pitch(ball) ' Calculates the pitch of the sound based on the ball speed
  894. Pitch = BallVel(ball) * 20
  895. End Function
  896.  
  897. Function BallVel(ball) 'Calculates the ball speed
  898. BallVel = INT(SQR((ball.VelX ^2) + (ball.VelY ^2) ) )
  899. End Function
  900.  
  901. Sub Pins_Hit (idx)
  902. PlaySound "pinhit_low", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 0, 0
  903. End Sub
  904.  
  905. Sub Targets_Hit (idx)
  906. PlaySound "target", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 0, 0
  907. End Sub
  908.  
  909. Sub Metals_Thin_Hit (idx)
  910. PlaySound "metalhit_thin", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  911. End Sub
  912.  
  913. Sub Metals_Medium_Hit (idx)
  914. PlaySound "metalhit_medium", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  915. End Sub
  916.  
  917. Sub Metals2_Hit (idx)
  918. PlaySound "metalhit2", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  919. End Sub
  920.  
  921. Sub Gates_Hit (idx)
  922. PlaySound "gate4", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  923. End Sub
  924.  
  925. Sub Spinner_Spin
  926. PlaySound "fx_spinner",0,.25,0,0.25
  927. End Sub
  928.  
  929. Sub Rubbers_Hit(idx)
  930. dim finalspeed
  931. finalspeed=SQR(activeball.velx * activeball.velx + activeball.vely * activeball.vely)
  932. If finalspeed > 20 then
  933. PlaySound "fx_rubber2", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  934. End if
  935. If finalspeed >= 6 AND finalspeed <= 20 then
  936. RandomSoundRubber()
  937. End If
  938. End Sub
  939.  
  940. Sub Posts_Hit(idx)
  941. dim finalspeed
  942. finalspeed=SQR(activeball.velx * activeball.velx + activeball.vely * activeball.vely)
  943. If finalspeed > 16 then
  944. PlaySound "fx_rubber2", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  945. End if
  946. If finalspeed >= 6 AND finalspeed <= 16 then
  947. RandomSoundRubber()
  948. End If
  949. End Sub
  950.  
  951. Sub RandomSoundRubber()
  952. Select Case Int(Rnd*3)+1
  953. Case 1 : PlaySound "rubber_hit_1", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  954. Case 2 : PlaySound "rubber_hit_2", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  955. Case 3 : PlaySound "rubber_hit_3", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  956. End Select
  957. End Sub
  958.  
  959. Sub LeftFlipper_Collide(parm)
  960. RandomSoundFlipper()
  961. End Sub
  962.  
  963. Sub RightFlipper_Collide(parm)
  964. RandomSoundFlipper()
  965. End Sub
  966.  
  967. Sub RandomSoundFlipper()
  968. Select Case Int(Rnd*3)+1
  969. Case 1 : PlaySound "flip_hit_1", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  970. Case 2 : PlaySound "flip_hit_2", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  971. Case 3 : PlaySound "flip_hit_3", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  972. End Select
  973. End Sub
  974.  
  975. '*****************************************
  976. ' JP's VP10 Rolling Sounds
  977. '*****************************************
  978.  
  979. Const tnob = 5 ' total number of balls
  980. ReDim rolling(tnob)
  981. InitRolling
  982.  
  983. Sub InitRolling
  984. Dim i
  985. For i = 0 to tnob
  986. rolling(i) = False
  987. Next
  988. End Sub
  989.  
  990. Sub RollingTimer_Timer()
  991. Dim BOT, b
  992. BOT = GetBalls
  993.  
  994. ' stop the sound of deleted balls
  995. For b = UBound(BOT) + 1 to tnob
  996. rolling(b) = False
  997. StopSound("fx_ballrolling" & b)
  998. Next
  999.  
  1000. ' exit the sub if no balls on the table
  1001. If UBound(BOT) = -1 Then Exit Sub
  1002.  
  1003. ' play the rolling sound for each ball
  1004. For b = 0 to UBound(BOT)
  1005. If BallVel(BOT(b) ) > 1 AND BOT(b).z < 30 Then
  1006. rolling(b) = True
  1007. PlaySound("fx_ballrolling" & b), -1, Vol(BOT(b) ), Pan(BOT(b) ), 0, Pitch(BOT(b) ), 1, 0
  1008. Else
  1009. If rolling(b) = True Then
  1010. StopSound("fx_ballrolling" & b)
  1011. rolling(b) = False
  1012. End If
  1013. End If
  1014. Next
  1015. End Sub
  1016.  
  1017. '**********************
  1018. ' Ball Collision Sound
  1019. '**********************
  1020.  
  1021. Sub OnBallBallCollision(ball1, ball2, velocity)
  1022. PlaySound("fx_collide"), 0, Csng(velocity) ^2 / 2000, Pan(ball1), 0, Pitch(ball1), 0, 0
  1023. End Sub
  1024.  
  1025.  
  1026.  
  1027. '************************************
  1028. ' What you need to add to your table
  1029. '************************************
  1030.  
  1031. ' a timer called RollingTimer. With a fast interval, like 10
  1032. ' one collision sound, in this script is called fx_collide
  1033. ' as many sound files as max number of balls, with names ending with 0, 1, 2, 3, etc
  1034. ' for ex. as used in this script: fx_ballrolling0, fx_ballrolling1, fx_ballrolling2, fx_ballrolling3, etc
  1035.  
  1036.  
  1037. '******************************************
  1038. ' Explanation of the rolling sound routine
  1039. '******************************************
  1040.  
  1041. ' sounds are played based on the ball speed and position
  1042.  
  1043. ' the routine checks first for deleted balls and stops the rolling sound.
  1044.  
  1045. ' The For loop goes through all the balls on the table and checks for the ball speed and
  1046. ' if the ball is on the table (height lower than 30) then then it plays the sound
  1047. ' otherwise the sound is stopped, like when the ball has stopped or is on a ramp or flying.
  1048.  
  1049. ' The sound is played using the VOL, PAN and PITCH functions, so the volume and pitch of the sound
  1050. ' will change according to the ball speed, and the PAN function will change the stereo position according
  1051. ' to the position of the ball on the table.
  1052.  
  1053.  
  1054. '**************************************
  1055. ' Explanation of the collision routine
  1056. '**************************************
  1057.  
  1058. ' The collision is built in VP.
  1059. ' You only need to add a Sub OnBallBallCollision(ball1, ball2, velocity) and when two balls collide they
  1060. ' will call this routine. What you add in the sub is up to you. As an example is a simple Playsound with volume and paning
  1061. ' depending of the speed of the collision.
  1062.  
  1063. 'Bally Power Play
  1064. 'added by Inkochnito
  1065. Sub editDips
  1066. Dim vpmDips : Set vpmDips = New cvpmDips
  1067. With vpmDips
  1068. .AddForm 700,400,"Power Play - DIP switches"
  1069. .AddFrame 2,20,190,"Maximum credits",&H00070000,Array("10 credits",&H00010000,"20 credits",&H00030000,"30 credits",&H00050000,"40 credits",&H00070000)'dip 17&18&19
  1070. .AddFrame 2,99,190,"High game to date award",&H00000060,Array("no award",0,"1 credit",&H00000020,"2 credits",&H00000040,"3 credits",&H00000060)'dip 6&7
  1071. .AddFrame 2,173,190,"Drop target bank award",&H00002000,Array("2X, 3X, 5X, extra ball, special",0,"2X, 3X, 5X && extra ball, special",&H00002000)'dip 14
  1072. .AddFrame 2,220,190,"Knocking down 4 targets of 1 bank",&H00200000,Array("will reset both banks",0,"will reset only that bank",&H00200000)'dip 22
  1073. .AddFrame 205,20,190,"Thumper-bumper adjust",&H00400000,Array("alternating",0,"all bumpers on",&H00400000)'dip 23
  1074. .AddFrame 205,66,190,"High score feature",&HC0000000,Array("no award",0,"extra ball",&H80000000,"replay",&HC0000000)'dip 31&32
  1075. .AddFrame 205,127,190,"Left && right alley rollover buttons",&H00004000,Array("scores 100 points",0,"scores 1000 points",&H00004000)'dip 15
  1076. .AddFrame 205,173,190,"Balls per game", 32768,Array("3 balls",0,"5 balls", 32768)'dip 16
  1077. .AddFrame 205,220,190,"Outlane special adjust",&H30000000,Array("special does NOT lite",0,"special alternates",&H20000000,"both specials on",&H30000000)'dip 29&30
  1078. .AddChk 2,0,100,Array("Match feature",&H00100000)'dip 21
  1079. .AddChk 150,0,100,Array("Credits display",&H00080000)'dip 20
  1080. .AddChk 295,0,100,Array("Melody option",&H00000080)'dip 8
  1081. .AddLabel 50,290,300,20,"After hitting OK, press F3 to reset game with new settings."
  1082. .ViewDips
  1083. End With
  1084. End Sub
  1085. Set vpmShowDips = GetRef("editDips")
  1086.  
  1087. Sub table1_Paused:Controller.Pause = 1:End Sub
  1088. Sub table1_unPaused:Controller.Pause = 0:End Sub
  1089.  
  1090. Sub table1_Exit:Controller.Stop:End Sub
Advertisement
Add Comment
Please, Sign In to add comment