Results 1 to 16 of 16

Thread: Problem triggering ancillaries

Hybrid View

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

    Default Problem triggering ancillaries

    Hello,

    Have a problem and would appreciate any advice that would help me in my efforts.

    I created a Legate ancillary for each of the legions in theoutstanding SPQR mod. I managed to give this ancillary from the start of the campaign through descr_strat file. I used an existing tga picture (roman official).

    Now, when I try to have this ancillary triggered during campaign linked to sttlements instead of giving it from the start, it does not show up at all and I do not know what I did wrong :hmmm:

    1) My entries in EDA as follows:
    ;------------------------------------------
    Ancillary Legate_LEG_I
    Image roman_official_ancillary.tga
    ExcludeCultures barbarian, carthaginian, eastern, egyptian, greek
    Description Legate_LEG_I_desc
    EffectsDescription Legate_LEG_I_effects_desc
    Effect Influence 2
    Effect TroopMorale 1
    Effect Command 1

    and for trigger section in EDA:

    Trigger trigger_Legate_LEG_I
    WhenToTest CharacterTurnEnd
    Condition EndedInSettlement
    and FactionType romans_julii
    and SettlementName Capua
    and IsGeneral
    and SettlementBuildingExists >= militia_barracks
    AcquireAncillary Legate_LEG_I chance 100

    I have also considered adding one more condition but I am not sure it will work - anyone having tested the following condition:

    and not FactionwideAncillaryExists Legate_Leg_I true

    2) My entries in export_descr_ancillaries_enyms as follows:
    Legate_LEG_I
    Legate_LEG_I_desc
    Legate_LEG_I_effects_desc

    3) My entries in export_ancillaries as follows:

    ¬---------------
    {Legate_LEG_I} Legatus Legionis LEGIO I
    {Legate_LEG_I_desc}
    Legate of the legion (Legion Commander) Legion I
    {Legate_LEG_I_effects_desc}
    +2 Influence, +1 TroopMorale, +1 Command

    Please, if someone knows what could be wrong, what I have forgotten, then I would be very gateful. Right now I am stuck

    Sulla

  2. #2

    Default Re: Problem triggering ancillaries

    1) The conditions goes like that: "and not FactionwideAncillaryExists Legate_Leg_I true" No "true" needed. And ye,s it works.

    2) Try outcommenting all of the conditions in the trigger and add them one by one again, in order to see which condition creates the problem. Chances are it's the SettlementName one (there is no settlement with internal name "Capua"), so I'd start with that one.

  3. #3

    Default Re: Problem triggering ancillaries

    Thank you for the quick reply

    Will test accordingly

    Sulla

  4. #4

    Default Re: Problem triggering ancillaries

    one more immediate question - where/which file do I find the internal settlement names? Must admit I misunderstood this parameter before.

    Sulla

  5. #5
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Problem triggering ancillaries

    descr_regions.txt or text\campaign_name_regions_and_settlements_names.txt
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  6. #6

    Default Re: Problem triggering ancillaries

    OK, it was the "SettlementName" parameter that caused the issue. I managed to get it to work now. So thanks a lot!

    I also managed to get the "and not FactionwideAncillaryExists" to work. I have a question to this though, when the general who had the ancillary died in battle (by purpose of course ), but the another general that I sent to the settlement the next turn did not get the ancillary ...:hmmm: I checked the docudemon and thought this condition only checked that the ancillary did not already exist within the faction (with a General still alive). Hence, does this condition limit the ancillary to only "kick in" once?

    What I am after is a condition to limit the specific ancillary to only one general at a time. Now if the general dies, I wish to appoint a new legate for that legion via the ancillary. Any ideas how to fix this?

    Sulla

  7. #7

    Default Re: Problem triggering ancillaries

    The condition *should* work once the guy died. Are you sure nobody else had the anc (maybe via descr_strat?). Can you post the trigger here?

  8. #8

    Default Re: Problem triggering ancillaries

    I made sure nothing was done with descr_strat.

    Here are the EDA entries (I took out the building condition since the "FactionWideAncillaryExist" should have fulfilled the purpose, the way I understood it):

    ;------------------------------------------
    Ancillary Legate_LEG_I
    Image roman_official_ancillary.tga
    ExcludeCultures barbarian, carthaginian, eastern, egyptian, greek
    Description Legate_LEG_I_desc
    EffectsDescription Legate_LEG_I_effects_desc
    Effect Influence 2
    Effect TroopMorale 1
    Effect Command 1
    ;===============================================================
    ;== ANCILLARY TRIGGERS START HERE ==============================
    ;===============================================================
    ;------------------------------------------
    Trigger trigger_Legate_LEG_I
    WhenToTest CharacterTurnEnd
    Condition EndedInSettlement
    and FactionType romans_julii
    and IsGeneral
    and RegionName Etruria
    and not FactionwideAncillaryExists Legate_LEG_I
    AcquireAncillary Legate_LEG_I chance 100

    Thanks for your time answering my questions.

    Sulla

  9. #9

    Default Re: Problem triggering ancillaries

    Code:
    and RegionName Etruria
    That's not a valid condition. You need to use the SettlementName one.

  10. #10

    Default Re: Problem triggering ancillaries

    Someone once told me "perceverance is a virtue"

    Strange, I tested it with this condition and it worked giving the acillary to the first general in tha settlement ... :hmmm:although when he was killed in battle the second gheneral sent to this settlement did not get the ancillary (which made me wonder about the "... FactionWideAncillary Exists ..." condition)

    Just for clarification, and sorry if the question is stupid, but I took the "REGION" names (understanding them as the "INTERNAL" settlement names) from descr_regions file - Is this correct or are the internal settlement names something else?

    Hence, should the condition be "and SettlementName Etruria" for example?

    Sulla

  11. #11

    Default Re: Problem triggering ancillaries

    A region has a settlement. Both have an internal name and an external name.

    In descr_regions you see the internal names. In text/my_camapign_regions_and_settlements_names.txt, you can see every internal name (of both regions and settlements) in brackets, and on the right side the corresponding external names.

    The SettlementName condition needs the external name of the settlement, and it must be just 1 word (no spaces). If you have a settlement with a multiple-word external name, the condition won't work and you ahve to find another way to "mark" the settlement.

    And invalid conditions are parsed as "true" by the engine.

  12. #12

    Default Re: Problem triggering ancillaries

    YES! IT WORKS

    Both the "and SettlementName ..." and "... FactionWideAncillaryExists ...". Exactly as I wanted it to work.

    Thank you soo much for your patience with me and my stupid errors. I owe you big time.

    Sulla

  13. #13
    Hesus de bodemloze's Avatar The Gaul
    Civitate Patrician Content Emeritus

    Join Date
    Aug 2006
    Location
    Belgium
    Posts
    12,317

    Default Re: Problem triggering ancillaries

    Congrats Sulla you got it working we all await your zip file to be posted in the SPQR forum.
    Horum omnium fortissimi sunt Belgae :
    Hesus 's Photo Gallery
    The Writers Study|Ex-Global Moderator|Moderation Mentor| Ex - Librarian of the Scriptorium|PoTW|MAARC|ToTW
    SPQR Forum Moderator

  14. #14

    Default Re: Problem triggering ancillaries

    Yes, I will of course share it. Need your help first though, to test it so that we are sure it is stable and reliable. Sending the files to you asap.

    Sulla

  15. #15
    Hesus de bodemloze's Avatar The Gaul
    Civitate Patrician Content Emeritus

    Join Date
    Aug 2006
    Location
    Belgium
    Posts
    12,317

    Default Re: Problem triggering ancillaries

    Hey dude where are the files that you promised to send?
    Horum omnium fortissimi sunt Belgae :
    Hesus 's Photo Gallery
    The Writers Study|Ex-Global Moderator|Moderation Mentor| Ex - Librarian of the Scriptorium|PoTW|MAARC|ToTW
    SPQR Forum Moderator

  16. #16

    Default Re: Problem triggering ancillaries

    check your email

    Sulla

Posting Permissions

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