Results 1 to 4 of 4

Thread: Respawning Garrison (solved - workaround)

Hybrid View

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

    Default Respawning Garrison (solved - workaround)

    I am trying to have a permanent garrison in the settlements. At the start I have the guys in descr_strat.txt and they are immobile due to ancillary. I check the existence of ancillary sometime every turn to see if they are still present. If they are not I respawn them but here is the problem:

    1) Spawn_army command cannot spawn characters inside. When specified the location of a settlement they will appear next to it.

    ->

    I therefore use move command like:

    move garrison_of_london, 111, 282

    and then I give them the ancillary:

    console_command give_ancillary garrison_of_london immobile_london_anc 1


    For player everything works flawlessly. For AI the move command is issued but it never executes and it gives the ancil right away. Since the effect (MovementPoints -100) of the ancil takes effect only the next turn I can confirm that the newly spawned character can move but he just don't if he is AI so it looks like this in log:

    07:47:10.620 [game.script.exec] [trace] exec <move> at line 3860 in mods/DotS/data/world/maps/campaign/imperial_campaign/campaign_script.txt
    07:47:10.620 [game.script.exec] [trace] exec <console_command> at line 3861 in mods/DotS/data/world/maps/campaign/imperial_campaign/campaign_script.txt



    I tried putting it at various places. Even delaying the ancil award from the move command like having move at the start of turn and ancil at the end. No luck. Why don't they move? Any ideas?

    Thx.

    Mod Leader, Mapper & Bohemian Researcher

  2. #2
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Respawning Garrison

    I can't see what you're doing script-wise so I might be missing something obvious. Try doing the move command in the player turn.

  3. #3

    Default Re: Respawning Garrison

    Quote Originally Posted by Taiji View Post
    I can't see what you're doing script-wise so I might be missing something obvious. Try doing the move command in the player turn.
    I tried but I discovered that for AI the move command does not work unless the target tile is empty regardless of the type of target so even if it is settlement with room inside it won't happen. I am working on some work-around to this.

    Mod Leader, Mapper & Bohemian Researcher

  4. #4

    Default Re: Respawning Garrison

    Solved by spawning the garrisons only when the settlement is actually empty and not right away.

    Mod Leader, Mapper & Bohemian Researcher

Posting Permissions

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