Results 1 to 4 of 4

Thread: Hotseat Scripting

  1. #1

    Default Hotseat Scripting

    I have very limited modding experience, and know nothing about scripting at all. I'm playing a local hotseat game with all good factions on TATW and am trying to get the seasons script to work properly. I've included the normal version below but it gets messed up with controlling multiple factions. If I change "factionislocal" to say Sicily, does that mean this script will only fire on Gondor's turn and keep the seasons correct?

    Spoiler Alert, click show to read: 
    ;###################### Aging & Season script ########################

    declare_counter month
    monitor_event PreFactionTurnStart FactionIsLocal ; set the season for each month
    if I_CompareCounter month == 1 ;January
    console_command season winter
    end_if

    if I_CompareCounter month == 2 ;February
    console_command season winter
    end_if

    if I_CompareCounter month == 3 ;March
    console_command season summer
    end_if

    if I_CompareCounter month == 4 ;April
    console_command season summer
    end_if

    if I_CompareCounter month == 5 ;May
    console_command season summer
    end_if

    if I_CompareCounter month == 6 ;June
    console_command season summer
    end_if

    if I_CompareCounter month == 7 ;July
    console_command season summer
    end_if

    if I_CompareCounter month == 8 ;August
    console_command season summer
    end_if

    if I_CompareCounter month == 9 ;September
    console_command season summer
    end_if

    if I_CompareCounter month == 10 ;October
    console_command season summer
    end_if

    if I_CompareCounter month == 11 ;November
    console_command season winter
    end_if

    if I_CompareCounter month == 12 ;December
    console_command season winter
    end_if

    inc_counter month 1 ;advance the month
    if I_CompareCounter month == 20 ;start a new year
    set_counter month 1
    end_if
    end_monitor

    monitor_event FactionTurnEnd FactionType slave
    and I_CompareCounter month < 20
    console_command season summer
    end_monitor


    Also, I was wondering if there was anyway to force the UI to reload at the end of each turn so that the UI's for each faction load. I tried to use the console command reload_textures but I don't know what I'm doing and it doesnt seem to do anything. Anyone have any ideas? Thank you for reading and any help would be appreciated.

  2. #2
    Withwnar's Avatar Script To The Waist
    Join Date
    Oct 2008
    Location
    Earth
    Posts
    6,329

    Default Re: Hotseat Scripting

    http://www.twcenter.net/forums/showt...s-with-Hotseat

    I don't know where your "20" is coming from. That's not a TATW thing. Anyway, you'll need to adjust the script in that link to suit however many turns-per-year you need.

  3. #3

    Default Re: Hotseat Scripting

    Yeah, that was from an earlier attempt to solve the seasons issue. I caught it and fixed it after I posted this. Just telling the script to count Gondor's turn seems to have worked. The post you linked does essentially the same but only counts the rebels turn.

    Now if I could just figure out this UI thing...

    Thanks for the help Withwnar! Your mods are great btw

  4. #4
    Withwnar's Avatar Script To The Waist
    Join Date
    Oct 2008
    Location
    Earth
    Posts
    6,329

    Default Re: Hotseat Scripting

    If Gondor/sicily dies then the script will stop working. slave never dies.

    Thanks.

Posting Permissions

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