KGetRefund XP

KGetRefund

XP + VX + ACE


by Kyonides Arkanthes
​


Introduction

Have you ever considered implementing a refund badge like feature in your RM games?
Well, now you can do it! 😀

How to Setup a Refund From the Very Beginning

Go to the KGet module and find the REFUND_ITEMS Hash there.
Occasion Options: :battle, :menu or :always

Includes Gold and Item
Ruby:
REFUND_ITEMS[ID] = { :occasion => Option, :gold => %, :item => [ItemID, Qty] }

Includes Gold but no Item
Ruby:
REFUND_ITEMS[ID] = { :occasion => Option, :gold => %, :item => [] }

Includes an Item but NO Gold
Ruby:
REFUND_ITEMS[ID] = { :occasion => Option, :gold => 0, :item => [ItemID, Qty] }

How to Setup a Refund In Game

You can omit those values that you don't need to alter.
Default Values:
Ruby:
REFUND_ITEMS.default = { :occasion => :always, :gold => 0, :item => [] }

item = $game_system.new_refund_item(ItemID)
item.occasion = :menu
item.gold = 25
item.item = [ItemID, Amount]


Terms & Conditions

Free for use in non commercial games. Contact me if you need it for a commercial game. As a payment, I'd like to get a free copy of your game. 😀
Include my nickname in your game credits!

Original thread: https://forums.rpgmakerweb.com/threads/kgetrefund-xp.152743/