YanFly Stat Allocation

Hey,

im using YanFly Stat Allocation plugin:
http://yanfly.moe/2018/11/09/yep-173-stat-allocation-rpg-maker-mv

The way the plugin is setup out off the box is, even without the "revert" option available players can always adjust the previous set stat points however they please (by using the left arrow key to decrease a stat and get the AP points back). This way the game becomes to easy,
Example: ow crap I got 1 shot by the boss, ill boost my HP/def for 1 battle then put the points back on strenght to have quick kills.

I got the plugin working just fine, however if I use Allocate on 1 or more stats, leave the menu and return I can use the Left arrow to decrease 1 or more stats and i get the AP's back. How can i lock this after leaving the menu? Since i would like the players to give the feedom to experiment with all the points they need before locking it permanenty. That if a player leaves the Allocate menu the set stat(s) is/are locked and can only be increased and no longer be decreased?
I do want to know the answer of your question too...

Anyway, my temporary solution is to disable the allocate function in dungeons, fields, overworld map, etc. The player can only use the allocate function when they are in towns/cities.

Disabling "Left/Right Allocate" might help. I haven't tried so I don't know.
Disabling "Left/Right Allocate" might help. I haven't tried so I don't know.

I'm using that function now, added an item for the players so that they can revert on command (ofc will be a rare item). Im using this Script call after they activate the item looking simular to this:

Plugin command: EnableRevertAllocate

Script calls (opening allocate menu from party member 1):
$gameParty.setMenuActor($gameActors._data[1]);
SceneManager.push(Scene_StatAllocation);

Plugin command: DisableRevertAllocate


This will popup the menu in the allocate window. Once they leave the menu you need to have a switch to cancel the common event and it will lock when they leave the menu. Ofc while they stay in the menu they can set stats, revert and set again, to test everything but in your case they can do that anyhow when they are in towns.

Its not perfect, but untill someone has a fix for my original question its better than nothing.
I am also very curious if there is a way to disable the ability to revert attribute points without an item or switch of some sort.

have you guys found any viable solutions to this?

also instead of pulling up the menu for actor 1 do you know the script call to pull up the menu for the person effected by the item?




thanks.
$gameParty.setMenuActor($gameActors._data[1]);
this section right here is where im having issues. is there something like x i can replace with the "1" so it effect whoever the item is casted on?

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-stat-allocation.105213/