Results 1 to 3 of 3

Thread: Understanding background traits triggers format

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Semisalis
    Join Date
    Sep 2011
    Location
    New Zealand
    Posts
    412

    Default Understanding background traits triggers format

    Hi all,

    i would like to create a mod that gives all characters more interesting traits. I guess this is competition for TTT. I want to check the format of trait triggers in export_triggers.lua

    the format is effect.trait("the_trait", "agent", 1,1, context)

    all the triggers say "agent" - don't know why?

    the first number is 0,1, or 2 - I don't know what it means

    the second number is -1, 0 or a bigger number. I assume this is the percent chance of the effect happening and you use -1 to block completely but I am guessing

    thanks all
    ~ Too soon old, too late smart ~

  2. #2
    The Hedge Knight's Avatar Fierce When Cornered
    Artifex

    Join Date
    Oct 2009
    Location
    England
    Posts
    5,875

    Default Re: Understanding background traits triggers format

    The parameters are

    1: The trait name
    2: The entity type the trait can be applied to (traits can also be applied to regions, at least in ETW/NTW)
    3: Number of points to add to the trait (multi tiered traits used to exist)
    4: The percentage chance of the trigger being applied.

  3. #3
    Semisalis
    Join Date
    Sep 2011
    Location
    New Zealand
    Posts
    412

    Default Re: Understanding background traits triggers format

    Thanks Hedge. Generals must be "agents" then for this bit of script. Still some
    weiedness, they seem to be applying 0 points sometimes
    ~ Too soon old, too late smart ~

Posting Permissions

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