How do I make a HSI file?

From OHRRPGCE-Wiki
Jump to navigation Jump to search

HSI Stands for HamsterSpeak Include. It contains an assortment of names from your game in constant form.

Exporting an HSI[edit]

  1. Open your RPG file
  2. Go to the Script Management menu.
  3. Pick Export names for scripts (.HSI)
  4. An HSI file will be saved for you in the same folder as your RPG file.

Using an HSI[edit]

Use your HSI file in your script with an include command.

include, mygame.hsi

now you can use constants like hero:name or item:name instead of having to memorise the ID numbers for everything. The HSI contains names for the following things:

  • heroes
  • songs
  • tags
  • maps
  • stats
  • items
  • [equipment] slots
  • attacks
  • shops

If you add new things or rename existing things, your HSI file is not updated automatically. You have to go back to the Script Management menu again and re-export it.

Things to Remember about an HSI[edit]

  • If you do not include the HSI file, and you try to use any of the constants in it, your script will not compile.
  • You can export your HSI file after or before you have saved the game; it doesn't matter.
  • You know that you have forgotten to re-export your HSI file when Hspeak.exe tells you that there is no song (or map, or tag, or hero) with that name.
  • To see the data which is in your HSI file, just open it with Notepad or one of the Plotscripting Tools or any other program that can read text files.
  • You don't have to give your HSI file to people who play your game.

See Also[edit]