How do I make a treasure chest that contains many items and/or more than $32767?

From OHRRPGCE-Wiki
Jump to navigation Jump to search

Normally you create a treasure chest by creating an NPC that looks like a chest that's linked to a textbox with conditions to give the player money and items, but a single textbox can only give a limited amount. The simplest way to get around this limitation is to use multiple textboxes. Otherwise, use a plotscript. The plotscript can be either linked from a textbox, or directly from the NPC, as the example below.

plotscript, armor treasure chest, begin
 show text box (284) #"You have found a high quality armor and 3 basic helms!"
 wait for text box

 get item (item: rare armor)  # Or you can also type "get item (57, 1)", if the item ID is 57
 get item (item: basic helm, 3)
end

The number after the comma tells how many items to add.

The textbox editor is currently limited giving at most $32000, but you can give more than this using the get money command. For example,

  get money (92000)

Please note that you can't use any currency symbol such as £, ¥ or $ in the script. To add the curency symbol, press ctrl and then space to access the font table and add it in your textbox.

See Also[edit]