Shops

From OHRRPGCE-Wiki
Jump to navigation Jump to search

Shops are an important part of most RPGs, since they provide a way to, you know, buy and sell items. In OHRRPGCE, shops can also provide several other services including inns and save points. Shops have their own dedicated editor (found on Custom's main menu).

Once you've made your shop and added everything you want to it, you'll typically want to place it on the map as an NPC that opens it.

The shop editor has five toplevel settings/submenus:

  • Name: Give a name to your shop. This will be displayed to the player when they are using your shop, and will also be how the shop is identified in CUSTOM.
  • Edit Available Stuff: This is how you add items to your shop.
  • Select Shop Menu Items: This option is important, and you'll need to use it for every shop you make. This is where you will choose what kinds of services your shop provides. You can choose as many of them as you want, but if you don't choose at least one your shop won't be very useful. Your options are:
    • Buy: Lets the player buy items at this shop in exchange for money or other items.
    • Sell: Lets the player give items to this shop and receive money or other items.
    • Hire: Lets the player "buy" heroes to add to the party, again in exchange for money or items.
    • Inn: Lets the player heal the party in exchange for money, much like the inns you can attach to text boxes.
    • Equip: Lets the player equip items on the heroes in the party.
    • Save: Lets the player save the game.
    • Map: Lets the player view the minimap, a tiny version of the current map.
    • Team: Lets the player change which heroes are in the party.
  • Inn Price and Inn Script: These only do anything if you selected an Inn to be one of the things provided by your shop. Inn Price is how much it costs to use the inn, and Inn Script lets you select a plotscript that will run when the player uses the inn.

If you turned on the Buy or Hire options, you'll need to go to the Edit Available Stuff submenu. Here, you can add items and heroes to your shop. Each entry has the following options available:

  • Name: The name that your thing will be listed in in the shop. This should usually be the actual name of the item or hero, but it doesn't necessarily have to be.
  • Type: Either "Item" for items that you'll work with through the Buy and Sell functions, or "Hero" for heroes you can Hire.
  • Item ID or Hero ID: This is where you choose which specific item or hero you're offering.
  • In Stock: How many of this item can the player buy from this shop? By default this is "Infinite," meaning your shop will never run out of this item, but you can change it to a limited number of items if you want. You can even set this to 0 for an item that can't be bought but can be sold here.
  • Buy Require Tag and Sell Require Tag: Use these if you want the player to only be able to buy or sell this item if a certain tag is on or off.
  • Buy Set Tag and Sell Set Tag: If one of these is set to something other than 0 or 1, then buying or selling this item will set a tag.
  • Cost: The amount of money the player needs to buy this item from the shop.
  • Must Trade In: If you want the item or hero to "cost" one or more items instead of (or in addition to) money, you can set up to four kinds of items here. Use the arrow keys on the "Must Trade In" text to change which item it refers to, and on the "(Change Amount)" text on the next line to change how many of that particular item are needed.
  • For items only, not heroes:
    • Sell type: Determines one of several things that happens when you sell this item to this shop. "Don't Change Stock" does nothing. "Acquire Infinite Stock" means the shop will suddenly start acting like you'd set In Stock to "Infinite" even if you'd given the shop limited (or no) stock. "Inc Stock" increases the number of that item that are in stock (unless it already has infinite stock, in which case it does nothing). Finally, "Refuse to Buy" means you can't sell this item at this shop at all.
    • Sell for: Lets you set what the player will receive if they sell this item at this shop. This takes three lines: the first lets you set an amount of money, and the second and third let you give the player some number of some item, similar to Must Trade In but in reverse.
  • For heroes only, not items:
    • Experience Level: Determines what level this hero will be if the player hires them from this shop. If you press left (or hold right until you get all the way to the maximum level and keep going) you can choose "default," which will make the hero be whatever their base level is.


See Also[edit]