warcrystudio
Would you like to react to this message? Create an account in a few clicks or log in to continue.

(RMVX) cheat book system(EVENTS)

Go down

(RMVX) cheat book system(EVENTS) Empty (RMVX) cheat book system(EVENTS)

Post  Iperks Sat Oct 13, 2012 10:08 pm

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>
Iperks
Iperks
Owner
Owner

Posts : 49
Join date : 2012-10-13
Age : 26
Location : Harrisburg, OR

Character sheet
Race: elf
class: warrior
skills: mega slash(warrior/warriormage

http://warcrystudio.wix.com/warcrystudio

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum