Civ6 lua reference
Skill YUehai231/Civ6ModAgent/.agents/skills/civ6_lua_reference
A test project aiming to enable AI Agents to generate all code files for a Civ 6 mod. ModBuddy & game knowledge still required. Special thanks to Hemmelfort.
npx -y skills add YUehai231/Civ6ModAgent --skill civ6_lua_referenceAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Reference manual and code snippets for Civilization VI gameplay Lua scripting and events. Trigger this skill when the user asks to write scripts, event callbacks, or custom gameplay logic.
SKILL.md
1.1 KB, as published. Nobody here has run it
Civilization VI Lua Scripting Reference Library
This reference skill provides the official API manual and tested code snippets for Civilization VI gameplay Lua environment and events.
References
- manual_lua.md: Full API handbook for Player, Unit, City, Map, Plot, and game Events.
Code Snippets (references/snippets/)
You can explore and copy working Lua templates under references/snippets/:
单位自爆.lua: Hooking combat events (Events.Combat) and applying damage or spawning map text.限制开拓者的数量.lua: Restricting unit production caps.单位在初次升级后能够恢复移动力.lua: Event logic to restore movement points upon promotion.城市生产建造完成后附送单位.lua: Gameplay scripting for production completion events.