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?
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".
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?
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.
Re: Can't get this trigger to work, help!
Thanks, that really helps.