Jump to content


Welcome to the RPG Crisis Community Forums

Hello there traveler!

They call me Norman the Expressionless and I was instructed to seek you out, the wanderer. You must be something special for them to hire me and come find out. I wonder what makes you so special; perhaps you have some super power and are destined to save the universe! Just kidding, they told me to find you because you have nice hair and they want to harvest it to create the perfect hair.

So yeah, you should totally join this fine community they’ve established here. Heck, if you need even more reasons I suppose I can list off a few of the perks.
  • Gain complete access to our Download, Tutorial/Script and Resource Databases.
  • Be a part of an ever expanding community and create your own legacy!
  • Get support for a wide range of maker programs, were experts on them all.
  • Discover your true purpose in life, maybe even become one with the force.
  • Make new friends, allies and enemies.
  • Participate in thoughtful, intelligent conversations aimed at expanding your mind.
  • Request translations for foreign maker related sites, games, scripts and tutorials.
I could keep listing all the awesome benefits and perks but why not discover them for yourself?
Guest Message by DevFuse
 

[/html]","switch_option":"0","menu_option_text":"","menu_content_text":"HTML Code","single_tag":"0","optional_option":"0","image":""},"media":{"id":"32","title":"Media","desc":"Allows a user to post media content from certain common media sites","tag":"media","useoption":"1","example":"[media]http://www.youtube.com/watch?v=YqqLx-2vUr0[/media]","switch_option":"0","menu_option_text":"Dimensions (Flash Only)","menu_content_text":"Media URL","single_tag":"0","optional_option":"1","image":""},"member":{"id":"31","title":"Member","desc":"Given a member name, a link is automatically generated to the member's profile","tag":"member","useoption":"1","example":"[member=admin] runs this site.","switch_option":"0","menu_option_text":"Member Name","menu_content_text":"","single_tag":"1","optional_option":"0","image":""},"php":{"id":"14","title":"PHP Code","desc":"Allows you to enter PHP code into a formatted/highlighted syntax box","tag":"php","useoption":"0","example":"[php]$variable = true;\n\nprint_r($variable);[/php]","switch_option":"0","menu_option_text":"","menu_content_text":"PHP Code","single_tag":"0","optional_option":"0","image":""},"post":{"id":"6","title":"Post Link","desc":"This tag provides an easy way to link to a post.","tag":"post","useoption":"1","example":"[post=1]Click me![/post]","switch_option":"0","menu_option_text":"Enter the Post ID","menu_content_text":"Enter the title for this link","single_tag":"0","optional_option":"0","image":""},"spoiler":{"id":"7","title":"Spoiler","desc":"Spoiler tag","tag":"spoiler","useoption":"0","example":"[spoiler]Some hidden text[/spoiler]","switch_option":"0","menu_option_text":"","menu_content_text":"Enter the text to be masked","single_tag":"0","optional_option":"0","image":""},"sql":{"id":"16","title":"SQL Code","desc":"Allows you to enter formatted/syntax-highlighted SQL code","tag":"sql","useoption":"0","example":"[sql]SELECT p.*, t.* FROM posts p LEFT JOIN topics t ON t.tid=p.topic_id WHERE t.tid=7[/sql]","switch_option":"0","menu_option_text":"","menu_content_text":"SQL Commands","single_tag":"0","optional_option":"0","image":""},"topic":{"id":"5","title":"Topic Link","desc":"This tag provides an easy way to link to a topic","tag":"topic","useoption":"1","example":"[topic=1]Click me![/topic]","switch_option":"0","menu_option_text":"Enter the topic ID","menu_content_text":"Enter the title for this link","single_tag":"0","optional_option":"0","image":""},"pagetitle":{"id":"36","title":"Tutorial Page Title","desc":"Used to give a unique title to each page in a multi-paged Tutorial","tag":"pagetitle","useoption":"1","example":"[pagetitle=\"Brussel sprouts, and other factors leading to the Norman conquest of England\"]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"1","optional_option":"0","image":""},"pagebreak":{"id":"35","title":"Tutorial Pagebreak","desc":"Insert a pagebreak into a multi-paged tutorial.","tag":"pagebreak","useoption":"0","example":"This is page 1
[pagebreak]
This is page 2","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"1","optional_option":"0","image":""},"twitter":{"id":"33","title":"Twitter","desc":"A tag to link to a user's twitter account","tag":"twitter","useoption":"0","example":"[twitter]userName[/twitter]","switch_option":"0","menu_option_text":"","menu_content_text":"Twitter Username","single_tag":"0","optional_option":"0","image":"twitter.png"},"xml":{"id":"17","title":"XML Code","desc":"Allows you to enter formatted/syntax-highlighted XML code","tag":"xml","useoption":"0","example":"[xml]\n \n Test\n \n[/xml]","switch_option":"0","menu_option_text":"","menu_content_text":"XML Code","single_tag":"0","optional_option":"0","image":""}}; CKEDITOR.config.IPS_BBCODE_IMG_URL = "https://rpgcrisis.net/forums/public/style_extra/bbcode_icons"; CKEDITOR.config.IPS_BBCODE_BUTTONS = []; /* Has to go before config load */ var IPS_smiley_path = "https://rpgcrisis.net/forums/public/style_emoticons/default/"; var IPS_smiles = {"total":20,"count":20,"emoticons":[{"src":"smile.png","text":":)"},{"src":"wink.png","text":";)"},{"src":"tongue.png","text":":P"},{"src":"biggrin.png","text":":D"},{"src":"laugh.png","text":":lol:"},{"src":"sad.png","text":":("},{"src":"angry.png","text":":angry:"},{"src":"mellow.png","text":":mellow:"},{"src":"huh.png","text":":huh:"},{"src":"happy.png","text":"^_^"},{"src":"ohmy.png","text":":o"},{"src":"cool.png","text":"B)"},{"src":"rolleyes.gif","text":":rolleyes:"},{"src":"sleep.png","text":"-_-"},{"src":"dry.png","text":"<_ var ips_remove_plugins="[];" ips_hide_contextmenu="0;" ips_rclick_contextmenu="0;" load our configuration ckeditor.config.customconfig="https://rpgcrisis.net/forums/public/js/3rd_party/ckeditor/ips_config.js" rel="stylesheet" type="text/css" title="Main" media="screen" href="/forums/public/style_css/css_1/ipb_ckeditor.css?ipbv=33015">

Tutorial/Script info Visit support topic

  • Added on: Sep 19 2012 09:13 PM
  • Views: 106
  • Version Number: 1
 
");

* * * * *
0 Ratings

Switches and Variables Part 3

Introduction to Switches and Variables Part 3 of 3
By Mako

Posted by Mako on Sep 19 2012 09:13 PM
Thanks for reading the 3rd installment in my Switches/Variables Guide for RPG Maker VX!
This part is here to show you how to get started on using and understanding Variables.
Variables in RPG Maker are basically a value holder. If you ever want your game to remember a specific value for any reason at all, Variables are what you should be using. There's alot of things you can do for your game using variables. They can even be used as Switches if you find yourself using way too many actual Switches.

Let's get started with your scenario for this part of the Tutorial!

An NPC tells your Hero he will give him a key if you defeat 3 slimes.

First. We set up the slimes. Even though you may already have an Enemy named Slime...Make a new one!
Set the Enemy up however you would like to.

Next. Make a new Troop for the Slime. Just put one slime in the Enemy Troop.

Now. In the Battle Events...
Set the Conditions to happen If the Slime's HP = 0 or lower.
Now, make a new event to Control Variables.
Select and name a Variable, as you would a Switch. Name this Variable "Slime's Defeated".
Set up the Event to Add a Constant of 1 to the Variable you just made.

What you just did is made a Battle where once the enemy is Defeated, the Variable, Slime's Defeated, increases by one.

If you want to have more than one Enemy, but still want the number of enemy's defeated to be counted, just add another Enemy into the Troop and change the Constant of 1 to a Constant of X; where X = how many Enemies are in the Troop.

Set up a place for the Hero to fight this group of Enemies.

Onto the NPC. This event will handle both Switches and Variables...
So, let's hope you were paying attention in the last two Parts.

Make a new Event for the NPC. Name it whatever you like.
Set the Graphic as whatever you like.
Make 3 new Pages. You should now have 4 Pages altogether.


Quote: FIRST PAGE

Make this event the Same Level as Character and Start at a Button Push.
Have the NPC ask the Hero to defeat x amount of Slimes or whatever Enemy you have chosen.
Once the Hero agrees, set a new Switch named "NPC Talk" to on.


What the 1st Page does is set up the Enemy Hunt.

Quote: SECOND PAGE

Make the Event Starting Conditions If Switch NPC Talk is On and if Button is Pushed(obviously).
Have the NPC say something like "You still haven't defeated x Slime's yet!".


This Event Page only occurs if the Hero talks to the NPC before he has defeated x Enemies.

Quote: THIRD PAGE

Make the Event Starting Conditions If Switch NPC Talk is On and If Variable Slime's Defeated is 3 or Greater and if a Button is Pushed.
Now have the NPC thanking the Hero for defeating the Slimes.
Have the NPC add the Key, or whatever Item/etc. you want the Hero to gain for helping the NPC...
And, set a final switch called "Slime Hunt Over" to on.


This Event Page is to reward the Hero once x Enemies have been defeated.
Then, it ends the process and the following Event Page happens from now on...


Quote: FOURTH PAGE

Make the Event Starting Conditions If Switch Slime Hunt Over is On and if the Hero Pushes a Button.
Have the NPC say something like "Thanks again for the help! I hope that Key was useful!"


That's it! Pretty simple once you dive in there, right?

I hope you found this useful!

    Powered by Tutorials 1.4.3 © 2013, by Michael McCune