Results 1 to 16 of 16

Thread: "e_select_character" problems

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    alhoon's Avatar Comes Rei Militaris
    Join Date
    Apr 2008
    Location
    Chania, Greece
    Posts
    24,233

    Default "e_select_character" problems

    Well, it doesn't work for me.

    According to the UDocudemons 4.0 a script like:

    "monitor_event CharacterTurnEnd FactionIsLocal
    e_select_character
    console_command give_trait this Drink
    end monitor"

    should work. Well, it doesn't.

    The only way to make it work is to select the character by hand before hitting end turn. Then the script works for this character.

    What I do wrong?
    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).

  2. #2
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: "e_select_character" problems

    Its broken.

    The only way is to force the player to physically select the character.

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

    Default Re: "e_select_character" problems

    oh, crap... Thanks. At least I won't waste any more hours.
    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).

  4. #4
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: "e_select_character" problems

    I have tried everything conceivable to get it to work, and so has alpaca. Its one of the things that pisses me off the most about the CA scripting language. Life would be soooo much simpler.

    I have figured out a way to work around some issues, but there is no magic bullet to fix all of them. If you give me an idea what you are trying to do I might have already figured something out for it.

  5. #5
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: "e_select_character" problems

    Alhoon, try this, it really should work:

    Code:
    monitor_event CharacterTurnStart
    e_select_character
    console_command give_trait this Drink
    end monitor
    I'm almost 100% certain that e_select works with CharacterTurnStart. It's buggy and doesn't work with all commands, but it does work with specific ones.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  6. #6

    Default Re: "e_select_character" problems

    It won't work right. For once, you can't have anything selected when you press end turn. Secondly, it won't work for more than one monitor at once - i.e., if you have two or more such monitors firing at the same turn, the guy that fired the first one will get all the traits, even if he isn't eligible to fire the others.

  7. #7
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: "e_select_character" problems

    Well that still gives it room to perform under some conditions.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

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

    Default Re: "e_select_character" problems

    Thankfully, I found a way around this mess.

    I was trying the following more or less:
    - Event X fires and gives the accept/decline for the player. Example: A faction demands money or they start propaganda against the FLeader.
    - If player accepts/declines there's a random chance for the FL to aquire the trait. Example: If the player declines there's a 5% - 15% chance for the FLeader to get a -2 to authority etc for 15 turns.

    The good thing is that for FLeader and FHeir I managed to do this with event counters in the traits.

    Solution I ended up with:
    If the player declines, Event counter X1 becomes 1. As long as X1 =1, there's a chance that the event counter X2 becomes 1.

    Export_char_traits:

    Trigger smear_england_FL1
    WhenToTest CharacterTurnEnd
    Condition FactionType england
    and IsFactionLeader
    and I_EventCounter propaganda_england = 1
    and not I_EventCounter authorleader >= 2
    Affects propaganda 1 Chance 4

    Problem solved.

    As a note, Authorleader is a counter that becomes 2 if the FLeader has authority 6 or more and propaganda is the trait that gives pens to authority and local popularity.

    GrnEyeDvl can you please put a note on the Docudemons that the e_select_character is buggy? So that people know and don't lose hours upon hours to see what's wrong?
    Also may I ask which other commands are bugged?
    Last edited by alhoon; September 27, 2008 at 04:38 AM.
    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).

  9. #9
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: "e_select_character" problems

    I have already done that I just havent uploaded version 5.0 yet. There are still a few more things I want to add.

    Other stuff that I know of off the top of my head that are jacked up:
    provoke_rebellion - does not seem to work at all
    FatherTrait condition - Only works when used with the FatherDiesNatural event, all others cause a CTD


    Probably a few others.

  10. #10
    alpaca's Avatar Harbinger of saliva
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    4,811

    Default Re: "e_select_character" problems

    FatherTrait works when you use it with CharacterComesOfAge which is the primary intention.

    Anyways, the e_select_character does work with some specific stuff I believe, for example with the events that trigger on a spy mission, etc. In that case, however, it will select the faction leader. I also think it's best to simply not use it.

    No thing is everything. Every thing is nothing.

  11. #11
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: "e_select_character" problems

    Quote Originally Posted by alpaca View Post
    FatherTrait works when you use it with CharacterComesOfAge which is the primary intention.

    Anyways, the e_select_character does work with some specific stuff I believe, for example with the events that trigger on a spy mission, etc. In that case, however, it will select the faction leader. I also think it's best to simply not use it.
    I think that rather than working randomly, it's been coded merely to work with specific events. It is an extraordinarily useful command and so I think it would be really useful if we could collate all of the events under which it works correctly.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  12. #12
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: "e_select_character" problems

    Quote Originally Posted by alpaca View Post
    FatherTrait works when you use it with CharacterComesOfAge which is the primary intention.

    Anyways, the e_select_character does work with some specific stuff I believe, for example with the events that trigger on a spy mission, etc. In that case, however, it will select the faction leader. I also think it's best to simply not use it.
    I meant FatherAnc there, sorry.

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

    Default Re: "e_select_character" problems

    Quote Originally Posted by GrnEyedDvl View Post
    I meant FatherAnc there, sorry.



    OK... You just saved me from a couple of hours.
    Any other way to implement FatherAnc?

    Oh, this is infuriating. You know all these ancillaries "Prince of XXXX", "Emperor of XXXX" etc.
    So, we can't give the son of these guys traits and ancillaries except if they are faction heirs?

    I have turned some titles to transferable ancillaries.
    Last edited by alhoon; October 01, 2008 at 01:30 AM.
    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).

  14. #14

    Default Re: "e_select_character" problems

    What about e_select_settlement? Does that work?

    Dominion of the Sword, a Medieval II: Total War Supermod
    Under the patronage of Archaon. Proud member of the House of Siblesz
    My friend died from chain letters. If you don't post this again 100 times, he will come and kill you in your sleep!

  15. #15
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: "e_select_character" problems

    It seems to have the same issues.

  16. #16
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: "e_select_character" problems

    The only way I have been able to use the condition is with FatherDiesNatural, but I havent tested every single event with it. The ones I have tested resulted in CTD.

Posting Permissions

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