Changing a character's name temporarily?

I didn't want to have to resort to making an account on the forums, but here I am. I'm making a linguistics themed game and I have a class themed around Slavic languages. I thought it would be funny if the Pleophony skill I made (which is a battle-only skill) changed the actor's name from Dragoslava to Dorogoslava, since that's what that sound change would do, but I can't figure out how to make it temporary. How do I change her name back at the end of a battle, or after a few turns?
Took me a little while but I think I've cracked it!

Create a blank State:
It can last as many turns as you want but you'll want to make sure to tick "Remove at Battle End" and have the Auto-removal Timing set to "Action End". Here is a picture of mine for you:
8bd58e191b849880fc4203c22cea269c.png

Create a Common Event for the Name Change:
The Common Event has no Trigger, can be called anything, but needs Conditional Branches for each Actor whose name you want to have the ability to change. Like so:
c03a5187977683d027634c6df1d4a6ff.png

Customise the relevant Skills:
In any Skill that you want to cause the Name Change, first apply the State, then apply this Common Event we just created right after it, like this (under Effects):
9f48dcf68fe01533ffbf2a128d24876d.png

Next, create the Name Reset Common Event for when the State runs out:
Again, this can be called anything and has no attached Trigger.
As you can see, for each relevant Actor, the Conditional Branches we create for this event say:
"If Actor is called Dorogoslava: And if Actor is still affected by the State we made: Do nothing, else if they are not affected by the State we made: Change Actor Name back to Actor Name"
Picture here:
20c3eb8c3d6f991ac27a0ff47fc1e383.png


And finally, we simply slot this Common Event into every Troop entry in the Database that has enemies that use any Name Changing skills:
The attached Condition needs to be "When the end of the turn" and the Span needs to be "Turn".
Here is a picture:
78deba5b502cf55eac6595d661160ec9.png



So what we've done is:
1) Create a State that the Name Changing skills apply to their targets.
2) Create a Common Event that the skills call after applying the State.
This Common Event checks if the State is applied to each relevant Actor, and if it is then it changes
that Actor's Name.

3) We've then put the State and Common Event onto each skill that Changes Names to Dorogoslava.

4) Created a second Common Event that:
> Checks if any Actor has Dorogoslava in their Name.
> Checks if they still have the State on them.
> If they do have the State on them, this Event does nothing.
> If they don't have the State on them, this Event resets their Name.

5) And finally attached the 'End of State Name Reset' Common Event to the relevant Troops.
Making sure that this gets checked at the end of every turn.

~~~~~~~~~~~~~~~~~~~~~~~~~~~
So, that's everything you need to do if the only condition you want for the Name resetting back to normal is at the end of the State, but there is a little extra you need to do if you want to ensure the Names go back to normal after each Battle as well.

First, we create a simple Switch:

Picture here:
5c27eb7abf28319cf05c0b5f64eaab2f.png


Then we create a Common Event with new Logic in it:

The Name can be anything, but the Trigger MUST be Parallel Process, and the Condition Switch should be that new Switch we created.
The Common Event Logic is simple and as follows:
If Actor is Named Dorogoslava: Change Actor Name to original Actor Name.
Picture here:
f037c523a22844fcc0e73c66fbe0da3f.png


Then we create an additional Common Event for turning our Switch on:
The Name can be anything, the Trigger must be None.
The Logic is: If Switch is OFF, Turn Switch ON.
Picture here:
991dc29d7c31b1bc064105dd76837df0.png


Then we simply add our Switch Common Event into our Troop tab:
Picture here:
329f2aedd10180062dd6386e1d4ab6c2.png


And, finally:
We create a new Parallel Process Event on every Map one of these battles can take place on:

I like to put these in the corner so they're nice and out the way.
Picture here (event in top left corner):
de5722021d6eb38701832f975fe30285.png


In your Map Event, have it only run if your Switch is ON.
And the Trigger needs to be Parallel Process:

> It calls our Name Reset Common Event.
> Then it turns our custom Switch OFF.
> This takes it to its next event page where it stops running until it's needed after each battle.
> The second page's Trigger should be Action Button.
Page 1 and Page 2 Pictures here:
ef4416d8d40d0bdf40899d1d9c524d21.png

7e54e8786e8a781db93af9559d9f567c.png

AND THAT'S EVERYTHING DONE! YAY!

So what we've done for this second section is:
1) Created a Switch.
2) Created a Parallel Process Common Event that:
> If the Switch is ON
> Checks if each relevant Actor's Name is Dorogoslava
> If they are, then they are reset to Actor's original Name.
> If they aren't, nothing happens.
This event will be used in our MAP event page.

3) Created another Common Event for turning on our Switch:
> If Switch is OFF
> Turn Switch ON
This event will be used in our TROOP event page.

4) Added the Switch event to all relevant TROOPS in the TROOP page.

5) Added the Parallel Process Common Event to a Parallel Process MAP event:
> Create a new event page on the MAP nice and out of the way.
> It runs only if our Switch is ON.
> It is Parallel Process.
> It calls our Common Event we created in Step (2).
> Then it turns our Switch OFF.
Once the Switch is OFF, it goes to its second event page where it does nothing until the Switch is turned on in the next battle again.

-------------------------------------------------------------------------------------
------------------------- Donezo ------------------------
-------------------------------------------------------------------------------------

And now we have done everything we need so that the Names reset at the end of each battle!
Hope this all helps!

Took me a little while to figure out (and a little while to make this post lol).

You really can accomplish a lot with eventing in the RPG Maker engines, it's what made me fall in love with them originally in the first place. It's great fun!

Let me know if you have any questions or if I wasn't clear on something!

Original thread: https://forums.rpgmakerweb.com/threads/changing-a-characters-name-temporarily.161034/