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 Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top