PDA

View Full Version : Can't get this trigger to work, help!



SSJVegetaTrunks
12-02-2006, 21:34
;------------------------------------------
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?

Atilius
12-03-2006, 02:52
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".

SSJVegetaTrunks
12-03-2006, 02:55
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?

Atilius
12-03-2006, 02:56
I'm assuming that 0.7 means that the chances are lower of victory?

That's correct.

SSJVegetaTrunks
12-03-2006, 03:20
Thanks, that really helps.