Macros for Age of Empires II HD

Post gaming related scripts
Player
Posts: 7
Joined: 03 Feb 2018, 15:21

Macros for Age of Empires II HD

09 Feb 2018, 11:36

Here is a script with macros for Age of Empires II. It works with the numbpad and you just have to press a key to enable it and press any macros to disable the loop.

This script works well if you have a lot of building to create the same units so they spawn in wave all at once. With the goth I suggest creating Huskarl with 20 barracks with a lot of houses and resources, then hold the 7 key and in the map do arcs with the cursor, starting from behind the enemy base, to the middle of their base and the front so all the units are spreads everywhere to attack their entire base at once and to have vision of their entire base and find hidden bases. Even if the enemy has units to counter you, the Huskarl are very fast and immune to villagers and offensive buildings and great on killing villagers and damaging buildings.

Economy:
1 key: it selects every town centers, create villagers and send them back to work.
2 key: selects a villager idle and do the shortcut to constantly build a farm. I suggest to not move the mouse but only the camera in diagonal to align the farms.
3 key: it select idle villagers and kill them, it's very useful to have a macro like that because in multiplayer it's so laggy that selecting a group and holding delete doesn't work well.

Military:
4 key: it selects every barracks and create halberdier and sets the gather point (use the mini map).
5 key: it selects every archery range and create skirmishers and sets the gather point (use the mini map).
6 key: it selects every castles and create your unique unit and sets the gather point (change this macro to select the barracks for the Goth, you can also change it for the cavalry archers for the Huns and Mongols)

Position:
7 key: moves idle infantry to the cursor's position (use the mini map).
8 key: moves idle infantry to the cursor's position and attack every enemies in their path (use the mini map).

Other:
9 key: kill or destroy everything under your cursor, it's ideal to destroy your walls.

The script:

Code: Select all

Toggle = 0
#MaxThreadsPerHotkey 2
delay = 1

Numpad1:: ;create villagers
Toggle := !Toggle
While Toggle{
	SendInput, h
	sleep delay
	SendInput, g
	sleep delay
	SendInput, a
	sleep delay
}
return

Numpad2:: ;build farms
Toggle := !Toggle
SendInput, a
sleep 50
SendInput, w
sleep 50
While Toggle{
	SendInput, a
	sleep 50
	SendInput, a
	sleep 50
}
return

Numpad3:: ;kill idle villagers
Toggle := !Toggle
While Toggle{
	SendInput, .{Delete}
	sleep 1
}
return

Numpad4:: ;create halberdiers
Toggle := !Toggle
While Toggle{
	SendInput, {Ctrl down}
	sleep delay
	SendInput, b
	sleep delay 
	SendInput, {Ctrl up}
	sleep delay
	Click, right
	sleep delay
	SendInput, s
	sleep delay
	SendInput, z
sleep delay
}
return

Numpad5:: ;create skirmishers
Toggle := !Toggle
While Toggle{
	SendInput, {Ctrl down}
	sleep delay
	SendInput, a
	sleep delay 
	SendInput, {Ctrl up}
	sleep delay
	Click, right
	sleep delay
	SendInput, s
	sleep delay
	SendInput, z
	sleep delay
}
return

Numpad6:: ;create unique unit
Toggle := !Toggle
While Toggle{
	SendInput, {Ctrl down}
	sleep delay
	SendInput, v
	sleep delay 
	SendInput, {Ctrl up}
	sleep delay
	Click, right
	sleep delay
	SendInput, a
	sleep delay
	SendInput, z
	sleep delay
}
return

Numpad7:: ;move idle infantry
Toggle := !Toggle
While Toggle{
	SendInput, ,
	sleep delay
	Click, right
	sleep delay
}
return

Numpad8:: ;attack move idle infantry
Toggle := !Toggle
While Toggle{
	SendInput, ,
	sleep delay
	SendInput, {tab}
	sleep delay
	Click, left
	sleep delay
}
return

Numpad9:: ;kill or destroy everything under your cursor
Toggle := !Toggle
While Toggle{
	SendInput, {del}
	sleep delay
	Click, left
	sleep delay
}
return
For Huskarl:

Code: Select all

Numpad6:: ;create unique unit
Toggle := !Toggle
While Toggle{
	SendInput, {Ctrl down}
	sleep delay
	SendInput, b
	sleep delay 
	SendInput, {Ctrl up}
	sleep delay
	Click, right
	sleep delay
	SendInput, d
	sleep delay
	SendInput, z
	sleep delay
}
return

Return to “Gaming Scripts (v1)”

Who is online

Users browsing this forum: No registered users and 23 guests