Results 1 to 13 of 13

Thread: Unique traits?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Finder of Little Oddities Senior Member Makanyane's Avatar
    Join Date
    Jan 2006
    Posts
    2,220

    Default Unique traits?

    I'm trying to get some unique attributes to apply to the first child of a faction to come of age.. this includes the requirement to have a unique epithet and various unique ancillaries and or traits.

    I can make the ancilliaries work as unique - whilst he's alive by using the:
    and not WorldwideAncillaryExists
    line in the ancillary trigger, but I can't work out how to either

    A. get the ancillary to give the epithet, or

    B. get a trait trigger to use the and not Worldwide.. function
    it ignores and generates exit error message if I use 'and not WorldwideAncillaryExists' and just ignores it for any way I can think of writing it for WorldwideTrait etc. !

    Has anyone tried anything like this, advice appreciated!
    Last edited by Makanyane; 11-15-2006 at 21:04.
    Not used mods before? Looking for something small and fun?!
    Download the:

  2. #2
    The Dark Knight Member wlesmana's Avatar
    Join Date
    Jan 2005
    Location
    Indonesia
    Posts
    602

    Default Re: Unique traits?

    If you already know from the start who's going to be the first, then just make a script that would give the trait to that character at a certain date (when he comes of age). That'd be simplest, I suppose, but requires you to know who this person is (by name) and when he'll come of age. And hope he won't die before maturing.

    Another way is to give a trait that's automatically given to all new generals, then this trait would give the Ancillary, which is unique worldwide, and this ancillary would trigger more unique traits. The problems with this method:
    - You can give the ancillary to another general that comes after the first matured general and he'd start getting the traits too.
    - If you gain an adopted general, he'd be treated the same as the first matured.
    - If the general with the ancillary dies, the ancillary would pop up for another newly matured general.

    The problem with traits that are triggered by a spawned ancillary is that you can't keep it from not spawning again. So the only way to make it not spawning again is to spawn it only by script or have it exist at the start of the campaign with no trigger to spawn again.

  3. #3

    Default Re: Unique traits?

    A couple of questions:

    - Do you know which character this is (i.e. is it a specific character, or a random one). Is he already coded in the ds (as a child)? Do you know the father?
    - What type of trait is it? Is it something that you'd want to die out with the character, or could it be passed on to his sons?

    Uniqe traits are not really possible, only in a roundabout way, really. Still, there are some ways it can be done, provided information is already known. That's why I had to make Steward of Gondor an ancillary :(

    Another way is to give a trait that's automatically given to all new generals, then this trait would give the Ancillary, which is unique worldwide, and this ancillary would trigger more unique traits.
    I could not get the FactionwideAncillaryExists & WorldwideAncillaryExists conditions to work in the traits files in BI 1.6.



  4. #4
    EB Traitor Member BozosLiveHere's Avatar
    Join Date
    Jan 2006
    Location
    Uqbar, Tlön
    Posts
    3,662

    Default Re: Unique traits?

    To make the ancillary unique all you have to do is add the Unique line to it, like you would add Hidden to a trait, like this:
    Code:
    Ancillary BozosLiveHere
        Image BozosLiveHere.tga
        Unique
        Description BozosLiveHere_desc
        EffectsDescription BozosLiveHere_effects_desc
    As the others have already said, there's no straightforward way to get a unique trait. In the case you mentioned maybe you could do something like this:
    Code:
    Trait Fatherhood
        Characters family
        Hidden
    
        Level Firstborn
            Description Firstborn_desc
            EffectsDescription Firstborn_effects_desc
            Threshold  1
    
        Level FirstbornBecomesAdult
            Description Firstborn_becomes_adult_desc
            EffectsDescription Firstborn_becomes_adult_effects_desc
            Threshold  32 ;assuming you're using 2 turns per year
    
        Level FirstbornAlreadyAdult
            Description Firstborn_already_adult_desc
            EffectsDescription Firstborn_already_adult_effects_desc
            Threshold  33
    
    ;----------------------------------------
    Trait Firstborn
        Characters family
    
        Level OnlySon
            Description Only_Son_desc
            EffectsDescription Only_Son_effects_desc
            Threshold  1
    In the trigger section you'd have:
    Code:
    Trigger Becomes_Dad_For_The_First_Time
    WhenToTest CharacterBecomesAFather
    
    Condition Trait Fatherhood < 1
    
    Affects Fatherhood  1  Chance 100
    
    ;--------------------------------------
    Trigger Firstborn_is_getting_older
    WhenToTest CharacterTurnStart
    
    Condition Trait Fatherhood > 0
            and Trait Fatherhood < 3
    
    Affects Fatherhood  1  Chance  100
    
    ;--------------------------------------
    Trigger Firstborn_gets_his_trait
    WhenToTest CharacterComesOfAge
    
    Condition FatherTrait Fatherhood = 2
    
    Affects Firstborn  1  Chance  100
    Quote Originally Posted by -apocalypsis-
    I could not get the FactionwideAncillaryExists & WorldwideAncillaryExists conditions to work in the traits files in BI 1.6.
    Really? I thought I'd seen WorldWideAncillaryExists in the vanilla edct. Gah! There goes my idea for using scripts to affect trait acquisition.
    Last edited by BozosLiveHere; 11-16-2006 at 15:06.

  5. #5

    Default Re: Unique traits?

    Quote Originally Posted by BozosLiveHere
    Really? I thought I'd seen WorldWideAncillaryExists in the vanilla edct. Gah! There goes my idea for using scripts to affect trait acquisition.
    And my idea of having a 'Steward of Gondor' unique trait, with accompanying epithet and two unique ancillaries were shattered.



  6. #6
    Finder of Little Oddities Senior Member Makanyane's Avatar
    Join Date
    Jan 2006
    Posts
    2,220

    Default Re: Unique traits?

    Thanks for all the info, there's a lot to digest so I'll probably be back.!

    BozosLiveHere I hadn't noticed the 'Unique' line in use for ancillaries - that suits me better than the Worldwide condition, thanks for that.

    wlesmana I was trying to avoid scripting, because A. I'm useless at it and B. mod so far isn't scripted, so I didn't want to get into the whole hit 'show me how' thing just for this.....
    Another way is to give a trait that's automatically given to all new generals, then this trait would give the Ancillary, which is unique worldwide, and this ancillary would trigger more unique traits.
    Did you really mean that? Ignoring bit about trying to get FactionwideAncillaryExists & WorldwideAncillaryExists conditions to work in the traits file, can you actually get any trigger for a trait to reference (spawn from) a named ancillary? I couldn't find any example of that either. If I could get my now 'Unique' ancillary to generate trait with epithet I think I might be part of way there.



    As you may have gathered by now I'm slightly lost on all this - is there anywhere a list of all the trigger conditions and effects etc. that have been proved to work?
    Not used mods before? Looking for something small and fun?!
    Download the:

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