MZ $gameParty.members()[X]

Hi, i would like to know if it's possible to call a specific party member's custom param when in this party members's stats menu.
I'm using EliMZ custom parameters to create custom parameters and VisuMZ core to visualise them in the stats menu.
This would make the most sense to ask in the thread for the plugin:

However - while I don't have the plugin to know whether it's in the plugin instructions (I would presume it is), this is in the instructions in the first post of that thread.

1701635329549.png
This would make the most sense to ask in the thread for the plugin:

However - while I don't have the plugin to know whether it's in the plugin instructions (I would presume it is), this is in the instructions in the first post of that thread.

View attachment 286373
my problem is more on the VisuMZ core side with how the custom parameters are shown in the stats menu, Visu MZ core has the possibility for that but i don't have enough knowledge
Well, the JavaScript you show in your screenshot is incorrect.

= sets one value equal to another. == is checking whether they are equal. So your conditional would be:
Code:
if (this._currentActor == $gameParty.battleMembers()[0])

but that also seems pointless. You already have a point of reference to the actor, why would you go through extra hoops to reference the battleMembers() stuff?

Just tell it to display this._currentActor.cparam(1)
idk what to do honestly
I think all Eli's plugins must be loaded after the core plugin, i.e. EliMZ_Book.

Otherwise, some information that could help figure this out:
  1. After the error occurs, press F8 (or F12) to show the dev tools window. Select the Console tab in that window, and share a screenshot of it.

  2. Share a screenshot of your Plugin Manager, showing all plugins you are using and their load order.
I think all Eli's plugins must be loaded after the core plugin, i.e. EliMZ_Book.

Otherwise, some information that could help figure this out:
  1. After the error occurs, press F8 (or F12) to show the dev tools window. Select the Console tab in that window, and share a screenshot of it.

  2. Share a screenshot of your Plugin Manager, showing all plugins you are using and their load order.
OK, so the actual problem is that this._currentActor is undefined. I notice you define a local variable user in that parameter, which seems to be part of the default code. So I imagine it should look like this instead:
JavaScript:
// Declare Constants
const user = this;

// Calculations
return user.cparam(1);
OK, so the actual problem is that this._currentActor is undefined. I notice you define a local variable user in that parameter, which seems to be part of the default code. So I imagine it should look like this instead:
JavaScript:
// Declare Constants
const user = this;

// Calculations
return user.cparam(1);
Thank you so much, it's working just as i wanted, i'm new to the world of coding so you are a time savior.

Original thread: https://forums.rpgmakerweb.com/threads/gameparty-members-x.163558/