In this section we'll provide and explain advanced modding examples, for those who want to know how to mod parts of the game that involve more programming. We'll be covering Lua files for components, AI, etc and also the UI files.
Table of Contents [WIP!]
- User settings and logging : how to link options declared in user_settings.json for using them in your mod and how to print to the stonehearth.log from your Lua files.
- Events : how to trigger and listen to events from Lua files.
- Components and controllers
- AI actions : how AI works in Stonehearth and how to add your own AI actions to the game.
- Adding services
- Call handlers
- UI views