Results 1 to 10 of 10

Thread: Predetermined Traits

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    cankles's Avatar Semisalis
    Join Date
    Mar 2008
    Location
    America
    Posts
    416

    Default Predetermined Traits

    Hey, I was just curious if you could set predetermined traits for generals who haven't come of age yet in the descr_strat file. Like this:

    character_record Matilda, female, age 49, alive, never_a_leader
    character_record Henry, male, age 12, alive, never_a_leader

    To this:

    character_record Matilda, female, age 49, alive, never_a_leader
    character_record Henry, male, age 12, alive, never_a_leader
    traits GoodCommander 2 , LoyaltyStarter 1 , ReligionStarter 1

    Will something like this work?
    I love Sweaty Pudding.

    (\ /)
    (O.o)
    (> <)

  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: Predetermined Traits

    Nope.

    You would have to set a trat on the father, then check the trait when the son comes of age and if father has X trait then assign Y trait to son with 100% chance.

  3. #3
    cankles's Avatar Semisalis
    Join Date
    Mar 2008
    Location
    America
    Posts
    416

    Default Re: Predetermined Traits

    Do you mean a trigger? I don't quite understand.
    I love Sweaty Pudding.

    (\ /)
    (O.o)
    (> <)

  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: Predetermined Traits

    Yes a trigger. You would have to build a new one.

    You give one character a trait, either in descr_strat or through the campaign script or even with another trigger. Then when his son comes of age you check to see if his father has a certain trait and if he does you give his son the trait you want. Check out the export_descr_character_traits file and you should be able to figure out how the triggers work.

  5. #5
    cankles's Avatar Semisalis
    Join Date
    Mar 2008
    Location
    America
    Posts
    416

    Default Re: Predetermined Traits

    Thanks for the clarification. I will do that.
    I love Sweaty Pudding.

    (\ /)
    (O.o)
    (> <)

  6. #6

    Default Re: Predetermined Traits

    Although realize that all your characters throughout the game will be giving their sons that trait provided they have the correct trigger. That could be problematic.

  7. #7
    cankles's Avatar Semisalis
    Join Date
    Mar 2008
    Location
    America
    Posts
    416

    Default Re: Predetermined Traits

    I'm not worried about that, but thanks for the warning.
    I love Sweaty Pudding.

    (\ /)
    (O.o)
    (> <)

  8. #8
    alpaca's Avatar Harbinger of saliva
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    4,811

    Default Re: Predetermined Traits

    You could also check on the character coming of age (best use a CharacterComesOfAge I_CharacterExists <name> one that's terminated when executed) and dish out the traits with the script. This would work because you know the character's name and is a lot less work than adding another ton of traits to the starting characters just to have a one-time inheritance control thingy.

    Edit: Besides, does anybody know what happens with the FatherTrait condition if the father is already dead?
    Last edited by alpaca; April 18, 2008 at 01:41 PM.

    No thing is everything. Every thing is nothing.

  9. #9
    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: Predetermined Traits

    It still applies. Or it did before Kingdoms 1.05. I would assume it still does.

  10. #10
    cankles's Avatar Semisalis
    Join Date
    Mar 2008
    Location
    America
    Posts
    416

    Default Re: Predetermined Traits

    I think I figured it out. Thanks Guys!
    I love Sweaty Pudding.

    (\ /)
    (O.o)
    (> <)

Posting Permissions

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