Changing soldiers from villages

正在查看此主题的用户

SwadianGrunt

Veteran
How would I go about changing the troop recruited from a town after it is captured? Preferably I would have it change to which ever faction you are vassal to at the time, if your a bandit or mercenary it would say:

You have captured "          ":
You have the option of making this town's culture:

Nord;
Sarranid;
Vaegir;
Swadian;
Khergit;
Bandit;(MY MOD CHANGES THE TROOP TREE)
Mercenary;(FARMER)
 
I would check out the code to Custom Commander's custom troop tree and how that is implemented for player factions and recruitment.

Generally, recruitment is run through the following scrips (in module_scripts.py), and uses the following slots:
-"village_recruit_volunteers_recruit"
Does the actual recruitment, getting what troop is available from slot_center_volunteer_troop_type

-"update_volunteer_troops_in_village"
Sets slot_center_volunteer_troop_type by checking player relation with the village and upgrading troops as necessary. The base troop is drawn from slot_faction_tier_1_troop (this is set at game_start, by faction)
Note "update_npc_volunteer_troops_in_village" governs parts of NPC lord recruitment, and is also based on slot_faction_tier_1_troop
 
后退
顶部 底部