I'm new to Javascript and RPGMaker, so I'm sorry if the answer is obvious. How would I be able to check whether a custom name matches another custom name? I've already set each name input to a different actor, but conditional branches don't seem to work, because that only checks for each actor's ID value. Does anyone know how this would be done?
How do I check if a player-inserted name matches another player-inserted name?
RPG Maker MZ SupportYou can put into the Script field of Conditional Branch
where 1 and 42 are the IDs of the two actors you're comparing.
Code:
$gameActors.actor(1).name() == $gameActors.actor(42).name()
Thank you so, so much! Worked like a charm!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-check-if-a-player-inserted-name-matches-another-player-inserted-name.173056/