Multi-ball code for Future Pinball.
I am trying to figure out how to code a multi-ball session in future pinball.
The multi-ball should begin when the players score reaches a set value.
This is the code I have written for the sequence but it does not work.
If nvScore(CurrentPlayer) = nvScore(CurrentPlayer) + Points + 10000 Then
bMultiBallMode = True
BallsOnPlayfield = 3
BallsInLock = 3
Kicker1.CreateBall
Kicker1.SolenoidPulse
End If
Can any one help?
TY.:wave:
Re: Multi-ball code for Future Pinball.
What doesn't work about it? Is it not making the new balls? Is it not registering the new balls hitting targets?
Re: Multi-ball code for Future Pinball.
It does not create the new balls.
Re: Multi-ball code for Future Pinball.
Think about your If statement:
Quote:
If nvScore(CurrentPlayer) = nvScore(CurrentPlayer) + Points + 10000 Then
As nvScore(CurrentPlayer) is on both sides of the = , the overall result can only be true if the Points variable is equal to -10000.
It isn't clear what you actually want to check, but it might be this:
Code:
If nvScore(CurrentPlayer) = Points + 10000 Then