Lammaka

Villager
Member
Joined
Nov 21, 2022
Messages
5
Reaction score
0
First Language
Spanish
Primarily Uses
RMMV
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!
 
Last edited:

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,966
First Language
English
Primarily Uses
RMMV

I've moved this thread to MV Support. Thank you.



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));
 

Lammaka

Villager
Member
Joined
Nov 21, 2022
Messages
5
Reaction score
0
First Language
Spanish
Primarily Uses
RMMV
[move]MV Support[/move]

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!
 

Latest Threads

Latest Posts

Latest Profile Posts

So the concept for my Game Jam project is way more than I can complete before the deadline. But I think I found a way to get the core done and make the incomplete parts either not really noticeable or make them a part of the story for now. That sneaky, dastardly Krampus! Then I can complete the rest. Did I mention that this is fun?
I've been working on a game called "Eternal Sunset". Is there anywhere here i can "show it off" maybe? Wondering what others think.
What do you do when there are lots of offers online but you don't have even a slight chance of ever playing those myriads of games?
Ugh, mispelled my username.

Forum statistics

Threads
136,542
Messages
1,267,339
Members
180,215
Latest member
Itohera
Top