Results 1 to 6 of 6

Thread: FactionType with multiple factions

Hybrid View

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

    Default FactionType with multiple factions

    I'm trying to use FactionType in export_text_ancillaries.txt in such a way that a trigger would work with multiple factions but would be limited to those. Can someone verify whether this is possible and what is the correct syntax. I found some discussion on the topic here (message number 64), but since it is from 2005, thought to ask for more recent experience.

    So can it be used like this:

    Code:
    Trigger xxx
        WhenToTest xxx
        Condition xxx
              and FactionType (carthage or huns or egypt)   ;IS THIS CORRECT?
    
        AcquireAncillary xxx chance  15

  2. #2
    chris10's Avatar Primicerius
    Join Date
    Sep 2009
    Location
    Spain
    Posts
    3,239

    Default Re: FactionType with multiple factions

    Quote Originally Posted by chrisb View Post
    I'm trying to use FactionType in export_text_ancillaries.txt in such a way that a trigger would work with multiple factions but would be limited to those. Can someone verify whether this is possible and what is the correct syntax. I found some discussion on the topic here (message number 64), but since it is from 2005, thought to ask for more recent experience.

    So can it be used like this:

    Code:
    Trigger xxx
        WhenToTest xxx
        Condition xxx
              and FactionType (carthage or huns or egypt)   ;IS THIS CORRECT?
    
        AcquireAncillary xxx chance  15
    I think there has to be a trigger for each faction
    To my knowledge there is no "or" function implemented in the engine...not for traits,ancillarys neither for scripting.
    To make certain ancs or traits only for certain factions you have to use
    excluded cultures and make triggers according the factions you want to adquiere the anc or trait...play around with conditions and triggers and automaticly you exclude a lot of possibilities
    Last edited by chris10; May 19, 2011 at 09:29 AM.

  3. #3
    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: FactionType with multiple factions

    chris10 is correct your syntax won't work. But what you can do is use the condition and not FactionType xxx to eliminate every faction you don't want triggering the trigger.
    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

  4. #4

    Default Re: FactionType with multiple factions

    Ok, thanks for the advice! But to prevent extensive testing, could you still clarify these:

    1) can I use and not FactionType xxx multiple times to exclude several factions, i.e. like this:
    Code:
    and not FactionType huns
    and not FactionType egyptians
    and not FactionType carthage
    2) can I use more than one trigger for the same ancillary? I tried it once with something else, but the game kept crashing and I assumed that it is wrong. Is the following ok:

    Code:
    Trigger xxx_carthage
        WhenToTest xxx
        Condition xxx
              and FactionType carthage
        AcquireAncillary AncillaryName1 chance  15
    
    Trigger xxx_huns
        WhenToTest xxx
        Condition xxx
              and FactionType huns
        AcquireAncillary AncillaryName1 chance  15
    
    Trigger xxx_egypt
        WhenToTest xxx
        Condition xxx
              and FactionType egypt
        AcquireAncillary AncillaryName1 chance  15

  5. #5

    Default Re: FactionType with multiple factions

    1) would be the best way of doing it....but also worth using ExcludeCultures (e.g. barbarian, greek, etc) if you can


    Under patronage of Spirit of Rob; Patron of Century X, Pacco, Cherryfunk, Leif Erikson.

  6. #6

    Default Re: FactionType with multiple factions

    Quote Originally Posted by tone View Post
    1) would be the best way of doing it....but also worth using ExcludeCultures (e.g. barbarian, greek, etc) if you can
    OK, will try that. But does 2 also work? It might come handy in some other setting, for example if you want to give the same ancillary in two completely different kinds of situations?

Posting Permissions

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