Results 1 to 3 of 3

Thread: I_SettlementUnderSiege

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default I_SettlementUnderSiege

    I have been playing with a few of the garrison scripts out there, and I dont know if this has been mentioned before or not.

    I_SettlementUnderSiege fires true when a settlement isnt REALLY under siege. If an army is within the cities zone of control it fires true.

    Add this to campaign_script:

    declare_counter york_siege
    monitor_conditions not I_SettlementUnderSiege York
    set_counter york_siege 0
    end_monitor
    monitor_conditions I_SettlementUnderSiege York
    and I_CompareCounter york_siege = 0
    create_unit York, Welsh Spearmen Mercs, num 6, exp 0, arm 0, wep 0
    set_counter york_siege 1
    end_monitor


    Start as England, take Prince Rufus and attack York. It spawns the units just like it is supposed to. End that game and start a new one.

    Take Prince Rufus again and move his army close to York but dont attack it. Like in this screen shot. You can see that I cant move anywhere else because of the proximity of the city, the units didnt spawn, just as they shouldnt have.


    Click End Turn and take a look at York again. The 6 spearmen are there even though now I can move out of the cities zone of control.


    Then if you do go ahead and attack the city it adds another 6 units.

    I discovered this when I went to attack a city but ran out of movement points just short of it.

  2. #2
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: I_SettlementUnderSiege

    I was wrong, it fires if you are even in the region, but not until the next turn.

    I changed the monitor to this so there is only one condition, no possibility of error.

    monitor_conditions I_SettlementUnderSiege York
    create_unit York, Welsh Spearmen Mercs, num 6, exp 0, arm 0, wep 0
    end_monitor
    Note that this will spawn units until the city fills up because there is nothing to tell it to stop, 20 units total.
    Then move right next to where your spy starts at the beginning of the game.



    Notice nothing spawned in the garrison

    Click end turn and the garrison is full. The game considers the settlement under siege if there is an enemy army in the region. I tested it with Crusades and same result, even though you are just pasing through and not intending to attack. I have no idea what happens if you are out of the sight range of the faction that owns the settlement, thats going to be a hard one to test.

  3. #3
    Turbo's Avatar Civitate
    Join Date
    Oct 2004
    Location
    New Jersey
    Posts
    2,152

    Default Re: I_SettlementUnderSiege

    Interesting, the I_SettlementOwner doesn't work in the campaign script for mods that use Kingdoms ala Grand Campaign like Retrofit, LTC, or SS etc. It works fine for Kingdom campaigns and MTW2.

    Some sort of bug.
    Work of God

Posting Permissions

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