Question about SumRndmDde's Battle Status Customizer plugin.

Status
Not open for further replies.

ddblue

新人
Veteran
Joined
Apr 9, 2013
Messages
132
Reaction score
17
First Language
English
Primarily Uses
I'm using SumRndmDde Battle Status Customizer plugin, and I want to make a gauge for party gold (he mentions it as a possible example of use for the plugin in his video, but doesn't go into detail).

Plugin link:
http://sumrndm.site/battle-status-customizer/

To add a custom gauge, you need to fill in the following information (as an example I've included the HP gauge info):

Gauge 1 Text: TextManager.hpA
Gauge 1 Current: actor.hp
Gauge 1 Max: actor.mhp

...then some info about the position and size of the gauge.

I want to make a gauge for party gold, but I'm stuck at what to put in Gauge 1 current.

I tried the script call $game_party.gold and \G and gold and party.gold but nothing works.
Can someone please tell me what I can put in here or how I can search for what to put in?
(As for the Max, I will just use 999.)

Thank you.
 

Palin

Veteran
Veteran
Joined
Mar 17, 2016
Messages
79
Reaction score
36
First Language
English
Primarily Uses
N/A
Try: $gameParty.gold()
 

ddblue

新人
Veteran
Joined
Apr 9, 2013
Messages
132
Reaction score
17
First Language
English
Primarily Uses
Unfortunately that results in a crash.
The error is, "Gold" is not defined.

My settings in the plugin are:

Gauge 5 Text: Gold
Gauge 5 Current: $gameParty.gold()
Gauge 5 Max: 999

and I've set the defaults to use gauge 5.

Not sure what to do.
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
Can you post the full error message? Press F8 when the crash happens.
 

ddblue

新人
Veteran
Joined
Apr 9, 2013
Messages
132
Reaction score
17
First Language
English
Primarily Uses
Bit long, but here it is:

ReferenceError: Moneys is not defined
at Window_BattleStatusUpgrade.eval (eval at <anonymous> (/js/plugins/SRD_BattleStatusCustomizer.js:1056:34), <anonymous>:1:1)
at Window_BattleStatusUpgrade.drawAllGauges (/js/plugins/SRD_BattleStatusCustomizer.js:1056:25)
at Window_BattleStatusUpgrade.drawItem (/js/plugins/SRD_BattleStatusCustomizer.js:967:7)
at Window_BattleStatusUpgrade.refresh (/js/plugins/SRD_BattleStatusCustomizer.js:960:23)
at Window_BattleStatusUpgrade.Window_BattleStatus.initialize (/js/rpg_windows.js:5471:10)
at Window_BattleStatusUpgrade.initialize (/js/plugins/SRD_BattleStatusCustomizer.js:770:43)
at new Window_BattleStatusUpgrade (/js/plugins/SRD_BattleStatusCustomizer.js:407:18)
at Scene_Battle.<anonymous> (/js/plugins/SRD_BattleStatusCustomizer.js:688:18)
at Array.forEach (native)
at Scene_Battle.createStatusWindow (/js/plugins/SRD_BattleStatusCustomizer.js:687:29)

I shortened the paths for privacy concerns, but everything else is there.
 

ddblue

新人
Veteran
Joined
Apr 9, 2013
Messages
132
Reaction score
17
First Language
English
Primarily Uses
Apologies. I had changed the name of the gauge for test purposes.
I won't change it again.

Here is a screenshot of the plugin parameters:

The error displayed in the game window is:

ReferenceError
Moneys is not defined

The error displayed in the log is:

ReferenceError: Moneys is not defined
at Window_BattleStatusUpgrade.eval (eval at <anonymous> (/js/plugins/SRD_BattleStatusCustomizer.js:1056:34), <anonymous>:1:1)
at Window_BattleStatusUpgrade.drawAllGauges (/js/plugins/SRD_BattleStatusCustomizer.js:1056:25)
at Window_BattleStatusUpgrade.drawItem (/js/plugins/SRD_BattleStatusCustomizer.js:967:7)
at Window_BattleStatusUpgrade.refresh (/js/plugins/SRD_BattleStatusCustomizer.js:960:23)
at Window_BattleStatusUpgrade.Window_BattleStatus.initialize (/js/rpg_windows.js:5471:10)
at Window_BattleStatusUpgrade.initialize (/js/plugins/SRD_BattleStatusCustomizer.js:770:43)
at new Window_BattleStatusUpgrade (/js/plugins/SRD_BattleStatusCustomizer.js:407:18)
at Scene_Battle.<anonymous> (/js/plugins/SRD_BattleStatusCustomizer.js:688:18)
at Array.forEach (native)
at Scene_Battle.createStatusWindow (/js/plugins/SRD_BattleStatusCustomizer.js:687:29)


I really do appreciate the time you've taken to look at this with me, and if there is any additional info I can provide please let me know.
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
Ok, I think I know what's going on. The plugin is using an "eval" command which is trying to evaluate the parameter as javascript code, so unfortunately a simple string won't work.

I'm not at my computer so I'm not sure which one exactly will work, so try all of these until one of them works:
[In the "Text" parameter]

  • TextManager.gold
  • String("Money")
  • new String("Money")
 

ddblue

新人
Veteran
Joined
Apr 9, 2013
Messages
132
Reaction score
17
First Language
English
Primarily Uses
Thank you, but I tried all 3 separately and got the exact same error as above each time.

Are there any others I could try?
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
You're putting it in the Text parameter?
So it looks like this?

Gauge 5 Text: TextManager.gold
Gauge 5 Current: $gameParty.gold()
Gauge 5 Max: 999
 

ddblue

新人
Veteran
Joined
Apr 9, 2013
Messages
132
Reaction score
17
First Language
English
Primarily Uses
I had entered it in the wrong spot - once I followed your instructions above, it worked!

I can't believe it, thank you so much! You've solved my problem.
 
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,078
Members
137,580
Latest member
Snavi
Top