Help - Search - Members - Calendar
Full Version: Cheat Script
RPG RPG Revolution Forums > Scripting > Event Emporium > Eventing Tutorials
YOURMASTER001
This tutorial basically lets you have a cheat system. This means players can input codes which do anything you want them to do.

Okay then, let's get started.

First of all, create an item (This can be done without an item as I'll explain later). Make it so the player knows that it's for codes. For example, I done:

Name- Reality Warper
Icon- A keyboard.
Description- This strange object lets you input codes to warp time and space (CHEATS!!!)

Next, go to the Common Events tab. Create a new common event called Cheats (or whatever you want). Now, create a text event command saying something like: -INPUT CODE-.
Then create a Input number command. Create a new variable
and call it whatever you want, then choose it. Then choose how many digits you want all your cheat codes to be. I chose 8, but it can be any number between 1 and 8. Once you've done that, click OK. Next make a Conditional Branch command. Choose Variable, then change it to the one you made earlier. Next, choose Equal to from the drop down menu. Then choose Constant. Here, put in the number you want one of your cheat codes to be. For example, I done 47658901. Remember to make it as long as the number of digits you chose in the Input number command. Now click OK. In the conditional branch you just created, you create a cheat. For example, I done a Complete Healing code which went like this:

@>Text: -COMPLETE HEALING ACTIVATED-
@>Recover All: Entire Party

This will display a message saying:
-COMPLETE HEALING ACTIVATED-, then it will heal the entire party. You can also easily put an animation or SE
in with it.

Now (with the way I have created it) when the player uses
the Reality Warper, s/he will be prompted to put in a code. If 47658901 is entered, the entire party will be healed. If not.... Well we'll come to that pretty soon.

Now obviously you'll most likely want more than one cheat in your game (If you want any at all that is, but then you wouldn't be reading this tut if you didn't).

To do this, go to Else. Then go back to where you created the Input Number event. Do the EXACT same here. Now do the conditional branch event. Do the exact same, apart from where you put in the number that you wanted your code to be. Here, put in a new code, but again it MUST be the same amount of digits as the last. And again once you click OK, make the cheat under Conditional Branch. This time, I done:

@> Play SE: 'Shop', 80, 100
@> Text: -1,000,000G ACTIVATED-
@> Change Gold: +1000000

You should know what it does. If you want ANOTHER cheat, then do exactly what we done there, starting from when we go to else.

After you've done all your codes, go to Else once more and create an event notifying the player that he got the code wrong. I done:

@> Play SE: 'Buzzer1', 80, 100
@> Text: -INCORRECT CODE-

Now finally, go back to the Items tab and go to your item you created. Click on the drop down menu under Common Event: and choose the Common Event you created. Viola! You've created an item which lets you input codes!

Like I said, you can do this in an event. If you haven't created the Common Event we've been doing, then you can create it in the event. If you have created in however (or if you want to do it in the common events anyway) then in the event you want to start the cheat engine in, choose Call Common Event and select the event you created.

So how was it? Could you PLEASE leave feedback and suggestions? Okay then, thanks a lot for reading this. 

here is an example
leongon
You are just eventing dude.
Night5h4d3
Moving to Event Emporium
~Night5h4d3
Alt_Jack
I just posted something like this, but my version is just for testing mode (but it covers everything). It doesn't require a # input (just a secondary event, since it runs on switches), nor is it an item. They're pretty much the same, but mine takes far longer and isn't an item (but could be adapted to be one).
Tsaku Mitsajuni
You can also use a name input.
Alt_Jack
QUOTE (Tsaku Mitsajuni @ Aug 18 2010, 09:54 PM) *
You can also use a name input.

..which is what the one I made uses. The only problem is that you need to make a blank character, if you don't want to change someone's name.
jens009
I think this is pretty decent, considering the fact that the cheat code is hidden from the player.
QUOTE (Alt_Jack @ Aug 18 2010, 10:13 PM) *
QUOTE (Tsaku Mitsajuni @ Aug 18 2010, 09:54 PM) *
You can also use a name input.

..which is what the one I made uses. The only problem is that you need to make a blank character, if you don't want to change someone's name.

Blank characters are not a problem at all! =]
Alt_Jack
QUOTE (jens009 @ Aug 18 2010, 10:32 PM) *
I think this is pretty decent, considering the fact that the cheat code is hidden from the player.
QUOTE (Alt_Jack @ Aug 18 2010, 10:13 PM) *
QUOTE (Tsaku Mitsajuni @ Aug 18 2010, 09:54 PM) *
You can also use a name input.

..which is what the one I made uses. The only problem is that you need to make a blank character, if you don't want to change someone's name.

Blank characters are not a problem at all! =]

True, but it's only necessary in that sort of system. It's not very good if you're trying to keep your game small. You could just have it activate with a certain name (ex: calling the character "millionaire" would give the player 1 million gold).

BTW, nice work on the Cut-in script. I figured out how it works on my own...finally. sweat.gif
Finncarls1
Thanks man, I found this super helpful because I couldn't find a script that worked laugh.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.