Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Create a Mark/Recall teleport system with events.

What it does: The player uses a spell to memorize his current location.
Then, he uses another spell to return to that location.

What you can do with it: You can travel to an inn you "marked", or to a dungeon's exit, or wherever else you wish. Just use the "Mark" spell to memorize the desired area.

Let's make it!

First, create 3 variables: "Position: map ID", "position: x", "position: y"
-The first is used to store the map's ID, where the player "Marks"
-The second is used to store the players position on the X axis, which means how left or right the palyer is on the map.
-The third is used to store the player's position on the Y axis, how up or down he's on the map.

Then, create an item. Call it whatevet you want, I'll call it Dimension Gem. It's the item you need to return to your marked position.

Then, create a common event. We'll call this "Mark", because it marks the location where the player is.
http://i191.photobucket.com/albums/z247/ravenith/tut3.png[/IMG] *** The variable IDs do not have to be the same as in the picture, use your own variable IDs
this event shows your first character cast a spell, and stores your position info in the three variables we already created.

Now, create another common event. We'll call this "Recall", because it returns the player to the location he "Marked", no matter where he is.
http://i191.photobucket.com/albums/z247/ravenith/tut2.png[/img] *** The variable IDs do not have to be the same as in the picture, use your own variable IDs
This event checks if you own a Dimension gem, and if you do, returns you to the marked position.
You can use only lines 2-12 if you don't wish your skill to require an item.

Finally, create 2 skills, like this:
http://i191.photobucket.com/albums/z247/ravenith/tut1.png[/img]
one for mark, one for recall.
Link the appropriate common event as shown. Set the occasion to "Menu only", the scope to "none", adjust the sp cost.

Give your skills to a character, give him some gems too, and enjoy.

*** Warning. If you try to use "Recall"without using "Mark" first, the game crashes. That's because your variables are initially equal to zero, and there is no zero map ID. You could use an event to give them the appropriate map ID, x and y for the place where you initially give the characters the spells.


Any questions or ideas are more than welcome!
 
Excellent stuff. I've been planning to use a map as a party change screen, and was trying to figure how to teleport the party back where they started, and this just solved a lot of problems and freed up a lot of time for me.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top