Items cost Gold

I seem to be having trouble finding a plugin that makes it so that using an item costs gold.


I know there's a plugin to make skills cost items, but that doesn't seem to fit what i'm looking for.
It's on Yanfly's voting list. One day he'll get it out if it gets enough vote 🙂  
Nuts.


I guess i'll have to try and cobble it together out of common events for now.....
Yeah if it's on his list most scripters won't bother making it as theirs will be obsolete once his comes out 🙁  


sorry, bro.


Maybe get some friends to help you vote for it. 
I'd still have to wait for the next vote video to come out, though.
So here is what you do!
Create a common event with the following command, add it as an effect of the item, and BAM! when the item is used the player losses gold!
$gameParty.gainGold(n);



Where n is the amount of gold to change, so -n would deduct gold.


Similarly would not be that hard to write it as a script, but that is kind of over-kill i think...
So here is what you do!
Create a common event with the following command, add it as an effect of the item, and BAM! when the item is used the player losses gold!
$gameParty.gainGold(n);



Where n is the amount of gold to change, so -n would deduct gold.


Similarly would not be that hard to write it as a script, but that is kind of over-kill i think...

What about a check on how much gold?
in what context? Do you want to check to see if they have gold first or...?


$gameParty.gold is the parties gold value
in what context? Do you want to check to see if they have gold first or...?


$gameParty.gold is the parties gold value

Yeah, I want to check to see if they have X amount of gold first. I'm no good at raw script calls.
@Silent Darkness


ok...this below is: If party has equal to more then X then they loose N. this is the exact script you need. 😀
 

Code:
if ($gameParty.gold >= X) {
$gameParty.gainGold(-N); }
@Silent Darkness


ok...this below is: If party has equal to more then X then they loose N. this is the exact script you need. 😀
 



if ($gameParty.gold >= X) {
$gameParty.gainGold(-N); }

Seems that this option is even easier if I just Common-Event it. Conditional Branches can have lines of script put in. Heck, I don't even have to use scripting actually....


Still, a plugin to expedite this stuff would still be appreciated..
yup. You got it, a plugin would be a bit over kill just for this ONE function. you should ask yanfly to include it in the item core 🙂
Good idea. I guess I should ask about that.

Original thread: https://forums.rpgmakerweb.com/threads/items-cost-gold.56760/