Script to change the amount of money

Hello, fellow RPG Makers
I'm looking for a script which allow me to change an undetermined amount of money per number set on a variable. For example, if certain variable is set to 5, I want the player to lose 50 of gold 5 times, that is to say, 250 of gold altogether. Is there any script with this function? I would be very grateful if you could help me with this. Thanks beforehand for your help!
Moved to: MV Support

No script needed (and Tutorials is not the place to request one).

Let's say you are using variable 10 to hold the number.
Use Control Variables to set variable 11 to whatever is in variable 10, then Control Variables again to multiply variable 11 by 50.
Then you can Change Gold using variable 11 as the amount.

Or you can use a Script call:
$gameParty.gainGold(-50 * $gameVariables.value(10));
Moved to: MV Support

No script needed (and Tutorials is not the place to request one).

Let's say you are using variable 10 to hold the number.
Use Control Variables to set variable 11 to whatever is in variable 10, then Control Variables again to multiply variable 11 by 50.
Then you can Change Gold using variable 11 as the amount.

Or you can use a Script call:
$gameParty.gainGold(-50 * $gameVariables.value(10));
Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/script-to-change-the-amount-of-money.156287/