<a href="http://www.game-advertising-online.com/" target="_blank">Game Advertising Online</a><br /> banner requires iframes
Results 1 to 4 of 4

Thread: Castle Free Upkeep

  1. #1
    rawghi's Avatar Joanni delle Bande Nere
    Join Date
    Sep 2005
    Location
    Corsico, Milan
    Posts
    542

    Default Castle Free Upkeep

    Hi to all!
    there is a way to let castle work like cities regarding the free upkeep slots?

  2. #2
    zerathule's Avatar Shisai
    Join Date
    Nov 2006
    Posts
    367

    Default Re: Castle Free Upkeep

    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 :

    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
    }
    }
    Add the following line under these :
    law_bonus bonus 1
    recruitment_slots 1
    free_upkeep bonus 1
    }
    Any unit in the castle and buildable with the "free_upkeep_unit" trait will be garisoned for free.
    In the "export_descr_unit" file change this :

    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
    Change the attribute line and add the free_upkeep_unit trait :
    attributes sea_faring, hide_forest, can_withdraw, free_upkeep_unit
    It works (i've added ALL units this trait and add free upkeep slots to castles in my "personal" mod ^^ )

  3. #3
    rawghi's Avatar Joanni delle Bande Nere
    Join Date
    Sep 2005
    Location
    Corsico, Milan
    Posts
    542

    Default Re: Castle Free Upkeep

    Ah great! Even I made my "personal" mod and this was one of the feature I think to add!
    Thank you Zerathule, great tutorial!

  4. #4
    zerathule's Avatar Shisai
    Join Date
    Nov 2006
    Posts
    367

    Default Re: Castle Free Upkeep

    You're welcomed (its to repay you for your wonderfull AARs and 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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •