KGetRefund XP - 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 XP (RGSS) Engine (https://www.save-point.org/forum-116.html) +---- Thread: KGetRefund XP (/thread-8596.html) |
KGetRefund XP - kyonides - 11-18-2022 KGetRefund XP
by Kyonides
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 The XP Way
Includes Gold and Item REFUND_ITEMS[ID] = { :occasion => Option, :gold => %, :item => [ItemID, Qty] } Includes Gold but no Item REFUND_ITEMS[ID] = { :occasion => Option, :gold => %, :item => [] } Includes an Item but NO Gold 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: :occasion => :always, :gold => 0, :item => [] Code: item = $game_system.new_refund_item(ItemID) 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! Include my nickname in your game credits! RE: KGetRefund - kyonides - 11-19-2022 VX ACE has been howling for a whole day!
Well, it seems like the ACE version of my script didn't like the idea of being excluded so I had to upload a brand new demo today. 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! RE: KGetRefund - kyonides - 11-20-2022 Several Updates Have Taken Place Here
In all versions of KGetRefund I have changed the code as to let you use note tags like in VX and VX ACE or to let you get refunds without touching (or barely touching) any scene class code, as it was the case in XP. The only consideration you might need to keep in mind would be that losing items via some event command won't let you get any refunds at all. How should the script know why your team is losing those items anyway? |