-
Notifications
You must be signed in to change notification settings - Fork 0
Home
TrowlLord is a native Rust re-implementation of the Delta Tao Clan Lord client (the old C++
Mac client), talking to the live servers. Pure iced GUI — no webview, no JS.
Right now this wiki documents the Lua macro engine. More may show up here later.
TrowlLord runs two macro languages side by side: the classic Clan Lord macro language and a full Lua 5.4 engine. Reach for Lua when you want real variables, lists, conditionals, string handling, or shared helper functions — the stuff the classic language can't do cleanly.
Lua macros live in …/config/LuaMacros/*.lua. Every file loads into one shared world, so a
helper defined in one file is callable from the others. A script's top level runs once at load;
that's where you register your cl.bind_* / cl.on_* / cl.register handlers.
-
Lua API Cheatsheet — every
cl.*function on one page. - Lua Macro Guide — the same surface with worked examples.
- Build Macros with AI — a ready-to-paste prompt so an LLM (Claude/ChatGPT/Gemini) can write your macros.
- Why Lua Macros — classic vs Lua, and what Lua makes easy (strings, arrays, flags, functions).
- Lua API Changelog — what changed, newest first.
- Lua API Migration — how to fix macros when a breaking change lands.
The Cheatsheet and Guide are also built into the app: Macros window → Lua Guide (its header has a Wiki link back here).
External: Lua 5.4 reference manual.