Items that give discounts as a reward

Hey cats, 

I just want to set-up an item like a lucky coin that gives the players a discount say 5/10 % at stores in the game if you are caring it in your inventory.   Any ideas what I add to the item to give this property? 

  Thanks in advance!
It requires a script. Stats on items are for battles and using on players. They're not taken into account in shops.


I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
Sorry about that! And thanks for the quick response like always!
I've actually done this in my own game, with an accessory that can be worn by any actor. Unfortunately I'm not at my computer, and don't have the script mods pulled out into a standalone script. However, I can say that it's not difficult to achieve.


Do you just want a single item for this?


Do you just want a single rate for that item?


Does it only affect stores when you're purchasing, or does it affect the price you can sell an item for as well?


What about stores where the prices have been altered and aren't the same as the price listed on the Items tab?


(I am confident you already knew you'd get the 20-questions response 😉 )
I'm sure this can be done through Conditional Branch events.  If you have an item in your inventory you just adjust the pricing if the item is in your inventory.

 
BeforeandAfter.png


Left is pricing without the Crest of Resistance.  Right is pricing with the Crest of Resistance.

The shop processing event can adjust pricing to match the discount.
if it's only a single item, then yes... but if you're gonna have multiple items, that would be such a clutter to handle, which is where using scripts would be better

Original thread: https://forums.rpgmakerweb.com/threads/items-that-give-discounts-as-a-reward.22678/