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,479
Reaction score
12,024
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
986
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
986
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 Profile Posts

putting a puzzle in my game that BSODs the player's computer if they complete it
I finally got a book out the door after seven years of nothing \^-^/ Now if I can get a game out the door too, that'd be great...
MY GAME IS NOW OFFICIALLY RELEASED!!
*FurAffinity is down*
*Sets house on fire*
This is fine.

Forum statistics

Threads
94,363
Messages
920,262
Members
124,126
Latest member
TookMyRole
Top