Results 1 to 3 of 3

Thread: Inserting a 'spawn army' text into a game in progress

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Knonfoda's Avatar I came, I read, I wrote
    Join Date
    May 2008
    Location
    Vindomora
    Posts
    2,716

    Default Inserting a 'spawn army' text into a game in progress

    Hi,

    I am having some issues with a bit of scripting. Basically, I remember with the mod Europa Barbarorum (EB) that I could go to the game script, and just insert a 'spawn army' text more or less anywhere (I don't remember exactly where in the script I put it) such as this:

    Spoiler Alert, click show to read: 
    ;
    spawn_army
    faction slave
    character, Juva, named character, command 6, influence 6, management 6, subterfuge 0, age 16, , x 81, y 182
    unit germanic infantry frankamannoz slave, exp 4 armor 1 weapon_lvl 0
    unit germanic cavalry ridoharjoz mercenary, exp 4 armor 1 weapon_lvl 0
    unit germanic infantry gastiz, exp 4 armor 1 weapon_lvl 0
    unit germanic infantry klumbokarlaz, exp 4 armor 1 weapon_lvl 0
    unit germanic infantry karotovas, exp 4 armor 1 weapon_lvl 0
    unit germanic infantry karas viras, exp 4 armor 1 weapon_lvl 0
    unit germanic missile medininkas, exp 4 armor 1 weapon_lvl 0
    unit germanic infantry wargoz, exp 4 armor 1 weapon_lvl 0
    end
    ;


    I would put this in the EB/DATA/SCRIPTS/SHOW_ME game script. Whenever I loaded my game in progress, I would then start the script 'by pressing the show me how button' and the army would spawn. I could then save the game, exit it, remove the spawn army text from the script, and return to the game and my army would still be there.

    I am trying to do the same for a different mod now, Invasio Barbarorum Somnium Apostatae Iuliani, (IBSAI) in much the same way, but it does not seem to work. My army will not spawn.

    The text I have inserted is remarkably similar, except with a few differences:

    Spoiler Alert, click show to read: 
    monitor_event FactionTurnStart FactionType empire_west
    and I_SettlementOwner Sirmium = empire_west
    and I_CharacterTypeNearTile goths general, 1 120,90
    and RandomPercent > 50
    spawn_army
    faction empire_west
    character Aurelianus, general, command 0, influence 0, management 0, subterfuge 0, age 32, , x 123, y 88
    unit equites promoti west, exp 2 armor 1 weapon_lvl 0
    unit equites catafractarii sarmatian east, exp 1 armor 1 weapon_lvl 0
    unit limitaneiB1-1, exp 1 armor 1 weapon_lvl 0
    unit limitaneiB1-1, exp 1 armor 1 weapon_lvl 0
    unit limitaneiA1-2, exp 1 armor 1 weapon_lvl 0
    unit limitaneiA1-2, exp 1 armor 1 weapon_lvl 0
    unit numerii infantry east, exp 0 armor 0 weapon_lvl 0
    unit numerii infantry east, exp 0 armor 0 weapon_lvl 0
    unit numerii infantry east, exp 0 armor 0 weapon_lvl 0
    unit numerii infantry east, exp 0 armor 0 weapon_lvl 0
    unit funditores, exp 0 armor 0 weapon_lvl 0
    unit funditores, exp 0 armor 0 weapon_lvl 0
    unit equites armaturae, exp 0 armor 1 weapon_lvl 0
    unit equites armaturae, exp 0 armor 1 weapon_lvl 0
    unit equites scutarii east, exp 0 armor 1 weapon_lvl 0
    end
    advance_advice_thread Reinforcements_Thread
    terminate_monitor
    end_monitor


    I want this army to spawn without any conditions, just the moment I press the 'show me how button'. I've also tried removing everything before 'spawn army' and after 'end' like I did in EB, but it also does not work.

    I've attached both the EB and the IBSAI scripts, in case anyone cares to have a gander or give it a try. I thank you all for the help in advance.

    Best,
    Knonfoda

    EDIT: The ebbs script is below as the file attachment was too big for me to upload via the forum:

    http://www.megaupload.com/?d=95Y0CDA9
    Last edited by Knonfoda; July 28, 2011 at 02:53 AM.

  2. #2
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Inserting a 'spawn army' text into a game in progress

    It won't occur until the empire_west's next start of turn since that's the code you've written.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  3. #3
    Knonfoda's Avatar I came, I read, I wrote
    Join Date
    May 2008
    Location
    Vindomora
    Posts
    2,716

    Default Re: Inserting a 'spawn army' text into a game in progress

    Thanks Squid, I actually put the wrong script here. I did a little bit of editing and it worked fine.

    Thanks for all the help.

Posting Permissions

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