Results 1 to 5 of 5

Thread: Trigger error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Trigger error

    hi


    how can i fix this?

    it's kinda wierd...

    19:42:16.974 [game.script] [error] Trigger processing error in <hero_baldwin>
    : <character_record> is unavailable from event <FactionTurnStart>
    when testing <IsGeneral> condition
    ;------------------------------------------
    Trigger hero_baldwin
    WhenToTest FactionTurnStart
    Condition IsGeneral
    and not I_WorldwideAncillaryExists hero_baldwin
    and I_TurnNumber < 1 ;since this ancillary is unique and will start at the game start, this enables anyone else to get it

    AcquireAncillary hero_baldwin chance 1
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  2. #2

    Default Re: Trigger error

    Try using 'FactionTurnEnd' instead of 'FactionTurnStart'.

    Code:
    Trigger hero_baldwin
        WhenToTest FactionTurnEnd
        Condition IsGeneral
                and not I_WorldwideAncillaryExists hero_baldwin
    and I_TurnNumber < 1 ;since this ancillary is unique and will start at the game start, this enables anyone else to get it
                       
        AcquireAncillary hero_baldwin chance  1
    Morning Sun (adds Korea and China to the Shogun 2 map)
    http://www.twcenter.net/forums/forum...28-Morning-Sun

    Expanded Japan mod (97 new regions and 101 new factions)
    http://www.twcenter.net/forums/showt...ew-factions%29

    How to split a region in TWS2
    http://www.twcenter.net/forums/showt...split-a-region

    Eras Total Conquest 2.3 (12 campaigns from 970-1547)

  3. #3
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: Trigger error

    will do



    a doubt: how does ''FactionisLocal'' works, and what is it for?


    and what's the difference between:

    ''I_LocalFaction '' and ''FactionisLocal'' ?
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  4. #4

    Icon1 Re: Trigger error

    Swagger: try using CharacterTurnStart as your WhenToTest:
    Spoiler Alert, click show to read: 
    Code:
    ;----------------------------------------------
    Trigger hero_baldwin
        WhenToTest CharacterTurnStart
        Condition IsGeneral
    	  and not I_WorldwideAncillaryExists hero_baldwin
              
        AcquireAncillary hero_baldwin  chance  100

    I_LocalFaction england ~ is the england faction controlled by the human player.

    FactionIsLocal ~ is this faction controlled by the human player.
    Spoiler Alert, click show to read: 
    Code:
    ;----------------------------------------------
    Trigger hero_baldwin
        WhenToTest CharacterTurnStart
        Condition IsGeneral
    	  and FactionIsLocal
    	  and not I_WorldwideAncillaryExists hero_baldwin
              
        AcquireAncillary hero_baldwin  chance  100

  5. #5
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: Trigger error

    thanks


    then the FactionIsLocal is the opposite of I_IsFactionAIControlled.. thanks


    i thought it had something to do with the faction that owned the region, or the region 'creator'

    Antioch_Province
    Antioch
    turks
    Seljuk_Rebels
    203 202 201
    none
    5
    5
    religions { catholic 60 orthodox 0 islam 35 pagan 0 heretic 5 }
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •