When I compile my script it says that stat:hp is not a valid name, but it is in my hsi file! Can anyone tell me what is going on?

From OHRRPGCE-Wiki

Jump to: navigation, search

There are a couple things you should ask yourself:

[edit] Is you HSI file really being included?

You can create an HSI file from the Special Plotscripts menu, but that is not enough. You also need to include the HSI into your script

include, plotcr.hsd
include, mygame.hsi

[edit] Did you Re-name the HP stat?

If you renamed the HP stat in the Edit Global Text Strings menu, then the new name will be in your HSI file instead. For example, if you named HP to Health then the constant you actually want is stat:health. Of course, you should reexport the HSI as well.

[edit] What is actually in the HSI file?

The HSI file is actually a plain text file. You can open it up with any text editor (for example, the same one you are using to edit your script) and you can look at the constants inside it.

Personal tools