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
meganew2
post Sep 30 2008, 06:51 AM
Post #2


Spriter/Userbar maker/Recolorer
Group Icon

Group: Revolutionary
Posts: 273
Type: Artist
RM Skill: Advanced




Thanks i was looking for this..



[Update]
I dont like the fact that people can keep on using this code...I want it to they can only use it once

This post has been edited by meganew2: Oct 5 2008, 10:34 AM


__________________________

In Development
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: 24th May 2013 - 04:57 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker