Results 1 to 6 of 6

Thread: units linked to trade relations?

Hybrid View

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

    Default units linked to trade relations?

    Does anyone know if it is possible to have units linked to trade relations?

    Ex:
    recruit_pool "Gasmuli" 1 0.25 2 0 requires factions { byzantium, } and (relations_min_Milan_trade_agreement) obviously I made that condition up, but that kind of idea? Any help or insight would be appreciated



  2. #2

    Default Re: units linked to trade relations?

    I think what your suggesting is doable, but maybe not through the EDB like your suggesting. Using a script in the campaign_script that moniters whether the player faction (or AI) has a trade agreement with 'said' faction would set an event_counter to 'on' or 'off'. Then in the EDB the line you had except...
    recruit_pool "Gasmuli" 1 0.25 2 0 requires factions { byzantium, } and event_counter tradeAgreement 1

    I dont have any of my M2TW materials with me so cant give you a better example. But from what i recall, Yes, that idea is easily doable.
    ...longbows, in skilled hands, could reach further than trebuchets...

  3. #3
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: units linked to trade relations?

    It's like Tsarsies says, you will need to do it in the campaign script and use the counters in the EDB. A very limited number of conditions work in the EDB, and even less work on units, but the ability to use counters redeems it somewhat, it's still very roundabout. Welcome to one of the more frustrating aspects of the files.

  4. #4

    Default Re: units linked to trade relations?

    Thanks for the tips guys. Will give it a try.



  5. #5
    Presbiter's Avatar Biarchus
    Join Date
    Apr 2008
    Location
    Germany
    Posts
    672

    Default Re: units linked to trade relations?

    thats a very nice idea for a background scirpt recruiting units linked to a trade. never thought of something like that. sounds like a new scriptcommand needs to be tested

  6. #6
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: units linked to trade relations?

    I actually wrote something for keeping track of trade relations as part of an economics package. I havent been able to work on it for a while with everything else going on, but you guys are free to take this base and do whatever you want to with it.

    http://www.twcenter.net/forums/showthread.php?t=213076

Posting Permissions

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