Results 1 to 6 of 6

Thread: Create different triggers for same ancillary

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    caralampio's Avatar Magnificus
    Join Date
    Dec 2006
    Location
    Guatemala
    Posts
    1,809

    Default Create different triggers for same ancillary

    I want to divide the adultress ancillary trigger (which depends on a brothel existing in a settlement) into 5 triggers each applying to only one tier of the inn line, with different and increasing chances of getting the ancillary.

    I thought of making the conditional like this

    and SettlementBuildingExists = brothel
    then the next trigger

    and SettlementBuildingExists = inn

    next

    and SettlementBuildingExists = tavern

    and so on in the hopes that each trigger will fire only for the tier it specifies (i.e. the third trigger will fire only for tavern and not for brothel, inn, coaching house or pleasure palace).

    Question: Will this work as intended? Can this cause a crash? (I've been having a few and I am testing the triggers but I don't know if this is the cause).

  2. #2
    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: Create different triggers for same ancillary

    Many of the vanilla traits and ancillaries have multiple triggers. There is no problem with it.

  3. #3
    caralampio's Avatar Magnificus
    Join Date
    Dec 2006
    Location
    Guatemala
    Posts
    1,809

    Default Re: Create different triggers for same ancillary

    OK but will the symbol = work to exclude the other 4 tiers from the conditional? Someone suggested that if for instance I say

    and SettlementBuildingExists = tavern

    the trigger will fire for a tavern, but it will also fire for a brothel or inn because they are like, subsumed in the tavern (being previous tiers of it). I don't see that logic, but I can't refute it either.

  4. #4
    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: Create different triggers for same ancillary

    If you use == then it shouldnt do that, if you use => then it will.

  5. #5
    caralampio's Avatar Magnificus
    Join Date
    Dec 2006
    Location
    Guatemala
    Posts
    1,809

    Default Re: Create different triggers for same ancillary

    == twice OK? I'll try it.

    I take it that symbol is what they're talking about when they say that everyone is equal, but someone is "more equal than the others"

  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: Create different triggers for same ancillary

    lol

    In most programming languages = is used to assign a value, == is used to check the value. It happens to work when used in the M2TW scripting language.

Posting Permissions

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