Results 1 to 2 of 2

Thread: Need help with Siege trait triggers

  1. #1
    Member Member lysarin's Avatar
    Join Date
    Jan 2004
    Location
    Sweden
    Posts
    81

    Default 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

    ;------------------------------------------
    "Men and guns are fine but give me more tanks!"

  2. #2
    EB Traiter Member Malrubius's Avatar
    Join Date
    Jan 2005
    Location
    On a tree-covered mountain in Anniston, Alabama, USA
    Posts
    2,633

    Default 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:
    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

    Ah! the Generals! they are numerous, but not good for much (especially if they're Languorous)!
    -- Aristophanes, if he played EB

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