In my ongoing quest to duplicate the original Haunted House rule set in my game, I have come up against and issue trying to reset some shots.
So the game has 5 kick targets on the main playfield. The goal is to complete these sequentially and it lights the extra ball. The targets won't reset between balls unless you complete the sequence.
So have the targets up and working as they should. The issue I am having is with resetting them is resetting them when a new ball starts and you have already completed the sequence. To track if the sequence has been completed, I created a player variable called 'main_target_sequence_complete' that has a value of either 'yes' or 'no'. Below are my shot definitions for the targets. This is part of my base mode that gets re-started every ball at the event 'ball_will_start'. The problem I am having is that the reset_event is not tripping, and the shots don't reset. Can anyone tell me why the reset event is not triggering?
If you want to see it in the context of my entire base mode file, it can be found here:
Thanks,
Alan
main_target_1:
switch: s_main_1_target
show_tokens:
light: l_target_1
profile: main_target_1_profile
reset_events: ball_started{current_player.main_target_sequence_complete_value == "yes"}
main_target_2:
switch: s_main_2_target
show_tokens:
light: l_target_2
profile: main_targets_profile
advance_events:
- main_target_1_flashing_hit
- main_target_2_flashing_hit
reset_events: ball_started{current_player.main_target_sequence_complete == "yes"}
main_target_3:
switch: s_main_3_target
show_tokens:
light: l_target_3
profile: main_targets_profile
advance_events:
- main_target_2_flashing_hit
- main_target_3_flashing_hit
reset_events: ball_started{current_player.main_target_sequence_complete == "yes"}
main_target_4:
switch: s_main_4_target
show_tokens:
light: l_target_4
profile: main_targets_profile
advance_events:
- main_target_3_flashing_hit
- main_target_4_flashing_hit
reset_events: ball_started{current_player.main_target_sequence_complete == "yes"}
main_target_5:
switch: s_main_5_target
show_tokens:
light: l_target_5
profile: main_targets_profile
advance_events:
- main_target_4_flashing_hit
- main_target_5_flashing_hit
reset_events: ball_started{current_player.main_target_sequence_complete == "yes"}