Save-Point
KGetRefund VX + ACE - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker VX/VXAce (RGSS2/3) Engines (https://www.save-point.org/forum-117.html)
+---- Thread: KGetRefund VX + ACE (/thread-9671.html)



KGetRefund VX + ACE - kyonides - 09-27-2024

KGetRefund VX + ACE

by Kyonides


Introduction

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

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

The VX and ACE Way

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: :occasion => :always, :gold => 0, :item => []

Code:
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 are going commercial. As a payment, you can send me a copy of your game! Grinning
Include my nickname in your game credits! Grinning