Common Event ShopLast Update: 2009.05.31By: Yanfly Engine ReDux IntroductionI 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 ScriptClick here to view the main script.InstructionsFirst, 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 ConditionsJust give credit where due.
Credits and Thanks- This was more or less an old idea. (
)
Originally Found Here: Here