[logic]
active = sr_idle@wait

[sr_idle@wait]
on_info = {+bar_saoli_ice_dialog_end +bar_forester_ventilator_dialog_end} sr_idle@where_is_actor

[sr_idle@where_is_actor]
on_info  = {-bar_saoli_ice_dialog_end} sr_idle@wait
on_info2 = {=actor_in_zone(jup_sr_wentil_zone)} sr_idle@control_items

[sr_idle@control_items]
on_info  = {!actor_in_zone(jup_sr_wentil_zone)} sr_idle@where_is_actor
on_info2 = {=actor_has_items(tim_ventilator:saoli_ice)} sr_idle@tutorial %=run_tutorial( wentil_zone_restr_tutor )%

[sr_idle@tutorial]
on_info  = {+wentil_zone_restr_tutor_end} sr_idle@wait_surge %=stop_tutorial%
on_info2 = {!actor_in_zone( jup_sr_wentil_zone )} sr_idle@where_is_actor %=stop_tutorial%
on_info3 = {!actor_has_items(tim_ventilator:saoli_ice) =has_active_tutorial} sr_idle@where_is_actor %=stop_tutorial%

[sr_idle@wait_surge]
on_info = {=surge_started} sr_idle@wait_surge_end
on_game_timer  = 900 | {=all_surge_complete} sr_idle@wait_surge_end %=start_surge%
on_game_timer2 = 900 | {=surge_started} sr_idle@wait_surge_end

[sr_idle@wait_surge_end]
on_info = {=surge_complete} sr_idle@end %=spawn_object(af_ventilator:jup_af_ventilator_way) +vent_aspir_quest_finished%

[sr_idle@end]
on_info = {!actor_in_zone( jup_sr_wentil_zone )} sr_idle@nil %=destroy_object%

[sr_idle@nil]
