Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Reflecting a Custom Parameter in a variable?

A topic by AllusionAtelier created Apr 03, 2025 Views: 101 Replies: 1
Viewing posts 1 to 2
(1 edit)

Hi, again! Sorry, this is my last question. I'm trying to have a variable record the value of my actor's custom stats and show it in a text message; but for the life of me, I cannot get it to work? I see the value go up in the status menu, but the message window doesn't reflect anything, and if it does it's often times not the matching number shown in the status scene.

I'm using an evented system to change the party leader with the push of a button--and when I switch between the actors, that too doesn't seem to register any changes I make to the parameters. Is there anything that can be done about this? I'll post a screenshot of my event for you.

And here is a sample of what the party leader swap looks like, in case it's impacting anything!


And lastly, here is what the console is returning when I trigger the above event! (The parameter check image.)


Developer(+1)

Hi there!

First, remember:

  • 0 = The first custom parameter
  • 1 = the second custom parameter

and so on.

Now, it does not seem that my plugin is the problem there. All the errors on the console are pointing to Visustella plugins. As so, I cant say anything about that. The only thing I can say for sure that the "cannot read property "cparam" of undefined" means that it is not finding an actor to do whathever you want to do with the cparam. So I guess maybe there is something wrong with your event system that is not properly switching the actors. Don't know about that, you have to find out.

But also, try the easy way first. Just put an event with just one plugin command to change a single actor custom parameter. Just so you can confirm that the problem is the Custom Parameter plugin or not.

As for your event, nothing seems wrong to me. But maybe I can help you make it simple. Since you are changing only the party leader custom parameter, you can use the plugin command this way below. If you set Battler Type to party it will look for the actors in your party, by their index(position) number. As so, just put 0 on the Battler/index as it will always point out to the party leader.