("forced_recruits",
[
# Standard check
(neg|party_slot_eq, "$current_town", slot_village_state, svs_looted),
(neg|party_slot_eq, "$current_town", slot_village_state, svs_being_raided),
(neg|party_slot_ge, "$current_town", slot_village_infested_by_bandits, 1),
# Check if relation is enough to allow for recruitment
(assign, ":mod_amount", 30),
(assign, ":mod_rel_change", -30),
(party_get_slot, ":mod_relation", "$current_town", slot_center_player_relation),
(store_sub, ":mod_limit", -99, ":mod_rel_change"),
(ge, ":mod_relation", ":mod_limit"),
# Check if party have enough free slots
(party_get_free_companions_capacity, ":mod_capacity", "p_main_party"),
(ge, ":mod_capacity", ":mod_amount"),
]
,"Force villagers to join your army.",
[
# Add troops
(party_get_slot, ":mod_troop", "$current_town", slot_center_volunteer_troop_type),
(party_add_members, "p_main_party", ":mod_troop", 20),
# Change relation
(call_script, "script_change_player_relation_with_cent er", "$current_town", -10),
(jump_to_menu,"mnu_village"),
]),