Page 1 of 3 123 LastLast
Results 1 to 20 of 54

Thread: Lesson 4 part 2 Traits and Ancillaries

  1. #1
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,844
    Blog Entries
    10

    Default Lesson 4 part 2 Traits and Ancillaries

    Now we will be doing traits, ancillaries, and triggers. The traits can be made from any combination of the 51 vices and virtues on the VnVs tab of my Ultimate Docudemons. We will be building a trait that contains at least 2 VnVs and has at least 3 levels. A vanilla trait looks like this:
    Code:
    Trait Coward
        Characters family
        NoGoingBackLevel  3 
        AntiTraits Brave
        Level Faltering_Courage
            Description Faltering_Courage_desc
            EffectsDescription Faltering_Courage_effects_desc
            GainMessage Faltering_Courage_gain_desc
            LoseMessage Faltering_Courage_lose_desc
            Threshold  2 
            Effect TroopMorale -1 
        Level Fears_Conflict
            Description Fears_Conflict_desc
            EffectsDescription Fears_Conflict_effects_desc
            Threshold  4 
            Effect TroopMorale -2

    The Trait name must be unique, other than that you can name it whatever you wish.

    The characters line specifies which characters the trait applies to. You can either use all or separate the types with a comma. These are the allowed types:
    Spoiler Alert, click show to read: 

    admiral
    assassin
    diplomat
    general
    heretic
    imam
    inquisitor
    merchant
    priest
    princess
    spy
    witch

    The NoGoingBackLevel simply specifies that once a level is hit the character cannot go below that level no matter what.

    The AntiTraits line is also simple. Whenever the AntiTrait fires true for a character that has this trait, then this trait will go down 1 level.

    The Description and EffectsDescription reference the lines that show in game descriptions in export_vnvs.txt

    The GainMessage and LoseMessage are optional but also reference export_vns.txt. These will show when your character moves up or down a level.

    The Threshold confuses some people. What this is is a built in counter. Every time one of your triggers fires true for this trait, that counter goes up by one. When the counter hits the Threshold the trait will be applied. So even if you have a trigger set at 100% you can prevent the trait from being applied by setting the Threshold higher.

    The effect line references one of the abilities listed in the Ultimate Docudemons on the VnVs tab. You can stack several Effects in a single trait, I believe the limit is 8.


    The code for Ancillaries works in much the same way:
    Code:
    Ancillary accomplice
        Type Security
        Transferable  0 
        Image sex_yangman.tga
     Unique
        ExcludeCultures mesoamerican
        Description accomplice_desc
        EffectsDescription accomplice_effects_desc
        Effect Subterfuge  1

    The Ancillary name must once again be unique.

    For Type you can use one of the 17 vanilla types or you can create your own type.

    Transferable simply determines whether or not you can move this ancillary from one character to another. 0 is false and 1 is true.

    Image refers to an image located in \data\ui\ancillaries

    If you add the tag Unique, only 1 character in the entire world will be able to have this ancillary.

    ExcludeCultures and ExcludedAncillaries are self explanatory but NOTE that one is spelled Exclude and one is spelled Excluded.

    Descriptions and effects the same as for traits except the description file is export_ancillaries.txt.



    Your task is to build 1 new Ancillary and 1 new Trait with at least 2 levels and get them to show up in game. Enter them in descr_strat and assign them to a character then take a screen shot. Once you know that your new trait and ancillary work in the game then proceed to building triggers.



    Triggers simply tell the game when to apply a trait or ancillary. The trigger is checked when a specified event happens and if the conditions are true then the percentage is applied. Look through the Events in the Ultimate Docudemons, the ones you can use are the ones that export character_record. This is REQUIRED on these triggers because the character_record is what tells the game which character to apply the trait/ancillary to. The same for Conditions, you can use any Condition that has character_record in the Trigger Requirements line.

    Take a look at the vanilla triggers, often there is one that applies to your new trait/ancillary that you can copy, but feel free to experiment with new combinations of Events and Conditions. There will be no screenshot required for triggers, just post your code in a code box.

    This is the last lesson for this class, but for a bonus you can build a new guild. You already have all the skills you need to build a guild, they are just combinations of a new building tree and a triggers file. If you need further reading the best thing ever written on guilds is here. I will hand out the bonus in the form of reputation.

    I will leave the classroom open and continue to help until the end of the year.

  2. #2
    Hunter Makoy's Avatar We got 2 words for ya..
    Join Date
    Apr 2007
    Location
    Dont mess with Texas
    Posts
    5,202

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    can i use my education system for my buildings? or will i still need to come up with a new anc as well?

    btw great job on a great class. they ought to make you an artifex for this.
    Under the patronage of Lord Condormanius (12.29.08)
    "Yes, I know why the leaf is turning yellow. Its a lack of chloroform."

  3. #3
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,844
    Blog Entries
    10

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    Yes you can use your other stuff, I have actually read through quite a bit of your education mod and its pretty good. That actually qualifies you for the traits as well. I will consider the lesson and class completed for you.

    btw great job on a great class. they ought to make you an artifex for this.
    I made Artifex well over a year ago, and Opifex not long after, but thank you for the comments.


    Sometime next week I will try to take a look at the problem you asked me about.

  4. #4
    Hunter Makoy's Avatar We got 2 words for ya..
    Join Date
    Apr 2007
    Location
    Dont mess with Texas
    Posts
    5,202

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    ok thanx alot. yeah i know u made artifex and opifex a while ago, it was a joke. i was gonna say opifex, but i didn't want to get in trouble
    Under the patronage of Lord Condormanius (12.29.08)
    "Yes, I know why the leaf is turning yellow. Its a lack of chloroform."

  5. #5
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    Quote Originally Posted by Hunter Makoy View Post
    ok thanx alot. yeah i know u made artifex and opifex a while ago, it was a joke. i was gonna say opifex, but i didn't want to get in trouble
    J.. oke... What is this j-oke you speak of? Is this some new-fangled thing those whippersnappers came up with? I'm still getting used to moving pictures...


  6. #6
    Hunter Makoy's Avatar We got 2 words for ya..
    Join Date
    Apr 2007
    Location
    Dont mess with Texas
    Posts
    5,202

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    Quote Originally Posted by Augustus Lucifer View Post
    J.. oke... What is this j-oke you speak of? Is this some new-fangled thing those whippersnappers came up with? I'm still getting used to moving pictures...

    ah don't worry, you'll figure it out eventually.
    Under the patronage of Lord Condormanius (12.29.08)
    "Yes, I know why the leaf is turning yellow. Its a lack of chloroform."

  7. #7
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,844
    Blog Entries
    10

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    Many times Garb has accused me of not having a sense of humor.

  8. #8
    Hunter Makoy's Avatar We got 2 words for ya..
    Join Date
    Apr 2007
    Location
    Dont mess with Texas
    Posts
    5,202

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    ill keep that in mind. i dont want to end up in the Tribunal with you cuz you didn't get a joke :laughing:

    Spoiler for GED
    BTW it should be posted now
    Under the patronage of Lord Condormanius (12.29.08)
    "Yes, I know why the leaf is turning yellow. Its a lack of chloroform."

  9. #9
    Nevada's Avatar Domesticus
    Join Date
    Jun 2007
    Location
    Bavaria
    Posts
    2,197

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    ok, I got a nice ancillary that works and a trait that doesn't show up in the traits list but that gives the character all its bonuses....



  10. #10
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,844
    Blog Entries
    10

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    Did you give it the Hidden tag?

  11. #11
    Nevada's Avatar Domesticus
    Join Date
    Jun 2007
    Location
    Bavaria
    Posts
    2,197

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    It works now, i forgot th {LittleGenius} and{Einstein} tags in the export_vnvs.txt

    Here's part 1 for lesson 4.2 8even when i still didn't get 4.1 working; I also think i got some grammatical errors, especially in the trait description^^):

    The ancillary:


    The trait:


    Edit: Here are the triggers.

    First is are the ones for the trait.
    What i basically did: i wanted the trigger to fire after a heroic victory, so I created 2 triggers: One if the general was the offender and one if the general was defender. For 2 traitlevels, this means 4 triggers. The only thing I might add later is, that it only fires after 2 heroic victories for level 1 and after 4 for level 2.
    Or simply decrease the chance

    Code:
    ;------------------------------------------
    Trigger LittleGenius_defender
        WhenToTest PostBattle
    
        Condition not WasAttacker
              and IsGeneral
              and WonBattle
              and BattleSuccess = heroic
    
        Affects BattleGenius  1  Chance  100 
    
    ;------------------------------------------
    Trigger Einstein_defender
        WhenToTest PostBattle
    
        Condition not WasAttacker
              and IsGeneral
              and WonBattle
              and BattleSuccess = heroic
              and BattleOdds >= 0.5
              and BattleOdds < 2
    
        Affects BattleGenius  2  Chance  100 
    
    ;------------------------------------------
    Trigger LittleGenius_attacker
        WhenToTest PostBattle
    
        Condition WasAttacker
              and IsGeneral
              and WonBattle
              and BattleSuccess = heroic
    
        Affects BattleGenius  1  Chance  100 
    
    ;------------------------------------------
    Trigger Einstein_attacker
        WhenToTest PostBattle
    
        Condition WasAttacker
              and IsGeneral
              and WonBattle
              and BattleSuccess = heroic
              and BattleOdds >= 0.5
              and BattleOdds < 2
    
        Affects BattleGenius  2  Chance  100
    Now the trigger for the ancillary:
    This one shall fire when the general fought in battle and the end of the battle was a close victory:
    Code:
    ;------------------------------------------
    Trigger coward_vnv_trigger
        WhenToTest PostBattle
        Condition WasAttacker
              and IsGeneral
              and WonBattle
              and GeneralFoughtInCombat
              and BattleSuccess = close
    
        AcquireAncillary coward chance  50
    Last edited by Nevada; December 23, 2008 at 02:05 PM. Reason: Added the triggers



  12. #12

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    Okay i have finished the part about adding the building and it works

    I am trying to add the ancillary and getting a CTD in the splash screen again.

    Here are my entries.

    export_dscr_ancillaries
    Code:
    Ancillary white_stallion
        Type Pet
        Transferable  0 
        Image animals_horse.tga
        ExcludeCultures mesoamerican
        Description white_stallion_desc
        EffectsDescription white_stallion_effects_desc
        Effect Movement  5
    Code:
    Trigger white_stallion
        WhenToTest PostBattle
        Condition IsGeneral
        and WonBattle
        
        AcquireAncillary white_stallion chance 100
    export_ancillaries.txt
    Code:
    {white_stallion}White Stallion
    (white_stallion_desc}Won the battle and captured the generals white Stallion
    {white_stallion_desc_effects}+25% to Movement Points (gives armies the ability to forced march)
    Tried again still no go
    Last edited by Alex-ander; December 26, 2008 at 06:20 PM. Reason: editing

  13. #13
    Nevada's Avatar Domesticus
    Join Date
    Jun 2007
    Location
    Bavaria
    Posts
    2,197

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    mage knight_chivalrous.tga
    shouldn't it say "image" instead of "mage"?



  14. #14

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    Well spoted Nevada

  15. #15
    Nevada's Avatar Domesticus
    Join Date
    Jun 2007
    Location
    Bavaria
    Posts
    2,197

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    Well spoted Nevada
    the first time I saw it I thought I had remembered it wrong and checked my ancillaries file, sinc ei thought this was so obvious this couldn't possibly be the issue.



  16. #16
    Hunter Makoy's Avatar We got 2 words for ya..
    Join Date
    Apr 2007
    Location
    Dont mess with Texas
    Posts
    5,202

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    Quote Originally Posted by Nevada View Post
    shouldn't it say "image" instead of "mage"?
    good eye, i just assumed it was a magical knight.
    Under the patronage of Lord Condormanius (12.29.08)
    "Yes, I know why the leaf is turning yellow. Its a lack of chloroform."

  17. #17
    Nevada's Avatar Domesticus
    Join Date
    Jun 2007
    Location
    Bavaria
    Posts
    2,197

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    good eye, i just assumed it was a magical knight.
    thanks.
    That was one of my first thoughts (just like the other one), but then I thought why no "_" was connecting the mage with the rest...



  18. #18

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    shouldn't it say "image" instead of "mage"?
    Two things i learnt from this class,

    Never mod while you are tired. You may well make a mistake.

    Never mod if you have had a couple of drinks you definatly will make a mistake.

  19. #19

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    Quote Originally Posted by Alex-ander View Post
    Two things i learnt from this class,

    Never mod while you are tired. You may well make a mistake.

    Never mod if you have had a couple of drinks you definatly will make a mistake.
    that i some of the main reasons i can´t finish this course yet i got stuck in trait and ancillaries, i can´t understand how to add them , the holiday is being too long for me now, i think tonight i´ll give it another go!!!
    i forgot tonight i have another party!!!
    Contribuitor IBIICB-WOTN-Modeler-Scripter


  20. #20
    Nevada's Avatar Domesticus
    Join Date
    Jun 2007
    Location
    Bavaria
    Posts
    2,197

    Default Re: Lesson 4 part 2 Traits and Ancillaries

    you'll eb able to do it soon, january is coming!^^



Page 1 of 3 123 LastLast

Posting Permissions

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