Is there a way to select a character from a list (like the select item command, but for characters instead)?
Select a character
RPG Maker MZ SupportBut for what purpose?
What should happen when you select an actor?
What should happen when you select an actor?
You do a Show Choices command and put the names of the actors as the choices?
As Tridium said, without more explanation or context, we can't really suggest more than that.
As Tridium said, without more explanation or context, we can't really suggest more than that.
I'm making a game where you can buy pets and pick them up and place them where you want. I was using pets as items, so the user could select them. However, then I just have a list of Pet 1, Pet 2 etc. I want them to be able to named. I assume that would mean the pets should be actors instead of items. However, if the user has just bought 2 pets, how can they choose which pet they want to place on a chair, and which pet they want to place on a bed?
You can check the plugin https://dk-plugins.ru/character-selection/
I would say they should be variables.
If they're not participating in battles or in your party, it's a bit wasteful for them to be actors.
Unless you actively want to see them in your inventory (I have six puppies in my backpack!), they shouldn't be items (plus those can't be renamed).
I'd say the various pets should just be variables, and you use the Script command in Control Variable to set it to a string. e.g.
Control Variable -> 15 -> Script -> "Pet 1"
Then you can have just one dummy actor you use for the name input, and you use a script command to copy that actor's name into the appropriate pet's variable. For example, to put actor ID 20's name into variable 15,
$gameVariables.setValue(15, $gameActors.actor(20).name())You can put \V commands into the choices window, but it would probably make more sense for you to look up a conditional choices plugin so you can automatically display as many or few pets as the player has.
If the pets have stats like HP, or things like equipment/accessories, or they follow you around the map, it could be useful for them to be actors. You could also load their actor notebox up with various properties they might have, then have scripts/plugins do things based on those properties
Okay, but the OP didn't say any of that 😛
Original thread: https://forums.rpgmakerweb.com/threads/select-a-character.162082/