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! :grin:
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
Leave a note tag in the corresponding refund badge.
Model:
<refund ItemID: Symbol Gold% ItemID Amount>
Example:
<refund 1: :battle 1 15 5>
How to Setup a Refund In Game
You can omit those values that you don't need to alter.
Default Values:
Ruby:
- { :occasion => :always, :gold => 0, :item => [] }
复制代码
item = $game_system.new_refund_item(ItemID)
item.occasion = :menu
item.gold = 25
item.item = [ItemID, Amount]
NOTES
I might admit that it doesn't look like your typical ACE script where you depend on note tags as usual.
Just think about it for a moment. Is it easy to find the exact item via note tags? What if you've got hundreds of them? Since that didn't look very promising, I preferred to use a Constant instead, namely REFUND_ACCESS_ID.
What might be put in the note box in a future version might be the list of refund items you would get if a given hero is wearing the so called refund badge at that specific moment.
For the meantime, enjoy the slightly funny demo!
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!
本贴来自国际rpgmaker官方论坛作者:kyonides处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/kgetrefund-ace.152762/