Results 1 to 4 of 4

Thread: Traits question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Shae'en M'taal Member Andreas's Avatar
    Join Date
    Nov 2004
    Location
    Sweden
    Posts
    568

    Default Traits question

    Hello... Was messing around with some traits for me mod today, and I got to the point of adding some of them. What i want to do is to create a number of traits (7), which a family memeber gets one they come to age. I want to be sure that the family member gets one of them, but not more, and I want the chance to be about equal for them. The only way I can imagine is this:
    Traits:
    Code:
    ;================================================== ======
    Trait Trait_One
        Characters family
        ExcludeCultures barbarian, roman, eastern, hun, nomad
    
        Level Trait1
            Description Trait1_desc
            EffectsDescription Trait1_effects_desc
            Threshold  1
    
            Effect X  b
    
    ;================================================== ======
    Trait Trait_Two
        Characters family
        ExcludeCultures barbarian, roman, eastern, hun, nomad
    
        Level Trait2
            Description Trait2_desc
            EffectsDescription Trait2_effects_desc
            Threshold  1
    
            Effect X  c
    
    ;================================================== ======
    Trait Trait_Three
        Characters family
        ExcludeCultures barbarian, roman, eastern, hun, nomad
    
        Level Trait3
            Description Trait3_desc
            EffectsDescription Trait3_effects_desc
            Threshold  1
    
            Effect X  d
    
    ;================================================== ======
    Trait Trait_Four
        Characters family
        ExcludeCultures barbarian, roman, eastern, hun, nomad
    
        Level Trait4
            Description Trait4_desc
            EffectsDescription Trait4_effects_desc
            Threshold  1
    
            Effect X  e
    
    ;================================================== ======
    Trait Trait_Five
        Characters family
        ExcludeCultures barbarian, roman, eastern, hun, nomad
    
        Level Trait5
            Description Trait5_desc
            EffectsDescription Trait5_effects_desc
            Threshold  1
    
            Effect X  f
    
    ;================================================== ======
    Trait Trait_Six
        Characters family
        ExcludeCultures barbarian, roman, eastern, hun, nomad
    
        Level Trait6
            Description Trait6_desc
            EffectsDescription Trait6_effects_desc
            Threshold  1
    
            Effect X  g
    
    ;================================================== ======
    Trait Trait_Seven
        Characters family
        ExcludeCultures barbarian, roman, eastern, hun, nomad
    
        Level Trait7
            Description Trait7_desc
            EffectsDescription Trait7_effects_desc
            Threshold  1
    
            Effect X  h
    
    ;================================================== ======
    Trigggers:
    Code:
    ;------------------------------------------
    Trigger trigger_one
    WhenToTest CharacterComesOfAge
    
    Condition not Trait Trait_One >= 1
              and empire_west
    
    Affects Trait_One 1 Chance 15
    ;------------------------------------------
    Trigger trigger_two
    WhenToTest CharacterComesOfAge
    
    Condition not Trait Trait_One >= 1
              and not Trait Trait_Two >= 1
              and empire_west
    
    Affects Trait_Two 1 Chance 15
    ;------------------------------------------
    Trigger trigger_three
    WhenToTest CharacterComesOfAge
    
    Condition not Trait Trait_One >= 1
              and not Trait Trait_Two >= 1
              and not Trait Trait_Three >= 1
              and empire_west
    
    Affects Trait_Three 1 Chance 15
    ;------------------------------------------
    Trigger trigger_four
    WhenToTest CharacterComesOfAge
    
    Condition not Trait Trait_One >= 1
              and not Trait Trait_Two >= 1
              and not Trait Trait_Three >= 1
              and not Trait Trait_Four >= 1
              and empire_west
    
    Affects Trait_Four 1 Chance 15
    ;------------------------------------------
    Trigger trigger_five
    WhenToTest CharacterComesOfAge
    
    Condition not Trait Trait_One >= 1
              and not Trait Trait_Two >= 1
              and not Trait Trait_Three >= 1
              and not Trait Trait_Four >= 1
              and not Trait Trait_Five >= 1
              and empire_west
    
    Affects Trait_Five 1 Chance 15
    ;------------------------------------------
    Trigger trigger_six
    WhenToTest CharacterComesOfAge
    
    Condition not Trait Trait_One >= 1
              and not Trait Trait_Two >= 1
              and not Trait Trait_Three >= 1
              and not Trait Trait_Four >= 1
              and not Trait Trait_Five >= 1
              and not Trait Trait_Six >= 1
              and empire_west
    
    Affects Trait_Six 1 Chance 15
    ;------------------------------------------
    Trigger trigger_seven
    WhenToTest CharacterComesOfAge
    
    Condition not Trait Trait_One >= 1
              and not Trait Trait_Two >= 1
              and not Trait Trait_Three >= 1
              and not Trait Trait_Four >= 1
              and not Trait Trait_Five >= 1
              and not Trait Trait_Six >= 1
              and not Trait Trait_Seven >= 1
              and empire_west
    
    Affects Trait_Seven 1 Chance 100
    ;------------------------------------------
    Is that the easiest and most efficant way to do it? There is the slight chance that the last on will get the most true hits, and that would be sad but I can see no other way... Can you?

    Of course, it would be easier if we could combine trigger for different traits... A simple random 1 to 100, and six if lines and one else would do the trick pretty easy... But we cannot do that, can we
    Last edited by Andreas; 12-19-2005 at 17:08.
    Supporter and retired teammember of the Wheel of Time mod.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO