Variable acting as the in game Gold

KazukiT

Veteran
Veteran
Joined
Dec 7, 2014
Messages
286
Reaction score
342
First Language
English
Primarily Uses
RMMV
I was wondering if there was a scrip call that would increase and decrease your Gold amount based on a a variable. For example, I have 20 (Variable 1) I want it so it tell the game to change the amount of Gold to 20. This is all in MV just to let you know.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
no need for a script call, that is what the default event command "change gold" is about
 

Kuro DCupu

Trust me, I'm a veteran RMer
Veteran
Joined
Jul 6, 2014
Messages
480
Reaction score
1,468
First Language
Indonesia
Primarily Uses
RMMV
I see that the problem with "change gold" command, it only have the option for "increase" and "decrease" gold. You can't "set" a fixed amount.
1580062868643.png

The inconvenient evented way to have a fixed amount of gold would require you to decrease your current gold to zero then increase it to that certain amount :
1580062210060.png

As for the script call... I haven't checked it, but CMIIW :
Code:
$gameParty.gold = $gameVariables.value(ID)

That is... if I'm not misinterpret and overthinking your problem because your question sounds way too basic for a veteran member such as you... as if you are speaking in riddle.
 
Last edited:

KazukiT

Veteran
Veteran
Joined
Dec 7, 2014
Messages
286
Reaction score
342
First Language
English
Primarily Uses
RMMV
I see that the problem with "change gold" command, it only have the option for "increase" and "decrease" gold. You can't "set" a fixed amount.
View attachment 132226

The inconvenient evented way to have a fixed amount of gold would require you to decrease your current gold to zero then increase it to that certain amount :
View attachment 132225

As for the script call... I haven't checked it, but CMIIW :
Code:
$gameParty.gold = $gameVariables.value(ID)

That is... if I'm not misinterpret and overthinking your problem because your question sounds way too basic for a veteran member such as you... as if you are speaking in riddle.
I tried to input the scrip call and it didn't work.
 
Last edited:

Kuro DCupu

Trust me, I'm a veteran RMer
Veteran
Joined
Jul 6, 2014
Messages
480
Reaction score
1,468
First Language
Indonesia
Primarily Uses
RMMV
............
........
.... Yeah, I just checked. It's missing and "underscore".

Code:
$gameParty._gold = $gameVariables.value(ID)
 

KazukiT

Veteran
Veteran
Joined
Dec 7, 2014
Messages
286
Reaction score
342
First Language
English
Primarily Uses
RMMV
............
........
.... Yeah, I just checked. It's missing and "underscore".

Code:
$gameParty._gold = $gameVariables.value(ID)
I plugged in your Script call and it worked like a charm, thanks for helping me out.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

On my journey of character rework: I had this character, she was meant to be just a princess that joins your party. And at long term she was just uninteresting... So I tweaked her to be a rebel agaisn't the royalty before meeting up with the party.

Quick tip for any other ametuer pixel artists! When trying to create a colour palette, enabling Antialiasing can speed up the process of creating different shades! Just place your lightest colour and your darkest colour next to each other, select both pixels, and stretch it out!
Revolutionizing the JRPG Industry: Knocking on Doors.

Take that, murderhobos.
Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.

Forum statistics

Threads
106,054
Messages
1,018,578
Members
137,843
Latest member
Betwixt000
Top