Results 1 to 9 of 9

Thread: Question about IsGeneral

Hybrid View

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

    Icon4 Question about IsGeneral

    Hello

    I am writing a trigger to promote a normal unit ( for example nubian archers ) to a general if the army he is commanding wins. This is what i tried:

    Code:
    Trigger HeroicBattleCommander_abc
        WhenToTest PostBattle
    
        Condition IsGeneral
              and WonBattle
          and FactionType egypt
    
        Affects GoodCommander 1 Chance 100
        Affects Disciplinarian  2  Chance  100
        Affects Military_Edu  1  Chance  100
        Affects NightBattleCapable  1  Chance  100
    I added this to the edct.txt but it doesnt seem to work. So my question is, does the IsGeneral condition only apply to family members? if so, is there a way to promote normal unit generals to proper generals through this kind of trigger?
    The human sickness is so severe, that few are willing to look at it. But those who do, become well.

  2. #2
    Pnutmaster's Avatar Dominus Qualitatium
    Join Date
    Jan 2006
    Location
    Brooklyn, NY
    Posts
    1,572

    Default Re: Question about IsGeneral

    Quote Originally Posted by Jaxal View Post
    I added this to the edct.txt but it doesnt seem to work. So my question is, does the IsGeneral condition only apply to family members?
    It does not apply to captains.

    if so, is there a way to promote normal unit generals to proper generals through this kind of trigger?
    No :/ If only there were, eh?
    Under the patronage and bound to the service of the
    artist formerly known as Squeakus Maximus
    Stoic Pantheist of S.I.N

  3. #3
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: Question about IsGeneral

    No, you cannot give captains any traits.

    Code:
    Trigger HeroicBattleCommander_abc
        WhenToTest PostBattle
    
        Condition IsGeneral
              and WonBattle
          and FactionType egypt
    
        Affects GoodCommander 1 Chance 100
        Affects Disciplinarian  2  Chance  100
        Affects Military_Edu  1  Chance  100
        Affects NightBattleCapable  1  Chance  100
    Another thing: If you want this to fire for Egyptian FMs only you need to use CharFactionType, FactionType as character's condition is not recognized.

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

  4. #4

    Default Re: Question about IsGeneral

    It does not apply to captains.
    I hope they allow us to do this in the next series of TW games.

    Cheers for the tip konny. I will implement this code for egyptian family members then but with more conditions.

    Thanks for the help guys.
    The human sickness is so severe, that few are willing to look at it. But those who do, become well.

  5. #5

    Default Re: Question about IsGeneral

    Hello again

    I tried out a simple trigger to see if it works. this is what i have:

    Code:
     Trigger StandardBattle_AnyVictory_MilitaryInclination_abc
        WhenToTest PostBattle
    
        Condition IsGeneral
          and FactionType egypt ( also used CharFactionType even tho i couldnt find it anywhere in the Stainless Steel edct.txt )
          and I_ConflictType Normal
        and WonBattle
    
        Affects GoodCommander  1  Chance  100
        Affects Noctophobia  1  Chance  100

    All im trying to do is to give the commander, who is a family member ) +1 command point plus the noctophobia to make sure that it was my triggered that fired, but it does not seem to work. I started a new game after i added this to edct.txt but to no avail. Am i missing something or doing something wrong?
    The human sickness is so severe, that few are willing to look at it. But those who do, become well.

  6. #6
    Pnutmaster's Avatar Dominus Qualitatium
    Join Date
    Jan 2006
    Location
    Brooklyn, NY
    Posts
    1,572

    Default Re: Question about IsGeneral

    Quote Originally Posted by Jaxal View Post
    Code:
     Trigger StandardBattle_AnyVictory_MilitaryInclination_abc
        WhenToTest PostBattle
    
        Condition IsGeneral
          and FactionType egypt ( also used CharFactionType even tho i couldnt find it anywhere in the Stainless Steel edct.txt )
          and I_ConflictType Normal
        and WonBattle
    
        Affects GoodCommander  1  Chance  100
        Affects Noctophobia  1  Chance  100

    All im trying to do is to give the commander, who is a family member ) +1 command point plus the noctophobia to make sure that it was my triggered that fired, but it does not seem to work. I started a new game after i added this to edct.txt but to no avail. Am i missing something or doing something wrong?
    What is the threshold for level 1 of the Traits GoodCommander and Noctophobia? Try...

    Affects GoodCommander 10 Chance 100
    Affects Noctophobia 3 Chance 100
    Under the patronage and bound to the service of the
    artist formerly known as Squeakus Maximus
    Stoic Pantheist of S.I.N

  7. #7
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Question about IsGeneral

    Quote Originally Posted by konny View Post
    No, you cannot give captains any traits.

    Code:
    Trigger HeroicBattleCommander_abc
        WhenToTest PostBattle
    
        Condition IsGeneral
              and WonBattle
          and FactionType egypt
    
        Affects GoodCommander 1 Chance 100
        Affects Disciplinarian  2  Chance  100
        Affects Military_Edu  1  Chance  100
        Affects NightBattleCapable  1  Chance  100
    Another thing: If you want this to fire for Egyptian FMs only you need to use CharFactionType, FactionType as character's condition is not recognized.
    That is incorrect, PostBattle exports faction, which means that FactionType is recognized, you'd need to use CharFactionType instead of FactionType if and only if the event did not export faction.

    Quote Originally Posted by Jaxal View Post
    Hello again

    I tried out a simple trigger to see if it works. this is what i have:

    Code:
     Trigger StandardBattle_AnyVictory_MilitaryInclination_abc
        WhenToTest PostBattle
    
        Condition IsGeneral
          and FactionType egypt ( also used CharFactionType even tho i couldnt find it anywhere in the Stainless Steel edct.txt )
          and I_ConflictType Normal
        and WonBattle
    
        Affects GoodCommander  1  Chance  100
        Affects Noctophobia  1  Chance  100
    All im trying to do is to give the commander, who is a family member ) +1 command point plus the noctophobia to make sure that it was my triggered that fired, but it does not seem to work. I started a new game after i added this to edct.txt but to no avail. Am i missing something or doing something wrong?
    I'm going to assume that you were using either a family member or a recruited general from the egyptian faction and that you won the battle, so are you sure the battle was a normal battle?
    Last edited by Squid; June 03, 2009 at 05:27 PM.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  8. #8

    Default Re: Question about IsGeneral

    It was a land battle. To check if my trigger fired, i gathered the army from differnt cities, put them together under one family member, and just randomly attacked the nearest fation. it was on land, i didnt besiege the city or anything. just a normal battle where i am the attacker.
    The human sickness is so severe, that few are willing to look at it. But those who do, become well.

  9. #9
    alhoon's Avatar Comes Rei Militaris
    Join Date
    Apr 2008
    Location
    Chania, Greece
    Posts
    24,223

    Default Re: Question about IsGeneral

    I think there is a way for having generals in normal units. You just put the general_unit at the EDU, in the unit you want to support generals.

    Note however that this way every such unit you recruit will be a general! ! ! ! I.e if you put this in the Nubian spearmen, every nubian spearmen unit will have a general!
    alhoon is not a member of the infamous Hoons: a (fictional) nazi-sympathizer KKK clan. Of course, no Hoon would openly admit affiliation to the uninitiated.
    "Angry Uncle Gordon" describes me well.
    _______________________________________________________
    Beta-tester for Darthmod Empire, the default modification for Empire Total War that does not ask for your money behind patreon.
    Developer of Causa Belli submod for Darthmod, headed by Hammeredalways and a ton of other people.
    Developer of LtC: Random maps submod for Lands to Conquer (that brings a multitude of random maps and other features).

Tags for this Thread

Posting Permissions

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