[logic]
active = sr_idle@wait

[sr_idle@wait]
on_info  = {+jup_bubble_money_yes_dialog_start -jup_give_money_self} sr_idle@nil
on_info2 = {+stop_sedoy_qwest -jup_give_money_self} sr_idle@lena
on_info3 = {+jup_give_money_self} sr_idle@nil

[sr_idle@lena]
on_info2 = {+jup_lena_debt_repayment_dialog_task} sr_idle@control_relation %=set_squads_enemies(jup_a24_smuggler_squad:jup_a2_ecolog_squad) =set_squads_enemy_to_actor(jup_a24_smuggler_squad)%
on_info3 = {+jup_lena_debt_repayment_dialog_money} sr_idle@nil

[sr_idle@control_relation]
on_info  = {=is_smuggler_night} sr_idle@control_relation_1 %=set_squads_neutral_to_actor(jup_a24_smuggler_squad) =set_squads_friends(jup_a24_smuggler_squad:jup_a2_ecolog_squad)%
on_info2 = {+jup_a24_smuggler_squad_dead} sr_idle@nil
on_info3 = {+actor_attack_smuggler_squad -jup_vasilkov_debt_repayment_dialog_end} sr_idle@smuggler_squad
on_info4 = {+jup_vasilkov_debt_repayment_dialog_1_end} sr_idle@nil


[sr_idle@control_relation_1]
on_info  = {!is_smuggler_night} sr_idle@control_relation %=set_squads_enemy_to_actor(jup_a24_smuggler_squad) =set_squads_enemies(jup_a24_smuggler_squad:jup_a2_ecolog_squad)%
on_info2 = {+jup_a24_smuggler_squad_dead} sr_idle@nil
on_info3 = {+actor_attack_smuggler_squad -jup_vasilkov_debt_repayment_dialog_end} sr_idle@smuggler_squad
on_info4 = {+jup_vasilkov_debt_repayment_dialog_1_end} sr_idle@nil

[sr_idle@smuggler_squad]
on_info   = {+jup_a24_smuggler_squad_dead} sr_idle@nil
on_info2  = {=dist_between_actor_and_smart_ge(jup_a24:150)} sr_idle@nil %=remove_squad(jup_a24_smuggler_squad)%

[sr_idle@nil]
