Question about SumRndmDde's Battle Status Customizer plugin.

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.
Try: $gameParty.gold()
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.
Can you post the full error message? Press F8 when the crash happens.
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.
So... You've said 2 different things in this thread.

The error is, "Gold" is not defined.

ReferenceError: Moneys is not defined

Which is it?

And can you post a screenshot of the Plugin parameters where you define those?
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:
Spoiler


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.
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")
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?
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
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.
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/question-about-sumrndmddes-battle-status-customizer-plugin.94928/