Results 1 to 3 of 3

Thread: Force Sacking

Hybrid View

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

    Default Force Sacking

    This seems to be the place scripters hang out....what im after is a script to force England (Mordor) to sack when it occupies any settlement.

    Heres what i have so far, any help would be nice!.


    declare_counter player
    set_counter player 1
    declare_counter scroll
    set_counter scroll 0
    monitor_event FactionTurnStart FactionIsLocal
    set_counter player 1
    end_monitor
    monitor_event FactionTurnEnd FactionIsLocal
    set_counter player 0
    set_counter scroll 0
    end_monitor
    monitor_event ScrollOpened ScrollOpened sack_settlement_scroll
    if I_LocalFaction england
    set_counter scroll 1
    end_if
    if I_LocalFaction france
    set_counter scroll 1
    end_if
    if I_LocalFaction hre
    set_counter scroll 1
    end_if
    end_monitor
    monitor_conditions I_CompareCounter player = 1
    and I_CompareCounter scroll = 1
    set_counter scroll 0
    select_ui_element sack_settlement_occupy_button
    simulate_mouse_click lclick_down
    simulate_mouse_click lclick_up
    end_monitor

  2. #2

    Default Re: The placement of units, Coded and Scripted. ## Using commands 'garrisoned_army / spawn_army' with siege_equipment! ## How to spawn a navy through scripts! ## How to spawn an agent through scripts

    Alright, so i cleaned it up a bit..
    The blue are the changes, i am guessing it is for TATW??
    Try it now, should work
    Code:
    declare_counter player
    set_counter player 1
    
    declare_counter scroll
    set_counter scroll 0 > when you declare it is set to 0 anyway.
    
        monitor_event FactionTurnStart FactionIsLocal
            set_counter player 1
        end_monitor
    
        monitor_event FactionTurnEnd FactionIsLocal
            set_counter player 0
            set_counter scroll 0
        end_monitor
    
        monitor_event ScrollOpened ScrollOpened sack_settlement_scroll
        and I_CompareCounter player = 1
            if I_LocalFaction england
            set_counter scroll 1
            end_if
            if I_LocalFaction france
            set_counter scroll 1
            end_if
            if I_LocalFaction hre
            set_counter scroll 1
            end_if
        end_monitor
    
        monitor_conditions I_CompareCounter scroll = 1
            select_ui_element sack_settlement_occupy_button
            simulate_mouse_click lclick_down
            simulate_mouse_click lclick_up
            set_counter scroll 0
        end_monitor

  3. #3

    Default Re: Force Sacking

    Ta everso, and yes i wanted a script for when Mordor is hell bent on taking down settlements rather than just changing control, ill try it in game, with remove all removalble buildings as well and see what i get.

Posting Permissions

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