Wolfkhar
Recruit

I adding some new companions or heroes in the game but instead recruiting them via taverns, I planned to put them into chosen town or castle garrison so I can just take them from the garrison after I conquered the castle or town.
This is a script that I got from one of experience member here, the script is about adding troop party template into any towns/castles as well as refresh them at certain time
***So, I planned to use this script to "JUST ADDING THE CUZTOMIZED COMPANIONS/HEROES INTO THE TOWNS/CASTLES WITHOUT REFRESH THEM''. (I don't want my companions duplicates pop up)***
("refresh_mercenary_camp_troops",
[
(store_script_param_1, ":camp_no"),
(assign, ":ideal_size", 300), # Past this value the troop pool of the camp will be reset
(try_begin),
(eq, ":camp_no", "p_town_23"),
(assign, ":party_template", "pt_warriders"),
(try_end),
(party_get_num_companions, ":party_size", ":camp_no"),
(try_begin),
(gt, ":party_size", ":ideal_size"), # We're past the ideal number of troops in the camp
(party_clear,":camp_no"), # Reset the troop pool
(party_add_template, ":camp_no", ":party_template"),
(else_try),
(party_add_template, ":camp_no", ":party_template"),
(try_end),
]),
I really appreciate if someone can help me to modify the script or just share any required script
This is a script that I got from one of experience member here, the script is about adding troop party template into any towns/castles as well as refresh them at certain time
***So, I planned to use this script to "JUST ADDING THE CUZTOMIZED COMPANIONS/HEROES INTO THE TOWNS/CASTLES WITHOUT REFRESH THEM''. (I don't want my companions duplicates pop up)***
("refresh_mercenary_camp_troops",
[
(store_script_param_1, ":camp_no"),
(assign, ":ideal_size", 300), # Past this value the troop pool of the camp will be reset
(try_begin),
(eq, ":camp_no", "p_town_23"),
(assign, ":party_template", "pt_warriders"),
(try_end),
(party_get_num_companions, ":party_size", ":camp_no"),
(try_begin),
(gt, ":party_size", ":ideal_size"), # We're past the ideal number of troops in the camp
(party_clear,":camp_no"), # Reset the troop pool
(party_add_template, ":camp_no", ":party_template"),
(else_try),
(party_add_template, ":camp_no", ":party_template"),
(try_end),
]),
I really appreciate if someone can help me to modify the script or just share any required script