MV Is there a plugin that allows distribution of variables in the cost of some sort of currencies or other variables?

Good day!
I may or may not actually need a plugin. Well, plugin would be perfect, but some advice would be great too.

What I'm trying to do is to have a single window where player can distribute 'stats' via using two currencies. I use word 'stats' like that because they're not actual stats from the game. My game doesn't have battle system, so I don't need to actually change parameters like ATK or MaxMP. Actually, all I need is a way to display variables with text and provide a way to increase and decrease them at the cost of some other variables that serves as a currency.

For instance, variable named Survival, it's current value and the other value that serves as maximum value for this stat - and that one player must me able to increase, while lowering variable named Knowledge Points. And also another variable called Vigor, current value, max value - but this one can be increased by lowering variable named Stat Points

I know one can implement all this via custom menu made of events. That is not what I want to do, since I need real menus and I want this one to be with them.

I will try to explain everything as good as I can.

======

Right now I'm trying to use Yanfly's Stat Allocation plugin. Actually, it's almost perfect for my goals, because it can use different currencies (like AP and JP), and I'm desperately need two of them, and that's why I can't, for instance, use FROG_TalentCore. It's great, but have only one currency.
Problem with Stat Allocation plugin is that it can show and allocate only game parameters like MaxHP, LUK, Hit, Eva etc. I found a way to use it by tying a variable to game parameter (you can see an example on the screenshot below, Vigor is actually ATK, Occultism is Hit, Survival is Eva). Then player can increase game stats, parallel event will change variables based on those stats, and my events will check the variable number. Something like that.

1.png


Problem is, I have more different variables than 8 base stats, and I couldn't find a way to properly change extra and special stats like Eva or Hit. I can display them, as seen on screenshot, but changing them to desired numbers is a bit tricky. Not through allocation plugin, but through game itself. For instance, I need to manually set Hit to a certain number (because player will be able to set some stats at the beginning of the game. In this particular example, they can choose to spend points to increase Occultism/Hit). I installed Yanfly's plugins ExtraParamFormula ans SpParamsFormula just to have script call command for setting those extra parameters, but can't make it work.

It says in the description:
You can use the following JavaScript functions to alter the extra parameter
values of actors. In these listed functions, the 'actor' variable is to be
referenced by an actor:

ie. actor = $gameActors.actor(3));

actor.setHit(x)
actor.setEva(x)
<...>
- Sets the actor's respective extra parameter value to x. Keep in mind
that 1 is equal to 100% and 0.1 would be equal to 10%. Negative values
will apply here, too.


And that's where I'm lost. I don't understand how this script call must look (I'm trying to put it in event, so it would set desired stats to certain values).
$gameActors.actor(0).setHit(33) - like this? Or I'm doing something wrong?

===========

I see only four solutions to my problem.

1) Preferable. Maybe there is some sort of plugin that I'm looking after all. Honestly, changing variables sounds much easier that creating custom talents and talent checks, like in FROG_TalentCore. I looked for it, but couldn't find any. Only different ways to distribute base stats or systems with custom talents (and only one currency to spend).

2) Not-so-preferable, but still. Can you guys please guide me and explain two things
- How to change parameters like Hit through script call or something like that?
and, bonus question
- Do you have any idea how to get rid of showing % in StatAllocation menu? As you can see in the screenshot, Occultism/Hit value is shown like 0.0%. It's not my intention, it's how parameter is shown. I would be glad if I could see it just a flat number (0, not 0.0%).

3) Use two plugins. StatAllocation for stats that I can tie to base stats (I have just four of them), and FROG_TalentCore for everything else. This way I will be able to have two currencies and change all stats, but the problem is - it's two menus, not one, which would be very bad game design, because player will need to go to Allocate to distribute points only in four categories, and then go to Talent menu to distribute points there. I can implement this solution any time, but it's just bad.

4) Create custom menu with common events and pictures. I honestly don't want to do that. I like game menus and don't want to dive in creating menus myself.

Thank you for reading this! I hope I chose the right
Good day!
I may or may not actually need a plugin. Well, plugin would be perfect, but some advice would be great too.

What I'm trying to do is to have a single window where player can distribute 'stats' via using two currencies. I use word 'stats' like that because they're not actual stats from the game. My game doesn't have battle system, so I don't need to actually change parameters like ATK or MaxMP. Actually, all I need is a way to display variables with text and provide a way to increase and decrease them at the cost of some other variables that serves as a currency.

For instance, variable named Survival, it's current value and the other value that serves as maximum value for this stat - and that one player must me able to increase, while lowering variable named Knowledge Points. And also another variable called Vigor, current value, max value - but this one can be increased by lowering variable named Stat Points

I know one can implement all this via custom menu made of events. That is not what I want to do, since I need real menus and I want this one to be with them.

I will try to explain everything as good as I can.

======

Right now I'm trying to use Yanfly's Stat Allocation plugin. Actually, it's almost perfect for my goals, because it can use different currencies (like AP and JP), and I'm desperately need two of them, and that's why I can't, for instance, use FROG_TalentCore. It's great, but have only one currency.
Problem with Stat Allocation plugin is that it can show and allocate only game parameters like MaxHP, LUK, Hit, Eva etc. I found a way to use it by tying a variable to game parameter (you can see an example on the screenshot below, Vigor is actually ATK, Occultism is Hit, Survival is Eva). Then player can increase game stats, parallel event will change variables based on those stats, and my events will check the variable number. Something like that.

View attachment 256406

Problem is, I have more different variables than 8 base stats, and I couldn't find a way to properly change extra and special stats like Eva or Hit. I can display them, as seen on screenshot, but changing them to desired numbers is a bit tricky. Not through allocation plugin, but through game itself. For instance, I need to manually set Hit to a certain number (because player will be able to set some stats at the beginning of the game. In this particular example, they can choose to spend points to increase Occultism/Hit). I installed Yanfly's plugins ExtraParamFormula ans SpParamsFormula just to have script call command for setting those extra parameters, but can't make it work.

It says in the description:
You can use the following JavaScript functions to alter the extra parameter
values of actors. In these listed functions, the 'actor' variable is to be
referenced by an actor:

ie. actor = $gameActors.actor(3));

actor.setHit(x)
actor.setEva(x)
<...>
- Sets the actor's respective extra parameter value to x. Keep in mind
that 1 is equal to 100% and 0.1 would be equal to 10%. Negative values
will apply here, too.


And that's where I'm lost. I don't understand how this script call must look (I'm trying to put it in event, so it would set desired stats to certain values).
$gameActors.actor(0).setHit(33) - like this? Or I'm doing something wrong?

===========

I see only four solutions to my problem.

1) Preferable. Maybe there is some sort of plugin that I'm looking after all. Honestly, changing variables sounds much easier that creating custom talents and talent checks, like in FROG_TalentCore. I looked for it, but couldn't find any. Only different ways to distribute base stats or systems with custom talents (and only one currency to spend).

2) Not-so-preferable, but still. Can you guys please guide me and explain two things
- How to change parameters like Hit through script call or something like that?
and, bonus question
- Do you have any idea how to get rid of showing % in StatAllocation menu? As you can see in the screenshot, Occultism/Hit value is shown like 0.0%. It's not my intention, it's how parameter is shown. I would be glad if I could see it just a flat number (0, not 0.0%).

3) Use two plugins. StatAllocation for stats that I can tie to base stats (I have just four of them), and FROG_TalentCore for everything else. This way I will be able to have two currencies and change all stats, but the problem is - it's two menus, not one, which would be very bad game design, because player will need to go to Allocate to distribute points only in four categories, and then go to Talent menu to distribute points there. I can implement this solution any time, but it's just bad.

4) Create custom menu with common events and pictures. I honestly don't want to do that. I like game menus and don't want to dive in creating menus myself.

Thank you for reading this! I hope I chose the right
Your script call is correct, but your actor ID isn't. The IDs start at 1; although the underlying arrays are still 0-indexed, what the RM developers have done is to put a null entry in the 0th index of all database arrays, so that the IDs match up with the editor view.
Your script call is correct, but your actor ID isn't. The IDs start at 1; although the underlying arrays are still 0-indexed, what the RM developers have done is to put a null entry in the 0th index of all database arrays, so that the IDs match up with the editor view.
Thanks a lot! That did the trick.

It's still not the best solution game design wise, so I hope someone will tell me this plugin I'm looking for actually exists, and I'm the one who couldn't find it, but I'm greatful. Now I can focus on remaining 98 problems 😀
Thanks a lot! That did the trick.

It's still not the best solution game design wise, so I hope someone will tell me this plugin I'm looking for actually exists, and I'm the one who couldn't find it, but I'm greatful. Now I can focus on remaining 98 problems 😀
I haven't actually read the rest of it yet, when I get a sec later I'll take a gander and see if I can offer an alternative.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-plugin-that-allows-distribution-of-variables-in-the-cost-of-some-sort-of-currencies-or-other-variables.155918/