SCAR TOOLKIT
Lua & SCAR scripting for Age of Empires IV
Lua & SCAR reference

Understand what every SCAR function is actually doing.

Type a function name like Player_GetAllEntities or UI_CreateMinimapBlip and get a human explanation with real examples from practical tools โ€“ not just a dry one-line description.

Substring search โ€ข Multiple matches โ€ข Example code aimed at real tool-building
Search SCAR functions by name.
๐Ÿ”
Tips: try partial names like Player_, minimap, or SGroup.
Showing all functions.
Click a card to see full details & examples.
Think of it as a cheat-sheet for tool builders.

The goal of this site isn't to dump every single internal function โ€“ it's to give you mental models for the functions you actually touch when building HUD tools and QoL scripts.

  • Search a function by name or partial name.
  • Read what it does in simple English.
  • Look at examples that are inspired by real tooling: minimap rings, scout filters, enemy lists, etc.
  • Combine pieces into your own scripts.

Important disclaimer

This site is a fan-made educational resource. It is not affiliated with, endorsed by, or supported by Relic Entertainment, Microsoft, or any official Age of Empires team.

Use what you learn responsibly. Don't ruin other people's games. The focus here is understanding scripting, prototyping tools, and building your own skills โ€“ not selling cheats.

Get in touch.

Talk to Billy

Best way to reach out is Discord. If you're stuck on a function or want to suggest new entries for this reference, ping me there.

Roadmap

Planned additions:

  • More detailed AI behaviour examples.
  • Ready-to-paste mini-modules (econ-only AI, scout filters, HUD widgets).
  • Exportable snippets for different injection setups.