Results 1 to 4 of 4

Thread: i need help traits and threshold

Hybrid View

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

    Default i need help traits and threshold

    what is my goal: i want that there is a chance (will change the chance in the first trigger to another value after testing) that charcters can receive the trait callofthewild if they end their turn not in a settlement. afterwards they have to stay in the "wild" for 4 turns to get the trait ranger - (ignore the next trait level "guerillafighter").
    when theymove back in town they should loose the chance to become a ranger and get some negativ attributes (which i still have to decide)


    ok here is my trait:

    Spoiler Alert, click show to read: 
    ;------------------------------------------
    Trait Ranger
    Characters family
    ExcludeCultures eastern_european, southern_european, greek, middle_eastern
    NoGoingBackLevel 3

    Level test
    Description test_desc
    EffectsDescription test_effects_desc
    Threshold 1

    Effect Ambush -1

    Level callofthewild
    Description callofthewild_desc
    EffectsDescription callofthewild_effects_desc
    Threshold 2

    Effect Ambush 1

    Level Ranger
    Description Ranger_desc
    EffectsDescription Ranger_effects_desc
    Threshold 6

    Effect Ambush 2
    Effect TaxCollection -5
    Effect LocalPopularity 1
    Effect Loyalty -2
    Effect Trading -5
    Effect MovementPoints 5

    Level Guerillafighter
    Description Guerillafighter_desc
    EffectsDescription Guerillafighter_effects_desc
    Threshold 12

    Effect Ambush 3


    the triggers:

    Spoiler Alert, click show to read: 

    ;------------------------------------------
    Trigger callofthewild
    WhenToTest CharacterTurnEnd
    Condition not EndedInSettlement
    and isGeneral
    and Trait Ranger = 0

    Affects Ranger 2 Chance 100
    ;------------------------------------------
    Trigger Ranger
    WhenToTest CharacterTurnEnd
    Condition not EndedInSettlement
    and isGeneral
    and Trait Ranger > 1
    and Trait Ranger < 6


    Affects Ranger 1 Chance 100
    ;------------------------------------------
    Trigger Ranger_minus1
    WhenToTest CharacterTurnEnd
    Condition EndedInSettlement
    and isGeneral
    and Trait Ranger = 2

    Affects Ranger -1 Chance 100
    ;------------------------------------------
    Trigger Ranger_minus2
    WhenToTest CharacterTurnEnd
    Condition EndedInSettlement
    and isGeneral
    and Trait Ranger = 3

    Affects Ranger -2 Chance 100
    ;------------------------------------------
    Trigger Ranger_minus2
    WhenToTest CharacterTurnEnd
    Condition EndedInSettlement
    and isGeneral
    and Trait Ranger = 4

    Affects Ranger -3 Chance 100
    ;------------------------------------------
    Trigger Ranger_minus4
    WhenToTest CharacterTurnEnd
    Condition EndedInSettlement
    and isGeneral
    and Trait Ranger = 5

    Affects Ranger -4 Chance 100


    i have two problems:

    the first problem is that the characters don't sty at ranger level when i move them back to the settlements. i guess it has something to do with the threshold but i'm not sure - NoGoingBackLevel doesn't work either.

    the second problem is that endedinsettlement don't count in the same turn as i move them in - it needs one more turn that callofthewild switches back to test

  2. #2
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: i need help traits and threshold

    Use an anti-trait instead of negative values. MinusX can cause problems and somehow doesn't work properly when you want a trait to go up and down one level.

    something else:
    Quote Originally Posted by permanent666 View Post
    ;------------------------------------------
    Trigger Ranger
    WhenToTest CharacterTurnEnd
    Condition not EndedInSettlement
    and isGeneral
    and Trait Ranger > 1
    and Trait Ranger < 6



    Affects Ranger 1 Chance 100
    ;------------------------------------------
    Trigger Ranger_minus4
    WhenToTest CharacterTurnEnd
    Condition EndedInSettlement
    and isGeneral
    and Trait Ranger = 5


    Affects Ranger -4 Chance 100
    Your trait only has 4 levels.

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

  3. #3

    Default Re: i need help traits and threshold

    thank you - i thought this value is the threshold - i will give it a try

  4. #4
    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: i need help traits and threshold

    Quote Originally Posted by permanent666 View Post
    what is my goal: i want that there is a chance (will change the chance in the first trigger to another value after testing) that charcters can receive the trait callofthewild if they end their turn not in a settlement. afterwards they have to stay in the "wild" for 4 turns to get the trait ranger - (ignore the next trait level "guerillafighter").
    when theymove back in town they should loose the chance to become a ranger and get some negativ attributes (which i still have to decide)


    ok here is my trait:

    Spoiler Alert, click show to read: 
    ;------------------------------------------
    Trait Ranger
    Characters family
    ExcludeCultures eastern_european, southern_european, greek, middle_eastern
    NoGoingBackLevel 3

    Level test
    Description test_desc
    EffectsDescription test_effects_desc
    Threshold 1

    Effect Ambush -1

    Level callofthewild
    Description callofthewild_desc
    EffectsDescription callofthewild_effects_desc
    Threshold 2

    Effect Ambush 1

    Level Ranger
    Description Ranger_desc
    EffectsDescription Ranger_effects_desc
    Threshold 6

    Effect Ambush 2
    Effect TaxCollection -5
    Effect LocalPopularity 1
    Effect Loyalty -2
    Effect Trading -5
    Effect MovementPoints 5

    Level Guerillafighter
    Description Guerillafighter_desc
    EffectsDescription Guerillafighter_effects_desc
    Threshold 12

    Effect Ambush 3


    the triggers:

    Spoiler Alert, click show to read: 

    ;------------------------------------------
    Trigger callofthewild
    WhenToTest CharacterTurnEnd
    Condition not EndedInSettlement
    and isGeneral
    and Trait Ranger = 0

    Affects Ranger 2 Chance 100
    ;------------------------------------------
    Trigger Ranger
    WhenToTest CharacterTurnEnd
    Condition not EndedInSettlement
    and isGeneral
    and Trait Ranger > 1
    and Trait Ranger < 6 ;<-Level of the trait, your trait has only 4


    Affects Ranger 1 Chance 100 ;<- Points of a trait that count towards a threshold
    ;------------------------------------------
    Trigger Ranger_minus1
    WhenToTest CharacterTurnEnd
    Condition EndedInSettlement
    and isGeneral
    and Trait Ranger = 2

    Affects Ranger -1 Chance 100
    ;------------------------------------------
    Trigger Ranger_minus2
    WhenToTest CharacterTurnEnd
    Condition EndedInSettlement
    and isGeneral
    and Trait Ranger = 3

    Affects Ranger -2 Chance 100
    ;------------------------------------------
    Trigger Ranger_minus2 ;duplicate trigger name to one above needs to be fixed
    WhenToTest CharacterTurnEnd
    Condition EndedInSettlement
    and isGeneral
    and Trait Ranger = 4

    Affects Ranger -3 Chance 100
    ;------------------------------------------
    Trigger Ranger_minus4
    WhenToTest CharacterTurnEnd
    Condition EndedInSettlement
    and isGeneral
    and Trait Ranger = 5

    Affects Ranger -4 Chance 100


    i have two problems:

    the first problem is that the characters don't sty at ranger level when i move them back to the settlements. i guess it has something to do with the threshold but i'm not sure - NoGoingBackLevel doesn't work either.

    the second problem is that endedinsettlement don't count in the same turn as i move them in - it needs one more turn that callofthewild switches back to test
    NoGoingBackLevel only works with antitraits, if you are using negative points you will bypass the threshold, but at the cost of not losing the abilities of the level(s) lost.

    The second problem is due to what I explain below, the first turn they end in the field they will get 3 points (2 from the first trigger + 1 from the second trigger) which puts them at level 2 threshold + 1 point extra. The third trigger which kicks in when you move them into a settlement removes 1 point (not one level) which leaves you with level 2 and no extra points, the second turn in the settlement will remove 1 more point which drops you to level 1.

    Your major problem is you are confusing points and levels. The condition Trait X = Y is testing which level of a trait has been achieved (your trait has 4 levels), while the Affects Trait X Y Chance Z the Y refers to the number of points which is used to count towards a threshold of a level. For example your trait needs 6 points to get to level 3.
    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

Posting Permissions

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