Let's write a simple "Hello, World!" program to start with ScriptedHand.
Here's how to set this up:
Note: the folder MUST be called Lua exactly, not lua, LUA, LUa, etc.
Lua
lua
LUA
LUa
helloworld.lua
Now, in your text editor, add this:
function main() print("Hello, World!") end
Save this file, and then run Stardew with your mods.
Finally, type this into the SMAPI console:
run_script helloworld.lua
You should see [ScriptedHand] Hello, World! appear in the console.
[ScriptedHand] Hello, World!
There was an error while loading. Please reload this page.