How do I make a treasure chest?

From OHRRPGCE-Wiki

Jump to: navigation, search

To make a treasure chest, you need an NPC and a text box.

First, draw an NPC that looks like a treasure box. You might want to just make an NPC that looks like the lid of a treasure box, and use a maptile for the base of the box.

Now create a text box that says "You got _____ item!". Edit the conditionals for this text box. You will see a line that says:

 never do the following
  do not add/remove items

Change it to

 always do the following
  add one itemname

Now that you have your treasure chest graphics, and your text box, it is time to make an NPC to represent the treasure box on the map.

Go into the map editor and pick the map that you want the treasure chest on.

Go into the NPC editor for that map, and make a new NPC.

Give the NPC the treasure chest graphics, and give it the "You got _____ item!" text box.

Change the NPC from Usable Repeatedly to Usable only Once. This makes the treasure box disappear after you use it.

You may notice that it is also possible to make an NPC give you an item without using a text box. This is easier, but less flexible.

Now go into NPC placement mode and place your treasure chest on the map.

Personal tools