|
Home > Tutorials > RPG Maker XP > Simple Teleport event.
Simple Teleport event.
((Ugh For Some reason the BBCode doesn't like me.))
[h]As stated above this is a simple way to give an item the ability to teleport you to some kind of nexus, For instance a headquarters or something that might have a save point or shops or whatever.
Again it is a very simple way to do this, and the tutorial is designed for the most basic of users.[/h]
Step One First make a new common event in your database. In the box on the right, make a conditional branch that looks like the one here (Name the switch whatever you like but take note of its ID Number shown before the name.)
Set the condition to trigger when the selected Switch is OFF
[IMG]http://i77.photobucket.com/albums/j73/Icewo1f/step1.jpg[/IMG]
Step Two: In the top section of the conditional branch insert a variable with the following properties.
Near the Bottom Set it to Player > Map ID
[IMG]http://i77.photobucket.com/albums/j73/Icewo1f/step2.jpg[/IMG]
Step Three Insert another variable with the following properties.
Near the Bottom Set it to Player > Map X Coord
[IMG]http://i77.photobucket.com/albums/j73/Icewo1f/step3.jpg[/IMG]
Step Four Insert a third variable with the following properties.
Near the Bottom Set it to Player > Map Y Coord
[IMG]http://i77.photobucket.com/albums/j73/Icewo1f/step4.jpg[/IMG]
Step Five By now your event should look like the following:
[IMG]http://i77.photobucket.com/albums/j73/Icewo1f/progress.jpg[/IMG]
Next you will insert a teleport event, and place the destination in your headquarters or wherever you'd like it to go. Right below that one place a switch that turns on the switch you used in step one to define the conditional branch.
Step Six Below Else, in the lower portion of your conditional branch add the following teleport event:
Click the radial button that says "Appoint with Variables" and set them to each respective variable, (Map ID, X Coord, Y Coord
[IMG]http://i77.photobucket.com/albums/j73/Icewo1f/teleback-1.jpg[/IMG]
and be sure to double check that each variable is in its respective location, otherwise there will be problems when you try to use it.
Step Seven And finally under the second teleport event add another switch that turns off the switch you used in step one and step five
Setting up the Item
This part is rather simple, simply make an Item (not a weapon or armor) and find its common event dialogue highlighted in this image:
Or found near the bottom just left of the elements and statuses
[IMG]http://i77.photobucket.com/albums/j73/Icewo1f/Untitled-1.jpg[/IMG]
and set it to whichever common event you just created, and be sure to apply often in case of problems that might occur like a crash or an accidental cancel press.
My Tutorial is Concluded.
|
|
Details
|
|
Tutorial:
|
Simple Teleport event. |
|
Date Listed:
|
2008-08-30 |
|
Author:
|
icewo1f
|
|
Total Hits:
|
823 |
|
|
|