Need help with Siege trait triggers
If I want to add a trigger that gives a general a trait when fighting siege battles, how do I do? I've done some modding to traits and triggers, so I know how to add a trigger, it's just the siege-part I don't know how to do.
Like this (but I guess I need to add another condition, but I don't know what?):
;------------------------------------------
Trigger goodsiegeattacker
WhenToTest PostBattle
Condition WasAttacker
and IsGeneral
and WonBattle
and I_ConflictType Normal
Affects GoodSiegeAttacker 1 Chance 50
;------------------------------------------
Re: Need help with Siege trait triggers
Code:
;------------------------------------------
Trigger goodsiegeattacker
WhenToTest PostBattle
Condition WasAttacker
and IsGeneral
and WonBattle
and I_ConflictType Siege
Affects GoodSiegeAttacker 1 Chance 50
This thread (Events, Conditions, and Commands) lists the I_ConflictTypes:
https://forums.totalwar.org/vb/showthread.php?t=43121
Here's the relevant section:
Quote:
Identifier: I_ConflictType
Trigger requirements:
Parameters: conflict type (SuccessfulAmbush, FailedAmbush, SuccessfulNightRaid, FailedNightRaid, Normal, Siege, SallyBesieger, Naval, Withdraw)
Sample use: I_ConflictType SuccessfulNightRaid
Description: Test the type of conflict (ambush, siege &c.)
Battle or Strat: Either
Class: BATTLE_CONFLICT_TYPE
Implemented: Yes
Author: Lee