Northgard

Northgard

Not enough ratings
The Core Advanced Hotkey Layout + Extra
By kyklish
The Core Advanced Hotkey Layout for Northgard using AutoHotkey.
   
Award
Favorite
Favorited
Unfavorite
Inspiration.
https://steamcommunity.com/sharedfiles/filedetails/?id=2459638946
Inspired by this guide (thanks to MegaMech), using proposed script as starting point, I make my own script.
Please read above guide before reading this one.
Basics.
Script emulates mouse move, click and keyboard key press to instantly select desired building from building menu, destroy selected building, place military units in desired order before attack on adjacent tile, instantly select all units of specify type or all except one, etc...

Edit script's hotkeys as you like.

New general hotkeys:
If script blocks mouse input by mistake, press [Ctrl + Enter] to unblock. [CIVILIAN] J = Build | P = Select Warband U = Cancel Order | - = Select Idle Workers = = Pause | ‘ = Select All Villagers B = Diplomacy | [ = Select All Scouts N = Rivalry | I = Select Next of Same Type H = Lore | Delete = Destroy Building , = Lore | [SELECT ALL] | [SELECT ALL EXCEPT ONE] Q = Villager | Space + Q = Villager W = Woodcutter | Space + W = Woodcutter [SCRIPT] F1 = Show Help 1 | F11 = Reload Script Shift + F1 = Show Help 2 | LeftAlt + Z = Reload Script F10 = Show Help 1 | LeftAlt + X = Exit Script Shift + F10 = Show Help 2 | LeftAlt + S = Suspend Script Ctrl + Enter = Unblock mouse input [DEBUG] 'Overlay' shows 'ImageSearch' and 'PixelGetColor' search areas. Hotkeys not designed to use, when 'Overlay' is on screen. 'Slow Mode': * decrease mouse move speed. * increase sleep delay between game actions. Alt + F1 = Toggle 'Slow Mode' Ctrl + F1 = Toggle 'Overlay' Shift + F11 = Toggle 'Send Mode' [MILITARY] AppsKey + RMB + Drag = Make Military Formation (UnitsByType) J + RMB + Drag = Make Military Formation (UnitsByHealth) [MILITARY FORMATION HELPER] 'Military Formation' has two modes: * UnitsByType move four unit's type: 'WarChief', 'Shield', 'Warrior', 'Axe'. * UnitsByHealth move Warband health units to front, wound units - back. 'WarChief' means all units, that are assigned to in-game '0' hotkey. Select Warchief, bear, any big units and press [Ctrl + 0].
New hotkeys disable original key functionality. If you need temporary suspend script (for example to type in multiplayer chat) press Left Alt + S. To enable script press it again.

New "build" hotkeys:
Military Formation Helper.
Apps Key:

UnitsByType mode. Make simple formation by mouse drag: press Apps Key then click right mouse button and drag. On start point will be WarChief, next - Shield, next - Warrior, at end - Axe.
WarChief means any units (Warchief, bear, mystic units, etc...), that assigned to 0 hotkey in game.

UnitsByHealth mode. Move wound units in back line, health - in front line.
Dependencies.
  • Script uses default Northgard hotkeys, don't change them or restore to default.
  • Script is configured for game running in FullHD resolution [1920x1080].
  • If help picture not appear in game or colour dots for "Military Formation Helper" are invisible: start game in borderless windowed mode.


Script.
Tested on Windows 7.
MEGA[mega.nz]
11 Comments
kyklish  [author] Apr 25, 2024 @ 4:24am 
v1.2.7 Add missing hotkey
kyklish  [author] Apr 25, 2024 @ 12:21am 
v1.2.6 Script updated (no more admin rights, blocks only mouse move)
kyklish  [author] Dec 31, 2022 @ 1:11am 
Press Ctrl+F1 hotkey and you will see some (not all) important zones on screen. This zones all over the place in script, hardcoded. PixelSearch, ImageSearch got coordinates of that zones.
colBase, global row* variables are building icons grid. And there and here...
Kerem Dec 24, 2022 @ 9:04am 
I need 2k edition too :/ and im very amateur with this app. How can I edit cordinates
kyklish  [author] Sep 28, 2022 @ 8:57am 
Current version can't work with 4k resolution, all coordinates of buttons, health bars, etc are hardcoded.

You can edit script, write correct XY coordinates and it will work.
BOB450 Sep 26, 2022 @ 9:37am 
Hi can the script work on a 4 k display with and with 4k selected in settings
kyklish  [author] Jul 18, 2022 @ 9:04am 
v1.2.4 Script updated (Changelog inside script)
kyklish  [author] Jul 12, 2022 @ 11:29am 
v1.2.3 Script updated (Slow Mode feature, update help text)
kyklish  [author] Jul 12, 2022 @ 10:28am 
v1.2.1 Script updated (Slow Mouse Move feature, bugfix)
v1.2.0 Script updated (make 4Units mode universal, remove 3Units mode
kyklish  [author] Jul 10, 2022 @ 2:53am 
v1.1.0 Script updated (HealthUnits formation, bugfix)