-
Notifications
You must be signed in to change notification settings - Fork 0
Hello World!
redstone edited this page Dec 30, 2023
·
5 revisions
Let's write a simple "Hello, World!" program to start with ScriptedHand.
Here's how to set this up:
- Navigate to the directory where ScriptedHand is stored
- Create a new folder called "Lua"
- Inside that folder, create a new file called
helloworld.lua
- Open that file in a code editor of your choice
Now, in your code editor, add this:
function main()
smapiPrint("Hello, World!", "INFO")
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.