RMMV SRD's Menu Status Customizer Error

StrawberrySmiles

The Talking Fruit
Veteran
Joined
Nov 23, 2012
Messages
1,768
Reaction score
576
First Language
English
Primarily Uses
RMMV
Hello, I'm trying to use this script, but I keep getting an error when opening my menu.

Error.png

Here are the custom fields I've used:

Custom Stats.png

And here are the plugins I'm using:
Plugins installed.png

(There are two not shown at the top: CP_Star_Passibility_Fix and CP_Large_Sprite_Fix).

Any help would be grand!
 

EpicFILE

Epic Member
Veteran
Joined
Sep 27, 2017
Messages
441
Reaction score
1,405
First Language
Indonesia
Primarily Uses
RMMV
I'm not a coder, but I suspect SRD's menu plugin clashes with other menu plugins.
Also happens to me when using SRD SuperTool to customize battle aesthetic, while also using other battle plugins.
Copy the project folder, try to turn off or delete other menu plugins in the copied project.
That way you can find which plugins clashes with SRD's menu.
Hope it helps!
 

StrawberrySmiles

The Talking Fruit
Veteran
Joined
Nov 23, 2012
Messages
1,768
Reaction score
576
First Language
English
Primarily Uses
RMMV
I turned them off one-by-one, but the error still persists.

Thanks though!
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,118
Reaction score
1,526
First Language
EN
Primarily Uses
RMMZ
The first three Eval fields are incorrect, you need a plus sign to join the values together e.g.
Code:
"Strength: " + actor.atk
Then if the actor has, say, 25 ATK, this will display in-game as Strength: 25. :)

Not sure about the Status 4 Eval, since the code is cut off. :kaoswt:
 

StrawberrySmiles

The Talking Fruit
Veteran
Joined
Nov 23, 2012
Messages
1,768
Reaction score
576
First Language
English
Primarily Uses
RMMV
The Status 4 Eval is:

actor.weapons()[0] ? actor.weapons()[0].name : "None"

That's not showing up at all.

(I also don't know what it would be called for armor and accessory)
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,118
Reaction score
1,526
First Language
EN
Primarily Uses
RMMZ
:kaohi: That looks OK to me (I just tested it in the console to be sure). It should show the name of the first equipped weapon, or "None" if no weapons are equipped. Things to check:
  • Do any of your weapons have a blank name?
  • I notice you've got it displaying on row 13, maybe that's outside of the visible area? Try temporarily swapping weapon and agility, i.e. weapon at row 3, column 3; agility at row 13, column 1.
You can reference armors (and/or weapons) like this:
JavaScript:
var slotId = 1; actor.equips()[slotId] ? actor.equips()[slotId].name : "None"
Here, slotId is a temporary value used for convenience. It corresponds to the Equipment Types list defined on the Types tab in the database. slotId starts at 0 (weapon); slot 1 is either an armor or a weapon depending on whether they're dual-wielding; slots 2+ are armors. :)

(Certain plugins might affect this, but looking at your plugin list I don't think you're using anything like that.)
 

StrawberrySmiles

The Talking Fruit
Veteran
Joined
Nov 23, 2012
Messages
1,768
Reaction score
576
First Language
English
Primarily Uses
RMMV
Nothing is showing.

NOTHING SHOWING.png

Here are the plugin deets:
Locations.png

custom example.png
 

ScorchedGround

Blizzards most disappointed fan
Veteran
Joined
Apr 12, 2020
Messages
331
Reaction score
486
First Language
German
Primarily Uses
RMMV
It might not be showing because "row 4" is outside of the visible area.

Just as an experiment, try putting one of these Statuses that don't show up
in row 1 - 3 and see if it shows then.

For instance, try swapping the Locations of Status 4 with 1.
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,948
Reaction score
1,053
First Language
Dutch
Primarily Uses
RMMV
@StrawberrySmiles What Caethryl said, on

var slotId = 1;
actor.equips()[slotId];

slotId = NOT 1, but slotId while that is called from "var slotId"
else you dont use the "var slotId" =)

read carefully :)
 

StrawberrySmiles

The Talking Fruit
Veteran
Joined
Nov 23, 2012
Messages
1,768
Reaction score
576
First Language
English
Primarily Uses
RMMV
Code:
var slotId = 1; actor.equips()[slotId] ? actor.equips()[slotId].name : "None"
I entered this exactly as written and put it into row 1, column 1 -- yet nothing shows up. I tried changing the 1 to 0 (for weapons) and other numbers, but... I get the same result...
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,118
Reaction score
1,526
First Language
EN
Primarily Uses
RMMZ
Yea, ShadowDragon's suggestion shouldn't change the result of the eval: the variable is just for convenience, so you only have to edit one value rather than two. :kaoswt:

Status 1 is displaying correctly, right? In that case, try temporarily changing Status Eval 1 to this:
JavaScript:
actor.equips()[1] ? actor.equips()[1].name : "None"
Do not change Status 1 Location from its current value! Save your project and test. If that doesn't work then I'm out of ideas. :kaoslp:
 

StrawberrySmiles

The Talking Fruit
Veteran
Joined
Nov 23, 2012
Messages
1,768
Reaction score
576
First Language
English
Primarily Uses
RMMV
Whoa! It shows up! Thanks! I wish the icon was there, but this is pretty good!
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,118
Reaction score
1,526
First Language
EN
Primarily Uses
RMMZ
I suspect the problem was that you hadn't swapped the status locations as suggested, but rather tried to set two different status locations to the same thing, and that resulted in a conflict causing only one of them to display. :kaoswt:

As for the icon, it looks like SRD's plugin allows escape codes (like \i[x] to draw an icon) so long as you set the corresponding Status X Codes parameter to true. With that in mind, you could try setting an Eval field to something like this:
JavaScript:
var e = actor.equips()[1]; e ? '\\i[' + e.iconIndex + '] ' + e.name : '\\i[0] None'
Change the 1 if you want to reference a different equip slot, otherwise I think it should be good~
 

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

Latest Threads

Latest Posts

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,047
Messages
1,018,539
Members
137,834
Latest member
EverNoir
Top