[logic]
active = sr_idle@wait

[sr_idle@wait]
on_info  = {=actor_in_zone(sr_jup_magnit_anom) =actor_has_item(magnit_scan_anom)} sr_idle@wait_1 %=run_tutorial( sr_jup_magnit_anom_tutor )%

[sr_idle@wait_1]
on_info  = { +magnit_scan_anom_done } sr_idle@timer %=stop_tutorial%
on_info2 = { !actor_in_zone( sr_jup_magnit_anom ) } sr_idle@wait %=stop_tutorial%
on_info3 = { !actor_has_item(magnit_scan_anom) } sr_idle@wait %=stop_tutorial%

[sr_idle@timer]
on_game_timer = 3600 | sr_idle@timer_one
on_info  = {+actor_drop_weapon_in_magnito -drop_weapon_in_magnito_good} %+drop_weapon_in_magnito_good%
on_info2 = {+actor_take_rukzak_magnito -take_rukzak_magnito_good} %+take_rukzak_magnito_good%

[sr_idle@timer_one]
on_info  = {+actor_drop_weapon_in_magnito -drop_weapon_in_magnito_good} %+drop_weapon_in_magnito_good%
on_info2 = {+actor_take_rukzak_magnito -take_rukzak_magnito_good} %+take_rukzak_magnito_good%
on_info3 = {=actor_in_zone(sr_jup_magnit_anom)} sr_idle@take_magnit_scan %=run_tutorial( sr_jup_take_magnit_anom_tutor )%
on_info4 = {+magnit_scan_anom_was_damages} sr_idle@end

[sr_idle@take_magnit_scan]
on_info  = { +magnit_scan_anom_take } sr_idle@next_magnit_scan %=stop_tutorial%
on_info2 = { !actor_in_zone( sr_jup_magnit_anom ) } sr_idle@timer_one %=stop_tutorial%
on_info3 = {+magnit_scan_anom_was_damages} sr_idle@end %=stop_tutorial%
on_info4 = {+actor_drop_weapon_in_magnito -drop_weapon_in_magnito_good} %+drop_weapon_in_magnito_good%
on_info5 = {+actor_take_rukzak_magnito -take_rukzak_magnito_good} %+take_rukzak_magnito_good%

[sr_idle@next_magnit_scan]
on_info  = { +fplay_lesnik_4_dialog_end } sr_idle@end
on_info2 = { +fplay_lesnik_4_dialog_scan } sr_idle@wait_2

[sr_idle@wait_2]
on_info  = {=actor_in_zone(sr_jup_magnit_anom) =actor_has_item(magnit_deactive_scan)} sr_idle@wait_3 %=run_tutorial( sr_jup_magnit_deactiv_tutor )%

[sr_idle@wait_3]
on_info  = { +magnit_deactive_anom_done } sr_idle@end %=stop_tutorial%
on_info2 = { !actor_in_zone( sr_jup_magnit_anom ) } sr_idle@wait_2 %=stop_tutorial%
on_info3 = { !actor_has_item(magnit_deactive_scan) } sr_idle@wait_2 %=stop_tutorial%

[sr_idle@end]
on_game_timer = 30 | sr_idle@nil %=destroy_object%

[sr_idle@nil]
