bakabaka
Recruit
I wanna add female fighters (aka Shieldmaidens) to Nord faction, and make them recruitable in Nord villages (along side the male "Nord Recruits").
Found a script here http://forums.taleworlds.com/index.php?topic=74552.5 but it does not work at all. Help please? Thanx a lot : )
Found a script here http://forums.taleworlds.com/index.php?topic=74552.5 but it does not work at all. Help please? Thanx a lot : )
("village_recruit_volunteers_recruit",
[(party_get_slot, ":volunteer_troop", "$current_town", slot_center_volunteer_troop_type),
(party_get_slot, ":volunteer_amount", "$current_town", slot_center_volunteer_troop_amount),
(party_get_free_companions_capacity, ":free_capacity", "p_main_party"),
(try_for_range, ":villages", villages_begin,villages_end), #~ CD - Male/Female Begin ~
(store_random_in_range, ":random", 1,10),
(assign, ":nord_faction", "fac_kingdom_4"),
(store_faction_of_party, ":villages"),
(eq, ":villages", ":nord_faction"),
(try_begin),
(ge, ":random", 5),
(assign, ":volunteer_troop", "trp_nord_recruit"),
(party_set_slot, ":volunteer_troop", "$current_town", slot_center_volunteer_troop_type),
(else_try),
(lt, ":random", 5),
(assign, ":volunteer_troop", "trp_nord_female_warrior"),
(party_set_slot, ":volunteer_troop", "$current_town", slot_center_volunteer_troop_type),
(try_end),
(try_end), #~ CD - Male/Female End ~
(val_min, ":volunteer_amount", ":free_capacity"),
(store_troop_gold, ":gold", "trp_player"),
(store_div, ":gold_capacity", ":gold", 10),#10 denars per man
(val_min, ":volunteer_amount", ":gold_capacity"),
(party_add_members, "p_main_party", ":volunteer_troop", ":volunteer_amount"),
(party_set_slot, "$current_town", slot_center_volunteer_troop_amount, -1),
(store_mul, ":cost", ":volunteer_amount", 10),#10 denars per man
(troop_remove_gold, "trp_player", ":cost"),
]),
[(party_get_slot, ":volunteer_troop", "$current_town", slot_center_volunteer_troop_type),
(party_get_slot, ":volunteer_amount", "$current_town", slot_center_volunteer_troop_amount),
(party_get_free_companions_capacity, ":free_capacity", "p_main_party"),
(try_for_range, ":villages", villages_begin,villages_end), #~ CD - Male/Female Begin ~
(store_random_in_range, ":random", 1,10),
(assign, ":nord_faction", "fac_kingdom_4"),
(store_faction_of_party, ":villages"),
(eq, ":villages", ":nord_faction"),
(try_begin),
(ge, ":random", 5),
(assign, ":volunteer_troop", "trp_nord_recruit"),
(party_set_slot, ":volunteer_troop", "$current_town", slot_center_volunteer_troop_type),
(else_try),
(lt, ":random", 5),
(assign, ":volunteer_troop", "trp_nord_female_warrior"),
(party_set_slot, ":volunteer_troop", "$current_town", slot_center_volunteer_troop_type),
(try_end),
(try_end), #~ CD - Male/Female End ~
(val_min, ":volunteer_amount", ":free_capacity"),
(store_troop_gold, ":gold", "trp_player"),
(store_div, ":gold_capacity", ":gold", 10),#10 denars per man
(val_min, ":volunteer_amount", ":gold_capacity"),
(party_add_members, "p_main_party", ":volunteer_troop", ":volunteer_amount"),
(party_set_slot, "$current_town", slot_center_volunteer_troop_amount, -1),
(store_mul, ":cost", ":volunteer_amount", 10),#10 denars per man
(troop_remove_gold, "trp_player", ":cost"),
]),