Home > Tutorials > RPG Maker XP > Password Codes
Password Codes 
Yet another tutorial from Jens!
Description: Using an actor's name for inputing passwords/codes. Good use for futuristic doors that require codes. Can also be applied into midieval settings for guards that need verbal passwords. It could also be used for cheat codes. Whatever else is predictable
Difficulty: Easy
Requirements:
1 new actor
Quote:
Make a new actor. Name the actor "Enter Code"
Make a new event, a chest for example:
Code:
@>Text: It seems we have to input letters to open this chest.
@>Name Input Processing: Enter Code, 6 characters
@>Conditional Branch:[Enter Code]is name 'Mashiba' applied
@>Text:Access Granted
@>Change Items: +1 Potion
@>Text: You found 1 potion
@>Control Self Switch A
else
@>Text: Access Denied
@>Change Actor Name:[Enter Code], 'Enter Code'
Explanation: By using the new actor's name, it will be used to enter different codes. Thus, a condtional branch will be used to check if the new actor's name(The code) is correct. In this case the player should have inputted Mashiba to get the right answer and obtain any treasure, then it will be self switch so that the chest will be permanently open. If the code was not correct, it will be access denied and the event will automatically return the original name of the actor which is 'Enter Code' to avoid the same code inputted earlier.
Comments: This code is pretty interesting if you ask me, you can put pressure upon the player giving him a certain number of chances. If the player screwed up more than 3 times, the treasure chest will self destruct with its treasures and gone forever. This could be easily done using a variable, another conditional branch and a new event page for the self switch.
|
|
Details
|
|
Tutorial:
|
Password Codes |
|
Date Listed:
|
Thu, 03 Jul 2008 01:39:44 -0700 |
|
Author:
|
jens009
|
|
Total Hits:
|
4322 |
|
|