Help With Names

So, I'm creating a Warrior cats game. At the beginning of the game, you are a kit and you get to choose your name (via your mother's thoughts XD). I only want the player to put in the first  part of their name, example: "Starling", "Honey", or "Grass" and have it show their name have -kit at the end as a kit, -paw at the end as an apprentice, and their warrior suffix name depending on something they've done, such as the suffix -whisker for someone who has caught 25 pieces of prey, say. However, I don't know how to accomplish this. I would greatly appreciate those who can help me


figure out how to event this.
I would store the name chosen by the player in a variable (use Control Variables, choose the variable to use, then put $gameActors.actor(id).name into the script box - replacing id with the id of the actor - no leading zeros).


Then if the name is going to change fairly frequently throughout the game, I'd do the rest of the logic in a common event that can be called from other events that would trigger a name change.  The common event would have a series of tests, each one to add a suffix to the end of the game.  Each test would consist of a series of conditional branches to check one aspect (their class, what quests have been completed, etc) and modify the name accordingly.


For instance (obviously use whatever spare variable number you have, instead of 5):

Code:
# Start with the name entered by the player
Control Variables: New Name (variable 5) = Original Name (the variable you copied the name into when the player first entered it)

# Add suffix for class
If Actor 1's Class = Kitten
  Control Variables: New Name = Script: $gameVariables.value(5) + 'kit'
Else
  If Actor 1's Class = Warrior
    Control Variables: New Name = Script: $gameVariables.value(5) + 'paw'
  End
End

# Add suffix for quest completion as warrior (the first one met will be the one chosen, so if you want the name to change with later quests, put them in order of earlier quests at the bottom, later quests at the top
If Actor 1's Class = Warrior 
  If Switch (25 prey caught) is ON
    Control Variables: New Name = Script: $gameVariables.value(5) + 'whiskers'
  Else 
    If Switch (other quest here) is ON
      ...
    End
  End
End

# change the actor name - put the actor id without leading zeros into the script, instead of the text 'id'
Script: $gameActors.actor(id).setName($gameVariables.value(5))

Then whenever something happens that might cause the name to change, do a Call Common Event so it rebuilds the name.  If you want spaces, just add spaces in front of each suffix portion.


Edit: you could also use the nickname and just change the nickname during the game as things happen.  But then you might need some plugins to show the name and nickname instead of just the name whenever it occurs (in message boxes, in the menu, etc).
I would store the name chosen by the player in a variable (use Control Variables, choose the variable to use, then put $gameActors.actor(id).name into the script box - replacing id with the id of the actor - no leading zeros).


Then if the name is going to change fairly frequently throughout the game, I'd do the rest of the logic in a common event that can be called from other events that would trigger a name change.  The common event would have a series of tests, each one to add a suffix to the end of the game.  Each test would consist of a series of conditional branches to check one aspect (their class, what quests have been completed, etc) and modify the name accordingly.


For instance (obviously use whatever spare variable number you have, instead of 5):

Code:
# Start with the name entered by the player
Control Variables: New Name (variable 5) = Original Name (the variable you copied the name into when the player first entered it)

# Add suffix for class
If Actor 1's Class = Kitten
  Control Variables: New Name = Script: $gameVariables.value(5) + 'kit'
Else
  If Actor 1's Class = Warrior
    Control Variables: New Name = Script: $gameVariables.value(5) + 'paw'
  End
End

# Add suffix for quest completion as warrior (the first one met will be the one chosen, so if you want the name to change with later quests, put them in order of earlier quests at the bottom, later quests at the top
If Actor 1's Class = Warrior 
  If Switch (25 prey caught) is ON
    Control Variables: New Name = Script: $gameVariables.value(5) + 'whiskers'
  Else 
    If Switch (other quest here) is ON
      ...
    End
  End
End

# change the actor name - put the actor id without leading zeros into the script, instead of the text 'id'
Script: $gameActors.actor(id).setName($gameVariables.value(5))

Then whenever something happens that might cause the name to change, do a Call Common Event so it rebuilds the name.  If you want spaces, just add spaces in front of each suffix portion.


Edit: you could also use the nickname and just change the nickname during the game as things happen.  But then you might need some plugins to show the name and nickname instead of just the name whenever it occurs (in message boxes, in the menu, etc).

This seems very confusing, I am a newbie to RPG Maker MV. The first thing I will ask is: Will I have to get a plugin to be able to store text in a variable to be able to do this?
No. The Control Variables command has a script box which you can use.  I've given you exactly the commands to use in my post.  Just look for them in the appropriate event commands (where I say Control Variables, that means choose the Control Variables event command, and then when I say = Script ... it means you type what follows into the Script box at the bottom of the command window)
@Shaz I know that you can input text into variables now, sorry I was a noob...
that's okay.  You don't have to necropost just to say that 😉

Original thread: https://forums.rpgmakerweb.com/threads/help-with-names.63747/