Author Topic: [RMVX] Cheat System  (Read 6373 times)

Offline Runefreak

  • Awakened Visionist
  • **
  • Posts: 52
  • LV: 10
  • Gender: Male
    • View Profile
    • RPG Creation
[RMVX] Cheat System
« on: February 26, 2011, 09:33:13 AM »
[font="quot"]Cheat System[/font]

This tutorial will show you how to insert a cheat system into your game, it will give you anything you want if you insert a certain code.
  • ->Step 1: Make An Item
    First you need to create an item that is used for inserting the codes and getting the cheat, so just create a quick item and name it anything you like (I'll name it "Cheat Book").


  • ->Step 2: Create the Common Event
    Now go to the Common Events tab and create a new common event called Cheats (Or whatever you want it to be). To begin you can insert text saying something like "Welcome to the cheat book". Next insert the event command "Input Numbers", create a new variable and call it whatever you like and  choose it. Then choose how many digits your cheat codes will have. I'll choose 4, but it can be any number between 1 and 8. Once your done with that, click OK. Next create a Conditional Branch. 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 put 6782. 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 created a cheat.


  • ->Step 3: Giving a Cheat
    Okay, so if you inserted the right cheat code it will give you something, say an item. So in the conditional branch, make it something like this (This is how I set it):
Code: [Select]
@>Input Number: [0001: Cheat], 4 digit(s)
@>Conditional Branch: Variable [0001:Cheats] == 6782
@>Change Items: [Full potion], +99
: Else
@>
: Branch End
@>

  • ->Step 4: Fixing the Item
    Go back to the items tab to your Cheat item (I named it Cheat Book so I'll call it that), change it to these settings:
    Code: [Select]
    Name: NAME HERE
    Description: DESCRIPTION HERE
    Scope: None
    Occasion: Only from the Menu
    Price: 0 (This can be changed if you are selling it in a shop)
    Consume: No
    Speed: 0
    Animation: None
    Common Event: <Cheat Common Event Here>
      Then you can give it an icon if you like.
    If I forgot anything tell me please

    DEMO DOWNLOAD


    [Here is a good example of a cheat system that is a little more advanced ;)]
    Code: [Select]
    @>Text: -,-, Normal, Top
    :  :\nb[Code Breaker]Would you like to enter your beta code?
    @>Show Choices: Yes I have a code., No I do not have one.
    : When [Yes I have a code.]
    @>Text -,-, Normal, Top
    :  :\nb[Code Breaker]Enter your 5 digit code now.
    @>Loop
       @>Input Number: [0004:Beta Code], 5 digit(s)
       @>Conditional Branch: Variable [0004:Beta Code] == 12345
      @>Text: -,-, Normal, Bottom
      :  :\nb[Code Breaker]Beta Code is activated!
      @>Break Loop
      @>
    : Else
    ( Between here is where you repeat the Conditional Branch that checks the other code variables again )
      @>Text: -,-, Normal, Bottom
      :  :\nb[Code Breaker]Incorrect code! Try again?
    @>Show Choices: Yes, No
    : When[Yes]
      @>
    :when [No]
      @>Break Loop
      @>
    : Branch End
    @>
    : Repeat Above
    @>
    :When [No I do not have one.]
    @>
    : Branch End
    @>
    [/size]
(click to show/hide)

Offline PhoenixFire

  • Moderator
  • Astral Trancist
  • ***
  • Posts: 918
  • LV: 6
  • Gender: Female
  • ~That's an interesting notion, in it's own way~
    • View Profile
Re: [RMVX] Cheat System
« Reply #1 on: April 08, 2011, 06:33:59 PM »
Do you know of a way you can input letters of variable length, instead of numbers, of a set length?
Next off, how to create a first person shooter using microsoft excel.

<Remember when computers had turbo buttons?

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19930
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [RMVX] Cheat System
« Reply #2 on: April 08, 2011, 08:27:43 PM »
You should fix the formatting in your post.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Narzew

  • Trained Member
  • *
  • Posts: 16
  • LV: -15
  • Gender: Male
  • Please fix my english!
    • View Profile
    • Ruby Project
Re: [RMVX] Cheat System
« Reply #3 on: October 27, 2011, 04:36:39 PM »
Good job. I used this script in Zeiling.
Please fix my english!
More scripts & Art - informatykaplus.cba.pl
I'm a scripter.