Zelaron Gaming Forum

Zelaron Gaming Forum (http://zelaron.com/forum/index.php)
-   RPGMaker (http://zelaron.com/forum/forumdisplay.php?f=188)
-   -   I Need to know all about Variables in rpg maker 2k or 2k3 (http://zelaron.com/forum/showthread.php?t=41650)

Goodlookinguy 2007-01-15 07:48 PM

I Need to know all about Variables in rpg maker 2k or 2k3
 
My main reason for posting this is I need someone who knows the in and outs of the input keys, variables, switches (least needed), & conditional branches in the RPG Maker 2000 & 2003.

Really I just need step by step instructions on some of the very useful features of variables/input key/conditional branches it would be very greatly appreciated.

I'm also hoping that someone knows how to set where your characters can be placed using variables, kind of a global positioning of some sort.

Thanks ahead of time, Goodlookinguy:cool:

Michael_sama 2007-01-16 06:17 PM

If anyone can post anything that would help me too.

You use emoticons, bad boy! You lied to me, brother!

Draco2003 2007-01-16 06:24 PM

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.

Goodlookinguy 2007-01-16 08:59 PM

Thank you Draco2003 for the help on these subjects. As for you brother, I'm not sure what your talking about.

Goodlookinguy:cool:

Michael_sama 2007-01-17 12:41 PM

I know how to use switches, since they are pretty basic. The variable stuff is harder for me, which is why I dislike complex math, haha.

What confuses me is the "by the by" of RPG Maker 2003. What does that mean?

Lastly, do you have a game or demo? I would like to see the bank system you created.

Goodlookingguy(Insert huge ego here.)

Goodlookinguy 2007-01-18 05:56 PM

Wow, Draco 2003 exactly how did you do your banking system, I've tried to set somthing like that up but I failed. It'd be neat if could show how you did that.

Goodlookinguy 2007-01-21 01:37 AM

If what I post here actually appears thank God, because I have posted several things and they have not appeared yet maybe they will suddenly and are above this post I don't know.

Anyway, I asked in my posts that haven't appeared if Draco2003 can you show me step by step how you created that banking system on yours I would be deeply grateful to you.

Goodlookinguy:cool:

Goodlookinguy 2007-01-21 09:44 PM

Quote:

Originally Posted by Michael_sama
Goodlookingguy(Insert huge ego here.)

Chou baka(ばか , バカ), kiss my butt Michael

Goodlookinguy:cool:

(Goodlookinguy not Goodlookingguy)

Michael_sama 2007-01-22 04:29 PM

For everyone else, just don’t worry about our quarrel. I push for better use of English online and anti-emoticons.

For you, my brother, not only do you disgrace the English language (lookin), but you place a happy face at the end. How dare you! (It’s chou anyway, baka.)

Back to the real post reason, which is if anyone knows any of the techniques posted by the first post that have not been clarified, please contribute your knowledge. I will thank you in advance.

Atnas 2007-01-26 04:09 PM

I'm too lazy to read that big post.

Can you tell me what is left to explain?


By the way, I'll definately be doing a tutorial now.
I've seen the same questions asked over and over again for far too long.

Lenny 2007-01-26 04:18 PM

And you've only been here for 8 months. :p

Atnas 2007-01-26 05:00 PM

Yup.

I'm going to read all of my early posts.

It's sure to be amusing to see how I was just like all the other "Plz hlp wts a evnt/" people.

EDIT: Meh, it only goes back to 500, and that's when I was a bit better in how I held myself online.

Goodlookinguy 2007-01-27 03:44 PM

[Check out my signiture]
 
Specifics, all right.

A CurrentCash variable, it will be updated constantly to reflect the player's amount of money.

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

And the Withdraw and Deposit variables, they 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.

I took those directly from Draco2003's post

And also input keys, & deep into the structure of conditional branches in the RPG Maker 2000 & 2003. And could you explain global positioning a bit clearer and deeper.

Lenny 2007-01-27 04:18 PM

I worked it into something I was doing for somebody... then realised I was going about it the wrong way. So I saved it.

Here's what I wrote - you'll have to take it and use the same principles to your own means.

---

Quote:


Map Event for Monster Group Attack

In this event you will need to:

a) Memorise Position
b) Call Common Event for Monster Group
c) Call Common Event for Battle Terrain

This is done as shown:

<>Memorise Location [0001], [0002], [0003]
<>Call Event: Monster Group CE
<>Call Event: Battle Terrain CE
<>

Sadly, Memorise Position makes use of Variables, but you’ll have to put up with it.

The variables it stores are: Map ID, X Co-ordinate, Y Co-ordinate. You can choose where they are located.

For ease of use, I’ve stored them in:

Variable: [0001:Map ID]
Variable: [0002:X Co-ordinate]
Variable: [0003:Y Co-ordinate]

The Recall to Memorised Position event will use these three to:

- Find the map you were on
- Find the x co-ordinate you were at
- Find the y co-ordinate you were at

I think it may teleport you there automatically, but I’m not entirely sure.

That event, on square on the battle map, or in the victory handler, is:

<>Recall to Location:V[0001] (V[0002],V[0003])
<>


Goodlookinguy 2007-01-27 05:23 PM

<>Key Input Proc: [0069:Movement Keys]
<>Variable Oper: [0045:Global X] Set, Hero X Coord.
<>Variable Oper: [0046:Global Y] Set, Hero Y Coord.
<>Variable Oper: [0072:Hero Map ID] Set, Hero Map ID
<>Branch if Var [0004:Inputs] is 5 Not
<>Variable Oper: [0107:Weapon X] Set, -1
<>Variable Oper: [0108:Weapon Y] Set, -1
<>
: End
<>Branch if Var[0004:Inputs] is 6 Not
<>Variable Oper: [0107:Weapon X] Set, -1
<>Variable Oper: [0108:Weapon Y] Set, -1
<>
: End
<>Branch if Var[0004:Inputs] is 10 Not
<>Variable Oper: [0107:Weapon X] Set, -1
<>Variable Oper: [0108:Weapon Y] Set, -1
<>
: End

:confused:

I was looking up games and download a game that was a remake of the "Legend of Zelda: Link's Awakening" and found this global positioning in the common event area, well what do you think of it? Because it makes absoulutly no sense to me.

Lenny 2007-01-27 05:43 PM

Right, what exactly is it you want to do? You've said "a global positioning system", but that doesn't explain what you want.

Goodlookinguy 2007-01-27 06:00 PM

It does explain it, but I just can't figure it out I'm thinking though, so no worries.


All times are GMT -6. The time now is 10:40 AM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.