Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > Zelaron Gaming > RPGMaker

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next

 
Reply
Posted 2007-01-16, 06:24 PM in reply to Goodlookinguy's post "I Need to know all about Variables in..."
I have never used input keys, so no help there, but the variables are easy.

I actually made a bank system with variables, where you choose how much to withdraw and deposit. I will use that to explain variables.

Okay, first things first, or at least for me, set up the variables. Create a new event, and open the window with all the different event commands. Choose Variable Operations. Now, name your variables something simple (for this the names will be as follows: InBank, Deposit, Withdraw, CurrentCash)

The CurrentCash variable will be updated constantly to refelct the player's amount of money.

The InBank variable will be used to keep track of how much money the player has deposited into the bank.

The Withdraw and Deposit variables will be checked with the other variables to make sure that you aren't withdrawing 1,000,000 gold, when the bank only has 25, or that you aren't depositing 50,000 gold, when you only have 60.

These variables keep track of the number that represents the gold. Variables can keep track of anything and everything related to numbers. You can even use variables to keep track of switches, with a 1 for on and a 0 for off. It's up to you on how creative you want to get.

Switches are easier to understand if you look at the lightswitch in your house. If you turn the switch to the off position, your light is off. Turn the switch to the on position, and the light is on. Same thing for these switches. If you turn switch 0001 on, then anything that has the precondition of switch 0001 being on, will be activated. Try this, make a character on a map, and create a second page. On the first page, make the character say, "Hello, and yadda yadda yadda!" Then open up the Event Commands window, choose Switch Operations, and make switch 0001 turn on. On page 2 of your character, you will set it so he says something different, but only when the switch is turned on. On the left hand side, under page conditions, click the checkbox that says switch _____ is on. Now, choose switch 0001, and make him say something like, "Switch 0001 is on. Congradulations!" and now test play to see if it works. That is all there is about switches.

As for the placing characters with variables, it is possible, and the program even has it's own Event Commmand for it. Memorize Position is on page 2 of the event commands. It lets you choose the variable to store the Map ID, the X coordinate, and the Y coordinate. Use Recall Memorized Position to place the character or event where ever your little heart desires.

The position memory and recall is 2K3 by the by. Not sure about 2K.

TIP: Use \v[xxxx] to display a variable in text fields, and \n[xxxx] to display a hero's name. The numbers can be found in the database, or in the window where you choose which variable to use.
R.I.P
Pontiac
Jan. 1926 - Dec. 2010 est.

Check the Gallery and Scrapbook often!
[deviantArt Account!]

Spy Hard
Agent WD-40:
Quote:
Well, you carry a UB-21 Schnauzer with an OPS Silencer, that's KGB, You prefer an 18-K over an AK, Your surveillance technique is NSA, Your ID is CIA, you recieved your PHD at NYU, traded in your GTO for a BMW, you listen to CD's by REM and STP, and you'd like to see JFK in his BVDs getting down with OPP and you probably put the toilet paper back on the roll with the paper on the inside...
Old
Profile PM WWW Search
Draco2003 has an imagination enthroned in its own recess, incomprehensible as from darknessDraco2003 has an imagination enthroned in its own recess, incomprehensible as from darknessDraco2003 has an imagination enthroned in its own recess, incomprehensible as from darkness
 
 
Draco2003
 



 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 05:23 PM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.