Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> [Eventing]Simple Tutorial on Cheat Codes, Haven't seen one of these in a while. Includes Images.
Achilles
post Sep 23 2008, 08:25 PM
Post #1


I can (usually) answer any event based question!
Group Icon

Group: Revolutionary
Posts: 381
Type: Scripter
RM Skill: Masterful




Haven't seen a tutorial on cheat codes in a while, figured I'd make one since I'm bored and because they're quick, easy, and fun.
This tutorial will show you how to make a person, place, or thing allow the player to input a code in order to receive a reward. Think, "lumberjack" on Age of Empires 2 (+ 1000 wood).

1.) Decide who, where, or what will be the person, place, or thing where the player can input the code. While in event editing mode, I took a random character sprite and put his settings to, "Move Animation" and "Player Touch".
Image


2.) Now I'm just going to add some text to this character, such as, "Would you like to enter a cheat code?", and then some options, "Yes, No".
Image

3.) We have to go off track for a second. Click "Apply" on your event, then go to the Database. Under the Actors list, increase the maximum number of actors by however many cheat codes you plan to have, in this case I'll just have one cheat code, so I'll change the maximum to 9. For the new actors name, type the word, "cheatcode". Once you've entered in all your cheat codes in the Actor slots, click "Apply", and go back to your event. If you have more than one cheat code, simply label them with numbers, i.e., "cheatcode2", "cheatcode3", etc.
Image

4.) In my event, I'll leave the "No" option blank, since if I don't want to enter a code, I can just leave. Under "Yes", I'll first add the text, "Input Code:", and then I added the command, "Name Input Processing", and picked the name "cheatcode". I left the number of characters at 6. Next, add the command, "Conditional Branch", with the condition being that Actor "cheatcode" has the Name "(whatever your cheatcode is)" Applied. My cheatcode is, "hello".
Image

5.) Under "Else", add some text such as, "I'm sorry, that is not a valid code". If the player types the code wrong, or doesnt know one, that text will appear. When the condition is met, add some text such as, "Congratulations, you have received 1000 gold!". Then, simply give the player the reward, in this case, add 1000 gold to their gold count.
Image

6.) Click apply and Playtest your game! You can now enter codes and receive rewards for doing so!
Image (1)
Image (2)

Hope you enjoyed this tutorial!



__________________________
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
VileoSufora
post Oct 6 2008, 03:59 PM
Post #2


This is not Sparta! This is...What is this I don't even
Group Icon

Group: Revolutionary
Posts: 169
Type: Event Designer
RM Skill: Skilled




QUOTE (Shenrai @ Oct 6 2008, 06:52 PM) *
QUOTE (HotSpot6 @ Oct 6 2008, 05:46 PM) *
This gave me an idea. Maybe a parallel process common event that checks for some odd input, maybe?
Thanks for the idea!


Ahhh. Like:

Input Q+A+Z during village fire cutscene to make all the characters do funky dances!

...Well...in theory it'd work.

But yeah, you could use Name Input Processing for virtually anything to fit your needs. I'm planning on having it where in one of my games you get to name a town anything you want. But if you know your Greek mythology well enough (yes, it's a game centered around the Greeks) and you input the "correct" town name, you get a special bonus. Fun, huh?

Actually I was talking like, press semicolon to enter the cheat screen, instead of just a combination.


__________________________
Formerly HotSpot6


Anime-Planet.com - anime | manga | reviews
~ ~ ~
Go to the top of the page
 
+Quote Post
   



Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 06:12 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker