Extraball events on ball 2 or 3

31 views
Skip to first unread message

leeoneil

unread,
Oct 14, 2024, 2:09:17 PMOct 14
to MPF Users
Hello everyone !
I'm going crazy with something probably really easy, but impossible for me to fond the answer.

I want to launch events when the ball is an extraball.
It's working perfectly on ball 1, with something like this :

ball_starting{ball==is_extra_ball}: launch_extraball_animation

Do you now what is the correct way to call the same thing on ball 2 or 3 ?
I tried
ball_starting{ball==2 and ball==is_extra_ball}
ball_starting{ball2==is_extra_ball}

and so many ways (creating different mode for each balls, etc etc....)
I can't find a way to launch an event.
Note that the extraballs on 2 or 3 are correctly played !
But no event launch.... Can't find anythong on the log to help me...

Sorry if it's obvious....

leeoneil

unread,
Oct 14, 2024, 2:23:03 PMOct 14
to MPF Users
ok, sometimes asking help probably help !

I found it !

ball_starting{ball==2 and is_extra_ball}:
ball_starting{ball==3 and is_extra_ball}:

it's working like that.... how crazy.....

Avery Tummons

unread,
Oct 14, 2024, 7:01:01 PMOct 14
to mpf-...@googlegroups.com
I believe your ball 1 working was a fluke. is_extra_ball is a Boolean. True = 1, False = 0. When you had ball= is_extra_ball you happened to evaluating 1 == 1, so it worked. FYI for anyone that finds this thread.


Sent from my iPhone

On Oct 14, 2024, at 1:23 PM, leeoneil <l...@rdtp.net> wrote:

ok, sometimes asking help probably help !
--
You received this message because you are subscribed to the Google Groups "MPF Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpf-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mpf-users/f97b51ea-612a-4203-a089-6e38afc547fcn%40googlegroups.com.

leeoneil

unread,
Oct 15, 2024, 9:14:13 AMOct 15
to MPF Users
Thank's !
I've proposed a minor change on the MPF website trough github, because I was "foolished" by this page :
(at the end)
Reply all
Reply to author
Forward
0 new messages