Hi. Have you read the excellent
FP scripting guides?
http://www.vpforums....cript_guide.htmhttp://www.vpforums....s/BigDraco.htmlWhat you want to do:
1. Declare a global variable (something like "Target1TimesHit")
2. In the ResetForNewGame(), or ResetForNewPlayerBall() sub, initialize your variable to 0.
3. In the Target1_Hit sub, increase the variable by 1, and reset to 0 once it reaches 5 by using the "mod" operator (google for "mod vbs" to see how it works).
4. After that, in the Target1_Hit sub, create a "select case" that does something based on how much your variable is.
so in script..
CODE
dim Target1TimesHit
sub ResetForNewGame()
Target1TimesHit = 0
end sub
sub Target1_Hit()
Target1TimesHit = (Target1TimesHit+1) mod 5
select case Target1TimesHit
case 0
do some stuff
case 1
do some other stuff
case 2
doing more stuff
case 3
stuff
case 4
you guessed it..
case 5
this one will actually never be selected, because 4 is the highest result you'll get when you do x mod 5.
end select
end sub