I can't compile my script because it says that I haven't defined a standard command!

From OHRRPGCE-Wiki

Jump to: navigation, search

Some users are frustrated that very simple scripts fail to compile with errors like:

ERROR: in line 5 of script helloworld in test.hss
  suspend player
Unrecognised name suspendplayer. It has not been defined as script, constant, variable, or anything else

Anyone who has read the Plotscripting Dictionary knows that suspend player is a standard command, so why does it say it is unrecognized?

This is simply because you have forgotten to put the following line at the beginning of your script:

 include, plotscr.hsd

The plotscr.hsd file contains all the standard commands, as well as most of the standard constants, and you should always include it into your scripts.

If this does not work, your version of plotscr.hsd is old and you need to download the newest version.

[edit] See Also

Personal tools