Register    Login    Forum    FAQ    PinSimDB.org

Board index » Resources » Resources Exchange » Scripting - Help offer or request only




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Need Help Scripting Vari Targets
 Post Posted: Tue Jan 24, 2012 2:56 am 
Offline
User avatar

Joined: Tue Dec 27, 2011 10:52 pm
Posts: 59
Image

Need help scripting vari targets.

My vari targets add points when hit and when they reset. How do I stop them from adding points when resetting?

My code,
Code:
Sub TargetVari1_Hit()
   Select Case (fpEventID)
   Case 1: AddScore(100)
   Case 2: AddScore(100)
   Case 3: AddScore(200)
   Case 4: AddScore(200)
   Case 5: AddScore(300)
   Case 6: AddScore(500)
   End Select
   Timer1.Set True, 1000
End Sub

Sub Timer1_Expired()
   TargetVari1.SolenoidPulse(1000)
   Timer1.Set False
End Sub

_________________
Tables Completed: Jive Time, & Baseball


Top 
 Profile  
 
 Post subject: Re: Need Help Scripting Vari Targets
 Post Posted: Sat Mar 24, 2012 4:06 pm 
Offline
User avatar

Joined: Thu Mar 22, 2012 4:06 pm
Posts: 155
Location: Poland, Lodz
Hi

Can you make some investigations about multiple TargetVari1_Hit() calls? What the Timer1 is used for? I assume you can make some SolenoidPulse when timer elapses. The only advice is to use some timer and set it for second or two when table is hit and ignore hit events (and adding scores) when timer is still set. Don't forget to stop timer when it elapses.

_________________
Sebek74
http://futurepinball.mm.com.pl/ home for: Ignition, Beat-Box, Nightmare, Billion Dollar Gameshow, Wild West, Trick or Treat and Gfx2DmdF & modified DosBOX DMD ripping tools
http://picasaweb.google.com/sebek74 - personal photo gallery, plz visit & comment!


Top 
 Profile  
 
 Post subject: Re: Need Help Scripting Vari Targets
 Post Posted: Sat Mar 24, 2012 5:18 pm 
Offline
User avatar

Joined: Fri Jul 02, 2010 4:50 am
Posts: 506
Location: Paris - France
Look at my scripts (Pro Football, Big Indian, Airport, ...).
Vari targets is not the best emulated coumponent with FP, so you have to be creative...

_________________
Les cons ça ose tout. C'est même à  ça qu'on les reconnaît.
My tables avalaible at http://www.pinsimdb.org/fpreleases/ or Image
Image
Le prix s'oublie, la qualité reste


Top 
 Profile  
 
 Post subject: Re: Need Help Scripting Vari Targets
 Post Posted: Wed Mar 28, 2012 12:44 am 
Offline
User avatar

Joined: Fri Jan 20, 2012 12:48 pm
Posts: 1348
Location: Lufkin, Texas
Popotte is definitely the man to talk to about this.

_________________
Artwork Contributions: Big Guns, King Kong, Hot Tip, Gilligan's Island, Police Force, The Simpson's Pinball Party, NBA Fastbreak
Table Builds: Ali, Elvis, Tommy, Red & Ted's Roadshow (current WIP)

Twitter: https://twitter.com/D_Struct


Top 
 Profile  
 
 Post subject: Re: Need Help Scripting Vari Targets
 Post Posted: Fri May 17, 2013 12:57 pm 
Offline

Joined: Tue Mar 12, 2013 11:33 pm
Posts: 73
thanks for the tip Popotte. Casually I have one of these vari-targets in my project.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 5 posts ] 

Board index » Resources » Resources Exchange » Scripting - Help offer or request only


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to: