Open toomanybrians opened 7 years ago
I think we call those relay_events in MPF. So we should either rename them or call it relay_event_player
Though about this some more. Definitely makes sense. Just needs a nice name. Something like "first_match_event_player"?
We have a situation in BnD which might be fairly common. We have a shot that has three associated inserts which can be lit independent of each other, but if the shot is made, we only want one of the lit options to be serviced. So instead of stacking these with a queue_event_player, it's almost like we want a bool_event_player (something that creates a ~bool~ relay event from any event and then watches for True/False returns and will only call the next handler if a non-False response comes back?
This config snippet illustrates the problem:
The complexity here is we have n+1 length entries & quantity of entries, whereas it would be nice to be able to have several different things look for this shot, but only the first (highest) one is actually called.
Dunno if there's an elegant way to add something like this to the configs?