Main Menu
  • Welcome to The RPG Maker Resource Kit.

[YERD] Common Event Shop

Started by Yanfly, May 31, 2009, 09:50:03 PM

0 Members and 1 Guest are viewing this topic.

Yanfly

Common Event Shop
Last Update: 2009.05.31
By: Yanfly Engine ReDux

Introduction
I thought I've uploaded this script to Pockethouse, but apparently, I haven't so here it is!

Sometimes the lack of things you can do with money can become a little boring since it's only ever used for buying items and equipment and that's it. Well, now your players can expend their funds on common events (that you can decide what will happen). They can purchase common events that may unlock extras, recruit characters, teleport to unique places, anything your eventing ability allows you to do.

Screenshots


Script
Click here to view the main script.

Instructions
First, bind the CE_SHOP_VARIABLE to a variable you wish to dedicate towards the common event shops. Whenever you send the player to a shop and the common event variable's value is above 0, the player will be taken to the common event shop instead. Remember to set the variable back to 0 when you want to issue a normal shop.

———



Adjust your shop's contents with the CE_SHOP_LIST. Make sure everything is filled out properly or else you'll experience a ton of errors. Here, you set the currency used, the buy text, the leave text, the welcome text, and which common events can be sold in that shop. If the currency ID is 0, gold will be used for the shop's currency.

———



Common Events can't all be free. However, you can't adjust the common event prices from the database editor so you'll have to do it here in the COMMON_EVENT_ITEM_HASH. Give your common events a cost, an icon, the number of times it can be bought (period), and whether or not you would like to make the player leave the shop upon purchasing the event. The cost will always be the same regardless of the currency you've chosen for the shop.

———



And finally, if you do decide to use different currencies, you can adjust the names used to sell them here in the CURRENCY_VARIABLE_MATCH hash. If a currency ID is left out of the list, then the UNDEFINED_CURRENCY will be used in its place.

———
IF YOU ARE HAVING PROBLEMS WITH THESE SCRIPTS, REVIEW THE TROUBLESHOOTING PAGE FIRST!

Compatibility
- I'm pretty sure there won't be any incompatibility problems.
Please report any compatibility issues and I'll try my best to fix them.

Terms and Conditions
Just give credit where due.

Credits and Thanks
- This was more or less an old idea. (???)

Originally Found Here: Here
Side-battle systems are the lens flare of RPG Maker.

Sophist

[fright]you awoke in a burning paperhouse
from the infinite fields of dreamless sleep
[/fright]

modern algebra

That is a cool idea. Nice one, Yanfly!

Grafikal

Whaaaaaat?! This is awesome. I'm so using this. :)

Sebastian Cool ^-^

#4
You are advanced girl!! I like you!!  :blizj:

Look at this!!
I'm an idiot!!!!