Attack Move and Counter Charge (WH2)

If you liked this item, please rate it up on Steam Workshop page.

Author: paperpancake

Last revision: 22 Mar, 2023 at 14:45 UTC (1)

File size: 180.28 KB

On Steam Workshop

Description:

This mod is for anyone who has wished you could give your units standing orders so that they could do the most basic tasks without constant supervision.

Now also available for WH3.

How do I use this?
  1. Select some units.
  2. (optional) Give a move order. You need to unpause briefly… You no longer need to unpause if you have the latest update! 🙂
  3. Use the hotkey or press the button. Yes, do this after your move order unless the unit is already ordered to be where you want it to be and you are just turning on counter charge.
  4. This mod saves the ordered location for each unit, locking it in.**
  5. This mod frequently checks to see if your unit should attack nearby units.
    • When there are no appropriate targets, the mod will reorder your units to move toward the locked-in destination.

  6. When your attack-moving unit reaches the ordered position, the attack-move order turns into a counter charge order. Your unit will attack any units that come near and then keep returning to its locked ordered location.
  7. IMPORTANT: While this attack-move lock is on, it will override any new orders you are trying to give your units. If you want to give a new move or attack order to the unit, you must unlock the attack order by selecting the unit and using the hotkey or pressing the button.

**This mod cannot determine if you’ve shift-clicked some orders. It will just lock in the final destination and all the other orders in between will be lost (unless your configuration has a sufficiently big "chasing adjustment", perhaps?).

You’ll notice that is a little different than other RTS attack-moves

It is the best I could come up with given the scripting limitations for this game. If you are curious or if want to help me think of better workarounds, I invite you to check out the discussion about scripting limitations.

What hotkey does this use?

You can use whatever key combination you want. By default, this mod uses whatever you set in "Save Camera Bookmark 7" (which is usually not set to anything). I personally use Z, since I don’t ever use Z to control the camera.

If you don’t want this mod to piggyback on your "Save Camera Bookmark 7" hotkey, you can configure this mod.

Disabled by default during siege battles

By default, this is disabled during siege battles since this mod doesn’t know how to handle walls. You can enable it during siege battles using a config option (see below). Attack-moving units that can’t climb or fly over walls will stand like confused puppies at the base of the wall if their target is on the wall.

Optional Configuration

This mod should work without you doing anything with configuration. However, you can customize a lot of variables between battles using either the new MCT or a text file.

Pairs well with…

Find Idle Units

Compatibility

Saved Games? Yes.

Other mods that DON’T run scripts during battle? Yes, definitely.

Other mods that DO run scripts during battle? Yes for most. No for some. Examples:

  • YES: Find Idle Units, AI General II, Counting Skulls, Quick Spell Menu, ClickNFight, etc.
  • NO: Spectator Mode II (use AI General II instead)

Please let me know if you find another incompatible mod so I can list it here and/or work with its authors to fix the incompatibility.

Technical compatibility details for curious modders

Multiplayer

This works in most multiplayer situations. As with all mods, this mod will only work in multiplayer if you and the person you are playing with have the same mods enabled, and have no extra mods in your data folder. (Otherwise, the game will say you have a version mismatch).

The only multiplayer issue I know of is that during multiplayer cooperative campaigns, this mod will only work for the player who has an army in the fight. If you spectate your ally’s battle and your ally gifts you units, this mod will do nothing for the spectator. You can still play as normal, though, and the original player will still be able to use attack move and counter charge like normal.

Download
Revisions:

Old revisions of this mod are available below. Click the link to download.