Arngrim

Dolphin DOF

Nov 23rd, 2016
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.05 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 = "dolphin_1974"
  10.  
  11. Dim B2SScore(2), B2SPlayer, B2SPlayers
  12.  
  13. Dim TableHeight
  14. TableHeight = 2020
  15. Dim SwingFactor
  16. Dim SloDoFactor
  17. Dim TiltStatus
  18.  
  19. SwingFactor = 0
  20. SloDoFactor = 5
  21. TiltStatus = 0
  22.  
  23. Dim Score
  24. Dim HighScore
  25.  
  26. dim Credits
  27.  
  28. dim BIP,PUP,BtP,Players
  29. dim RCC 'Reset Cyle Complete
  30. dim pwr1 'Motor
  31. dim pwr2 '30V Relays
  32. dim pwr3 '
  33. dim Ball1
  34. dim CB1,CB2,CB3,bs
  35. dim MoPo
  36. dim RE(24)
  37. dim SC(6) 'Switch control (Status)
  38. dim Bonus
  39. dim MUnit '00-90
  40. dim TCount(2)
  41. dim HCount(2)
  42. dim KCount(2)
  43. dim TKCount(2)
  44. dim AuxScore(2)
  45. dim ZPos(8)
  46. dim alt
  47. dim i
  48. dim GStyle,BNumb
  49. dim th1a,th1b,th2a,th2b,th3a,th3b,th4a,th4b
  50.  
  51. Sub GetTHs()
  52. If BNumb=3 then
  53. If GStyle=1 then
  54. th1a=3:th1b=9
  55. th2a=5:th2b=7
  56. th3a=7:th3b=5
  57. th4a=9:th4b=3
  58. SCOREreel.SetValue 0
  59. ElseIf GStyle=2 then
  60. th1a=3:th1b=1
  61. th2a=4:th2b=5
  62. th3a=5:th3b=9
  63. th4a=0:th4b=0
  64. SCOREreel.SetValue 1
  65. Else
  66. chStyle()
  67. End If
  68. ElseIf BNumb=5 then
  69. If GStyle=1 then
  70. th1a=7:th1b=4
  71. th2a=8:th2b=6
  72. th3a=9:th3b=8
  73. th4a=0:th4b=0
  74. SCOREreel.SetValue 2
  75. ElseIf GStyle=2 then
  76. th1a=5:th1b=0
  77. th2a=7:th2b=5
  78. th3a=0:th3b=0
  79. th4a=0:th4b=0
  80. SCOREreel.SetValue 3
  81. Else
  82. chStyle()
  83. End If
  84. Else
  85. chBall()
  86. End If
  87. End Sub
  88.  
  89.  
  90. Function chBall()
  91. 'BNumb=5("Balls per Game: 3 or 5","What is your NUMBER?",3)
  92. BNumb=5
  93. BtP=BNumb+1
  94. End Function
  95.  
  96. Function chStyle()
  97. 'GStyle=2("'Replays' = 1 or 'Extra Balls' = 2","What is your STYLE?","1")
  98. GStyle=2
  99. GetTHs()
  100. End Function
  101.  
  102.  
  103.  
  104. Sub DOLPHIN_Init()
  105. LoadEM
  106. chBall()
  107. chStyle()
  108. TCount(1)=0:HCount(1)=0:KCount(1)=0:TKCount(1)=0
  109. TCount(2)=0:HCount(2)=0:KCount(2)=0:TKCount(2)=0
  110.  
  111. B2SPlayers = 0
  112. B2SPlayer = 0
  113.  
  114. Set Ball1=Drain.CreateBall
  115. Set CB1=KK1.CreateBall
  116. Set CB2=KK2.CreateBall
  117. Set CB3=KK3.CreateBall
  118.  
  119. Bonus=0
  120. PUP=1
  121. BIP=6
  122. 'BtP=4
  123. SC(1)=true 'Ball in OH
  124.  
  125. '- - - - - - - - - - - GENERAL RELAYS - - - - - - - - - - - -
  126.  
  127. RE(00)=true 'LOCK
  128. RE(01)=true 'Game Over
  129. RE(02)=false 'Tilt
  130. RE(03)=false 'Reset
  131. RE(04)=false 'Ball Index
  132. RE(05)=false 'Alternator
  133. RE(06)=false 'XB
  134. RE(07)=false 'XB Target
  135. RE(08)=true 'OutHole
  136. RE(09)=false '2 Player game
  137. RE(10)=false 'Coin
  138. RE(11)=false 'Credit (Start)
  139. RE(12)=false 'Reset 1
  140. 'RE(13)=false 'Reset 2
  141. RE(14)=false 'PlayerReset
  142. RE(15)=false '2nd PlayerUp
  143. RE(16)=false 'Match
  144. RE(17)=false '
  145. RE(18)=false 'Bonus reset
  146. RE(19)=false 'Bonus score
  147. RE(20)=true 'Bonus zero
  148.  
  149. '- - - - - - - - - - - GAME SPECIFIC - - - - - - - - - - - -
  150.  
  151. RE(21)=false '300
  152. RE(22)=false 'Adv
  153. RE(23)=false 'Bonus Advance (Extra)
  154. RE(24)=false 'Double Bonus
  155.  
  156. AllLightsOff
  157. MoPo=0
  158. MUnit=0
  159. GOREEL.SetValue "1"
  160. tiltREEL.SetValue "0"
  161. If B2SOn Then
  162. Controller.B2SSetTilt 0
  163. Controller.B2SSetGameOver 4
  164. End If
  165. C_RE5
  166. pwr1=true
  167. End Sub
  168.  
  169. ' Quick Ball Sound V1.1 by STAT, stefanaustria
  170. ' -----------------------
  171. Dim aX, aY, sX, RSound, SBall
  172.  
  173. Sub TriggerS_Timer()
  174. aX = int(SBall.VelX): aY = int(SBall.VelY)
  175. sX = -1.0: If int(Sball.X)>500 Then sX = 1.0
  176. If (aX>3 OR aY>3) AND Rsound = 0 Then
  177. RSound=int(RND*4)+1
  178. PlaySound "Roll "&RSound,0,1.0,sX,0.2 'replace sX to 0 for FullSound
  179. Elseif (aX<6 AND aY<6) AND Rsound > 0 Then
  180. StopSound "Roll "&Rsound
  181. Rsound = 0
  182. End If
  183. End Sub
  184.  
  185. Sub TriggerS_Hit()
  186. DOF 123, DOFPulse
  187. Set SBall = Activeball
  188. TriggerS.TimerInterval = 100
  189. TriggerS.TimerEnabled = True
  190. PlaySound "Roll 1"
  191. End Sub
  192. ' -----------------------
  193.  
  194. '*************************************** SWITCHES *********************************
  195.  
  196. If RE(02)=false then
  197.  
  198. Sub SW01_Hit()
  199. DOF 111, DOFPulse
  200. If RE(05)=false then
  201. add1000
  202. adv
  203. Else
  204. add100
  205. End If
  206. End Sub
  207.  
  208. Sub SW02_Hit()
  209. DOF 112, DOFPulse
  210. If RE(05)=true then
  211. C_RE21
  212. C_RE23
  213. Else
  214. add100
  215. End If
  216. End Sub
  217.  
  218. Sub SW03_Hit()
  219. DOF 113, DOFPulse
  220. If RE(05)=true then
  221. add1000
  222. adv
  223. Else
  224. add100
  225. End If
  226. End Sub
  227.  
  228. Sub SW04_Hit()
  229. Adv
  230. Add100
  231. End Sub
  232.  
  233. Sub SW05_Hit()
  234. Adv
  235. Add100
  236. End Sub
  237.  
  238. Sub SW06_Hit()
  239. DOF 114, DOFPulse
  240. If RE(05)=false then
  241. C_RE23
  242. End If
  243. C_RE21
  244. End Sub
  245.  
  246. Sub SW07_Hit()
  247. DOF 115, DOFPulse
  248. If RE(05)=true then
  249. C_RE23
  250. End If
  251. C_RE21
  252. End Sub
  253.  
  254. Sub SW08_Hit()
  255. If RE(05)=false then
  256. If SC(4)=true then
  257. adv
  258. End If
  259. End If
  260. add100
  261. End Sub
  262.  
  263. Sub SW09_Hit()
  264. If RE(05)=false then
  265. If SC(5)=true then
  266. adv
  267. End If
  268. End If
  269. add100
  270. End Sub
  271.  
  272. Sub SW10_Hit()
  273. If RE(05)=false then
  274. If SC(6)=true then
  275. adv
  276. End If
  277. End If
  278. add100
  279. End Sub
  280.  
  281. Sub SW11_Hit()
  282. add10
  283. End Sub
  284.  
  285. Sub SW12_Hit()
  286. add10
  287. End Sub
  288.  
  289. Sub SW13_Hit()
  290. DOF 116, DOFPulse
  291. add1000
  292. End Sub
  293.  
  294. Sub SW14_Hit()
  295. DOF 117, DOFPulse
  296. add1000
  297. End Sub
  298.  
  299. End If
  300.  
  301. Sub KK1_Hit()
  302. SC(4)=true
  303. If SC(5)=true and SC(6)=true then
  304. C_RE6
  305. End If
  306. If RE(05)=false then
  307. L08.IsDropped=false
  308. L08off.IsDropped=true
  309. End If
  310. add1000
  311. End Sub
  312.  
  313. Sub KK2_Hit()
  314. SC(5)=true
  315. If SC(4)=true and SC(6)=true then
  316. C_RE6
  317. End If
  318. If RE(05)=false then
  319. L09.IsDropped=false
  320. L09off.IsDropped=true
  321. End If
  322. add1000
  323. End Sub
  324.  
  325. Sub KK3_Hit()
  326. SC(6)=true
  327. If SC(4)=true and SC(5)=true then
  328. C_RE6
  329. End If
  330. If RE(05)=false then
  331. L10.IsDropped=false
  332. L10off.IsDropped=true
  333. End If
  334. add1000
  335. End Sub
  336.  
  337. Sub Drain_Hit()
  338. DOF 124, DOFPulse
  339. SC(1)=true
  340. If RE(20)=false then
  341. C_RE18
  342. Else
  343. C_RE8
  344. End If
  345. End Sub
  346.  
  347.  
  348.  
  349. '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% RELAYS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  350.  
  351. Sub O_RE01
  352. RE(01)=false
  353. GOREEL.SetValue "0"
  354. BIPReel.SetValue BIP
  355. If B2SOn Then Controller.B2SSetBallInPlay BIP
  356. MatchREEL.SetValue 10
  357. End Sub
  358.  
  359. Sub C_RE01
  360. O_RE4
  361. GOREEL.SetValue "1"
  362. BIPREEL.SetValue "0"
  363. If B2SOn Then
  364. Controller.B2SSetBallInPlay 0
  365. Controller.B2SSetScoreRolloverPlayer1 0
  366. Controller.B2SSetScoreRolloverPlayer2 0
  367. B2SPlayers = 0
  368. B2SPlayer = 0
  369. Controller.B2SSetPlayerUp 0
  370. Controller.B2SSetGameOver 4
  371. End If
  372. RE(09)=false:RE(15)=false
  373. MatchREEL.SetValue MUnit
  374. If B2SOn Then
  375. Controller.B2SSetMatch MUnit
  376. If MUnit = 0 Then Controller.B2SSetMatch 10
  377. End if
  378. PUPReel1.SetValue 0
  379. PUPReel2.SetValue 0
  380. RE(01)=true
  381. End Sub
  382.  
  383.  
  384. Sub C_RE2
  385. C_RE4
  386. TiltREEL.SetValue "1"
  387. If B2SOn Then Controller.B2SSetTilt 4
  388. LeftFlipper.RotateToStart
  389. RightFlipper.RotateToStart
  390. TiltB1.IsDropped=false
  391. TiltB2.IsDropped=false
  392. RE(02)=true
  393. End Sub
  394.  
  395. Sub O_RE2
  396. TiltB1.IsDropped=true
  397. TiltB2.IsDropped=true
  398. TiltREEL.SetValue "0"
  399. If B2SOn Then Controller.B2SSetTilt 0
  400. RE(02)=false
  401. End Sub
  402.  
  403.  
  404. Sub C_RE3
  405. RE(03)=true
  406. CMot
  407. End Sub
  408.  
  409. Sub O_RE3
  410. RE(03)=false
  411. End Sub
  412.  
  413.  
  414. Sub C_RE4
  415. RE(04)=true
  416. RCC=false
  417. End Sub
  418.  
  419. Sub O_RE4
  420. RE(04)=false
  421. End Sub
  422.  
  423.  
  424. Sub C_RE5
  425. alt=true
  426. L01.IsDropped=true
  427. L02.IsDropped=false
  428. L03.IsDropped=false
  429. L04.IsDropped=true
  430. L05.IsDropped=false
  431. L08.IsDropped=true
  432. L09.IsDropped=true
  433. L10.IsDropped=true
  434. L08off.IsDropped=false
  435. L09off.IsDropped=false
  436. L10off.IsDropped=false
  437. RE(05)=true
  438. End Sub
  439.  
  440. Sub O_RE5
  441. alt=false
  442. L01.IsDropped=false
  443. L02.IsDropped=true
  444. L03.IsDropped=true
  445. L04.IsDropped=false
  446. L05.IsDropped=true
  447. If SC(4)=true then
  448. L08.IsDropped=false
  449. L08off.IsDropped=true
  450. End If
  451. If SC(5)=true then
  452. L09.IsDropped=false
  453. L09off.IsDropped=true
  454. End If
  455. If SC(6)=true then
  456. L10.IsDropped=false
  457. L10off.IsDropped=true
  458. End If
  459.  
  460. RE(05)=false
  461. End Sub
  462.  
  463.  
  464. Sub C_RE6
  465. RE(06)=true
  466. L06.IsDropped=false
  467. L07.IsDropped=true
  468. SPSAREEL.SetValue "1"
  469. If B2SOn Then Controller.B2SSetShootAgain 4
  470. End Sub
  471.  
  472. Sub O_RE6
  473. RE(06)=false
  474. L06.IsDropped=true
  475. L07.IsDropped=false
  476. SPSAREEL.SetValue "0"
  477. If B2SOn Then Controller.B2SSetShootAgain 0
  478. End Sub
  479.  
  480.  
  481. Sub C_RE7
  482. RE(07)=true
  483. End Sub
  484.  
  485. Sub O_RE7
  486. RE(07)=false
  487. End Sub
  488.  
  489. Sub C_RE8 'Outhole
  490. RE(08)=true
  491. C_RE18
  492. End Sub
  493.  
  494. Sub O_RE8
  495. RE(08)=false
  496. End Sub
  497.  
  498. Sub C_RE9
  499. PLRSreel.SetValue 1
  500. RE(09)=true
  501. End Sub
  502.  
  503. Sub O_RE9
  504. RE(09)=false
  505. PLRSreel.SetValue 0
  506. End Sub
  507.  
  508. Sub C_RE10
  509. RE(10)=true
  510. C_RE3
  511. End Sub
  512.  
  513. Sub O_RE10
  514. RE(10)=false
  515. End Sub
  516.  
  517. Sub C_RE11
  518. O_RE24
  519. If RCC=false then
  520. C_RE10
  521. Else
  522. CMot
  523. End If
  524. RE(11)=true
  525. End Sub
  526.  
  527. Sub O_RE11
  528. RE(11)=false
  529. End Sub
  530.  
  531. Sub C_RE12
  532. RE(12)=true
  533. End Sub
  534.  
  535. Sub O_RE12
  536. RE(12)=false
  537. End Sub
  538.  
  539. Sub C_RE15 '
  540. PUPReel1.SetValue 0
  541. PUPReel2.SetValue 1
  542. RE(15)=true
  543. End Sub
  544.  
  545. Sub O_RE15
  546. PUPReel1.SetValue 1
  547. PUPReel2.SetValue 0
  548. RE(15)=false
  549. End Sub
  550.  
  551. Sub C_RE16 'Match
  552. RE(16)=true
  553. CMot
  554. End Sub
  555.  
  556. Sub O_RE16
  557. RE(16)=false
  558. End Sub
  559.  
  560. Sub C_RE17 'Adv extra
  561. RE(17)=true
  562. CMot
  563. End Sub
  564.  
  565. Sub O_RE17
  566. RE(17)=false
  567. End Sub
  568.  
  569. Sub C_RE18 '
  570. RE(18)=true
  571. If RE(02)=false then
  572. C_RE19
  573. End If
  574. CMot
  575. End Sub
  576.  
  577. Sub O_RE18
  578. O_RE19
  579. RE(18)=false
  580. End Sub
  581.  
  582. Sub C_RE19 '
  583. RE(19)=true
  584. CMot
  585. End Sub
  586.  
  587. Sub O_RE19
  588. RE(19)=false
  589. End Sub
  590.  
  591. Sub C_RE20
  592. If SC(1)=true then
  593. C_RE8
  594. End If
  595. RE(20)=true
  596. End Sub
  597.  
  598. Sub O_RE20
  599. RE(20)=false
  600. End Sub
  601.  
  602. Sub C_RE21
  603. CMot
  604. RE(21)=true
  605. End Sub
  606.  
  607. Sub O_RE21
  608. RE(21)=false
  609. End Sub
  610.  
  611. Sub C_RE22
  612. RE(22)=true
  613. End Sub
  614.  
  615. Sub O_RE22
  616. RE(22)=false
  617. End Sub
  618.  
  619. Sub C_RE23
  620. RE(23)=true
  621. End Sub
  622.  
  623. Sub O_RE23
  624. RE(23)=false
  625. End Sub
  626.  
  627. Sub C_RE24
  628. L22.IsDropped=false
  629. L22a.IsDropped=false
  630. RE(24)=true
  631. End Sub
  632.  
  633. Sub O_RE24
  634. L22.IsDropped=true
  635. L22a.IsDropped=true
  636. RE(24)=false
  637. End Sub
  638.  
  639.  
  640.  
  641. '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  642.  
  643. Sub CMot()
  644. pwr2=true
  645. Motor.Enabled=true
  646. End Sub
  647.  
  648. Sub MotorHoldIn()
  649. Motor.Enabled=true
  650. End Sub
  651.  
  652. Sub Motor_Timer()
  653. If MoPo=0 then
  654. Cam1
  655. End If
  656.  
  657. If pwr2=true then
  658. MoPo=MoPo + 0.5
  659. Else
  660. Cam1
  661. Motor.Enabled=false
  662. Exit Sub
  663. End If
  664.  
  665.  
  666. If MoPo=1 then
  667. PlaySound "MotorRun"
  668. cam2
  669. cam3
  670. End If
  671. If MoPo=1.5 then
  672. Cam11
  673. End If
  674. If MoPo=2 then
  675. Cam2
  676. Cam4
  677. End If
  678. If MoPo=2.5 then
  679. Cam11
  680. End If
  681. If MoPo=3 then
  682. Cam2
  683. Cam5
  684. Cam9
  685. End If
  686. If MoPo=3.5 then
  687. Cam11
  688. End If
  689. If MoPo=4 then
  690. Cam2
  691. Cam6
  692. Cam9
  693. End If
  694. If MoPo=4.5 then
  695. Cam11
  696. End If
  697. If MoPo=5 then
  698. Cam2
  699. Cam7
  700. Cam9
  701. End If
  702. If MoPo=5.5 then
  703. Cam11
  704. End If
  705. If MoPo=6 then
  706. Cam8
  707. End If
  708. If MoPo=7 then
  709. Cam10
  710. End If
  711. If MoPo=8 then
  712. CheckRelays()
  713. MoPo=0
  714. End If
  715.  
  716. MotorHoldIn()
  717.  
  718. End Sub
  719.  
  720. Sub CheckRelays()
  721. If RE(01)=true then
  722. If RE(03)=false and RE(09)=false and RE(18)=false then
  723. pwr2=false
  724. Else
  725. pwr2=true
  726. End If
  727. ElseIf RE(01)=false then
  728. If RE(03)=false and RE(08)=false and RE(21)=false and RE(18)=false and RE(19)=false and RE(21)=false and RE(23)=false then
  729. pwr2=false
  730. Else
  731. pwr2=true
  732. End If
  733. End If
  734. End Sub
  735.  
  736.  
  737. '-------------------------------------------------------------------------------------------
  738. '1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
  739.  
  740. Sub Cam1 'v_______
  741. pwr1=true
  742.  
  743.  
  744. If SC(1)=false then:O_RE8:End If 'Release OH-Relay
  745.  
  746.  
  747. End Sub
  748.  
  749. '2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
  750.  
  751. Sub Cam2 '-^^^^^--
  752. pwr1=false
  753.  
  754. If RE(18)=true and RE(24)=false then
  755. Decr
  756. End If
  757.  
  758.  
  759. If RE(03)=true then
  760. ResetA()
  761. Decr
  762. End If
  763.  
  764. End Sub
  765.  
  766. '3333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
  767.  
  768. Sub Cam3 '-^------
  769.  
  770.  
  771. '---------------------------------------- ADMIN
  772. If RE(11)=true then
  773. Credits=Credits-1
  774. If Credits < 1 Then DOF 122, DOFOff
  775. CreditREEL.SetValue Credits
  776. If B2SOn Then Controller.B2SSetCredits Credits
  777. If RE(03)=false and BIP=1 then
  778. C_RE9
  779. PlaySound "UnitStepDn"
  780. End If
  781. End If
  782.  
  783.  
  784. If RE(10)=true then '
  785. If RE(03)=true then
  786. BIP=1 'reset Ball count unit
  787. PUP=1 'Player reset
  788. O_RE9 '1 Player only
  789. End If
  790. End If
  791.  
  792.  
  793. If RE(01)=false then
  794. If RE(08)=true and RE(18)=false then
  795. If RE(04)=true then
  796. If RE(09)=false then
  797. If RE(15)=false and RE(06)=false then
  798. BIP=BIP +1
  799. If BIP<BtP then
  800. BIPReel.SetValue BIP
  801. If B2SOn Then Controller.B2SSetBallInPlay BIP
  802. O_RE4
  803. Else
  804. BIPReel.SetValue 0
  805. If B2SOn Then Controller.B2SSetBallInPlay BIP
  806. C_RE16
  807. C_RE01
  808. End If
  809. End If
  810. ElseIf RE(09)=true then
  811. If RE(15)=true and RE(06)=false then
  812. BIP=BIP +1
  813. If BIP<BtP then
  814. BIPReel.SetValue BIP
  815. If B2SOn Then Controller.B2SSetBallInPlay BIP
  816. O_RE15
  817. O_RE4
  818. Else
  819. BIPReel.SetValue 0
  820. If B2SOn Then Controller.B2SSetBallInPlay BIP
  821. C_RE16
  822. C_RE01
  823. End If
  824. End if
  825. End If
  826. If BtP=4 then 'trig 2X
  827. If BIP=3 then
  828. C_RE24
  829. End If
  830. End If
  831. If BtP=6 then
  832. If BIP=5 then
  833. C_RE24
  834. End If
  835. End If
  836. End If
  837. End If
  838. End If
  839.  
  840. '_________________________________________________
  841.  
  842. If RE(18)=true and RE(20)=false and RE(24)=true then
  843. Add1000
  844. End If
  845.  
  846.  
  847. End Sub
  848.  
  849. '4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
  850.  
  851. Sub Cam4 '--^-----
  852.  
  853. If RE(08)=true and RE(18)=false then 'OH Relay
  854. If RE(04)=true then
  855. If RE(09)=true then
  856. If RE(15)=false and RE(06)=false then
  857. C_RE15
  858. O_RE4
  859. Exit Sub
  860. ElseIf RE(15)=true and RE(06)=false then
  861. O_RE15
  862. O_RE4
  863. End if
  864. End If
  865. End If
  866. End If
  867.  
  868. If RE(18)=true and RE(24)=true then
  869. Decr
  870. End If
  871.  
  872.  
  873. If RE(16)=true and TCount(1)=MUnit then
  874. AddSpecial
  875. End If
  876.  
  877. End Sub
  878.  
  879. '555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
  880.  
  881. Sub Cam5 '---^----
  882.  
  883. If RE(16)=true and RE(09)=true and TCount(2)=MUnit then
  884. AddSpecial
  885. End If
  886.  
  887. End Sub
  888.  
  889. '666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666
  890.  
  891. Sub Cam6 '----^---
  892.  
  893. If RE(01)=false then
  894.  
  895. End If
  896.  
  897. If RE(18)=true and RE(20)=false and RE(24)=true then
  898. Add1000
  899. End If
  900.  
  901. End Sub
  902.  
  903. '7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
  904.  
  905. Sub Cam7 '-----^--
  906.  
  907. If RE(01)=false then 'Game Over = FALSE -------------
  908. If RE(08)=true and RE(18)=false then 'Ball in OH '|
  909. Drain.Kick 60,10
  910. If B2SOn Then
  911. Controller.B2SSetScoreRolloverPlayer1 0
  912. Controller.B2SSetScoreRolloverPlayer2 0
  913. End If
  914. If B2SPlayers = 2 and B2SPlayer = 1 Then
  915. B2SPlayer = 2
  916. If B2SOn Then Controller.B2SSetScoreRolloverPlayer2 3
  917. Else
  918. B2SPlayer = 1
  919. If B2SOn Then Controller.B2SSetScoreRolloverPlayer1 3
  920. End If
  921. PlaySound SoundFXDOF("ServeBall",118,DOFPulse,DOFContactors) 'Kick out Ball '|
  922. SC(1)=false '|
  923. O_RE6
  924. O_RE4 '|
  925. End If '|
  926. '|
  927. End If 'Game Over = FALSE -------------
  928.  
  929. '|
  930. '|
  931. If RE(11)=true then:O_RE11:End If '|
  932.  
  933. If RE(22)=true then
  934. Adv
  935. End If
  936.  
  937. If RE(18)=true and RE(24)=true then
  938. Decr
  939. End If
  940.  
  941. End Sub
  942.  
  943. '888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888
  944.  
  945. Sub Cam8 '------^-
  946.  
  947. If RE(01)=false then 'Game Over = FALSE
  948. '|
  949.  
  950. If RE(21)=true then:O_RE21:End If
  951. If RE(22)=true then:O_RE22:End If '|
  952. If RE(23)=true then:O_RE23:End If
  953.  
  954. If RE(08)=true and RE(20)=true then 'Reset Tilt
  955. O_RE2
  956. End If
  957.  
  958. End If 'Game Over = FALSE
  959.  
  960.  
  961. If RE(03)=true then 'Resetting active
  962. If RCC=true then 'All REELS zero
  963. O_RE3 'Reset RE(03)
  964. PUPReel1.SetValue 1
  965. PUPReel2.SetValue 0
  966. If RE(10)=true then
  967. O_RE10
  968. End If '|
  969. End If '|
  970. End If
  971.  
  972. End Sub
  973.  
  974. '9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  975.  
  976. Sub Cam9 '-^-^-^--
  977. If RE(21)=true then
  978. Add100
  979. End If
  980.  
  981. If RE(23)=true then
  982. Adv
  983. End If
  984.  
  985. End Sub
  986.  
  987. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  988.  
  989. Sub Cam10 '-------^
  990. pwr3=false
  991. GetDiff()
  992.  
  993. If RE(20)=true then O_RE18:End If
  994.  
  995.  
  996. If BIP=1 then
  997. If RE(03)=false then
  998. O_RE01 'GAME ON (Latch)
  999. End If
  1000. End If
  1001.  
  1002.  
  1003. If RE(01)=false then 'Game in progress
  1004.  
  1005. If RE(08)=true then
  1006. If RE(06)=false and SC(1)=false then
  1007. O_RE8
  1008. End If
  1009. End If
  1010.  
  1011. If RE(18)=false and SC(1)=true then
  1012. ResetBalls
  1013. End If
  1014.  
  1015.  
  1016. ElseIf RE(01)=true and RE(03)=false then 'Game over
  1017. O_RE18
  1018. O_RE16
  1019. pwr2=false
  1020. End If
  1021.  
  1022.  
  1023.  
  1024. End Sub
  1025.  
  1026. 'XIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXIXI
  1027.  
  1028. Sub Cam11 '/--^^^^^-/
  1029. pwr3=true
  1030. If RE(03)=true then
  1031. 'CheckZero() 'Check REELS
  1032. End If
  1033.  
  1034. End Sub
  1035.  
  1036. '-------------------------------------------------------------------------------------------
  1037. '-------------------------------------------------------------------------------------------
  1038.  
  1039.  
  1040.  
  1041. '############################################################################################################################
  1042.  
  1043. Sub Adv
  1044. If Bonus < 20 then
  1045. Bonus=Bonus + 1
  1046. BonusLights()
  1047. PlaySound "UnitStepUp"
  1048. End If
  1049. If Bonus=20 then
  1050. PlaySound "UnitStepUp"
  1051. End If
  1052. O_RE20 'Bonus zero false
  1053. End Sub
  1054.  
  1055. Sub Decr
  1056. If Bonus>0 then
  1057. Bonus = Bonus - 1
  1058. BonusLights()
  1059. PlaySound "UnitStepDn"
  1060. If RE(18)=true then 'Ball in OH
  1061. Add1000
  1062. End If
  1063. End If
  1064.  
  1065. If Bonus=0 then
  1066. C_RE20 'Bonus zero true
  1067. End If
  1068.  
  1069. If SC(1)=true then 'Ball in OH
  1070. C_RE8
  1071. End If
  1072. End Sub
  1073.  
  1074.  
  1075. Sub BonusLights()
  1076.  
  1077. L11.IsDropped=true
  1078. L12.IsDropped=true
  1079. L13.IsDropped=true
  1080. L14.IsDropped=true
  1081. L15.IsDropped=true
  1082. L16.IsDropped=true
  1083. L17.IsDropped=true
  1084. L18.IsDropped=true
  1085. L19.IsDropped=true
  1086. L20.IsDropped=true
  1087. L21.IsDropped=true
  1088.  
  1089. Select Case Bonus
  1090.  
  1091. Case 1:L11.IsDropped=false
  1092. Case 2:L12.IsDropped=false
  1093. Case 3:L13.IsDropped=false
  1094. Case 4:L14.IsDropped=false
  1095. Case 5:L15.IsDropped=false
  1096. Case 6:L16.IsDropped=false
  1097. Case 7:L17.IsDropped=false
  1098. Case 8:L18.IsDropped=false
  1099. Case 9:L19.IsDropped=false
  1100. Case 10:L20.IsDropped=false
  1101. Case 11:L11.IsDropped=false:L20.IsDropped=false
  1102. Case 12:L12.IsDropped=false:L20.IsDropped=false
  1103. Case 13:L13.IsDropped=false:L20.IsDropped=false
  1104. Case 14:L14.IsDropped=false:L20.IsDropped=false
  1105. Case 15:L15.IsDropped=false:L20.IsDropped=false
  1106. Case 16:L16.IsDropped=false:L20.IsDropped=false
  1107. Case 17:L17.IsDropped=false:L20.IsDropped=false
  1108. Case 18:L18.IsDropped=false:L20.IsDropped=false
  1109. Case 19:L19.IsDropped=false:L20.IsDropped=false
  1110. Case 20:L21.IsDropped=false
  1111. End Select
  1112. End Sub
  1113.  
  1114. Sub Bumper1_Hit()
  1115. PlaySound SoundFXDOF("Bumper3",107,DOFPulse,DOFContactors)
  1116. DOF 109, DOFPulse
  1117. Add100
  1118. StepMunit
  1119. End Sub
  1120.  
  1121. Sub Bumper2_Hit()
  1122. PlaySound SoundFXDOF("Bumper3",108,DOFPulse,DOFContactors)
  1123. DOF 110, DOFPulse
  1124. Add100
  1125. StepMunit
  1126. End Sub
  1127.  
  1128. Sub LSS_Slingshot()
  1129. Add10sling
  1130. PlaySound SoundFXDOF("LeftSling",103,DOFPulse,DOFContactors)
  1131. DOF 105, DOFPulse
  1132. End Sub
  1133.  
  1134. Sub RSS_Slingshot()
  1135. Add10sling
  1136. PlaySound SoundFXDOF("RightSling",104,DOFPulse,DOFContactors)
  1137. DOF 106, DOFPulse
  1138. End Sub
  1139.  
  1140. Sub rb01_Slingshot()
  1141. Add100
  1142. Adv
  1143. End Sub
  1144.  
  1145. Sub rb02_Slingshot()
  1146. Add10
  1147. End Sub
  1148.  
  1149. Sub rb03_Slingshot()
  1150. Add10
  1151. End Sub
  1152.  
  1153. Sub rb04_Slingshot()
  1154. Add10
  1155. End Sub
  1156.  
  1157. Sub rb05_Slingshot()
  1158. Add10
  1159. End Sub
  1160.  
  1161. Sub rb06_Slingshot()
  1162. Add10
  1163. End Sub
  1164.  
  1165. Sub rb07_Slingshot()
  1166. Add10
  1167. End Sub
  1168.  
  1169. Sub rb08_Slingshot()
  1170. Add10
  1171. End Sub
  1172.  
  1173. Sub rb09_Slingshot()
  1174. Add10
  1175. End Sub
  1176.  
  1177.  
  1178. '**************************************** SCORING ***********************************
  1179.  
  1180. Sub AddB2SScores
  1181. If B2SOn Then
  1182. B2SScore(1) = TKCount(1) * 10000 + KCount(1) * 1000 + HCount(1) * 100 + TCount(1) * 10
  1183. B2SScore(2) = TKCount(2) * 10000 + KCount(2) * 1000 + HCount(2) * 100 + TCount(2) * 10
  1184. If B2SOn Then
  1185. Controller.B2SSetScorePlayer 1, B2SScore(1)
  1186. Controller.B2SSetScorePlayer 2, B2SScore(2)
  1187. End If
  1188. End If
  1189. End Sub
  1190.  
  1191. Sub add10sling
  1192. If RE(02)=false then
  1193. If RE(15)=false then 'PL1
  1194. T1.spinreel 1,1
  1195. TCount(1)=TCount(1) + 1
  1196. ZPos(1)=false
  1197. If TCount(1)=10 then
  1198. TCount(1)=0
  1199. Add100
  1200. ZPos(1)=true
  1201. End If
  1202. ElseIf RE(15)=true then 'PL2
  1203. T2.spinreel 1,1
  1204. TCount(2)=TCount(2) + 1
  1205. ZPos(2)=false
  1206. If TCount(2)=10 then
  1207. TCount(2)=0
  1208. Add100
  1209. ZPos(2)=true
  1210. End If
  1211. End If
  1212. StepMunit
  1213. Alter()
  1214. 'PlaySound "10pts"
  1215. AddB2SScores
  1216. End If
  1217. C_RE4
  1218. End Sub
  1219.  
  1220.  
  1221. Sub add10
  1222. If RE(02)=false then
  1223. If RE(15)=false then 'PL1
  1224. T1.spinreel 1,1
  1225. TCount(1)=TCount(1) + 1
  1226. ZPos(1)=false
  1227. If TCount(1)=10 then
  1228. TCount(1)=0
  1229. Add100
  1230. ZPos(1)=true
  1231. End If
  1232. ElseIf RE(15)=true then 'PL2
  1233. T2.spinreel 1,1
  1234. TCount(2)=TCount(2) + 1
  1235. ZPos(2)=false
  1236. If TCount(2)=10 then
  1237. TCount(2)=0
  1238. Add100
  1239. ZPos(2)=true
  1240. End If
  1241. End If
  1242. StepMunit
  1243. Alter()
  1244. PlaySound SoundFXDOF("10pts",141,DOFPulse,DOFChimes)
  1245. AddB2SScores
  1246. End If
  1247. C_RE4
  1248. End Sub
  1249.  
  1250.  
  1251. Sub add100
  1252. If RE(02)=false then
  1253. If RE(15)=false then 'PL1
  1254. H1.spinreel 1,1
  1255. HCount(1)=HCount(1) + 1
  1256. ZPos(3)=false
  1257. If HCount(1)=10 then
  1258. HCount(1)=0
  1259. Add1000
  1260. ZPos(3)=true
  1261. End If
  1262. ElseIf RE(15)=true then 'PL2
  1263. H2.spinreel 1,1
  1264. HCount(2)=HCount(2) + 1
  1265. ZPos(4)=false
  1266. If HCount(2)=10 then
  1267. HCount(2)=0
  1268. Add1000
  1269. ZPos(4)=true
  1270. End If
  1271. End If
  1272. PlaySound SoundFXDOF("100pts",142,DOFPulse,DOFChimes)
  1273. AddB2SScores
  1274. End If
  1275. C_RE4
  1276. End Sub
  1277.  
  1278.  
  1279. Sub add1000
  1280. If RE(02)=false then
  1281. If RE(15)=false then 'PL1
  1282. K1.spinreel 1,1
  1283. KCount(1)=KCount(1) + 1
  1284. ZPos(5)=false
  1285. If KCount(1)=10 then
  1286. KCount(1)=0
  1287. Add10000
  1288. ZPos(5)=true
  1289. End If
  1290. ElseIf RE(15)=true then 'PL2
  1291. K2.spinreel 1,1
  1292. KCount(2)=KCount(2) + 1
  1293. ZPos(6)=false
  1294. If KCount(2)=10 then
  1295. KCount(2)=0
  1296. Add10000
  1297. ZPos(6)=true
  1298. End If
  1299. End If
  1300. PlaySound SoundFXDOF("1000pts",143,DOFPulse,DOFChimes)
  1301. AddB2SScores
  1302. End If
  1303. C_RE4
  1304. CheckTH()
  1305. End Sub
  1306.  
  1307.  
  1308. Sub add10000
  1309. If RE(15)=false then 'PL1
  1310. TK1.spinreel 1,1
  1311. TKCount(1)=TKCount(1) + 1
  1312. AddB2SScores
  1313. ZPos(7)=false
  1314. ElseIf RE(15)=true then 'PL2
  1315. TK2.spinreel 1,1
  1316. TKCount(2)=TKCount(2) + 1
  1317. AddB2SScores
  1318. ZPos(8)=false
  1319. End If
  1320. End Sub
  1321.  
  1322. Sub CheckTH()
  1323. If RE(15)=false then
  1324.  
  1325. If TKCount(1)=th1a and KCount(1)=th1b then
  1326. AddSpecial
  1327. End If
  1328. If TKCount(1)=th2a and KCount(1)=th2b then
  1329. AddSpecial
  1330. End If
  1331. If TKCount(1)=th3a and KCount(1)=th3b then
  1332. AddSpecial
  1333. End If
  1334. If TKCount(1)=th4a and KCount(1)=th4b then
  1335. AddSpecial
  1336. End If
  1337.  
  1338. ElseIf RE(15)=true then
  1339. If TKCount(2)=th1a and KCount(2)=th1b then
  1340. AddSpecial
  1341. End If
  1342. If TKCount(2)=th2a and KCount(2)=th2b then
  1343. AddSpecial
  1344. End If
  1345. If TKCount(2)=th3a and KCount(2)=th3b then
  1346. AddSpecial
  1347. End If
  1348. If TKCount(2)=th4a and KCount(2)=th4b then
  1349. AddSpecial
  1350. End If
  1351. End If
  1352. End Sub
  1353.  
  1354. Sub AddSpecial
  1355. If GStyle=1 then
  1356. PlaySound SoundFXDOF("Knocker",120,DOFPulse,DOFKnocker)
  1357. DOF 121, DOFPulse
  1358. Credits=Credits + 1
  1359. DOF 122, DOFOn
  1360. CreditREEL.SetValue Credits
  1361. If B2SOn Then Controller.B2SSetCredits Credits
  1362. ElseIf GStyle=2 then
  1363. C_RE6
  1364. End If
  1365. End Sub
  1366.  
  1367. Sub AddCredit()
  1368. PlaySound "StepUpUnit"
  1369. Credits=Credits + 1
  1370. DOF 122, DOFOn
  1371. CreditREEL.SetValue Credits
  1372. If B2SOn Then Controller.B2SSetCredits Credits
  1373. End Sub
  1374.  
  1375. '-------------------------------------------------------------------------------------
  1376.  
  1377. '************************************ ADMINISTRATION ***********************************
  1378.  
  1379. Sub Start()
  1380. If pwr1=true then
  1381. If Credits>0 and RE(03)=false and BIP>1 then
  1382. MatchREEL.SetValue "10"
  1383. PUPReel1.SetValue 0
  1384. PUPReel2.SetValue 0
  1385. If B2SPlayers < 2 Then B2SPlayers = B2SPlayers + 1
  1386. If B2SOn Then
  1387. Controller.B2SSetScorePlayer 1, 0
  1388. Controller.B2SSetScorePlayer 2, 0
  1389. B2SScore(1) = 0: B2SScore(2) = 0
  1390. Controller.B2SSetBallInPlay 1
  1391. Controller.B2SSetScoreRolloverPlayer1 3
  1392. B2SPlayer = 0
  1393. Controller.B2SSetGameOver 0
  1394. Controller.B2SSetMatch 0
  1395. Controller.B2SSetPlayerUp B2SPlayers
  1396. End If
  1397. O_RE9
  1398. PlaySound "UnitStepDn"
  1399. C_RE11
  1400. ElseIf Credits>0 and RE(03)=false and BIP=1 and RE(09)=false then
  1401. C_RE11
  1402. End If
  1403. End If
  1404. End Sub
  1405.  
  1406.  
  1407.  
  1408. Sub DOLPHIN_KeyDown(ByVal keycode)
  1409. If keycode = 6 Then
  1410. PlaySound "CreditUnit"
  1411. Credits=Credits + 1: If Credits = 10 Then Credits = 9
  1412. DOF 122, DOFOn
  1413. CreditREEL.SetValue Credits
  1414. If B2SOn Then Controller.B2SSetCredits Credits
  1415. End If
  1416.  
  1417. If keycode = 2 Then
  1418. Start()
  1419. End If
  1420.  
  1421. If keycode = PlungerKey Then
  1422. Plunger.PullBack
  1423. End If
  1424.  
  1425. If keycode = LeftTiltKey or keycode=29 Then
  1426. Nudged()
  1427. LeftNudge 90, 2.4*CurrentBall.y/TableHeight, 20
  1428. End If
  1429.  
  1430. If keycode = RightTiltKey or keycode=157 Then
  1431. Nudged()
  1432. RightNudge 270, 2.4*CurrentBall.y/TableHeight, 20
  1433. End If
  1434.  
  1435. If keycode = CenterTiltKey Then
  1436. Nudged()
  1437. CenterNudge 0, 1.8, 25
  1438. End If
  1439.  
  1440.  
  1441. If RE(01)=false and RE(02)=false then 'if game in progress
  1442.  
  1443. If keycode = LeftFlipperKey Then
  1444. LeftFlipper.RotateToEnd
  1445. PlaySound SoundFXDOF("FlipperUp",101,DOFOn,DOFFlippers)
  1446. End If
  1447.  
  1448. If keycode = RightFlipperKey Then
  1449. RightFlipper.RotateToEnd
  1450. PlaySound SoundFXDOF("FlipperUp",102,DOFOn,DOFFlippers)
  1451. End If
  1452. End If
  1453.  
  1454. End Sub
  1455.  
  1456. Sub DOLPHIN_KeyUp(ByVal keycode)
  1457.  
  1458. If keycode = PlungerKey Then
  1459. Plunger.Fire
  1460. PlaySound "plunge"
  1461. End If
  1462.  
  1463. If RE(01)=false and RE(02)=false then 'if game in progress
  1464.  
  1465. If keycode = LeftFlipperKey Then
  1466. LeftFlipper.RotateToStart
  1467. PlaySound SoundFXDOF("FlipperDown",101,DOFOff,DOFFlippers)
  1468. End If
  1469.  
  1470. If keycode = RightFlipperKey Then
  1471. RightFlipper.RotateToStart
  1472. PlaySound SoundFXDOF("FlipperDown",102,DOFOff,DOFFlippers)
  1473. End If
  1474.  
  1475. End If
  1476.  
  1477. End Sub
  1478.  
  1479.  
  1480.  
  1481. '************************************ AUX SUBS ******************************
  1482.  
  1483. Sub ResetBalls
  1484. KK1.Kick 180,2
  1485. KK2.Kick 180,2
  1486. KK3.Kick 180,2
  1487. SC(4)=false
  1488. SC(5)=false
  1489. SC(6)=false
  1490. L08.IsDropped=true
  1491. L09.IsDropped=true
  1492. L10.IsDropped=true
  1493. L08off.IsDropped=false
  1494. L09off.IsDropped=false
  1495. L10off.IsDropped=false
  1496. PlaySound SoundFXDOF("Saucer",119,DOFPulse,DOFContactors)
  1497. End Sub
  1498.  
  1499.  
  1500. Sub Alter()
  1501. If alt=false then
  1502. C_RE5
  1503. Exit Sub
  1504. End If
  1505. If alt=true then
  1506. O_RE5
  1507. Exit Sub
  1508. End If
  1509. End Sub
  1510.  
  1511. Sub StepMunit
  1512. MUnit=MUnit-1
  1513. O_RE7:O_RE21
  1514. If MUnit<0 then
  1515. MUnit=9
  1516. End If
  1517.  
  1518. Select Case MUnit
  1519. Case 9:O_RE5
  1520. Case 8:C_RE5
  1521. Case 7:O_RE5
  1522. Case 6:C_RE5
  1523. Case 5:O_RE5
  1524. Case 4:C_RE5
  1525. Case 3:O_RE5
  1526. Case 2:C_RE5
  1527. Case 1:O_RE5
  1528. Case 0:C_RE5
  1529. End Select
  1530.  
  1531. End Sub
  1532.  
  1533.  
  1534.  
  1535.  
  1536. Sub AllLightsOff
  1537. L01.IsDropped=true
  1538. L02.IsDropped=true
  1539. L03.IsDropped=true
  1540. L04.IsDropped=true
  1541. L05.IsDropped=true
  1542. L06.IsDropped=true
  1543. 'L06a.IsDropped=true
  1544. L07.IsDropped=true
  1545. L08.IsDropped=true
  1546. L09.IsDropped=true
  1547. L10.IsDropped=true
  1548. L11.IsDropped=true
  1549. L12.IsDropped=true
  1550. L13.IsDropped=true
  1551. L14.IsDropped=true
  1552. L15.IsDropped=true
  1553. L16.IsDropped=true
  1554. L17.IsDropped=true
  1555. L18.IsDropped=true
  1556. L19.IsDropped=true
  1557. L20.IsDropped=true
  1558. L21.IsDropped=true
  1559. L22.IsDropped=true
  1560. L22a.IsDropped=true
  1561. End Sub
  1562.  
  1563. Sub AllLightsOn
  1564. L01.IsDropped=false
  1565. L02.IsDropped=false
  1566. L03.IsDropped=false
  1567. L04.IsDropped=false
  1568. L05.IsDropped=false
  1569. L06.IsDropped=false
  1570. 'L06a.IsDropped=false
  1571. L07.IsDropped=false
  1572. L08.IsDropped=false
  1573. L09.IsDropped=false
  1574. L10.IsDropped=false
  1575. L11.IsDropped=false
  1576. L12.IsDropped=false
  1577. L13.IsDropped=false
  1578. L14.IsDropped=false
  1579. L15.IsDropped=false
  1580. L16.IsDropped=false
  1581. L17.IsDropped=false
  1582. L18.IsDropped=false
  1583. L19.IsDropped=false
  1584. L20.IsDropped=false
  1585. L21.IsDropped=false
  1586. L22.IsDropped=false
  1587. L22a.IsDropped=false
  1588. End Sub
  1589. Dim Diff
  1590.  
  1591. Sub GetDiff()
  1592. Diff = Int(0 + Rnd *(20-0+1)/10)
  1593. End Sub
  1594.  
  1595.  
  1596. Sub ResetA()
  1597. If TCount(1)<>0 then
  1598. T1.SpinReel 1,1
  1599. PlaySound "Reel2"
  1600. TCount(1)=TCount(1) + 1
  1601. If TCount(1)=10 then
  1602. TCount(1)=0
  1603. End If
  1604. AddB2SScores
  1605. End If
  1606.  
  1607. If HCount(1)<>0 then
  1608. H1.SpinReel 1,1
  1609. PlaySound "Reel4"
  1610. HCount(1)=HCount(1) + 1
  1611. If HCount(1)=10 then
  1612. HCount(1)=0
  1613. End If
  1614. AddB2SScores
  1615. End If
  1616.  
  1617. If KCount(1)<>0 then
  1618. K1.SpinReel 1,1
  1619. PlaySound "Reel1"
  1620. KCount(1)=KCount(1) + 1
  1621. If KCount(1)=10 then
  1622. KCount(1)=0
  1623. End If
  1624. AddB2SScores
  1625. End If
  1626.  
  1627. If TKCount(1)<>0 then
  1628. TK1.SpinReel 1,1
  1629. PlaySound "Reel5"
  1630. TKCount(1)=TKCount(1) + 1
  1631. If TKCount(1)=10 then
  1632. TKCount(1)=0
  1633. End If
  1634. AddB2SScores
  1635. End If
  1636.  
  1637. If TCount(2)<>0 then
  1638. T2.SpinReel 1,1
  1639. PlaySound "Reel1"
  1640. TCount(2)=TCount(2) + 1
  1641. If TCount(2)=10 then
  1642. TCount(2)=0
  1643. End If
  1644. AddB2SScores
  1645. End If
  1646.  
  1647. If HCount(2)<>0 then
  1648. H2.SpinReel 1,1
  1649. PlaySound "Reel3"
  1650. HCount(2)=HCount(2) + 1
  1651. If HCount(2)=10 then
  1652. HCount(2)=0
  1653. End If
  1654. AddB2SScores
  1655. End If
  1656.  
  1657. If KCount(2)<>0 then
  1658. K2.SpinReel 1,1
  1659. PlaySound "Reel4"
  1660. KCount(2)=KCount(2) + 1
  1661. If KCount(2)=10 then
  1662. KCount(2)=0
  1663. End If
  1664. AddB2SScores
  1665. End If
  1666.  
  1667. If TKCount(2)<>0 then
  1668. TK2.SpinReel 1,1
  1669. PlaySound "Reel2"
  1670. TKCount(2)=TKCount(2) + 1
  1671. If TKCount(2)=10 then
  1672. TKCount(2)=0
  1673. End If
  1674. AddB2SScores
  1675. End If
  1676. CheckZero()
  1677. End Sub
  1678.  
  1679. Sub CheckZero()
  1680. If TCount(1)=0 and HCount(1)=0 and KCount(1)=0 and TKCount(1)=0 and TCount(2)=0 and HCount(2)=0 and KCount(2)=0 and TKCount(2)=0 then
  1681. RCC=true
  1682. End If
  1683. End Sub
  1684.  
  1685.  
  1686.  
  1687. Sub SlowBob()
  1688.  
  1689. If SwingFactor > 1 then
  1690. SwingFactor = SwingFactor - SloDoFactor
  1691. End If
  1692. TILT.Enabled = True
  1693. End Sub
  1694.  
  1695. Sub TILT_Timer()
  1696. TILT.Enabled = False
  1697. GetSloDoFactor()
  1698. End Sub
  1699.  
  1700. Sub GetSloDoFactor()
  1701. If SwingFactor <= 1 then
  1702. SloDoFactor = 5
  1703. SwingFactor = 0
  1704. TiltStatus = 0
  1705. TILT.Interval = 250
  1706. End If
  1707. If SwingFactor > 0 then
  1708. If SwingFactor >= 100 then
  1709. TiltStatus = TiltStatus + 1
  1710. SloDoFactor = 8
  1711. SwingFactor = 99
  1712. TILT.Interval = 64
  1713. CheckTilt()
  1714. ElseIf SwingFactor <= 99 and SwingFactor > 50 then
  1715. SloDoFactor = (SloDoFactor * 0.64)
  1716. TILT.Interval = 64
  1717. ElseIf SwingFactor <= 50 and SwingFactor > 25 then
  1718. SloDoFactor = (SloDoFactor * 0.6)
  1719. TILT.Interval = 96
  1720. ElseIf SwingFactor <= 25 and SwingFactor > 12 then
  1721. SloDoFactor = (SloDoFactor * 0.4)
  1722. TILT.Interval = 128
  1723. ElseIf SwingFactor <= 12 and SwingFactor > 8 then
  1724. SloDoFactor = (SloDoFactor * 0.2)
  1725. TiltStatus = 0
  1726. TILT.Interval = 128
  1727. ElseIf SwingFactor <= 8 and SwingFactor > 4 then
  1728. SloDoFactor = (SloDoFactor * 0.1)
  1729. TILT.Interval = 256
  1730. ElseIf SwingFactor <= 4 and SwingFactor > 1 then
  1731. SloDoFactor = 0.1
  1732. TILT.Interval = 24
  1733. End If
  1734. If SloDoFactor <= 1 then
  1735. SloDoFactor = 1 '3.6
  1736. End If
  1737. SlowBob()
  1738. End If
  1739. End Sub
  1740.  
  1741. Sub Nudged()
  1742. SwingFactor = SwingFactor + 32
  1743. SwingFactor = (SwingFactor * 1.2)
  1744. CheckTilt()
  1745. End Sub
  1746.  
  1747. Sub CheckTilt()
  1748. Tilt.Enabled = False
  1749. If TiltStatus >= 4 then
  1750. RE(02)=true
  1751. TILT.Enabled = False 'Reset Timer(!)
  1752. PlaySound "TILT"
  1753. LeftFlipper.RotateToStart
  1754. RightFlipper.RotateToStart
  1755. TiltREEL.SetValue "1"
  1756. If B2SOn Then Controller.B2SSetTilt 4
  1757. End If
  1758. SlowBob()
  1759. End Sub
  1760.  
  1761. 'Captive balls
  1762.  
  1763. Sub cbl_l_Hit()
  1764. bs=Ball1.VelY * -0.3
  1765. CB1.VelY=bs
  1766. CB2.VelY=bs
  1767. CB3.VelY=bs
  1768. End Sub
  1769.  
  1770. Sub cbl_c_Hit()
  1771. bs=Ball1.VelY * -1
  1772. CB1.VelY=CB1.VelY+bs
  1773. End Sub
  1774.  
  1775. Sub cbc_l_Hit()
  1776. bs=Ball1.VelY * -0.3
  1777. CB1.VelY=bs
  1778. CB2.VelY=bs
  1779. CB3.VelY=bs
  1780. End Sub
  1781.  
  1782. Sub cbc_c_Hit()
  1783. bs=Ball1.VelY * -1
  1784. CB2.VelY=CB2.VelY+bs
  1785. End Sub
  1786.  
  1787. Sub cbc_r_Hit()
  1788. bs=Ball1.VelY * -0.3
  1789. CB1.VelY=bs
  1790. CB2.VelY=bs
  1791. CB3.VelY=bs
  1792. End Sub
  1793.  
  1794. Sub cbr_c_Hit()
  1795. bs=Ball1.VelY * -1
  1796. CB3.VelY=CB3.VelY+bs
  1797. End Sub
  1798.  
  1799. Sub cbr_r_Hit()
  1800. bs=Ball1.VelY * -0.3
  1801. CB1.VelY=bs
  1802. CB2.VelY=bs
  1803. CB3.VelY=bs
  1804. End Sub
  1805.  
  1806. Dim LeftNudgeEffect, RightNudgeEffect, NudgeEffect 'Preparing variables for use in the nudge subroutine
  1807.  
  1808. Sub LeftNudge(angle, strength, delay) 'Assigns variables from keycode subroutine
  1809. Nudge angle, (strength * (delay-LeftNudgeEffect) / delay) + RightNudgeEffect / delay 'Executes nudge
  1810. LeftNudgeEffect = delay 'Sets reduced LeftNudge effect if used again prior to end of nudge delay.
  1811. RightNudgeEffect = 0 'Resets Right Nudge instantly as soon as left nudge is executed
  1812. RightNudgeTimer.Enabled = 0 'Resets Right Nudge for swing nudging.
  1813. LeftNudgeTimer.Interval = delay 'Sets Left Nudge Timer to delay assigned in keycode routine.
  1814. LeftNudgeTimer.Enabled = 1 'Enables LeftNudge Timer to impose delay.
  1815. End Sub
  1816.  
  1817. Sub RightNudge(angle, strength, delay) 'Assigns variables from keycode subroutine
  1818. Nudge angle, (strength * (delay-RightNudgeEffect) / delay) + LeftNudgeEffect / delay 'Executes nudge
  1819. RightNudgeEffect = delay 'Sets reduced RightNudge effect if used again prior to end of nudge delay.
  1820. LeftNudgeEffect = 0 'Resets Left Nudge instantly as soon as left nudge is executed
  1821. LeftNudgeTimer.Enabled = 0 'Resets Left Nudge for swing nudging.
  1822. RightNudgeTimer.Interval = delay 'Sets Right Nudge Timer to delay assigned in keycode routine.
  1823. RightNudgeTimer.Enabled = 1 'Enables RightNudge Timer to impose delay.
  1824. End Sub
  1825.  
  1826. Sub CenterNudge(angle, strength, delay) 'Assigns variables from keycode subroutine
  1827. Nudge angle, strength * (delay-NudgeEffect) / delay 'Executes nudge
  1828. NudgeEffect = delay 'Sets reduced CenterNudge effect if used again prior to end of nudge delay.
  1829. NudgeTimer.Interval = delay 'Sets Center Nudge Timer to delay assigned in keycode routine.
  1830. NudgeTimer.Enabled = 1 'Enables CenterNudge Timer to impose delay.
  1831. End Sub
  1832.  
  1833. Sub LeftNudgeTimer_Timer() 'Simulates the time it takes for the table to return to a rest postion after nudge.
  1834. LeftNudgeEffect = LeftNudgeEffect-1
  1835. If LeftNudgeEffect = 0 then LeftNudgeTimer.Enabled = 0
  1836. End Sub
  1837.  
  1838. Sub RightNudgeTimer_Timer() 'Simulates the time it takes for the table to return to a rest postion after nudge.
  1839. RightNudgeEffect = RightNudgeEffect-1
  1840. If RightNudgeEffect = 0 then RightNudgeTimer.Enabled = 0
  1841. End Sub
  1842.  
  1843. Sub NudgeTimer_Timer() 'Simulates the time it takes for the table to return to a rest postion after nudge.
  1844. NudgeEffect = NudgeEffect-1
  1845. If NudgeEffect = 0 then NudgeTimer.Enabled = 0
  1846. End Sub
  1847.  
  1848. Dim CurrentBall
  1849. Sub Drain_UnHit() 'Kicker that releases the ball. Not necessarily
  1850. Set CurrentBall=ActiveBall 'Sets a name to the ball.
  1851. End Sub
Advertisement
Add Comment
Please, Sign In to add comment