Well, it was another save file, just as you say. How do you delete save files? You'd have to do that through the file system, as RM doesn't have a way to do it.
Here's a script that will work, but in testing I realised a shortcoming ... this is updated when you GIVE the character the name - even if you never actually save the game. So start a game, name your character, exit to title without saving, start a new game, you can't use the same name.
However I'd need more information from you to fix that - specifically, what actor/s are they able to name and you want to keep unique? Do you only have one actor in the party? Or do you have several, but can they only name one? Or can they name several?
Anyway, here's what I've already done, if you want to play around with it. Saving the names only when the game is saved would require a few changes.
Spoiler
module DataManager class << self alias shaz_unique_names load_normal_database end def self.load_normal_database shaz_unique_names begin $data_names = load_data("PC_Names.rvdata2") rescue $data_names = [] end end def self.save_names File.open("PC_Names.rvdata2", "wb") do |file| Marshal.dump($data_names, file) end endendclass Game_Interpreter def actor_name_used?(actor_id) $data_names.include?($game_actors[actor_id].name) end def save_actor_name(actor_id) $data_names.push($game_actors[actor_id].name) DataManager.save_names endend
So you'd use it something like this:
Code:
Text: Please choose a name for your actorLoop Name Input Processing: Eric, 10 characters Conditional Branch: Script: actor_name_used?(1) Text: Sorry, that name has already been used before. Please choose one that's never been used Else Script: save_actor_name(1) Break Loop Branch EndRepeat AboveControl Self Switch: A = ON
where actor_name_used?(1) and save_actor_name(1) use the id of the actor whose name you changed.