Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> [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
   
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
   
master3183
post Oct 5 2008, 05:49 AM
Post #3


Level 4
Group Icon

Group: Member
Posts: 47
Type: None
RM Skill: Beginner




Very nice! I really needed one of these, thanks.


__________________________
Yeah...about that.
Go to the top of the page
 
+Quote Post
   
mars111
post Oct 5 2008, 06:42 PM
Post #4


Level 3
Group Icon

Group: Member
Posts: 30
Type: Developer
RM Skill: Beginner




QUOTE (meganew2 @ Sep 30 2008, 06:13 AM) *
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



Thats easy to fix.. you could put a SelfSwitch below the "Gold Acquired" or another cheat, and do a second event page saying that you can only use a cheat once in all game tongue.gif
Go to the top of the page
 
+Quote Post
   
VileoSufora
post Oct 6 2008, 02:24 PM
Post #5


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




This gave me an idea. Maybe a parallel process common event that checks for some odd input, maybe?
Thanks for the idea!


__________________________
Formerly HotSpot6


Anime-Planet.com - anime | manga | reviews
~ ~ ~
Go to the top of the page
 
+Quote Post
   
Shenrai
post Oct 6 2008, 02:30 PM
Post #6


Level 23
Group Icon

Group: Revolutionary
Posts: 518
Type: Developer
RM Skill: Advanced




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?


__________________________
Go Valcrist! (Refer to avatar)

Go to the top of the page
 
+Quote Post
   
VileoSufora
post Oct 6 2008, 03:59 PM
Post #7


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: 19th May 2013 - 12:50 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker