The RPG Maker Resource Kit

RMRK RPG Maker Creation => General Tutorials and Eventing => RPG Maker General => Tutorials Database => Topic started by: Echo on September 02, 2005, 08:01:05 PM

Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Echo on September 02, 2005, 08:01:05 PM
What are Variables?

Variables store data, they can store many forms of data but in RPG Maker, they are mainly used to store numbers.  They can be very useful in keeping count, and checking to see if you are within set limits.  Each Project in RPG Maker can make use of 5,000 variables.

How do I use Variables?

Variables are used to store data that is important to track.  For example if you wanted to embark on a quest and you needed to search for 3 people, you would want to use variables.  Why? Because you need to make sure that you find all 3 people.  You wouldn
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Katana on September 02, 2005, 08:24:21 PM
STICKY THIS!  DO IT, I SAY!

Also, do you know how to get a common event to preform a combat move?
In the double spell thing, the guy got his characters to cast to spells at once, but i cant find the commmand that casts spells and abilities in combat!
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Crankeye on September 19, 2005, 01:40:45 AM
This is an excellent tutorial! Mind if I put it on the main site?
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Echo on September 19, 2005, 03:10:01 AM
Sure if you want.

Thanks!
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Tsunokiette on September 20, 2005, 09:33:36 PM
:shock: awesome job man, keep up da good work!! :^^:
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: King Anesis on September 20, 2005, 09:38:26 PM
Nice work, that's a great tutorial! Keep making ones like it. :^^:
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: hot_sizo on September 28, 2005, 03:21:19 AM
Thanks your tutorial realy helped me but one thing is you never said how to stop the mother from giving you items like all you have to do is keep talking to you and you get your reward all over again
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Echo on September 28, 2005, 03:28:09 AM
For that you just put a switch at the end of the conditional branch that gives you the reward, and create a new page with the precondition set to that switch.  You can use a local switch to save a global one.  That should work.
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: aceluby on October 04, 2005, 05:50:27 PM
This helped alot but i am using RPG maker 2003 and local switch doesn't exist in there what do i do for 2003 if it is not to much trouble.

I will give oyu an idea of what i am trying to do.
My Quest has 5 items to gather and after gathering the 5 items i want the person who gave the quest to make sure i activated all the switches i set for the items.

How do i get him to check to see if i have collected all the items before completing the quest? and if i dont have all items to return with a responce saying that i havn't collected all items.
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Echo on October 05, 2005, 08:58:39 PM
I'll check to see if anything changes with RPG Maker 2003, I'll notify you as soon as I find out.
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: dwarra on October 05, 2005, 11:28:04 PM
Thats an excellent tutorial, well done =]
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Echo on October 06, 2005, 12:55:28 AM
Thank you for all the the responces.  I think there is a problem with photobucket at the moment I'm checking into it.
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: gundam501 on October 10, 2005, 05:04:37 PM
extremely useful except on one part i think i may have skipped a step or so (i hope not) but my switch doesnt work after i talk to the lady and accept her quest the kids dont show up! help plz
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: King Anesis on October 10, 2005, 10:13:39 PM
REEAALLY REAALLY USeful, except i kinda detest the fact you used RPG MAKER XP to make it...
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Kingdomfan423 on October 10, 2005, 10:42:20 PM
U ROCK!!!!! Thanks to u, I now know how to use variables (I used to use lots of switches, which was a big waste). thnx
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: TheRotS on October 12, 2005, 09:54:59 AM
Ok I admit I didn't know how to create variables as well.. thx dude!
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: CLRocker1411 on October 12, 2005, 01:50:44 PM
it took me a while to understand variables, i could work switches and conditionals way before variables
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Echo on October 12, 2005, 09:16:42 PM
Quote from: gundam501extremely useful except on one part i think i may have skipped a step or so (i hope not) but my switch doesnt work after i talk to the lady and accept her quest the kids dont show up! help plz

If you have a problem PM me and I'll see what I can do to help you fix it.  Make sure you turned the have the kids preconditions set to that switch.

Once again thanks for all the feedback.
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: King Anesis on October 12, 2005, 09:28:25 PM
Why trhank us? We should be tahnking you eh?
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Echo on October 12, 2005, 10:14:57 PM
Feed back lets a person know what they are doing good and what they can improve on, so I'm thanking you for helping me improve my future tutorials so that I can explain more complex things in a clear manner.
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: eternal_renegade on October 24, 2005, 02:35:57 AM
Well I have to admit, i have seen so many tutorials on variables and conditions, and so far yours is the only one that makes clear sense, other people always told me: "you'll figure it out if you experiment with it" and it's never worked, so Kudos to you!
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Master_of_Time on October 24, 2005, 02:37:33 AM
Yes, your tutorial is the best! It has really helped me. You rock!!!
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Soul on October 24, 2005, 07:30:41 AM
ya its good (even thow i already know about them) but it will help others. 10/10  :D
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Satiel on January 07, 2006, 09:59:14 PM
Thank you Echo!
Your tutorial taught me lots about variables, which I always had a problem with. You rock!
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: dracohaze on January 08, 2006, 11:59:32 PM
WOW DUDE!!! I already knew how to use variables, but this is great for the people that don't! (And no, I am not lieing about knowing about it already)

I learned everything the hard way, I knew most of the stuff on RPGMXP before ever reading about it, I had to learn it all by myself, and it got frustrating!

BUT I CAN'T SAY IT ENOUGH!!! THAT IS GREAT!!! I'm way too lazy to make a tutorial on something that needs so much explanation, especially as clearly as you explained it all.
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Echo on January 13, 2006, 09:51:21 PM
Thanks again for all the feedback, and I'm currently working on another tutorial, and I hope it will help everyone as much as this one has.
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: LinkaN on January 15, 2006, 07:26:35 PM
Woh!
One of the best tutorial i ever seen :D
Cant wait for your next ! :D
Title: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Martyr_Plus on March 18, 2006, 08:06:26 PM
I LOVE YOU !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! This tutorial helps me A LOT thanks bro! By the way I'm using RPG maker 2003 and in rpg2k3 is there anything that does the same thing for the local switch thingy?
Title: Re: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Katai_Makoto on October 24, 2006, 11:41:40 AM
this guide was very helpful thank you very much dude, appreciate it!!  ;D

Katai
Title: Re: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Irgna on January 04, 2007, 10:40:52 PM
Quote from: Echo on September 02, 2005, 08:01:05 PM
What are Variables?

Variables store data, they can store many forms of data but in RPG Maker, they are mainly used to store numbers.  They can be very useful in keeping count, and checking to see if you are within set limits.  Each Project in RPG Maker can make use of 5,000 variables.

How do I use Variables?

Variables are used to store data that is important to track.  For example if you wanted to embark on a quest and you needed to search for 3 people, you would want to use variables.  Why? Because you need to make sure that you find all 3 people.  You wouldn

I've got a quick question... THIS IS YOUR "AWSOME, EXTREAMELY HELPFUl, PERFECT" TUTORIAL!?! HELLO!!! WHAT HAPPENED HERE!?! DID YOUR TUTORIAL LEAVE FOR A SNACK OR SOMETHING!?! PLEASE repost the full tutorial, I needed a tutorial for exactly this.
Title: Re: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: nevfx on January 05, 2007, 10:08:06 PM
^^^Thats what I wanna know...
Title: Re: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Darico on January 06, 2007, 04:12:36 PM
me too!
Title: Re: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Yami on January 24, 2007, 09:03:31 PM
Quote from: Irgna on January 04, 2007, 10:40:52 PM
I've got a quick question... THIS IS YOUR "AWSOME, EXTREAMELY HELPFUl, PERFECT" TUTORIAL!?! HELLO!!! WHAT HAPPENED HERE!?! I needed a tutorial for exactly this.
Well then you're in luck! I wrote one just a little bit ago ^^ It's at
http://yamisiterawr.com/variables.php
Title: Re: Variable Tutorial V:1.0 [Lots of Pictures]
Post by: Tsunokiette on February 17, 2007, 04:53:47 PM
It appears the tutorial...disappeared.... weird. O_o