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

 
Variables?
Reply
Posted 2004-06-18, 05:11 PM
Well... Ive done alot with my game.. and ive noticed I've never used ANY variables.... I can't really grasp the concepts of Variables.. and i don't really know how to use em.... I know its kidna stupid but can someone break down to me how to use variables.... maybe a like a variable tutorial... something that a noob can understand THANKS!
-Alex
Old
Profile PM WWW Search
HungryforLint is neither ape nor machine; has so far settled for the in-betweenHungryforLint is neither ape nor machine; has so far settled for the in-between
 
HungryforLint
 



 
Reply
Posted 2004-06-18, 07:45 PM in reply to HungryforLint's post "Variables?"
Variables are placeholders for numbers. That's it. If you can handle the ON/OFF values of a switch, you can handle a variable. Anything you can do with a number, you can do with a variable. Math, counting, comparison, whatever you want.

You can use \v[####] to put the value of a variable within a text message. For example, you can do something like this:

<>Set variable [0001] to the however much money you have
<>Show message: "You have \v[0001] gold"

Again, absolutely nothing to it.
Old
Profile PM WWW Search
BlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzBlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
BlueCube
 



 
Reply
Posted 2004-06-19, 12:09 AM in reply to BlueCube's post starting "Variables are placeholders for numbers...."
Oh ic.... i understand how it holds numbers like gold... but i dont understand how you used it in the Blacksmith demo...
Old
Profile PM WWW Search
HungryforLint is neither ape nor machine; has so far settled for the in-betweenHungryforLint is neither ape nor machine; has so far settled for the in-between
 
HungryforLint
 



 
Reply
Posted 2004-06-19, 12:12 PM in reply to HungryforLint's post starting "Oh ic.... i understand how it holds..."
That's actually not to hard to figure out once you understand the coding.

It's basically like this:

Start Place:

Get Sword
Set Upgrade Level to 1
Move to Shop

---

Shop:

Ask to upgrade. If you don't want to, the event ends.

<>If you're at upgrade level 1:
...<>Ask to upgrade to level 2 - if yes, Change Sword to level 2 and remove old level 1 sword, then set Upgrade Level to 2
....<>End event

<>If you're at upgrade level 2:
...<>Ask to upgrade to level 3 - if yes, Change Sword to level 3 and remove old level 2 sword, then set Upgrade Level to 3
...<>End event

<>If you're at upgrade level 3:
...<>Ask to upgrade to level 4 - if yes, Change Sword to level 4 and remove old level 3 sword, then set Upgrade Level to 4
...<>End event

<>If you're at upgrade level 4:
...<>Explain that you can't upgrade any more
...<>End event

----------------

And this repeats for each character, basically. I actually could simplify the coding more by adding more variables, now that I think about it.

The idea of the variables in the Upgrade Demo (not actually a Blacksmith Demo, that's a separate one) is to keep track of what upgrade level each character's weapons are. There's also the pot of gold variable which transfers money into your inventory, but that's rather easy to see.
Old
Profile PM WWW Search
BlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzBlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
BlueCube
 



 
Reply
Posted 2004-06-19, 01:37 PM in reply to BlueCube's post starting "That's actually not to hard to figure..."
I just thought I'd add a little tip that helped me with variables.
Variables in rpg maker are exactly the same as real variables(Algebra)
Old
Profile PM WWW Search
ograx is neither ape nor machine; has so far settled for the in-betweenograx is neither ape nor machine; has so far settled for the in-between
 
 
ograx
 
 

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 03:29 AM.
'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 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.