Results 1 to 30 of 42

Thread: Can I use a script to end the turn?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member Member mrtwisties's Avatar
    Join Date
    Nov 2007
    Location
    Sydney, Australia
    Posts
    235

    Default Re: Can I use a script to end the turn?

    I know what you mean. Have mostly got the monitors working. But I think I've tried every single ui_element that looks even vaguely like it might work to close those scrolls. I've even been making up names!

    Am no longer convinced that this approach can work. Might try:

    1. Using another utility to automate pressing "enter" and "esc" every few seconds. These keypresses would be sufficient to kick things along, but I don't think you'd be able to do anything else with the computer while the year jump was taking place. Not sure, I've never used a utility like that before. Hmmm, I haven't actually tried telling the RTW script to press keys, so maybe that's also worth a go. There do seem to be some key names in descr_shortcut.txt.

    2. Using campaign scripts to try and unlock the features that are suppressed by the -ai switch. Using "console_command control factionname" in a campaign script does give you control - but it means that show_me scripts don't work thereafter. Maybe there's a way of fixing that? It'd be good if there was.

    3. Killing a faction, switching control to it and then having that faction "re-emerge" (ie "capture_settlement") later in the game. Clearly a sub-optimal solution.

    4. Using emergent factions and ER's BI-based year jump mod. My least favourite approach.

  2. #2
    Notepad user Member Red Spot's Avatar
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    491

    Default Re: Can I use a script to end the turn?

    Quote Originally Posted by mrtwisties
    3. Killing a faction, switching control to it and then having that faction "re-emerge" (ie "capture_settlement") later in the game. Clearly a sub-optimal solution.

    Not really sure if that will work, afaik once a faction is dead it can be respawned, but so far I've been unable to "re-activate" it (they're arent doing a thing ...)


    G

  3. #3
    Finder of Little Oddities Senior Member Makanyane's Avatar
    Join Date
    Jan 2006
    Posts
    2,220

    Default Re: Can I use a script to end the turn?

    1. Using another utility to automate pressing "enter" and "esc" every few seconds. These keypresses would be sufficient to kick things along, but I don't think you'd be able to do anything else with the computer while the year jump was taking place. Not sure, I've never used a utility like that before. Hmmm, I haven't actually tried telling the RTW script to press keys, so maybe that's also worth a go. There do seem to be some key names in descr_shortcut.txt.
    not sure on external utility - if you hit esc when there isn't screen to close you'll be going in and out of the menu screen. If you can do it inside script it would work though with a wait after the resolve event but within the same monitor.

    4. Using emergent factions and ER's BI-based year jump mod. My least favourite approach.
    Well, that was where I was, works to test balance to end of fixed period (assuming you have spare factions), is compatible with background script if you launch year jump from trigger in bg script. Just doesn't get you usable autosave

    That seems to be main snag - to get a usable save it has to be legitimately your turn, if its your (human controlled) turn you get the closing scroll problem.
    Not used mods before? Looking for something small and fun?!
    Download the:

  4. #4
    Member Member mrtwisties's Avatar
    Join Date
    Nov 2007
    Location
    Sydney, Australia
    Posts
    235

    Default Re: Can I use a script to end the turn?

    Quote Originally Posted by Makanyane
    not sure on external utility - if you hit esc when there isn't screen to close you'll be going in and out of the menu screen. If you can do it inside script it would work though with a wait after the resolve event but within the same monitor.
    Have been busy for the last few days, but was thinking of "stealing" the escape key, except for when one of those pesky scrolls pops up.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO