Here's an alternative "hello world" (to the one explained in the Wiki) from scratch.
Note, however, that this is specific to "Scripting" mods.
For other types (new weapons, new lands, etc...), others can help.
- Open the CK.
- Immediately save your mod to a new ESP.
- Create a Quest:
Spoiler - Expand the Quest category in the Objects window
- Right-click on the blank rows on the right and select New.
- Fill in Id with "marguthHelloWorld"
- Ensure Start game enabled is tick
- Ok that window and save the mod. (Save often)
- Open that Quest window again and attach a script to it:
- Try it out in game. Ensure that marguthHelloWorld.esp is ticked in your launcher.
Note that OnInit () only runs the first time for each Script.
So if save your game after the OnInit () executes (i.e. you see Hello World) in the game, you won't see it again.
(Until you save your game without the mod and reactivat the mod.)
Next steps...go through that Quest tutorial in the Wiki.
You'll learn how to tie the Quest script with objects (i.e. actors, items, dialogue, etc...) in the game.