Where is the script that controls army size for Lords and Knights located?

Users who are viewing this thread

Solution
for spawn composition it uses the templates found on party_templates.

XXX_reinforcements_a
XXX_reinforcements_b
...

the faction uses slots to store which template belongs to that culture/faction. You can see them being used on the spawn script

slot_faction_reinforcements_a
slot_faction_reinforcements_b
slot_faction_reinforcements_c

Code:
  # script_cf_reinforce_party -> adds troops
  # Input: arg1 = party_no,
  # Output: none
  # Adds reinforcement to party according to its type and faction
  # Called from several places, simple_triggers for centers, script_hire_men_to_kingdom_hero_party for hero parties
  ("cf_reinforce_party",
for spawn composition it uses the templates found on party_templates.

XXX_reinforcements_a
XXX_reinforcements_b
...

the faction uses slots to store which template belongs to that culture/faction. You can see them being used on the spawn script

slot_faction_reinforcements_a
slot_faction_reinforcements_b
slot_faction_reinforcements_c

Code:
  # script_cf_reinforce_party -> adds troops
  # Input: arg1 = party_no,
  # Output: none
  # Adds reinforcement to party according to its type and faction
  # Called from several places, simple_triggers for centers, script_hire_men_to_kingdom_hero_party for hero parties
  ("cf_reinforce_party",
 
Upvote 0
Solution
Back
Top Bottom