Skip to content

Instantly share code, notes, and snippets.

@geryit
Created May 7, 2020 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geryit/3f93045666f05feaf83305e55c840b65 to your computer and use it in GitHub Desktop.
Save geryit/3f93045666f05feaf83305e55c840b65 to your computer and use it in GitHub Desktop.
startRandomGame() modeEnter("Pregame") doMPSetup(true)
// Agra(wonder) hotkeys (sepoy with key "s" etc )
map("u", "game", "uiFindType(\"ypWIAgraFort2\") uiFindType(\"ypWIAgraFort3\") uiFindType(\"ypWIAgraFort4\") uiFindType(\"ypWIAgraFort5\")")
map("s", "WonderAccel", "tis(\"ypSepoy\", 5)")
map("d", "WonderAccel", "tis(\"ypNatMercGurkha\", 5)")
map("x", "WonderAccel", "tis(\"ypRajput\", 5)")
// Flair shortcut (ctrl + space)
map ("control-space", "game", "editMode(\"flare\")uiSetProtoCursor(\"WaypointFlag\")")
//Gate (g)
map ("shift-g", "game", "uiTransformSelectedUnit(\"CWallGate\")")
// Stealth
map ("shift-s", "game", "unitSetTactic(\"Stealth\")")
// Delete unit without confirm
map ("shift-q", "game", "uiDeleteAllSelectedUnits")
// Set military gather points from tc and agra
map ("n", "TownCenterAccel", "editMode(\"GatherPointMilitary\") uiSetProtoCursor(\"WaypointFlag\", false)")
map ("n", "WonderAccel", "editMode(\"GatherPointMilitary\") uiSetProtoCursor(\"WaypointFlag\", false)")
// select all infantry (muskets, skirms..)
map("1", "game", "uiFindAllOfType(\"AbstractRangedInfantry\") ")
// select hand cav (huss, cuirs, cossaks..)
map("2", "game", "uiFindAllOfType(\"AbstractHandCavalry\") ")
// select all light cav (dragoon, bow riders...)
map("3", "game", "uiFindAllOfType(\"AbstractLightCavalry\") ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment