![]() |
||||||||||||||
|
||||||||||||||
blade2k
» articles & tutorialsswitches 2
Episode 1-Switches Version updates… 0.5-It's up…but it's rather sloppy. Got the basics up and that's about it. 1.0-This is the official start of the RM2k basic series I've made it more organized, and I've included a few more examples on how to use switches. This tutorial was written by Devinfire/reinas[devinfire@hotmail.com], and may not be added to your site without my written permission. (Just e-mail me, and I'll more than likely let you use it.) This tutorial may be used at the following sites. These will be updated later, if the URL's get changed. Blade2k-http://www.blade2k.net/ Death House-http://deathhouse.reverieorb.com/ ---The tutorial--- The basics- Switches allow you to do many things. End loops, like in treasure chests, among other things. Also, they can, if you meet certain conditions, allow entry to a previously unreachable area. If you are new to rm2k, the way to get to the switch command is as follows. 1)Go to the third layer(the event layer). 2)Right click on a square, which brings you to the event editor window. 3)In the events command window, double-click with the let mouse button, and the event commands window pops up. 4)Click "Change Switch," the sixth one down on the left side. And there you are! The switch management window is now open. I will now describe each of the features in the window. #1-Choose switch(es) Here you can choose which switch you want to use. To only choose one, click the bullet next to "one", and then choose the switch. If you want to activate or deactivate more than one at a time, click the bullet next to "range," and choose the numbers of the start and end switches. The variable command, the last one, will be explained in-depth in a later tutorial. All it does is activate the switch with the same number of the value of the selected variable. #2-SET This part is really simple. ON turns the switch on. OFF turns the switch off. ON/OFF trigger let's the player toggle the switch on or off by activating the event with the line- <>Change Switch: Var[0001:StrongBox]Toggle Switch And that's it for the Switch Management window! Now for some examples, yes? Treasure Chest The Explanation- Hero Walks into room. Hero finds Treasure chest. Hero opens chest. Hero finds item. The chest is now open, empty. That's about it. Now for the code>:) --Page One--- <>Note: the beginning is now! <>Play Sound Effect:Item2 <>Message: You found a potion!||^ <>Add/Drop Items; (potion) 1 (add) <>Change Switch: Var[0016] Switch ON --Page two- {First, make sure to put a check in the first box in the "Event Conditions" section, and choose the switch turned on in page one} <>Message: Empty…|^ <> And there is your basic treasure chest!!! If you want to add money, change the add item line to <>Change Money: $4(add) |
|
|||||||||||||
|
©2002-2008 blade2k.net - parsed in 0.002 seconds - view active users
[16010 members][newest member: Markaz]
Active Users (1)[ cima55 ]
|
||||||||||||||