Hello there !
I am developing a game where the hero can change his appearance and class. For that I use an event that switches between each actor to change the hero.
But I don't want to change the hero's name, which obviously changes between each actor switch. I tried to store the hero's name in a script command ( $game_actors[1].name ) but it doesn't work, does anyone know another way to do it ?
it should work with a script command, but why are you even switching around actors?
If you want the player to customize the actor, it would be better to stay with a single actor and change that one to whatever you want it changed - no need for multiple actors there as everything in the actor can be changed with the appropiete event command.
I need to change actors because i have a plugin that modify battlers in combat , and i can't use it with only one actor, i need several actors for several battlers.
I believe you just have an event that when the actor changes names it changes the name of all the actors?
Do your players name the characters? If so, that's a bit more difficult and I would need to brainstorm a bit...
There might also be a plugin...I think Himeworks instance actors or something might work...
That's what i tried but it doesn't work, because, for being more precise, i have an event that replace the leader in the party (the hero) by another one in the actor's database.
And yes, the player can choose the name of the hero, that's why it's a little tricky ^^.
I've tried to use the script $gameactors(id).name by putting it on a variable, then use another variable as a condition for changing the name of the hero.
The idea is, for example : The hero is A, then he evolve into B. A_Name = $gameactors(1).name. If hero is B then B_Name = £gameActors(1).name
But i will try another approach.
Double post sorry !
I've got it ! I use this :
$gameActors.actor(2).setName($gameActors.actor(1).name()); in my call of my common event and it works perfectly 🙂 .
Thank you very much for the help !