Results 1 to 13 of 13

Thread: limit ancillaries a general could carry

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Presbiter's Avatar Biarchus
    Join Date
    Apr 2008
    Location
    Germany
    Posts
    672

    Default limit ancillaries a general could carry

    is it possible to limit the number of an ancillary type a character could carry?
    f.e. every general should carry only one military ancillarie.

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

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

    Default Re: limit ancillaries a general could carry

    Yes and no. It's not possible to set a limit in a direct sense. However you could create a trait that is hidden such as "HasMilitaryAncillary", and then set up triggers for the trait to check for all types of military ancillary and is one if found, increase the trait. Then, on the flip side, for every military ancillary include in the conditions "and not Trait HasMilitaryAncillary > 0".

    Alternatively, this is more direct but also has room for not being specific. Every Ancillary has a "type". One type is called "military". For every military ancillary you can include in the trigger conditions "and not HasAncType military". This should stop the character from getting more ancillaries typed as military. The problem with this is, obviously either you need to re-classify all the ancillaries considered military to reflect which ones you consider military under your definition, or accept that it may affect other unintended ancillaries in the process.

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

    Default Re: limit ancillaries a general could carry

    thanks for the fast answer, this was the alternative way i supposed to go if there is no direct way.

    another question, is it possible to let an ancillarie be replaced by a new one? if yes how

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

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

    Default Re: limit ancillaries a general could carry

    Quote Originally Posted by Presbiter View Post
    thanks for the fast answer, this was the alternative way i supposed to go if there is no direct way.

    another question, is it possible to let an ancillarie be replaced by a new one? if yes how
    What do you mean by that exactly? You mean a progression like with traits and thresholds?

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

    Default Re: limit ancillaries a general could carry

    i give you an excample.

    general: got as ancillarie a sword

    so i want him get another ancillary, which is also a sword but with better effects. so when this triggers, is there any opportunity to replace the old one instantly.

    its kind of similar to the traits you spoke about, but not exactly the same.

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

    Default Re: limit ancillaries a general could carry

    You just apply the example that Augustus gave earlier. Set up a hidden trait, HasSwordAncillary. When time comes to give the improved sword, test if he hasswordancillary, and go from there.


    "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

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

    Default Re: limit ancillaries a general could carry

    test if he has the trait is not the problem. how does i make it then, that the old ancillarie is deleted, when the new one is apllied?

  8. #8
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: limit ancillaries a general could carry

    i'm pretty sure it's impossible
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  9. #9
    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: limit ancillaries a general could carry

    You can remove ancillaries by script, but I dont think you can do it via trigger.

  10. #10
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: limit ancillaries a general could carry

    how to remove them via script?


    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  11. #11
    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: limit ancillaries a general could carry

    You have to have the character physically selected. In my Hire Ancillaries script you can see how its done.

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

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

    Default Re: limit ancillaries a general could carry

    thank you very much

    never seen such thing before, thats exactly what i wanted.
    Last edited by Presbiter; March 12, 2009 at 03:03 PM.

  13. #13
    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: limit ancillaries a general could carry

    Theres a ton of stuff I have written that is free for anyone to use Presbiter. Check here.
    http://www.twcenter.net/forums/showthread.php?t=176050

Posting Permissions

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