Results 1 to 5 of 5

Thread: Can't get this trigger to work, help!

  1. #1

    Default Can't get this trigger to work, help!

    Code:
    ;------------------------------------------
    Trigger ChallengesTheStrong
        WhenToTest PostBattle
    
        Condition WasAttacker
              and IsGeneral
              and I_ConflictType Normal
              and BattleOdds < .7
    
        Affects ChallengesTheStrong  1  Chance  100
    I know it's a problem with the trigger, because when I set the trait to someone to start with, it works for them.

    What I want to happen is: When the general attacks an enemy and has a low chance of winning, it gives him a "point" towards the trait I made "ChallengesTheStrong". Am I just putting in the wrong odds, or what?

  2. #2
    Bibliophilic Member Atilius's Avatar
    Join Date
    Oct 2005
    Location
    America Medioccidentalis Superior
    Posts
    3,837

    Default Re: Can't get this trigger to work, help!

    A few points:

    You've apparently got the same name ("ChallengesTheStrong") for both your trait and your trigger. I can't say this is definitely going to cause a problem, but you'll notice that this is never done anywhere else in export_descr_character_traits.txt.

    In order for the BattleOdds condition to recognize its parameter as a number, it needs to begin with a digit; you want "0.7" rather than ".7".

    Note that there is already a trait somthing like this: "GoodRiskyAttacker".
    The truth is the most valuable thing we have. Let us economize it. - Mark Twain



  3. #3

    Default Re: Can't get this trigger to work, help!

    Yeah, but the trait affects are different. Thanks.

    And, since you didn't mention anything about it, I'm assuming that 0.7 means that the chances are lower of victory?

  4. #4
    Bibliophilic Member Atilius's Avatar
    Join Date
    Oct 2005
    Location
    America Medioccidentalis Superior
    Posts
    3,837

    Default Re: Can't get this trigger to work, help!

    Quote Originally Posted by SSJVegetaTrunks
    I'm assuming that 0.7 means that the chances are lower of victory?
    That's correct.
    The truth is the most valuable thing we have. Let us economize it. - Mark Twain



  5. #5

    Default Re: Can't get this trigger to work, help!

    Thanks, that really helps.

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