Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Indie Dev

CynicSyndrome
CynicSyndrome
The only way I know to prompt the player for text is through name input processing. But how do you compare two names in a conditional branch?
CynicSyndrome
CynicSyndrome
If it wasn't clear, I'm looking for the player to set their own password.
kuzuryuu_shiko
kuzuryuu_shiko
Hmm, if it's numerical password, maybe you can mess with the "Input Number" option below the "Show Choices" option, that way, the number you input will be connected to a Variable you choose to fill the numbers in...
kuzuryuu_shiko
kuzuryuu_shiko
But I've never tried making a conditional number that a player choose, as I often only use a fixed conditional number...hmm, guess I'll try tweaking in this problem for a while XD I'll tell you if I found a solid solution!
kuzuryuu_shiko
kuzuryuu_shiko
Yes! I have found just the solution you need!!

First, make two variables : Let's call the first variable as [Password Set], this is where a password the players set is stored permanently as their storage's password. The second variable should be called [Input Password], this is where the players will Input the password everytime they open the storage.
kuzuryuu_shiko
kuzuryuu_shiko
Second, make an event where players will set their password for the storage. Make an INPUT NUMBER command somewhere in the event, and make sure the number Inputted will be added to their [Set Password] Variable. The number they input to [Set Password], as I said before, will be their permanent storage password.
kuzuryuu_shiko
kuzuryuu_shiko
Third, in the <Storage Event>, make another INPUT NUMBER command, this time make the numbers they input to be put in the [Input Password] Variable.

Below the INPUT NUMBER (Only in the <Storage Event>) make a conditional branch that will work only when the [Input Password] Variable and [Set Password] Variable matches and will prompts the player to try again when it doesn't match.
kuzuryuu_shiko
kuzuryuu_shiko
That way, your storage system will be Passworded and it also depends to the player!! ^^ Hope this helps!

(Note : make sure to reset the [Input Password] to Zero after the players done messing with their storage XD the INPUT NUMBER command permanently remembers the number the players input so if you don't reset it to zero, the players don't need to input passwords again if you don't reset it to zero XD)
Top