Naming help

Hey! I'm making a warrior cat game and I need help knowing how to let the player input their kittypet name and warrior name.

So if they write Cloud it would be Cloudkit, Cloudpaw, and so on. I need help knowing how to add 'Kit' to the player's name.

Thanks!
This would be an edit of the scripts in the project.
Using the input name command will give you the name input, but you have to add in some code to add on extra characters.

Your profile says you use VX but you posted in VX Ace. Do you use both or did you mean to post in VX support?

Can you provide more details on your request? How does a player get a kitty pet?
Or are you asking to have an actor with two names?

The name change is very simple, but how do you want it done?
Ruby:
class Scene_Name < Scene_MenuBase
  def on_input_ok
    @actor.name = @edit_window.name + "kit"
    return_scene
  end
end
Im in VX ace, sorry and thanks!
Actor with two names...
I figured it out, but have a new problem. I made a random name generator and my code is
if @level >3
@Name = actor.name + "kit"

but when the random name gets inputted, it says: kit is now level 3
Where did you put this code?
If you make any changes just remember to make a new script at the bottom below materials and above main.
Never modify the default scripts, unless you're a coding expert.

@BrightmaskDaCat , please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.


Double posting is posting after yourself when no one else has replied. (There are a few exceptions where this is okay, like if it's been 72 hours or more.)
I am sorry, I forgot that was a rule. I put the code in Game_Actor
I put the code in Game_Actor
Instead of modifying game_actor you would make a new script slot entry below materials and above main. This is always the case when adding scripts, unless as I said you are a coding expert and know exactly what you are doing.

New script slot
Ruby:
class Game_Actor
    def whatever_method_you_are_changing
        'original code + your code
        The more advanced way to use an alias
        but do that when you understand how to do it.
        Which may also be necessary depending on scripts you have in your game'
    end
end

What method did you change? Whatever it is has something to do with the level, so it probably could go somewhere else.
The code I provided above works, but doesn't if you are doing different names.

Explain fully how you want it to work and I can probably make a script to do what you want.
Ok! So my idea was that in the game your name gets randomized (as a kittypet). but when you join a clan it gets randomized again and a switch goes off (or something like that) that makes you become Whatever randomiedkit. so in example it is randomized to Cloud. So you'll be called Cloudkit.
Sorry but that still needs more info. You first said you wanted to add kit onto the player name.
So when the player enters the name you add kit.
But are you saying it would be a random addon?
player enters cloud
player name + (kit or kat or whatever) = cloudkit
then when joining a clan it would use different addons? (clan or zzz or xxx or whatever)
But keep the players original name? = cloudclan
Or will the player enter in a new name + random clan names or random kitkat names?

Please answer each question.
ok, So at the beginning of the game, You'll be known as Cloudkit (It'll be easier to start that way). then after (60 seconds, maybe 4 minutes?) you'll become Cloudpaw, after a bit, you'll be Cloud(Random). Do you understand now?
Do you understand now?
Partially.
I can make an array that will pick a random 'tag',
But it sounds like you want to randomize the player name. So a player doesn't enter in their name, a alphanumeric name is randomly generated and then the 'tag' is added, picking from the array randomly.
I would ask if you have some idea of how you are going to generate a random name?
How many characters would it be, do you include numbers, etc?
This would be quite difficult with my knowledge.

After that making it so that a 'tag' is added on is fairly easy.
['kit', 'paw', 'tail', 'claw', 'fur', 'purr', 'etc']

But you say you want it to change when the player joins a clan, then you say it will change in 4 minutes. Which is it?
For the clan I need to know how you are planning to specify a player has joined a clan.
For the 4 minutes, you want it to change 'tag' every 4 minutes in the game?
Uh. not really, I'm sorry I'm bad at letting you know what I need... D:

I just want to know how to randomize the beginning and then tag it every time a switch goes off, DOes that make sense?
well, I'll work on something that adds on a random suffix when the player enters their name.
Then when a switch is turned on it will change the suffix to another random suffix.
Beyond that, I still can't figure out exactly what you want, because your sentences are expressing different concepts.

But I guess it will be a make it, change it, change it, change it process.

I'll put the script here when I'm done.

This is based on you having 1 actor.
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Random Name Suffix           ║  Version: 1.00     ║
# ║ Author: Roninator2                  ║                    ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function:                           ║   Date Created     ║
# ║   Add random suffix to player name  ╠════════════════════╣
# ║                                     ║     1 Mar 2022     ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Instructions:                                            ║
# ║                                                          ║
# ║   Enter in names to be use as suffixes in array          ║
# ║   ['kit', 'paw', 'tail', 'claw', 'fur', 'purr', 'etc']   ║
# ║    Must keep names in quotes                             ║
# ║   Set the switch to use for changing the suffix later    ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Updates:                                                 ║
# ║ 1.00 - Created script                                    ║
# ╚══════════════════════════════════════════════════════════╝
# ╔═════════════════════════════════════╗
# ║ Terms of use:                       ║
# ║ Free for all uses in RPG Maker      ║
# ╚═════════════════════════════════════╝
module R2_Suffix_Name_Kit
  CHOOSE = ['kit', 'paw', 'tail', 'claw', 'fur', 'purr', 'etc']
  SWITCH = 10
end
# ╔══════════════════════════════════════════════════════════╗
# ║ End of editable area                                     ║
# ╚══════════════════════════════════════════════════════════╝

class Game_Actor
  attr_accessor :basename
  alias r2_actor_basename_init  initialize
  def initialize(actor_id)
    r2_actor_basename_init(actor_id)
    @basename = actor.name
  end
end
class Scene_Name < Scene_MenuBase
  def on_input_ok
    @actor.basename = @edit_window.name
    suff = R2_Suffix_Name_Kit::CHOOSE.size - 1
    num = rand(suff)
    addname = R2_Suffix_Name_Kit::CHOOSE[num]
    @actor.name = @edit_window.name + addname
    return_scene
  end
end
class Game_Map
  alias r2_update_map_kit_name  update
  def update(main = false)
    r2_update_map_kit_name(main)
    if $game_switches[R2_Suffix_Name_Kit::SWITCH] == true
      suff = R2_Suffix_Name_Kit::CHOOSE.size - 1
      num = rand(suff)
      addname = R2_Suffix_Name_Kit::CHOOSE[num]
      $game_party.members[0].name = $game_party.members[0].basename + addname
    end
    $game_switches[R2_Suffix_Name_Kit::SWITCH] = false
  end
end
Thank you so much!


One thing, I want it so at the beginning it starts as NAME(kit) then after a switch NAME(paw). Then another switch NAME(RANDOM). And after the final switch NAME(star). Does that make sense?


Edit:

I found the code I need at https://forums.rpgmakerweb.com/index.php?threads/two-part-names.95145/#post-869331 (Its a safe link, I forget if I can post links or not so Ima just go with it)

Original thread: https://forums.rpgmakerweb.com/threads/naming-help.144091/