Results 1 to 5 of 5

Thread: Some BASIC script help?

  1. #1

    Default Some BASIC script help?

    Can't find tutorials on the basic part, so:

    Well, Ok, then since this: https://forums.totalwar.org/vb/showthread.php?t=47797 thread has no one helping out, maybe someone who can script can help me out:

    I'm trying to mod the basic campaign into monitoring the following:

    --
    monitor_conditions I_NumberOfSettlements romans_julii = 2 ;eventually will be >30
    ;and RandomPercent > 10 ;eventually I'll add in this line once I know I can get it to work.

    ;console_command
    SenateOutlawsFaction romans_julii

    end_monitor

    terminate_script
    --

    I ALSO added:
    script myscript.txt

    to the end of the campaign description txt file, so it should be running.

    Anyway, this is a TEST script to trigger it when the campaign starts... but it's not working not working. I can't find any tutorials on the making scripts run, even though I'm somewhat expereinced in programming; I can't figure out if my script is working or not. I've tried the outlawsfaction part both as console command and not. is the problem that this script runs only once and then doesn't continue in the campaign?

    H E L P !

  2. #2

    Default Re: Some BASIC script help?

    Well, I figured it out... now I can finally work on my MOD to FIX the senate so they get pissed at you a lot earlier than v1.2 allows... bwahaha! This will make the game a LOT more fun for me...

  3. #3
    Bug Hunter Senior Member player1's Avatar
    Join Date
    Feb 2005
    Location
    Belgrade, Serbia
    Posts
    1,405

    Default Re: Some BASIC script help?

    Plese post this script when it gets final.
    BUG-FIXER, an unofficial patch for both Rome: Total War and its expansion pack

  4. #4

    Default Re: Some BASIC script help?

    There is a problem with using this kind of script. While the script is running the player cannot load or save, and once the script halts it will not start up again. It will only be run once when the campaign first starts.

    Scripts that get started with descr_strat.txt can really only be used to set things up in the first turn, or maybe to control things in the very early game.

    You can start up scripts durring the campaign by using the advice system, but that requires intervention by the player.

  5. #5

    Default Re: Some BASIC script help?

    Quote Originally Posted by player1
    Plese post this script when it gets final.
    Judging from his first post I imagine he's using this script:
    Code:
    monitor_conditions I_NumberOfSettlements romans_julii > 30
    and RandomPercent < 10
    
    console_command diplomatic_stance romans_julii romans_senate war
    
    terminate_monitor
    end_monitor
    terminate_script
    Quote Originally Posted by Dimebagho
    There is a problem with using this kind of script. While the script is running the player cannot load or save, and once the script halts it will not start up again. It will only be run once when the campaign first starts.
    All very true, the alternatives are to either do it as a background script in which case you have to manually reactivate it each time you reload before it happens, or as an event script where the advisor would pop up to tell you you'd been outlawed, but unless you pressed the show me how button it wouldn't take effect.
    Last edited by Epistolary Richard; 05-23-2005 at 14:47.
    Epistolary Richard's modding Rules of Cool
    Cool modders make their mods with the :mod command line switch
    If they don't, then Cool mod-users use the Mod Enabler (JSGME)
    Cool modders use show_err
    Cool modders use the tutorials database Cool modders check out the Welcome to the Modding Forums! thread Cool modders keep backups Cool modders help each other out

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