MV MV Changing the name of a skill when a certain skill is applied

I was wondering if there is a way to change the name of a skill if you have a certain state applied.
For example, you have a skill called "Punch" and when an actor has the "Determined" state the "Punch" skill's name changes to "Punch of Justice".
The above applies only in battle.
You cannot directly change skill's name, but what you can is to create in database two skills
example:

- Punch
- Punch Of Justice

and set your state with trait:
Learn Skill: Punch Of Justice
Seal Skill: Punch

When state will be applied, skill Punch will disapear, and Punch Of Justice will show in its place.
If you're using the plugins below (Or any plugin that allows you to use Control Codes in things like the Skill Name Box) you can use a Variable as the skill name. You'd place the usual \v[x] as the Skill's Name, and in the Variable set it to Script and set it "Punch of Justice" (Quotes included).

This method can be used to make dynamic names for all sorts of things, skills, items, enemies, stats. Pretty much anywhere that you can type.

VE_BasicModule
VE_ControlText
If you're using the plugins below (Or any plugin that allows you to use Control Codes in things like the Skill Name Box) you can use a Variable as the skill name. You'd place the usual \v[x] as the Skill's Name, and in the Variable set it to Script and set it "Punch of Justice" (Quotes included).

This method can be used to make dynamic names for all sorts of things, skills, items, enemies, stats. Pretty much anywhere that you can type.

VE_BasicModule
VE_ControlText
I have those two plugins, but I don't quite know how to set that up. Do you think you could show a screenshot of how I would set it up?
With what exactly do you have trouble?
1. You need some plugin that makes textcodes like \v[x] get evaluated in the skill selection window (for example these from Victor Sant that @BlackGoldSaw recommended)
2. You give your skill \v[x] as its name.
3. At the start of the game you will need to set the variable x to the default name of the skill. You can do that maybe in an autorun event directly on your first map. Maybe directly before or after your opening cutscene.
4. Now you only need to change the variable every time your state gets applied or removed. I would do that via Yanfly's Buffs and States Core (one of their free plugins: http://www.yanfly.moe/wiki/Buffs_&_States_Core_(YEP) )
JavaScript:
<Custom Apply Effect>
    $gameVariables._data[x] = "Punch of Justice";
</Custom Apply Effect>

<Custom Remove Effect>
    $gameVariables._data[x] = "Punch";
</Custom Remove Effect>
Obviously replace x with the number of the variable you are using.
@eomereolsson I tried the method and it didn't work. Then when I read @BlackGoldSaw 's post again something clicked in my head, if I make the variable equal ("Punch") at 0, I thought maybe I could make the variable equal ("Punch of Justice")at 1.
The above wouldn't work if several people had access to the skill, and only one had the state (it would show the modified title for everyone), or if the state persisted outside of battle and the player saved, closed, and reloaded their game (it would be back to the original name on reloading).

Moved to: Plugin Requests

You may need a specific plugin written for this. Please confirm if the state will only be applied during battle, and whether multiple actors could have the same state and have access to the same skill.
The above wouldn't work if several people had access to the skill, and only one had the state (it would show the modified title for everyone), or if the state persisted outside of battle and the player saved, closed, and reloaded their game (it would be back to the original name on reloading).

Moved to: Plugin Requests

You may need a specific plugin written for this. Please confirm if the state will only be applied during battle, and whether multiple actors could have the same state and have access to the same skill.
I understand what you getting at it would be messy if everyone used the same skill and the name change applied for everyone. So made a Common Event checking who has the state. The enemies will use a duplicate version of the name-changing skill though.
The above wouldn't work if several people had access to the skill, and only one had the state (it would show the modified title for everyone), or if the state persisted outside of battle and the player saved, closed, and reloaded their game (it would be back to the original name on reloading).
I agree with your first point. In the game I am currently working on, most skills are unique to their actors, so that thought didn't really cross my mind 😅
However I don't get your second point. If the player did all that, why would the name revert to its original? The state gets applied, setting the variable to the new name. The state persists outside of battle. So it doesn't get removed and the variable stays as the new name. The player saves, closes and reloads their game. The variable should be the same after reload, right?

You may need a specific plugin written for this. Please confirm if the state will only be applied during battle, and whether multiple actors could have the same state and have access to the same skill.
@KazukiT your reply (at least to me) doesn't really answer these questions. Could you please reiterate on that? Or do you have your problem solved through that common event and don't need further assistance?

EDIT: fixed typo
I agree with your first point. In the game I am currently working on, most skills are unique to their actors, so that thought didn't really cross my mind 😅
However I don't get your second point. If the player did all that, why would the name revert to its original? The state gets applied, setting the variable to the new name. The state persists outside of battle. So it doesn't get removed and the variable stays as the new name. The player saves, closes and reloads their game. The variable should be the same after reload, right?


@KazukiT your reply (at least to me) doesn't really answer these questions. Could you please reiterate on that? Or do you have your problem solved through that common event and don't need further assistance?

EDIT: fixed typo
Yes, I solved my problem, through the common event. I don't need any further help. Thanks for your help though.
However I don't get your second point. If the player did all that, why would the name revert to its original?

Actually you're right. For some reason, I read that as if you were changing the name in $dataSkills, not a variable. So it would stay put between saves.

Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/mv-changing-the-name-of-a-skill-when-a-certain-skill-is-applied.143207/