MV Looking for a name plugin

I'm looking for a name plugin that I could rename actors but keep a specific part of the characters name. I would also like it to add a new part to the name. Like if you name your character Torrent something like strike would be added to it, making it Torrentstrike and, at some point, you could possible be renamed Torrentclaw or Ghoststrike.

Is there one that would do something like this, or could it be done without a plugin?
You don't need a plugin for that. Simply use the Change Name... or Name Input Processing... event command to change the name, then use a Script... event command with following code:
Code:
const id = 1;
$gameActors.actor(id).setName($gameActors.actor(id).name() + "strike");
to add "strike" at the end of actor #1's name. If the name was "Torrent" before, it'll be "Torrentstrike" afterwards.

or
Code:
const id = 1;
$gameActors.actor(id).setName("John " + $gameActors.actor(id).name());
to add "John " at the beginning of actor #1's name. If the name was "Doe" before, it'll be "John Doe" afterwards.

Just change the number 1 to the ID of the actor whose name you want to change.
Also, if you want the original name and the addition to be separated by a space, don't forget to add the space inside the quote marks ("), like in the "John " example.
It basically needs to be done without a plugin, but by using the javascript equivalents of the event commands.

The problems is that conditions about names like you stated need to be entered by string operations, and the plugin writer cannot know your conditions before. So you would have to rewrite any plugin used, and then it is easier to use the commands directly.

EDIT: ninja'd, the above explanation is more complete
You don't need a plugin for that. Simply use the Change Name... or Name Input Processing... event command to change the name, then use a Script... event command with following code:
Code:
const id = 1;
$gameActors.actor(id).setName($gameActors.actor(id).name() + "strike");
to add "strike" at the end of actor #1's name. If the name was "Torrent" before, it'll be "Torrentstrike" afterwards.

or
Code:
const id = 1;
$gameActors.actor(id).setName("John " + $gameActors.actor(id).name());
to add "John " at the beginning of actor #1's name. If the name was "Doe" before, it'll be "John Doe" afterwards.

Just change the number 1 to the ID of the actor whose name you want to change.
Also, if you want the original name and the addition to be separated by a space, don't forget to add the space inside the quote marks ("), like in the "John " example.
Thank you.
It basically needs to be done without a plugin, but by using the javascript equivalents of the event commands.

The problems is that conditions about names like you stated need to be entered by string operations, and the plugin writer cannot know your conditions before. So you would have to rewrite any plugin used, and then it is easier to use the commands directly.

EDIT: ninja'd, the above explanation is more complete

I think I'll use that explanation but, I might try making a plugin that saves a specific part of characters names.
I don't know how but I can just try it.
plugins are NOT miracles.

There are a lot of game mechanics that can only be done by plugins, there are other game mechanics that can be assisted by plugins - but there are also game mechanics that are better handled without plugins, by eventing alone.

This is one such case.
Yes, it is possible to have a plugin enter javascript code into the renaming function of the events, but that code would have to be extremely restrictive in its structure. You would have to put in three times the work to do this as a plugin, and no one else would be interested in the resulting plugin because most people would use different naming conventions.

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-a-name-plugin.137883/