Results 1 to 10 of 10

Thread: CharacterSelect

Hybrid View

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

    Default CharacterSelect

    Has anyone else had problems scripting with this event? It's not firing with any of the conditions I assign.
    Son of PW

  2. #2

    Default Re: CharacterSelect

    Any examples?

    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!

  3. #3

    Default Re: CharacterSelect

    Code:
     
    monitor_event CharacterSelect
          and IsGeneral
          console_command toggle_fow
    end_monitor
    Here's an idea of what I'm trying to do, obviously not indented properly.
    Son of PW

  4. #4
    Aikanár's Avatar no vaseline
    Join Date
    Mar 2009
    Location
    Sanctuary
    Posts
    12,516
    Blog Entries
    3

    Default Re: CharacterSelect

    Quote Originally Posted by Theodotos I View Post
    Code:
     
    monitor_event CharacterSelect <---- edit: you meant CharacterSelected?
          and IsGeneral <---- edit: first condition but "and" used?
          console_command toggle_fow
    end_monitor
    Did you try:

    Code:
    monitor_event CharacterSelected IsGeneral
        console_command toggle_fow
    end_monitor


    Son of Louis Lux, brother of MaxMazi, father of Squeaks, Makrell, Kaiser Leonidas, Iskar, Neadal, Sheridan, Bercor and HigoChumbo, house of Siblesz

    Not everything that counts can be counted, and not everything that can be counted counts.

  5. #5

    Default Re: CharacterSelect

    Quote Originally Posted by Aikanár View Post
    Did you try:

    Code:
    monitor_event CharacterSelected IsGeneral
        console_command toggle_fow
    end_monitor
    Yes, unfortunately I tried this as well. No joy. Thanks for catching my Selected, I'm pretty sure I had it the right way in the file.
    Son of PW

  6. #6

    Default Re: CharacterSelect

    What happens? Does nothing happen, or does the game CTD? What does the log say?

    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!

  7. #7
    Aikanár's Avatar no vaseline
    Join Date
    Mar 2009
    Location
    Sanctuary
    Posts
    12,516
    Blog Entries
    3

    Default Re: CharacterSelect

    How about using "AgentType = general" instead of "IsGeneral" ?


    Son of Louis Lux, brother of MaxMazi, father of Squeaks, Makrell, Kaiser Leonidas, Iskar, Neadal, Sheridan, Bercor and HigoChumbo, house of Siblesz

    Not everything that counts can be counted, and not everything that can be counted counts.

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

    Default Re: CharacterSelect

    It seems you had a syntax error of having "CharacterSelect" instead of "CharacterSelected"!


    "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

  9. #9

    Default Re: CharacterSelect

    Quote Originally Posted by SigniferOne View Post
    It seems you had a syntax error of having "CharacterSelect" instead of "CharacterSelected"!
    That was a problem in what I typed on the forum, not in the actual script. I retyped it instead of cut and paste, like I normally do. And that is not the current problem. Thanks anyway.
    Son of PW

Posting Permissions

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