5b. Multiball – commonly asked questions

Multiball is largely managed by SkeletonGame and by the trough mode, which is automatically added to every game.

If you have an auto-plunger, your Mode can eject additional balls into play using the trough’s method:

Without an auto-plunge, use:

When multiple balls are active in play, a new SkeletonGame event is possible: evt_single_ball_play. This event lets your mode code know that all of the extra balls you tried to launch have been launched, but the player has drained all of them but one. Again, this event will not fire if ball launches are still pending, so you don’t need to worry about that. Typically this event marks the end of multiball. You probably want your “multiball mode” know that the player is down to a single ball, so you should define a handler for this event. This is done as:

If you wish to determine how many balls are anticipated to be in play, the trough exposes:

which returns the number of balls that will be eventually “live”, counted as the number of balls currently on the playfield plus the number of pending ejects

And for the number of live balls (or at least balls that are out on the playfield):

More info to be added ASAP