You can use Hamster Whisper to script if you want a built-in dictionary, or Notepad if you want to keep it simple. Just remember, always open your document with these commands:
Code:
include, plotscr.hsd
include, mygame.hsi
include, scancode.hsi
include, mygame.hsi
include, scancode.hsi
"Mygame" is whatever the name of your RPG file is. I don't know if it's still required, but it helps if you name your main plotscript file the same as your RPG file. "mygame.txt," for example. That way you can keep track of which file belongs to which game.
Everything after the included files belongs to the scripting itself, including global variables (which store numeric values permanently, or until you change them), and plotscripts (where the magic happens).
A plotscript can be as simple as walking an NPC down a path:
Code:
plotscript,Take a Stroll,begin
suspend npcs
walk npc (0,south,5)
wait for npc (0)
resume npcs
end
suspend npcs
walk npc (0,south,5)
wait for npc (0)
resume npcs
end
Then import the script, decide how you want to trigger it (autorun, NPC activation, etc.), and set the script to the trigger. And that's it. Simple.
If you want to keep track of what your scripts or certain parts of your scripts do, use the # symbol at the front of the line and then write in whatever you want.
Another piece of advice: Have one blank NPC walkabout set available to use for your invisible triggers. It's a good idea to make it early so that it can retain a low picture number. This is perfect for step on NPCs that trigger an event, or tiled objects that the hero can "look at."
Also, setting your palettes to "default" is much easier than tracking down palette numbers later. And, if you ever need to script a palette change for any reason, "-1" is the number for "default." It may be a long time before you'll need to know that, though.
But yeah, don't wait to dive into plotscripting. Holding back will make you soft to it later. There's a reason why two-year-olds learn a foreign language faster than twenty-year-olds do. Write your first plotscript tonight.
Place Obligatory Signature Here



