MV Removing stats from [YEP]Stat Allocation

Is there a way to remove already allocated stats?
In my game, which is inspired by Dark Souls, the player respawns in town each time they die — up to three times. On the fourth death, they are sent to the God Realm, where they can either:


  • Choose a new class
  • Or return to their original class from the first playthrough

When they choose to return to their previous class, I want their allocated stats to reset — allowing them to redistribute them as if starting fresh with that class.


The intended way to play is for players to stockpile "Stat Increase Stones" before their fourth death. These stones can be used later to gain additional stat points, whether they pick a new class or return to their old one.
I believe youll want to run both initAllocationPoints() and initStatAllocation() on that actor. I havent checked to see if you really need both, but both should reset all allocations and points held
Where do i put it? As a notetags? or script call? cause i don't see any in the YEP Wiki
Doesn't the init stuff get rid of their bonus points? Since OP said they're using items that grant bonus points, maybe it's better to use the revertall function?
My game is a Dark Souls-style dungeon crawler where the player has been resurrected by a twisted god and tasked with reaching Floor 100 of an ever-changing, randomly generated dungeon.


  • Every 10th floor is a boss fight, and when the player defeats a boss, that floor becomes a checkpoint they can return to.
  • If the player dies, they lose 1/3 of the EXP and money they had earned inside the dungeon. These lost resources are dropped at the location of death and can be retrieved, but since the dungeon is randomized, finding the spot again can take time or may not be guaranteed.
  • This penalty applies for the first three deaths.
  • However, on the fourth death, the player is sent back to the God Realm, where they can choose a new class or return to their previous class. This starts a sort of "soft reset":
    • Their level and stats reset,
    • But their money, items, and boss checkpoints stay intact.

The game encourages players to prepare for this by collecting Stat Point Stones and saving up before their fourth death, so they can reallocate stats when starting fresh with a new or returning class.
Since OP said they're using items that grant bonus points, maybe it's better to use the revertall function?
That may be the better call. When they said there were items used for bonus points i thought they might have wanted those to be removed on class change as well.
I was in a rush this morning so i didnt look past the first battler methods i thought would suffice.


Where do i put it? As a notetags? or script call? cause i don't see any in the YEP Wiki
Itd be a script call for your actors. Although how exactly it looks depends on how you set up the class change system. Is it only a single actor that this all applies to? Or are there multiple actors and this is this a thing that happens to everyone?
In the God Realm, the player exists as a Wandering Soul. When they approach a statue representing an available job/class, they are transformed into the corresponding Actor that the statue represents.
Do your points not already reset? Besides the points being tied to actors and your classes being different actors entirely, you're initializing the actor when you add them to the party. That alone should already be wiping the points the "class" had if I'm not mistaken.

Also why the separate actors for the classes? It'd be simpler changing the wandering soul's name, class, and images than all of that
1. I tested it and yeah initializes just reset its level and not stats. So after stat distribution stat still present.
Before death:
1752496916949.png

After death: TP Still increased from battle
1752497001743.png

2. I thought that was faster just change actor and use just one event command and that is change actors instead of change class then change sprite
I'm confused by your test and what you said you wanted to happen.
Didn't you say that you wanted the reset to happen if the player changes class? Your event only sets the player to warrior and initializes the warrior actor if they were the Wandering Soul. The class didnt change in your screenshots

Are you saying in that test that you went from Warrior (diedx4) -> Soul -> Warrior? or just Warrior (diedx4) -> Warrior?
What I meant is this:


  • When the player first boots the game, they start as a Wandering Soul.
  • Then they choose their first class — in this test, I chose Warrior.
  • After dying 4 times, they return to the God Realm and can choose a class again — I picked Warrior again to simulate this part.

The issue is:
Even though I re-selected Warrior, the stats didn’t reset from the previous run.
The stat points I previously allocated are still applied, and SP is at 0 (since I had used them all up in the previous run).


What I actually want:
When returning to the same class after dying 4 times, the player should get:


  • The base stats of that class (like a fresh actor)
  • The starting amount of SP I provided during first class selection
    This way, they can reallocate their stats from scratch, like it’s a brand-new build.

Oh, and for clarity:
In this test, I didn’t actually die 4 times. I just forced the death once to quickly respawn as the Wandering Soul, for convenience. So technically it was Warrior → Soul → Warrior (test flow), just to check if the reset worked properly.
Assuming that the first party member is the player, then in the event you use to return them to the God Realm, you can...
The base stats of that class (like a fresh actor)
use the add party member command with the initialize option on to reset their levels, gear, and permanent parameter gains from grow parameter events.
The starting amount of SP I provided during first class selection
and then use the following in a script command to reset their stat allocation info after they choose a class
Code:
$gameParty.leader().initAllocationPoints();
$gameParty.leader().initStatAllocation();
Then you can give them their starting amount of SP using the same script command you're already using.
If the first party member isn't necessarily always going to be the player, you can use the same reference to the actor you used in your script command instead of the leader one
Nice its work! Thanks @Robro33. Even though the TP still the same but i can just ignore it and just tell its an feature :LZScheeze: Welp i found it. Now even the TP will be reset.

Original thread: https://forums.rpgmakerweb.com/threads/removing-stats-from-yep-stat-allocation.178909/