Arngrim

band wagon dof

Nov 16th, 2016
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.07 KB | None | 0 0
  1. '*** Band Wagon ***
  2.  
  3. Option Explicit
  4. Randomize
  5.  
  6. On Error Resume Next
  7. ExecuteGlobal GetTextFile("controller.vbs")
  8. If Err Then MsgBox "You need the controller.vbs in order to run this table, available in the vp10 package"
  9. On Error Goto 0
  10.  
  11. Const cGameName = "BandWagon_1965"
  12.  
  13. dim score(4)
  14. dim truesc(4)
  15. dim reel(4)
  16. dim ballrelenabled
  17. dim state
  18. dim credit
  19. dim eg
  20. dim currpl
  21. dim playno
  22. dim plno(4)
  23. dim play(4)
  24. dim rst
  25. dim ballinplay
  26. dim match(10)
  27. dim tilt
  28. dim tiltsens
  29. dim rep(4)
  30. dim plm(4)
  31. dim matchnumb
  32. dim bell
  33. dim points
  34. dim replay1
  35. dim replay2
  36. dim replay3
  37. dim replay4
  38. dim hisc
  39. dim B2SOn
  40. dim scn
  41. dim scn1
  42. dim scn2
  43. dim scn3
  44. dim scn4
  45. dim scn5
  46. dim wv
  47. dim mv 'The motor has 3 additinal steps for the top rollevers light control
  48. dim qs 'Thumper (Bumper Light) Control for automatic difficulty level.
  49. dim i
  50. dim obj
  51.  
  52. ExecuteGlobal GetTextFile("core.vbs")
  53.  
  54. Sub Table1_Init
  55. LoadEM
  56. If ShowDT=false Then
  57. for each obj in DesktopItems
  58. obj.visible=False
  59. Next
  60. end If
  61. scntimer.enabled=False
  62. scntimer1.enabled=False
  63. scntimer2.enabled=False
  64. set play(1)=plno1
  65. set play(2)=plno2
  66. set play(3)=plno3
  67. set play(4)=plno4
  68. set match(0)=m0
  69. set match(1)=m1
  70. set match(2)=m2
  71. set match(3)=m3
  72. set match(4)=m4
  73. set match(5)=m5
  74. set match(6)=m6
  75. set match(7)=m7
  76. set match(8)=m8
  77. set match(9)=m9
  78. set reel(1)=reel1
  79. set reel(2)=reel2
  80. set reel(3)=reel3
  81. set reel(4)=reel4
  82. replay1=1800
  83. replay2=2200
  84. replay3=2600
  85. replay4=3000
  86. loadhs
  87. if hisc="" then hisc=1000
  88. hisctxt.text=hisc
  89.  
  90. if credit="" then
  91. credit=0
  92. DOF 125, DOFOff
  93. Else
  94. DOF 125, DOFOn
  95. End If
  96.  
  97. credittxt.text=credit
  98. if matchnumb="" then matchnumb=int(rnd(1)*9)
  99. select case(matchnumb)
  100. case 0:
  101. m0.text="0"
  102. case 1:
  103. m1.text="1"
  104. case 2:
  105. m2.text="2"
  106. case 3:
  107. m3.text="3"
  108. case 4:
  109. m4.text="4"
  110. case 5:
  111. m5.text="5"
  112. case 6:
  113. m6.text="6"
  114. case 7:
  115. m7.text="7"
  116. case 8:
  117. m8.text="8"
  118. case 9:
  119. m9.text="9"
  120. end select
  121. for i=1 to 4
  122. currpl=i
  123. reel(i).setvalue(score(i))
  124. next
  125. currpl=0
  126. bell=0
  127. pno1.state=1
  128. pno2.state=0
  129. pno3.state=0
  130. pno4.state=0
  131. bumper1.force=11
  132. bumper2.force=11
  133. bumper3.force=11
  134. B2SOn=True
  135. if B2SOn then
  136. Set Controller = CreateObject("B2S.Server")
  137. Controller.B2SName = cGameName
  138. Controller.Run()
  139. If Err Then MsgBox "Can't Load B2S.Server."
  140. end if
  141. If B2SOn Then
  142.  
  143. if matchnumb=0 then
  144. Controller.B2SSetMatch 10
  145. else
  146. Controller.B2SSetMatch matchnumb
  147. end if
  148. Controller.B2SSetScoreRolloverPlayer1 0
  149. Controller.B2SSetScoreRolloverPlayer2 0
  150. Controller.B2SSetScoreRolloverPlayer3 0
  151. Controller.B2SSetScoreRolloverPlayer4 0
  152.  
  153. Controller.B2SSetTilt 1
  154. Controller.B2SSetCredits Credit
  155. Controller.B2SSetGameOver 1
  156. Controller.B2SSetData 81,0
  157. Controller.B2SSetData 82,0
  158. Controller.B2SSetData 83,0
  159. Controller.B2SSetData 84,0
  160. End If
  161. for i=1 to 4
  162. If B2SOn Then
  163. Controller.B2SSetScorePlayer i, score(i)
  164. End If
  165. next
  166. End Sub
  167.  
  168. Sub Table1_KeyDown(ByVal keycode)
  169.  
  170. If keycode = PlungerKey Then
  171. Plunger.PullBack
  172. End If
  173.  
  174. if keycode = 6 then
  175. playsound "coin3"
  176. coindelay.enabled=true
  177. If B2SOn Then
  178. Controller.B2SSetCredits Credit
  179. end if
  180. end if
  181.  
  182. if keycode = 5 then
  183. playsound "coin3"
  184. coindelay1.enabled=true
  185. If B2SOn Then
  186. Controller.B2SSetCredits Credit
  187. end if
  188. end if
  189.  
  190. if keycode = 2 and credit>0 and state=false and playno=0 then
  191. credit=credit-1
  192. If Credit < 1 Then DOF 125, DOFOff
  193. qs=qs-1
  194. if qs<0 then qs=0
  195. credittxt.text=credit
  196. eg=0
  197. playno=1
  198. currpl=1
  199. pno.setvalue(playno)
  200. play(currpl).state=1
  201. playsound "click"
  202. playsound "initialize"
  203. rst=0
  204. ballinplay=1
  205. resettimer.enabled=true
  206. If B2SOn Then
  207. Controller.B2SSetTilt 0
  208. Controller.B2SSetGameOver 0
  209. Controller.B2SSetMatch 0
  210. Controller.B2SSetCredits Credit
  211. ' Controller.B2SSetScore 3,HighScore
  212. Controller.B2SSetCanPlay 1
  213. Controller.B2SSetPlayerUp 1
  214. Controller.B2SSetData 81,1
  215. Controller.B2SSetData 82,0
  216. Controller.B2SSetData 83,0
  217. Controller.B2SSetData 84,0
  218. 'Controller.B2SSetBallInPlay BallInPlay
  219. Controller.B2SSetScoreRolloverPlayer1 0
  220.  
  221. End If
  222. end if
  223.  
  224. if keycode = 2 and credit>0 and state=true and playno>0 and playno<4 and ballinplay<2 then
  225. credit=credit-1
  226. If Credit < 1 Then DOF 125, DOFOff
  227. qs=qs-1
  228. if qs<0 then qs=0
  229. credittxt.text=credit
  230. playno=playno+1
  231. select case(playno)
  232. case 1:
  233. pno1.state=1
  234. case 2:
  235. pno2.state=1
  236. case 3:
  237. pno3.state=1
  238. case 4:
  239. pno4.state=1
  240. end select
  241. pno.setvalue(playno)
  242. playsound "click"
  243. If B2SOn Then
  244. Controller.B2SSetCredits Credit
  245. Controller.B2SSetCanPlay playno
  246. end if
  247. end if
  248.  
  249. if state=true and tilt=false then
  250.  
  251. If keycode = LeftFlipperKey Then
  252. LeftFlipper.RotateToEnd
  253. PlaySound SoundFXDOF("FlipperUp",101,DOFOn,DOFFlippers),0,1,-0.05,0
  254. playsound "buzz", -1 , .60, -1
  255. End If
  256.  
  257. If keycode = RightFlipperKey Then
  258. RightFlipper.RotateToEnd
  259. PlaySound SoundFXDOF("FlipperUp",102,DOFOn,DOFFlippers),0, 1,0.05,0
  260. playsound "buzz1", -1 , .60, 1
  261. End If
  262.  
  263. If keycode = LeftTiltKey Then
  264. Nudge 90, 1
  265. checktilt
  266. End If
  267.  
  268. If keycode = RightTiltKey Then
  269. Nudge 270, 1
  270. checktilt
  271. End If
  272.  
  273. If keycode = CenterTiltKey Then
  274. Nudge 0, 1
  275. checktilt
  276. end If
  277. End if
  278.  
  279. End Sub
  280.  
  281. Sub Table1_KeyUp(ByVal keycode)
  282.  
  283. If keycode = PlungerKey Then
  284. Plunger.Fire
  285. End If
  286.  
  287. If keycode = LeftFlipperKey Then
  288. LeftFlipper.RotateToStart
  289. stopsound "buzz"
  290. if state=true and tilt=false then PlaySound SoundFXDOF("FlipperDown",101,DOFOff,DOFFlippers),0,1,-0.05, 0
  291. End If
  292.  
  293. If keycode = RightFlipperKey Then
  294. RightFlipper.RotateToStart
  295. stopsound "buzz1"
  296. if state=true and tilt=false then PlaySound SoundFXDOF("FlipperDown",102,DOFOff,DOFFlippers),0,1,0.05, 0
  297. End If
  298.  
  299. End Sub
  300.  
  301. sub flippertimer_timer()
  302. LFlip.RotY = LeftFlipper.CurrentAngle+90
  303. RFlip.RotY = RightFlipper.CurrentAngle+90
  304. TopGate.RotY = Flipper1.CurrentAngle+90
  305. BottomGate.RotY = Flipper2.CurrentAngle+90
  306. end sub
  307.  
  308.  
  309. sub newgame
  310. scntimer.enabled=False
  311. scntimer1.enabled=False
  312. scntimer2.enabled=False
  313. state=true
  314. eg=0
  315. for i=0 to 3
  316. score(i)=0
  317. truesc(i)=0
  318. rep(i)=0
  319. next
  320. bip5.text=" "
  321. bip1.text="1"
  322. for i=0 to 9
  323. match(i).text=" "
  324. next
  325. tilttext.text=" "
  326. gamov.text=" "
  327. tilt=false
  328. tiltsens=0
  329. ballinplay=1
  330. wheelcheck
  331. motorcheck
  332. nb.CreateBall
  333. nb.kick 90,6
  334. DOF 124, DOFPulse
  335. If B2SOn then Controller.B2SSetBallInPlay 1
  336. end sub
  337.  
  338. sub resettimer_timer
  339. rst=rst+1
  340. reel1.resettozero
  341. reel2.resettozero
  342. reel3.resettozero
  343. reel4.resettozero
  344. If B2SOn Then
  345. Controller.B2SSetScorePlayer1 0
  346. Controller.B2SSetScorePlayer2 0
  347. Controller.B2SSetScorePlayer3 0
  348. Controller.B2SSetScorePlayer4 0
  349. end if
  350. if rst=14 then
  351. playsound "kickerkick"
  352. end if
  353. if rst=18 then
  354. newgame
  355. resettimer.enabled=false
  356. end if
  357. end sub
  358.  
  359. sub coindelay_timer
  360. playsound "click"
  361. credit=credit+5
  362. DOF 125, DOFOn
  363. credittxt.text=credit
  364. coindelay.enabled=false
  365. If B2SOn Then
  366. Controller.B2SSetCredits Credit
  367. end if
  368. end sub
  369.  
  370. sub coindelay1_timer
  371. playsound "click"
  372. credit=credit+1
  373. DOF 125, DOFOn
  374. credittxt.text=credit
  375. coindelay1.enabled=false
  376. If B2SOn Then
  377. Controller.B2SSetCredits Credit
  378. end if
  379. end sub
  380.  
  381.  
  382. '*****************************
  383. '*** General Points Scoring***
  384. '*****************************
  385.  
  386. sub addscore(points)
  387.  
  388. if tilt=true then
  389. bumper1.force=0
  390. bumper2.force=0
  391. bumper3.force=0
  392. end if
  393.  
  394. if tilt=false then
  395.  
  396. bell=0
  397. scn=0
  398. scn2=0
  399. scn4=0
  400. if points>=0 and points<=49 then scn1=0 : scntimer.enabled=true
  401. if points>=50 and points<=99 then scn3=0 : scntimer1.enabled=true
  402. if points>=100 and points<=999 then scn5=0 : scntimer2.enabled=true
  403.  
  404. if points=1 or points=10 then matchnumb=matchnumb+1
  405. if matchnumb=10 then matchnumb=0
  406.  
  407. if points = 100 then
  408. reel(currpl).addvalue(100)
  409. bell=100
  410. scn5=1
  411. end if
  412.  
  413. if points = 50 then
  414. reel(currpl).addvalue(50)
  415. playsound "motorshort1s"
  416. mv=mv+1
  417. scn3=5
  418. bell=10
  419. wheelcheck
  420. if mv>2 then mv=0
  421. motorcheck
  422. end if
  423.  
  424. if points = 10 then
  425. scn=1
  426. reel(currpl).addvalue(10)
  427. bell=10
  428. scn1=1
  429. wheelcheck
  430. end if
  431.  
  432. if points = 1 then
  433. reel(currpl).addvalue(1)
  434. bell=1
  435. wheelcheck
  436. scn=1
  437. end if
  438.  
  439. score(currpl)=score(currpl)+points
  440. truesc(currpl)=truesc(currpl)+points
  441. If B2SOn Then
  442. Controller.B2SSetScore currpl,score(currpl)
  443. end if
  444. if points>=0 and points<=49 then scn1=0 : scntimer.enabled=true
  445. if points>=50 and points<=99 then scn2=0 : scntimer1.enabled=true
  446. if points>=100 and points<=999 then scn3=0 : scntimer2.enabled=true
  447.  
  448. if score(currpl)>9999 then
  449. score(currpl)=score(currpl)-10000
  450. rep(currpl)=0
  451. end if
  452.  
  453. if score(currpl)=>replay1 and rep(currpl)=0 then
  454. credit=credit+1
  455. DOF 125, DOFOn
  456. qs=qs+2
  457. playsound SoundFXDOF("knocker",126,DOFPulse,DOFKnocker)
  458. DOF 127, DOFPulse
  459. credittxt.text=credit
  460. rep(currpl)=1
  461. playsound "click"
  462. If B2SOn Then
  463. Controller.B2SSetCredits Credit
  464. end if
  465. end if
  466.  
  467. if score(currpl)=>replay2 and rep(currpl)=1 then
  468. credit=credit+1
  469. DOF 125, DOFOn
  470. qs=qs+2
  471. playsound SoundFXDOF("knocker",126,DOFPulse,DOFKnocker)
  472. DOF 127, DOFPulse
  473. credittxt.text=credit
  474. rep(currpl)=2
  475. playsound "click"
  476. If B2SOn Then
  477. Controller.B2SSetCredits Credit
  478. end if
  479. end if
  480.  
  481. if score(currpl)=>replay3 and rep(currpl)=2 then
  482. credit=credit+1
  483. DOF 125, DOFOn
  484. qs=qs+2
  485. playsound SoundFXDOF("knocker",126,DOFPulse,DOFKnocker)
  486. DOF 127, DOFPulse
  487. credittxt.text=credit
  488. rep(currpl)=3
  489. playsound "click"
  490. If B2SOn Then
  491. Controller.B2SSetCredits Credit
  492. end if
  493. end if
  494.  
  495. if score(currpl)=>replay4 and rep(currpl)=3 then
  496. credit=credit+1
  497. DOF 125, DOFOn
  498. qs=qs+2
  499. playsound SoundFXDOF("knocker",126,DOFPulse,DOFKnocker)
  500. DOF 127, DOFPulse
  501. credittxt.text=credit
  502. rep(currpl)=4
  503. playsound "click"
  504. If B2SOn Then
  505. Controller.B2SSetCredits Credit
  506. end if
  507. end if
  508. end if
  509. end sub
  510.  
  511.  
  512. sub scntimer_timer
  513. scn1=scn1 + 1
  514. if bell=1 then playsound SoundFXDOF("bell1",141,DOFPulse,DOFChimes),0, 0.15, 0, 0
  515. if bell=10 then playsound SoundFXDOF("bell10",142,DOFPulse,DOFChimes),0, 0.3, 0, 0
  516. if bell=100 then playsound SoundFXDOF("bell100",143,DOFPulse,DOFChimes),0, 0.45, 0, 0
  517. if scn1=>scn then scntimer.enabled=false
  518. wv=wv+1
  519. if wv>9 then wv=0
  520. wheelcheck
  521. end sub
  522.  
  523. sub scntimer1_timer
  524. scn2=scn2 + 1
  525. if bell=10 then playsound SoundFXDOF("bell10",142,DOFPulse,DOFChimes),0, 0.3, 0, 0
  526. if scn2=>scn3 then scntimer1.enabled=false
  527. wv=wv+1
  528. if wv>9 then wv=0
  529. wheelcheck
  530. end sub
  531.  
  532. sub scntimer2_timer
  533. scn4=scn4 + 1
  534. if bell=100 then playsound SoundFXDOF("bell100",142,DOFPulse,DOFChimes),0, 0.45, 0, 0
  535. if scn5=>scn4 then scntimer2.enabled=false
  536. end sub
  537.  
  538.  
  539. sub matchnum
  540. match(matchnumb).text=matchnumb
  541. for i=0 to playno
  542. if matchnumb=(score(i) mod 10) then
  543. credit=credit+1
  544. DOF 125, DOFOn
  545. qs=qs+2
  546. playsound SoundFXDOF("knocker",126,DOFPulse,DOFKnocker)
  547. DOF 127, DOFPulse
  548. credittxt.text= credit
  549. playsound "click"
  550. If B2SOn Then
  551. Controller.B2SSetCredits Credit
  552. end if
  553. end if
  554. next
  555. end sub
  556.  
  557. Sub CheckTilt
  558. If Tilttimer.Enabled = True Then
  559. TiltSens = TiltSens + 1
  560. if TiltSens = 2 Then
  561. Tilt = True
  562. tilttext.text="TILT"
  563. If B2SOn Then Controller.B2SSetTilt 1
  564. tiltsens = 0
  565. playsound "tilt"
  566. turnoff
  567. End If
  568. Else
  569. TiltSens = 0
  570. Tilttimer.Enabled = True
  571. End If
  572. End Sub
  573.  
  574. Sub Tilttimer_Timer()
  575. Tilttimer.Enabled = False
  576. End Sub
  577.  
  578. sub turnoff
  579. tiltseq.play seqalloff
  580. for i=0 to 10
  581. next
  582. end sub
  583.  
  584. Sub Drain_Hit()
  585. DOF 123, DOFPulse
  586. playsound "drainshorter"
  587. MushRoomLight1.state=1
  588. MushRoomLight2.state=1
  589. MushRoomLight3.state=1
  590. MushRoomLight4.state=0
  591. MushRoomLight5.state=0
  592. WagonLight1.state=0
  593. WagonLight2.state=0
  594. WagonLight3.state=0
  595. WagonLight4.state=0
  596. WagonLight5.state=0
  597. TopGateLight.state=0
  598. BottomGateLight.state=0
  599. SpecialLight.state=0
  600. Light3.state=0
  601. Drain.DestroyBall
  602. nextball
  603. End Sub
  604.  
  605. sub nextball
  606. if tilt=true then
  607. tilt=false
  608. bumper1.force=11
  609. bumper2.force=11
  610. bumper3.force=11
  611. tilttext.text=" "
  612. If B2SOn Then Controller.B2SSetTilt 0
  613. tiltseq.stopplay
  614. bipreel.setvalue(1)
  615. pno.setvalue(playno)
  616. end if
  617. ballreltimer.enabled=true
  618. scntimer.enabled=False
  619. scntimer1.enabled=False
  620. scntimer2.enabled=False
  621. currpl=currpl+1
  622. If B2SOn Then
  623. Controller.B2SSetData 81,0
  624. Controller.B2SSetData 82,0
  625. Controller.B2SSetData 83,0
  626. Controller.B2SSetData 84,0
  627. Controller.B2SSetData (80+currpl),1
  628. end If
  629. if currpl>playno then
  630. ballinplay=ballinplay+1
  631. if ballinplay>5 then
  632. playsound "motorleer"
  633. If B2SOn then Controller.B2SSetBallInPlay 0
  634. eg=1
  635. ballreltimer.enabled=true
  636. else
  637. if state=true and tilt=false then
  638. play(currpl-1).state=0
  639. currpl=1
  640. play(currpl).state=1
  641. If B2SOn Then
  642. Controller.B2SSetData 81,0
  643. Controller.B2SSetData 82,0
  644. Controller.B2SSetData 83,0
  645. Controller.B2SSetData 84,0
  646. Controller.B2SSetData (80+currpl),1
  647. end If
  648. playsound "kickerkick"
  649. ballreltimer.enabled=true
  650. end if
  651. If B2SOn then Controller.B2SSetBallInPlay ballinplay
  652. select case (ballinplay)
  653. case 1:
  654. bip1.text="1"
  655. case 2:
  656. bip1.text=" "
  657. bip2.text="2"
  658. case 3:
  659. bip2.text=" "
  660. bip3.text="3"
  661. case 4:
  662. bip3.text=" "
  663. bip4.text="4"
  664. case 5:
  665. bip4.text=" "
  666. bip5.text="5"
  667. end select
  668. end if
  669. end if
  670. if currpl>1 and currpl<(playno+1) then
  671. if state=true and tilt=false then
  672. play(currpl-1).state=0
  673. play(currpl).state=1
  674. If B2SOn Then
  675. Controller.B2SSetData 81,0
  676. Controller.B2SSetData 82,0
  677. Controller.B2SSetData 83,0
  678. Controller.B2SSetData 84,0
  679. Controller.B2SSetData (80+currpl),1
  680. end If
  681. playsound "kickerkick"
  682. ballreltimer.enabled=true
  683. end if
  684. end if
  685. end Sub
  686.  
  687. sub ballreltimer_timer
  688. if eg=1 then
  689. matchnum
  690. bip3.text=" "
  691. bip5.text=" "
  692. bipreel.setvalue(0)
  693. state=false
  694. for i=1 to 4
  695. if truesc(i)>hisc then
  696. hisc=truesc(i)
  697. hisctxt.text=hisc
  698. end if
  699. next
  700. pno.setvalue(0)
  701. play(currpl-1).state=0
  702. playno=0
  703. gamov.text="GAME OVER"
  704. If B2SOn Then
  705. Controller.B2SSetGameOver 1
  706. end if
  707. savehs
  708. ballreltimer.enabled=false
  709. else
  710. nb.CreateBall
  711. nb.kick 90,6
  712. DOF 124, DOFPulse
  713. ballreltimer.enabled=false
  714. end if
  715. end sub
  716.  
  717. sub matchnum
  718. select case(matchnumb)
  719. case 0:
  720. m0.text="0"
  721. case 1:
  722. m1.text="1"
  723. case 2:
  724. m2.text="2"
  725. case 3:
  726. m3.text="3"
  727. case 4:
  728. m4.text="4"
  729. case 5:
  730. m5.text="5"
  731. case 6:
  732. m6.text="6"
  733. case 7:
  734. m7.text="7"
  735. case 8:
  736. m8.text="8"
  737. case 9:
  738. m9.text="9"
  739. end select
  740. If B2SOn Then
  741.  
  742. if matchnumb=0 then
  743. Controller.B2SSetMatch 10
  744. else
  745. Controller.B2SSetMatch matchnumb
  746. end if
  747. end if
  748. for i=1 to playno
  749. if (matchnumb*10)=(score(i) mod 10) then
  750. credit=credit+1
  751. DOF 125, DOFOn
  752. qs=qs+2
  753. playsound SoundFXDOF("knocker",126,DOFPulse,DOFKnocker)
  754. DOF 127, DOFPulse
  755. credittxt.text= credit
  756. playsound "click"
  757. If B2SOn Then
  758. Controller.B2SSetCredits Credit
  759. end if
  760. end if
  761. next
  762. end sub
  763.  
  764.  
  765.  
  766. '**********Sling Shot Animations
  767. ' Rstep and Lstep are the variables that increment the animation
  768. '****************
  769. Dim RStep, Lstep
  770.  
  771. Sub RightSlingShot_Slingshot
  772. If RightSlingLight.state=1 then addscore 10 else addscore 1
  773. PlaySound SoundFXDOF("right_slingshot",105,DOFPulse,DOFContactors), 0, 1, 0.05, 0.05
  774. DOF 106, DOFPulse
  775. RSling.Visible = 0
  776. RSling1.Visible = 1
  777. sling1.TransZ = -20
  778. RStep = 0
  779. RightSlingShot.TimerEnabled = 1
  780. End Sub
  781.  
  782. Sub RightSlingShot_Timer
  783. Select Case RStep
  784. Case 3:RSLing1.Visible = 0:RSLing2.Visible = 1:sling1.TransZ = -10
  785. Case 4:RSLing2.Visible = 0:RSLing.Visible = 1:sling1.TransZ = 0:RightSlingShot.TimerEnabled = 0
  786. End Select
  787. RStep = RStep + 1
  788. End Sub
  789.  
  790. Sub LeftSlingShot_Slingshot
  791. If LeftSlingLight.state=1 then addscore 10 else addscore 1
  792. PlaySound SoundFXDOF("left_slingshot",103,DOFPulse,DOFContactors),0,1,-0.05,0.05
  793. DOF 104, DOFPulse
  794. LSling.Visible = 0
  795. LSling1.Visible = 1
  796. sling2.TransZ = -20
  797. LStep = 0
  798. LeftSlingShot.TimerEnabled = 1
  799. End Sub
  800.  
  801. Sub LeftSlingShot_Timer
  802. Select Case LStep
  803. Case 3:LSLing1.Visible = 0:LSLing2.Visible = 1:sling2.TransZ = -10
  804. Case 4:LSLing2.Visible = 0:LSLing.Visible = 1:sling2.TransZ = 0:LeftSlingShot.TimerEnabled = 0
  805. End Select
  806. LStep = LStep + 1
  807. End Sub
  808.  
  809. Sub LeftSlingShot1_Slingshot
  810. addscore 1
  811. PlaySound SoundFXDOF("left_slingshot",103,DOFPulse,DOFContactors),0,1,-0.05,0.05
  812. DOF 104, DOFPulse
  813. LSling3.Visible = 0
  814. LSling4.Visible = 1
  815. sling3.TransZ = -20
  816. LStep = 0
  817. LeftSlingShot1.TimerEnabled = 1
  818. End Sub
  819.  
  820. Sub LeftSlingShot1_Timer
  821. Select Case LStep
  822. Case 3:LSLing4.Visible = 0:LSLing5.Visible = 1:sling3.TransZ = -10
  823. Case 4:LSLing5.Visible = 0:LSLing3.Visible = 1:sling3.TransZ = 0:LeftSlingShot1.TimerEnabled = 0
  824. End Select
  825. LStep = LStep + 1
  826. End Sub
  827.  
  828.  
  829. ' *********************************************************************
  830. ' Supporting Ball & Sound Functions
  831. ' *********************************************************************
  832.  
  833. Function Vol(ball) ' Calculates the Volume of the sound based on the ball speed
  834. Vol = Csng(BallVel(ball) ^2 / 2000)
  835. End Function
  836.  
  837. Function Pan(ball) ' Calculates the pan for a ball based on the X position on the table. "table1" is the name of the table
  838. Dim tmp
  839. tmp = ball.x * 2 / table1.width-1
  840. If tmp > 0 Then
  841. Pan = Csng(tmp ^10)
  842. Else
  843. Pan = Csng(-((- tmp) ^10) )
  844. End If
  845. End Function
  846.  
  847. Function Pitch(ball) ' Calculates the pitch of the sound based on the ball speed
  848. Pitch = BallVel(ball) * 20
  849. End Function
  850.  
  851. Function BallVel(ball) 'Calculates the ball speed
  852. BallVel = INT(SQR((ball.VelX ^2) + (ball.VelY ^2) ) )
  853. End Function
  854.  
  855. '*****************************************
  856. ' JP's VP10 Rolling Sounds
  857. '*****************************************
  858.  
  859. Const tnob = 10 ' total number of balls
  860. ReDim rolling(tnob)
  861. InitRolling
  862.  
  863. Sub InitRolling
  864. Dim i
  865. For i = 0 to tnob
  866. rolling(i) = False
  867. Next
  868. End Sub
  869.  
  870. Sub RollingTimer_Timer()
  871. Dim BOT, b
  872. BOT = GetBalls
  873.  
  874. ' stop the sound of deleted balls
  875. For b = UBound(BOT) + 1 to tnob
  876. rolling(b) = False
  877. StopSound("fx_ballrolling" & b)
  878. Next
  879.  
  880. ' exit the sub if no balls on the table
  881. If UBound(BOT) = -1 Then Exit Sub
  882.  
  883. ' play the rolling sound for each ball
  884. For b = 0 to UBound(BOT)
  885. If BallVel(BOT(b) ) > 1 AND BOT(b).z < 30 Then
  886. rolling(b) = True
  887. PlaySound("fx_ballrolling" & b), -1, Vol(BOT(b)), Pan(BOT(b) ), 0, Pitch(BOT(b) ), 1, 0
  888. Else
  889. If rolling(b) = True Then
  890. StopSound("fx_ballrolling" & b)
  891. rolling(b) = False
  892. End If
  893. End If
  894. Next
  895. End Sub
  896.  
  897. '**********************
  898. ' Ball Collision Sound
  899. '**********************
  900.  
  901. Sub OnBallBallCollision(ball1, ball2, velocity)
  902. PlaySound("fx_collide"), 0, Csng(velocity) ^2 / 2000, Pan(ball1), 0, Pitch(ball1), 0, 0
  903. End Sub
  904.  
  905.  
  906.  
  907. '************************************
  908. ' What you need to add to your table
  909. '************************************
  910.  
  911. ' a timer called RollingTimer. With a fast interval, like 10
  912. ' one collision sound, in this script is called fx_collide
  913. ' as many sound files as max number of balls, with names ending with 0, 1, 2, 3, etc
  914. ' for ex. as used in this script: fx_ballrolling0, fx_ballrolling1, fx_ballrolling2, fx_ballrolling3, etc
  915.  
  916.  
  917. '******************************************
  918. ' Explanation of the rolling sound routine
  919. '******************************************
  920.  
  921. ' sounds are played based on the ball speed and position
  922.  
  923. ' the routine checks first for deleted balls and stops the rolling sound.
  924.  
  925. ' The For loop goes through all the balls on the table and checks for the ball speed and
  926. ' if the ball is on the table (height lower than 30) then then it plays the sound
  927. ' otherwise the sound is stopped, like when the ball has stopped or is on a ramp or flying.
  928.  
  929. ' The sound is played using the VOL, PAN and PITCH functions, so the volume and pitch of the sound
  930. ' will change according to the ball speed, and the PAN function will change the stereo position according
  931. ' to the position of the ball on the table.
  932.  
  933.  
  934. '**************************************
  935. ' Explanation of the collision routine
  936. '**************************************
  937.  
  938. ' The collision is built in VP.
  939. ' You only need to add a Sub OnBallBallCollision(ball1, ball2, velocity) and when two balls collide they
  940. ' 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
  941. ' depending of the speed of the collision.
  942.  
  943. Sub a_Pins_Hit (idx)
  944. PlaySound "pinhit_low", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 0, 0
  945. End Sub
  946.  
  947. Sub a_Targets_Hit (idx)
  948. PlaySound "target", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 0, 0
  949. End Sub
  950.  
  951. Sub a_Metals_Thin_Hit (idx)
  952. PlaySound "metalhit_thin", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  953. End Sub
  954.  
  955. Sub a_Metals_Medium_Hit (idx)
  956. PlaySound "metalhit_medium", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  957. End Sub
  958.  
  959. Sub a_Metals2_Hit (idx)
  960. PlaySound "metalhit2", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  961. End Sub
  962.  
  963. Sub a_Gates_Hit (idx)
  964. PlaySound "gate4", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  965. End Sub
  966.  
  967. Sub a_Spinner_Spin
  968. PlaySound "fx_spinner",0,.25,0,0.25
  969. End Sub
  970.  
  971. Sub a_Rubbers_Hit(idx)
  972. dim finalspeed
  973. finalspeed=SQR(activeball.velx * activeball.velx + activeball.vely * activeball.vely)
  974. If finalspeed > 20 then
  975. PlaySound "fx_rubber2", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  976. End if
  977. If finalspeed >= 6 AND finalspeed <= 20 then
  978. RandomSoundRubber()
  979. End If
  980. End Sub
  981.  
  982. Sub RubberWheel_hit
  983. dim finalspeed
  984. finalspeed=SQR(activeball.velx * activeball.velx + activeball.vely * activeball.vely)
  985. If finalspeed > 20 then
  986. PlaySound "fx_rubber2", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  987. End if
  988. If finalspeed >= 6 AND finalspeed <= 20 then
  989. RandomSoundRubber()
  990. End If
  991. End sub
  992.  
  993. Sub a_Posts_Hit(idx)
  994. dim finalspeed
  995. finalspeed=SQR(activeball.velx * activeball.velx + activeball.vely * activeball.vely)
  996. If finalspeed > 16 then
  997. PlaySound "fx_rubber2", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  998. End if
  999. If finalspeed >= 6 AND finalspeed <= 16 then
  1000. RandomSoundRubber()
  1001. End If
  1002. End Sub
  1003.  
  1004. Sub RandomSoundRubber()
  1005. Select Case Int(Rnd*3)+1
  1006. Case 1 : PlaySound "rubber_hit_1", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  1007. Case 2 : PlaySound "rubber_hit_2", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  1008. Case 3 : PlaySound "rubber_hit_3", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  1009. End Select
  1010. End Sub
  1011.  
  1012. Sub LeftFlipper_Collide(parm)
  1013. RandomSoundFlipper()
  1014. End Sub
  1015.  
  1016. Sub RightFlipper_Collide(parm)
  1017. RandomSoundFlipper()
  1018. End Sub
  1019.  
  1020. Sub RandomSoundFlipper()
  1021. Select Case Int(Rnd*3)+1
  1022. Case 1 : PlaySound "flip_hit_1", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  1023. Case 2 : PlaySound "flip_hit_2", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  1024. Case 3 : PlaySound "flip_hit_3", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  1025. End Select
  1026. End Sub
  1027.  
  1028.  
  1029. '*** High Score to date handling ***
  1030.  
  1031. sub savehs
  1032. ' Based on Black's Highscore routines
  1033. Dim FileObj
  1034. Dim ScoreFile
  1035. Set FileObj=CreateObject("Scripting.FileSystemObject")
  1036. If Not FileObj.FolderExists(UserDirectory) then
  1037. Exit Sub
  1038. End if
  1039. Set ScoreFile=FileObj.CreateTextFile(UserDirectory & "Band_Wagon.txt",True)
  1040. scorefile.writeline credit
  1041. ScoreFile.WriteLine score(0)
  1042. ScoreFile.WriteLine score(1)
  1043. ScoreFile.WriteLine score(2)
  1044. ScoreFile.WriteLine score(3)
  1045. scorefile.writeline hisc
  1046. Scorefile.writeline matchnumb
  1047. scorefile.writeline wv
  1048. scorefile.writeline mv
  1049. scorefile.writeline qs
  1050. ScoreFile.Close
  1051. Set ScoreFile=Nothing
  1052. Set FileObj=Nothing
  1053. end sub
  1054.  
  1055.  
  1056. sub loadhs
  1057. ' Based on Black's Highscore routines
  1058. Dim FileObj
  1059. Dim ScoreFile
  1060. dim TextStr
  1061. dim temp1
  1062. dim temp2
  1063. dim temp3
  1064. dim temp4
  1065. dim temp5
  1066. dim temp6
  1067. dim temp7
  1068. dim temp8
  1069. dim temp9
  1070. dim temp10
  1071. Set FileObj=CreateObject("Scripting.FileSystemObject")
  1072. If Not FileObj.FolderExists(UserDirectory) then
  1073. Exit Sub
  1074. End if
  1075. If Not FileObj.FileExists(UserDirectory & "Band_Wagon.txt") then
  1076. Exit Sub
  1077. End if
  1078. Set ScoreFile=FileObj.GetFile(UserDirectory & "Band_Wagon.txt")
  1079. Set TextStr=ScoreFile.OpenAsTextStream(1,0)
  1080. If (TextStr.AtEndOfStream=True) then
  1081. Exit Sub
  1082. End if
  1083. temp1=TextStr.ReadLine
  1084. temp2=textstr.readline
  1085. temp3=textstr.readline
  1086. temp4=Textstr.ReadLine
  1087. temp5=Textstr.ReadLine
  1088. temp6=Textstr.ReadLine
  1089. temp7=Textstr.ReadLine
  1090. temp8=Textstr.ReadLine
  1091. temp9=Textstr.ReadLine
  1092. temp10=Textstr.ReadLine
  1093. TextStr.Close
  1094. Credit = CDbl(temp1)
  1095. score(0) = CDbl(temp2)
  1096. score(1) = CDbl(temp3)
  1097. score(2) = CDbl(temp4)
  1098. score(3) = CDbl(temp5)
  1099. hisc = CDbl(temp6)
  1100. matchnumb = CDbl(temp7)
  1101. wv = CDbl(temp8)
  1102. mv = CDbl(temp9)
  1103. qs = CDbl(temp10)
  1104. Set ScoreFile=Nothing
  1105. Set FileObj=Nothing
  1106. end sub
  1107.  
  1108. '*** Table specifiek points scoring and rules ***
  1109.  
  1110. sub bumper1_hit
  1111. if tilt=false then playsound SoundFXDOF("Bumper",107,DOFPulse,DOFContactors)
  1112. DOF 108, DOFPulse
  1113. if BumperLight1.state=1 then addscore 10 else addscore 1
  1114. end sub
  1115.  
  1116. sub bumper2_hit
  1117. if tilt=false then playsound SoundFXDOF("Bumper",109,DOFPulse,DOFContactors)
  1118. DOF 110, DOFPulse
  1119. if BumperLight2.state=1 then addscore 10 else addscore 1
  1120. end sub
  1121.  
  1122. sub bumper3_hit
  1123. if tilt=false then playsound SoundFXDOF("Bumper",111,DOFPulse,DOFContactors)
  1124. DOF 112, DOFPulse
  1125. if BumperLight3.state=1 then addscore 10 else addscore 1
  1126. end sub
  1127.  
  1128. Sub Switch1_hit
  1129. DOF 118, DOFPulse
  1130. If Light1.state=1 then addscore 100 else Addscore 10
  1131. End Sub
  1132.  
  1133. Sub Switch2_hit
  1134. DOF 119, DOFPulse
  1135. If Light2.state=1 then addscore 100 else Addscore 10
  1136. End Sub
  1137.  
  1138. Sub Switch3_hit
  1139. DOF 120, DOFPulse
  1140. addscore 10
  1141. End Sub
  1142.  
  1143. Sub MushRoom1_Hit()
  1144. DOF 113, DOFPulse
  1145. If MushRoomLight1.state=1 then addscore 50 else addscore 10
  1146. WagonLight1.state=1
  1147. MushRoomLight1.state=0
  1148. If WagonLight1.state=1 and WagonLight2.state=1 and WagonLight3.state=1 then
  1149. Flipper2.RotateToEnd
  1150. BottomGateLight.state=1
  1151. MushRoomLight4.state=1
  1152. If WagonLight1.state=1 and WagonLight2.state=1 and WagonLight3.state=1 and WagonLight4.state=1 and WagonLight5.state=1 then MushroomLight4.State=0
  1153. end if
  1154. End Sub
  1155.  
  1156. Sub MushRoom2_Hit()
  1157. DOF 114, DOFPulse
  1158. If MushRoomLight2.state=1 then addscore 50 else addscore 10
  1159. WagonLight2.state=1
  1160. MushRoomLight2.state=0
  1161. If WagonLight1.state=1 and WagonLight2.state=1 and WagonLight3.state=1 then
  1162. Flipper2.RotateToEnd
  1163. BottomGateLight.state=1
  1164. MushRoomLight4.state=1
  1165. If WagonLight1.state=1 and WagonLight2.state=1 and WagonLight3.state=1 and WagonLight4.state=1 and WagonLight5.state=1 then MushroomLight4.State=0
  1166. end if
  1167. End Sub
  1168.  
  1169. Sub MushRoom3_Hit()
  1170. DOF 115, DOFPulse
  1171. If MushRoomLight3.state=1 then addscore 50 else addscore 10
  1172. WagonLight3.state=1
  1173. MushRoomLight3.state=0
  1174. If WagonLight1.state=1 and WagonLight2.state=1 and WagonLight3.state=1 then
  1175. Flipper2.RotateToEnd
  1176. BottomGateLight.state=1
  1177. MushRoomLight4.state=1
  1178. If WagonLight1.state=1 and WagonLight2.state=1 and WagonLight3.state=1 and WagonLight4.state=1 and WagonLight5.state=1 then MushroomLight4.State=0
  1179. end if
  1180. End Sub
  1181.  
  1182. Sub MushRoom4_Hit()
  1183. DOF 116, DOFPulse
  1184. If MushRoomLight4.state=1 then addscore 50 else addscore 10
  1185. If MushRoomLight4.state=1 then WagonLight4.state=1
  1186. If MushRoomLight4.state=1 then TopGateLight.state=1
  1187. If MushRoomLight4.state=1 then MushRoomLight5.state=1
  1188. If MushRoomLight4.state=1 then Flipper1.RotateToEnd
  1189. If MushRoomLight4.state=1 then MushRoomLight4.state=0
  1190. End Sub
  1191.  
  1192. Sub MushRoom5_Hit()
  1193. DOF 117, DOFPulse
  1194. If Light3.state=1 then addscore 50 else addscore 10
  1195. If MushRoomLight5.state=1 then SpecialLight.state=1
  1196. If MushRoomLight5.state=1 then WagonLight5.state=1
  1197. If MushRoomLight5.state=1 then MushRoomLight5.state=0
  1198. If MushRoomLight5.state=1 then MushRoomLight4.state=0
  1199. end Sub
  1200.  
  1201.  
  1202. Sub Button1_Hit()
  1203. Light3.state=1
  1204. addscore 1
  1205. End Sub
  1206.  
  1207. Sub Button2_Hit()
  1208. Light3.state=1
  1209. addscore 1
  1210. End Sub
  1211.  
  1212. Sub Button1_Hit()
  1213. Light3.state=1
  1214. addscore 1
  1215. End Sub
  1216.  
  1217.  
  1218. Sub TopGateSwitch_Hit()
  1219. DOF 117, DOFPulse
  1220. If TopGateLight.state=1 then Playsound "motorleer"
  1221. If TopGateLight.state=0 and scntimer1.enabled=true then addscore 50
  1222. If TopGateLight.state=1 then addscore 100 else addscore 10
  1223. End Sub
  1224.  
  1225. Sub BottomGateSwitch_Hit()
  1226. DOF 122, DOFPulse
  1227. If BottomGateLight.state=1 then Playsound "motorleer"
  1228. If BottomGateLight.state=1 then addscore 100 else addscore 50
  1229. End Sub
  1230.  
  1231. Sub SpecialSwitch_Hit()
  1232. DOF 121, DOFPulse
  1233. If SpecialLight.state=1 then credit=credit+1:DOF 125, DOFOn: else addscore 50
  1234. If SpecialLight.state=1 then
  1235. playsound SoundFXDOF("knocker",126,DOFPulse,DOFKnocker)
  1236. DOF 127, DOFPulse
  1237. End If
  1238. If SpecialLight.state=1 then qs=qs+2
  1239. End Sub
  1240.  
  1241.  
  1242. Sub BallHomeSwitch_Hit()
  1243. MushRoomLight1.state=1
  1244. MushRoomLight2.state=1
  1245. MushRoomLight3.state=1
  1246. MushRoomLight4.state=0
  1247. MushRoomLight5.state=0
  1248. WagonLight1.state=0
  1249. WagonLight2.state=0
  1250. WagonLight3.state=0
  1251. WagonLight4.state=0
  1252. WagonLight5.state=0
  1253. TopGateLight.state=0
  1254. BottomGateLight.state=0
  1255. SpecialLight.state=0
  1256. Light3.state=0
  1257. Flipper1.RotateToStart
  1258. Flipper2.RotateToStart
  1259. ballrelenabled=1
  1260. End Sub
  1261.  
  1262. sub ballrelease_hit
  1263. DOF 128, DOFPulse
  1264. if ballrelenabled=1 then playsound "launchball": ballrelenabled=0: end if
  1265. end sub
  1266.  
  1267. sub wheelcheck
  1268. If wv=0 or wv=1 then
  1269. BumperLight1.state=1
  1270. LeftSlingLight.state=1
  1271. BumperLight2.state=0
  1272. BumperLight3.state=0
  1273. RightSlingLight.state=0
  1274. quickstep
  1275. End If
  1276.  
  1277. If wv=2 or wv=3 then
  1278. BumperLight1.state=1
  1279. LeftSlingLight.state=1
  1280. BumperLight2.state=1
  1281. BumperLight3.state=0
  1282. RightSlingLight.state=0
  1283. quickstep
  1284. End If
  1285.  
  1286. If wv=4 or wv=5 then
  1287. BumperLight1.state=1
  1288. LeftSlingLight.state=1
  1289. BumperLight2.state=1
  1290. BumperLight3.state=1
  1291. RightSlingLight.state=1
  1292. quickstep
  1293. End If
  1294.  
  1295. If wv=6 or wv=7 then
  1296. BumperLight1.state=0
  1297. LeftSlingLight.state=0
  1298. BumperLight2.state=1
  1299. BumperLight3.state=1
  1300. RightSlingLight.state=1
  1301. quickstep
  1302. End If
  1303.  
  1304. If wv=8 or wv=9 then
  1305. BumperLight1.state=0
  1306. LeftSlingLight.state=0
  1307. BumperLight2.state=0
  1308. BumperLight3.state=1
  1309. RightSlingLight.state=1
  1310. quickstep
  1311. End If
  1312. end sub
  1313.  
  1314.  
  1315. Sub quickstep
  1316.  
  1317. If wv=1 and qs>=8 then
  1318. BumperLight1.state=0
  1319. LeftSlingLight.state=0
  1320. BumperLight2.state=0
  1321. BumperLight3.state=0
  1322. RightSlingLight.state=0
  1323. End If
  1324.  
  1325. If wv=3 and qs>=12 then
  1326. BumperLight1.state=0
  1327. LeftSlingLight.state=0
  1328. BumperLight2.state=0
  1329. BumperLight3.state=0
  1330. RightSlingLight.state=0
  1331. End If
  1332.  
  1333. If (wv=4 or wv=5) and qs>=16 then
  1334. BumperLight1.state=0
  1335. LeftSlingLight.state=0
  1336. BumperLight2.state=0
  1337. BumperLight3.state=0
  1338. RightSlingLight.state=0
  1339. End If
  1340.  
  1341. If wv=7 and qs>=20 then
  1342. BumperLight1.state=0
  1343. LeftSlingLight.state=0
  1344. BumperLight2.state=0
  1345. BumperLight3.state=0
  1346. RightSlingLight.state=0
  1347. End If
  1348.  
  1349. If wv=9 and qs>=24 then
  1350. BumperLight1.state=0
  1351. LeftSlingLight.state=0
  1352. BumperLight2.state=0
  1353. BumperLight3.state=0
  1354. RightSlingLight.state=0
  1355. End If
  1356.  
  1357. End Sub
  1358.  
  1359.  
  1360. Sub motorcheck
  1361. If mv=0 or mv=1 then
  1362. Light1.state=1
  1363. Light2.state=0
  1364. End If
  1365.  
  1366. If mv=2 then
  1367. Light2.state=1
  1368. Light1.state=0
  1369. End If
  1370.  
  1371.  
  1372. End Sub
  1373.  
  1374.  
  1375. sub wheelchange_timer
  1376. if tilt=false then
  1377. If points=1 or points=10 then wv=wv+1
  1378. if wv>9 then wv=0
  1379. wheelcheck
  1380. end if
  1381. end sub
Advertisement
Add Comment
Please, Sign In to add comment