Results 1 to 14 of 14

Thread: Traits

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Village special needs person Member Kobal2fr's Avatar
    Join Date
    Nov 2006
    Location
    Paris, France
    Posts
    914

    Default Re: Traits

    Working heavy-handedly on the VnV .txt at the moment, I noticed there are quite a lot of duplicate triggers, especially battle triggers. Same name, same WhenToTest, same conditions, same effects.

    Do these have a purpose I cannot fathom, or can (and should) I clean them out without breaking stuff ? Did RTW have that kind of redundant triggers as well ?
    Anything wrong ? Blame it on me. I'm the French.

  2. #2
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: Traits

    Quote Originally Posted by Kobal2fr
    Working heavy-handedly on the VnV .txt at the moment, I noticed there are quite a lot of duplicate triggers, especially battle triggers. Same name, same WhenToTest, same conditions, same effects.

    Do these have a purpose I cannot fathom, or can (and should) I clean them out without breaking stuff ? Did RTW have that kind of redundant triggers as well ?
    Can you give an example?

  3. #3
    Village special needs person Member Kobal2fr's Avatar
    Join Date
    Nov 2006
    Location
    Paris, France
    Posts
    914

    Default Re: Traits

    Sure. From my backup export_descr_character_traits.txt :

    line 10726 :

    Trigger battle7
    WhenToTest BattleGeneralRouted

    Affects Coward 1 Chance 25

    line 13500 :

    Trigger battle7
    WhenToTest BattleGeneralRouted

    Affects Coward 1 Chance 25

    EDIT : there's also a few triggers with the same name, but differing effects, which is frankly sloppy. I assume I can change the name to whatever I like in order to avoid confusion without breaking the trigger, can't I ? (but perhaps these questions of mine shouldn't be asked here but rather in the "learn to mod" section, now that I think about it...)
    Last edited by Kobal2fr; 12-16-2006 at 18:17.
    Anything wrong ? Blame it on me. I'm the French.

  4. #4
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: Traits

    Hmm interesting. I guess the game takes the last version in the files for each trigger. It should be safe to delete them if they have the same name.

  5. #5
    Magister Vitae Senior Member Kraxis's Avatar
    Join Date
    Feb 2002
    Location
    Frederiksberg, Denmark
    Posts
    7,129

    Default Re: Traits

    There is also the nice Blood Hound ancilliary that when triggered gives your general an Overseer (which is why we see so many of them). Basically the writer managed to cope the trigger of the Overseer down to the Blood Hound (which I think is for the Spy, and rather good too).
    You may not care about war, but war cares about you!


  6. #6
    Village special needs person Member Kobal2fr's Avatar
    Join Date
    Nov 2006
    Location
    Paris, France
    Posts
    914

    Default Re: Traits

    @Kraxis : and losing to denmark will give you the "Hates Aztecs" trait . But yeah, that's the kind of thing I'm currently trying to fix, that and giving triggers to unused traits and ancillaries. Oh, and fixing the names too. I'll probably release my files when I'm sure they're both balanced and don't make the game go ker-klunk.

    I'm tackling the ReligionStarter issue right now, and I really don't get why no general gets it past the first turn of a campaign, because it's triggered first thing whenever someone is born, married and adopted, same as LoyaltyStarter... Triggered a number of times actually. I'm thinking if all else fails, I might include a trigger giving it at the end of each turn, but that's a bit on the brute force side of coding .

    @alpaca : OK, I thought as much, but wasn't sure. Thanks !
    Anything wrong ? Blame it on me. I'm the French.

  7. #7

    Default Re: Traits

    I posted on another thread but this place seems more appropriate.

    I am away from my computer for a few days and can't test ideas or work, but I am still trying to be productive. Could anyone answer a few questions for me?

    1) Will the commands in the docudemon_commands function in the traits file? More specifically, can we use if, while, and the monitors in the traits?

    (If we can there is no point in answering the next questions.)

    2) Can we use conditions in the trait definition instead of the trigger definition? This will also keep the file more human parsable then duplicating triggers. Although the usefullness of a condition is somewhat limited without some sort of an else.

    3) Does condition placement effect only lines after the condition?
    For example:
    Trigger MyTrigger
    WhenToTest CharacterTurnEnd

    Affects BattleChivalry 1 Chance 100

    Condition Trait BattleDread >=1

    Affects BattleChivalry -1 Chance 100
    Affects BattleDread 1 Chance 100

    Thanks.

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