Variable acting as the in game Gold

KazukiT

Veteran
Veteran
Joined
Dec 7, 2014
Messages
142
Reaction score
131
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
29,230
Reaction score
6,771
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
296
Reaction score
1,144
First Language
Bahasa
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
142
Reaction score
131
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
296
Reaction score
1,144
First Language
Bahasa
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
142
Reaction score
131
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 Profile Posts

putting a puzzle in my game that BSODs the player's computer if they complete it
I finally got a book out the door after seven years of nothing \^-^/ Now if I can get a game out the door too, that'd be great...
MY GAME IS NOW OFFICIALLY RELEASED!!
*FurAffinity is down*
*Sets house on fire*
This is fine.

Forum statistics

Threads
94,363
Messages
920,262
Members
124,126
Latest member
TookMyRole
Top