Hi to all!
there is a way to let castle work like cities regarding the free upkeep slots?
Hi to all!
there is a way to let castle work like cities regarding the free upkeep slots?
Its quite easy actualy :
In the EDB, you need to add these lines to the building adding the free recruitment slot :
free_upkeep bonus X (X being the number of slots).
Now that means that X units being able to be produced in this settlement AND having the "free_upkeep_unit" trait in the EDU.
So you need to edit the EDU for each unit that can be garisoned for free.
To make it clear lets have an example :
Lets say you want to have the 1st level castle have 1 free upkeep slot and that the Sergent spearmen will be a "free upkeep unit"
So, in the export_descr_building you have :
Add the following line under these :building core_castle_building
{
convert_to core_building
levels motte_and_bailey wooden_castle castle fortress citadel
{
motte_and_bailey castle requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, }
{
capability
{
recruit_pool "Hobilars" 1 0.2 2 0 requires factions { england, }
<Squeezed recruit pools>
wall_level 0
tower_level 1
law_bonus bonus 1
recruitment_slots 1
}
material wooden
construction 2
cost 600
settlement_min village
upgrades
{
wooden_castle
}
}
Any unit in the castle and buildable with the "free_upkeep_unit" trait will be garisoned for free.law_bonus bonus 1
recruitment_slots 1
free_upkeep bonus 1
}
In the "export_descr_unit" file change this :
Change the attribute line and add the free_upkeep_unit trait :type Sergeant Spearmen
dictionary Sergeant_Spearmen ; Sergeant Spearmen
category infantry
class spearmen
voice_type Light
banner faction main_spear
banner holy crusade
soldier Sergeant_Spearmen, 60, 0, 1
attributes sea_faring, hide_forest, can_withdraw
formation 1.2, 1.2, 2.4, 2.4, 4, square, schiltrom
It worksattributes sea_faring, hide_forest, can_withdraw, free_upkeep_unit(i've added ALL units this trait and add free upkeep slots to castles in my "personal" mod ^^ )
Ah great! Even I made my "personal" mod and this was one of the feature I think to add!
Thank you Zerathule, great tutorial!
You're welcomed (its to repay you for your wonderfull AARsand i'm still in debt ^^ )
By the way if that helps you can have more than one building that adds free upkeep bonuses, and then they'll sum up.
For exemple, you can have 6 slots for the huge walls and then 2 slots from the last city barracks, and then 2 more from the military academy totaly 10 free slots.
There are currently 1 users browsing this thread. (0 members and 1 guests)