• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
Password in Events

Password in Events 2017-02-24

Pokémon Essentials Version
v16.2 ➖
What's this?
In Pokèmon Black2 and White2 you're given several passwords at some point during the game, for you to introduce in order to open a door and progress through the game. We are going to do just that.

Related
Text input settings controlled by the player
Allowing the player to change text input (keyboard or classic), instead of having it hardcoded.

Show me the goods!
Not much to show here.
W7k8hdC.png


Alright, what do I do?
I have baked a very simple method, for you to place above Main, in a new script section if you please.

Code:
Expand Collapse Copy
def passCheck(password,helptext="What's the password?",minlength=0,maxlength=8,casesensitive=false)
  code=pbEnterText(helptext,minlength,maxlength)
  if code==password || (casesensitive==false && code.downcase==password.downcase)
	return true
  else
	return false
  end
end

In order to use this, create a Conditional Branch inside an event, with a script as as a condition. Such script should be "passCheck("password")", where "password" is the password the player has to input and get right. The password is case-senstive. You can use aditional fields to modify the help message ("What's the password?", min. and max. length of password, and if it should be case-sensitive (true meaning it won't accept "leDyBa", false meaning it will accept "leDyBa", and false by default).
An example of the full conditional with the additional fields:
Code:
Expand Collapse Copy
passCheck("Ledyba","What Pokémon am I thinking of?",0,8,false)

Example Event
2ZB0ixM.png


Design Notes
You could do this at a control panel for a door, as it asks you for a code to open the door.

You could also do some sort of "Mystery Gift" with this if you don't want to use Essentials' system, and just hide the passwords from the players until you decide to release the magic words.

Be creative!
Credits
h7zpBm0.png

Please credit if used to:

Mr. Gela

Please do not redistribute this anywhere resource anywhere else. If you wish to share this, link to this site.

xa1A2iB.png

Por favor da créditos si lo utilizas a:
Mr. Gela

Por favor no redistribuyas este recurso en ningún otro lugar. Si quieres compartir esto, utiliza un enlace a este sitio.
Author
Mr. Gela
Views
4,656
First release
Last update

Ratings

5.00 star(s) 1 ratings

More resources from Mr. Gela

Latest reviews

It may be translation issues on my part, so it was a bit difficult to understand what it meant by "Add above Main" at first (to this, it may be a good idea to make a spoiler/drop down section to explain going to Script and adding new in the Maker and not files). After I worked that out, this script still works as of v20!
Back
Top