Ending a multiball when only one ball left

31 views
Skip to first unread message

Ray Scott

unread,
Oct 7, 2024, 3:01:02 AMOct 7
to MPF Users
I have a number of multiball modes, at the moment the mode completes when the balls drain, allowing me to switch modes using a carousel.  However I would like to be able to do this on the last ball. There is a reference that this can be done in the 0.57 documentation, but not how to do it.
I assume I could use a counter for balls lost, but would have to start it after the ball save timer ends. 
Is this the way?
Ray

leeoneil

unread,
Oct 7, 2024, 8:14:04 AMOct 7
to MPF Users
I'm not sure to understand your problem.

Using "multiball_ended" instead of "ball_drain" ?

Can you explain a little bit more, or post some code ?

Ray Scott

unread,
Oct 7, 2024, 5:25:36 PMOct 7
to MPF Users
I didn't notice that "multiball_ended" was posted when there is still one ball on the playfield. I was using the ball_drain as the trigger for the next mode.
Your reply actually answered my question.
Many thanks. The answer was right in front of me but I just couldn't see it.

leeoneil

unread,
Oct 7, 2024, 6:42:56 PMOct 7
to MPF Users
Nice !
The exact way to write is this way :
And it works well !

Ray Scott

unread,
Oct 7, 2024, 9:07:55 PMOct 7
to MPF Users
Thanks, I'm sure it will work how I want it to now. I cant actually try it until later, but confident.
Reply all
Reply to author
Forward
0 new messages