Results 1 to 7 of 7

Thread: How do I remove AI boosts?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default How do I remove AI boosts?

    I have tried searching for this on forum but could not find it. I know it has something to do with putting ; in the character trait file for ai boosts, but when i did it, when I end turn i get error message and game turns off.

    Spoiler Alert, click show to read: 
    ;------------------------------------------
    ;Trait NaturalAiBoost
    ; Characters family
    ; Hidden
    ;
    ; Level GeneralAI
    ; Description GeneralAI_desc
    ; EffectsDescription GeneralAI_effects_desc
    ; Threshold 1
    ;
    ; Effect TroopMorale 1
    ; Effect HitPoints 1
    ; Effect Loyalty 2
    ;
    ; Level HeirAI
    ; Description HeirAI_desc
    ; EffectsDescription HeirAI_effects_desc
    ; Threshold 3
    ;
    ; Effect TroopMorale 2
    ; Effect HitPoints 2
    ; Effect Fertility 2
    ; Effect Loyalty 2
    ;
    ; Level LeaderAI
    ; Description LeaderAI_desc
    ; EffectsDescription LeaderAI_effects_desc
    ; Threshold 5
    ;
    ; Effect TroopMorale 3
    ; Effect HitPoints 4
    ; Effect Fertility 2

    ;-NO TRIGGER AS ONLY WALLACE NEEDS THIS----
    Trait ScotlandHero
    Characters family

    Level Hero_of_Scotland
    Description Hero_of_Scotland_desc
    EffectsDescription Hero_of_Scotland_effects_desc
    Threshold 1

    Effect Command 1
    Effect TroopMorale 3
    Effect Level 3
    Effect Combat_V_Faction_England 3

    ;------------------------------------------


    Spoiler Alert, click show to read: 
    ;------------------------------------------
    ;Trait Ai_Boost
    ; Characters family
    ; Hidden
    ;
    ; Level Ai_Boost
    ; Description Ai_Boost_desc
    ; EffectsDescription Ai_Boost_effects_desc
    ; Threshold 1
    ;
    ; Effect Loyalty 1
    ; Effect TroopMorale 2
    ; Effect LocalPopularity 3
    ; Effect Command 2
    ; Effect SiegeDefence 1
    ; Effect MovementPoints 10
    ; Effect LineOfSight 10
    ; Effect SiegeEngineering 50
    ;
    ; Level Ai_Boost_Hard
    ; Description Ai_Boost_Hard_desc
    ; EffectsDescription Ai_Boost_Hard_effects_desc
    ; Threshold 3
    ;
    ; Effect Loyalty 1
    ; Effect TroopMorale 4
    ; Effect LocalPopularity 3
    ; Effect BattleSurgery 40
    ; Effect Command 3
    ; Effect SiegeDefence 2
    ; Effect MovementPoints 20
    ; Effect LineOfSight 10
    ; Effect SiegeEngineering 50

    ;------------------------------------------
    ;Trait Ai_MoveFix
    ; Characters family
    ; Hidden
    ;
    ; Level Hidden
    ; Description Hidden_desc
    ; EffectsDescription Hidden_effects_desc
    ; Threshold 1
    ;
    ; Effect MovementPoints 25

    ;-----------------------------------------


    Little help please
    Last edited by RabidSheepLegion; October 03, 2010 at 04:44 PM.
    Don't forget to rep me if you like something I did/ or not lol

    See that green thingy under the Carroburg banner? click it!

    Pwning as the Pope on VH/VH Savage AI SS 6.4!
    http://www.twcenter.net/forums/showthread.php?t=430026


  2. #2

    Default Re: How do I remove AI boosts?

    You have to comment out the triggers - and even then it won't help for your current game.
    Your game crashes because you are commenting out the traits, but the AI generals don't magically lose them.
    They still have them, the game looks, then fails to find them and throws a fit and crashes.
    If you want to remove them in the current game then you have to change the triggers to that they will LOSE the traits.

  3. #3

    Default Re: How do I remove AI boosts?

    oooh... (just changed title to how DO I remove traits)... how do I change it so they lose them?
    Don't forget to rep me if you like something I did/ or not lol

    See that green thingy under the Carroburg banner? click it!

    Pwning as the Pope on VH/VH Savage AI SS 6.4!
    http://www.twcenter.net/forums/showthread.php?t=430026


  4. #4
    Meneth's Avatar I mod, therefore I am
    Join Date
    Jul 2010
    Location
    Oslo, Norway
    Posts
    5,531

    Default Re: How do I remove AI boosts?

    The error is due to the triggers still existing.
    Comment out these sections instead:
    Code:
    ;----another ai boost trait--------
    Trigger AI_general_boost
     WhenToTest CharacterTurnStart
    
     Condition IsGeneral
           and not CharacterIsLocal
           and Trait NaturalAiBoost = 0
    
     Affects NaturalAiBoost 1 Chance 100
    
    ;------------------------------------------
    Trigger AI_heir_boost
     WhenToTest CharacterTurnStart
    
     Condition not IsFactionHeir
           and not CharacterIsLocal
           and Trait NaturalAiBoost < 2
    
     Affects NaturalAiBoost 3 Chance 100
    
    ;------------------------------------------
    Trigger AI_leader_boost
     WhenToTest CharacterTurnStart
    
     Condition not IsFactionLeader
           and not CharacterIsLocal
           and Trait NaturalAiBoost < 4
    
     Affects NaturalAiBoost 5 Chance 100
    Code:
    ;============= Ai_Boost TRIGGERS ============
    ;------------------------------------------
    Trigger Ai_Boost_Add
     WhenToTest CharacterTurnEnd
    
     Condition not FactionIsLocal
           and IsGeneral
           and I_EventCounter DifficultyLevel <= 2
           and Trait Ai_Boost < 1
    
     Affects Ai_Boost 1 Chance 100
    
    ;------------------------------------------
    Trigger Ai_Boost_Hard_Add
     WhenToTest CharacterTurnEnd
    
     Condition not FactionIsLocal
           and IsGeneral
           and I_EventCounter DifficultyLevel >= 3
           and Trait Ai_Boost < 1
    
     Affects Ai_Boost 3 Chance 100
    
    ;------------------------------------------
    Trigger Ai_Boost_Remove
     WhenToTest CharacterTurnEnd
    
     Condition IsGeneral
           and CharacterIsLocal
           and Trait Ai_Boost >= 1
    
     Affects Ai_Boost -3 Chance 100
    Don't mess with the move fix, it's so that AI characters don't get permanently stuck somewhere.

  5. #5

    Default Re: How do I remove AI boosts?

    hmmm so something like this?

    ;----another ai boost trait--------
    ;Trigger AI_general_boost
    ; WhenToTest CharacterTurnStart
    ;
    ; Condition IsGeneral
    ; and not CharacterIsLocal
    ; and Trait NaturalAiBoost = 0
    ;
    ; Affects NaturalAiBoost 1 Chance 100
    ;
    ;------------------------------------------
    Don't forget to rep me if you like something I did/ or not lol

    See that green thingy under the Carroburg banner? click it!

    Pwning as the Pope on VH/VH Savage AI SS 6.4!
    http://www.twcenter.net/forums/showthread.php?t=430026


  6. #6

  7. #7

    Default Re: How do I remove AI boosts?

    ok so as far as I can tell, I am restricting the triggers for the ai, so in essence, they cannot use the traits?

    cool, that fixed it! Thx a bunch guys, will bookmark this page for when updates come up and want it to be even for me... Ishan, I gotta go rep some random peeps so I can rep you... bane and meneth, you guys got one from me

    Lol will do tomorrow ishan as I am putting out too much rep... must do in next 24 hrs
    Last edited by RabidSheepLegion; October 03, 2010 at 05:18 PM.
    Don't forget to rep me if you like something I did/ or not lol

    See that green thingy under the Carroburg banner? click it!

    Pwning as the Pope on VH/VH Savage AI SS 6.4!
    http://www.twcenter.net/forums/showthread.php?t=430026


Posting Permissions

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