Results 1 to 6 of 6

Thread: Editing merchant limit for specific faction

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Icon4 Editing merchant limit for specific faction

    Hello

    Im trying to edit the merchant level imposed on demark. What change do i make in the below code to do that?

    Code:
            market city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
            {
                capability
                {
                    agent merchant  0  requires factions { northern_european, } 
                    agent merchant  0  requires factions { middle_eastern, } 
                    agent merchant  0  requires factions { eastern_european, } 
                    agent merchant  0  requires factions { greek, } 
                    agent merchant  0  requires factions { southern_european, } 
                    trade_base_income_bonus bonus 3
                    agent_limit merchant 1
                }
                material wooden
                construction  3 
                cost  1200 
                settlement_min large_town
                upgrades
                {
                    fairground
                }
            }
    The human sickness is so severe, that few are willing to look at it. But those who do, become well.

  2. #2

    Default Re: Editing merchant limit for specific faction

    agent_limit merchant 1

    Coder on Dark Ages: Roman Revival, the alternate history mod for BI.

    Under the Patronage of Augustus Lucifer, member of the House of Ward.

  3. #3

    Default Re: Editing merchant limit for specific faction

    If i do that, wont the limit change for everyone else who has that building? When i add something like this:

    agent_limit merchant 10 { middle_eastern, }

    The game crashes to desktop at start up. What am i doing wrong?
    Last edited by Jaxal; March 16, 2009 at 04:06 PM.
    The human sickness is so severe, that few are willing to look at it. But those who do, become well.

  4. #4
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: Editing merchant limit for specific faction

    Changing agent_limit would change merchant recruitment for all factions, unless I'm mistaken. I think you'd have to create a separate market building type, in which only denmark merchants are recruited, and give that one a higher limit...


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  5. #5

    Default Re: Editing merchant limit for specific faction

    try something like;

    agent_limit merchant 2 requires not factions { denmark, }
    agent_limit merchant 1 requires factions { denmark, }

    This should allow all other factions to recruit 2 merchants and only denmark to recruit 1 merchant. Ive never used faction requirements on the agent_limit capability...

    Alternatively, you could have the following script in campaign_script

    moniter_event FactionTurnStart FactionType denmark
    set_event_counter Danish_Merchants 1
    end_monitor
    moniter_event FactionTurnEnd FactionType denmark
    set_event_counter Danish_Merchants 0
    end_monitor

    Then use the event counter in the EDB as such;

    agent_limit merchant 2 requires event_counter Danish_Merchants 0
    agent_limit merchant 1 requires event_counter Danish_Merchants 1
    ...longbows, in skilled hands, could reach further than trebuchets...

  6. #6
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: Editing merchant limit for specific faction

    Nice Tsarsies, that should work.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

Posting Permissions

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