Cookbook
Each recipe does one job and fits on a screen. Each recipe is a framework mod, the same form as Your first mod. To try one, start from the project you made there and replace the code in Plugin.cs with the recipe’s code. A recipe that needs an extra reference or file says so on its page.
Do Your first mod first. The recipes assume you can already build a mod and find its log file.
- Give an item: press a key to put an item in the player’s inventory.
- Pay the player: pay money once per game day, and save that it was paid.
- React to a new day: run code when a new game day starts.
- Add a Mods menu page: a page with your own text and buttons in the Mods menu.
- Add an HTML panel: show a web page in a panel in the game.
- Ship an item icon: give an existing item a new picture.