If I put more than one plotscript into one file, how do I make only one at a time begin when I need it?

From OHRRPGCE-Wiki
Jump to: navigation, search

This question indicates a misunderstanding about how scripts work. You put all your scripts in a file, compile it, and import it into your game. This makes the scripts available to your game, but it does not cause any of them to be automatically run.

Plotscripts are only run when you want them to be run, in situations such as:

  • An event happens (on-step, new-game, etc.)
  • A textbox or NPC run them
  • A script calls another script

So, unless you call your script multiple times in a row, don't worry about them running at in-opportune times.

See Also[edit]