Check character name

White Flare

Villager
Member
Joined
Mar 23, 2016
Messages
20
Reaction score
5
First Language
English
Primarily Uses
I was wondering if there was any way without a plugin to compare the result of a name input processing event to a pre-determined name. I want to use this for developing a game that is being deployed in beta alpha versions on my website, where if player puts the name "debug" events in certain areas will turn on for fast traveling, healing, adding levels, etc. I want it in the live version so my beta testers can use it for there own purposes as well, and when the game finally goes open beta I can make it a development easter egg of sorts.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,779
Reaction score
12,207
First Language
English
Primarily Uses
RMMV
Conditional Branch has an option on one of the tabs to compare a character's name to a string you input.

It is not case sensitive, so if you compare to 'debug' then you would have to write 'debug' exactly, and not 'Debug' or 'DEBUG'.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
1,483
Reaction score
987
First Language
English
Primarily Uses
On the offchance that you want it to be case-insensitive, you can also use a "script" condition in the conditional branch set to

$gameActors.actor(replacewithactorid).name().toLowerCase() === 'debug'
 

White Flare

Villager
Member
Joined
Mar 23, 2016
Messages
20
Reaction score
5
First Language
English
Primarily Uses
Thanks that is exactly what i needed. Shaz I'm pretty sure you meant it is case sensitive but I got that from the context, and that script could be useful Trihan so thank you both and I appreciate the quick response.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
1,483
Reaction score
987
First Language
English
Primarily Uses
No worries mate, let me know if you need anything else.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Ami
4 days im not using my laptop to waiting someone to reinstall (sigh)
Stream will be live shortly with some Donkey Kong 64! Feel free to drop by!
Working on a test Boss for the new No Travel Game Jam
- Name Plugin by Moghunter -
Free RPG Maker Ready Charging Up Animation

Enjoy -No Credit Needed But Appreciated -
Download it at https://lvgames.itch.io/free-charging-up-pixel-animation-fx-rpg-maker-ready
:/ .... so, thought I’d go to the park to sit in the cool breeze and get out of the house a little. Nope, guess that’s quarantined too. Ok...

Forum statistics

Threads
95,489
Messages
929,541
Members
125,738
Latest member
izn_lawliet
Top