Sign in to follow this  
Followers 0
Tsukihime

Warp Stone

11 posts in this topic

Warp Stone

-Tsukihime

 

This script allows you to create a warp point back to a particular map. It uses a common event that will make a script call to create a warp event. The common event can be called however you want, such as assigning it to items or skills. It is like Diablo's "town portal".

 

Note that it doesn't check whether a warp already exists, so you may have events stacking on each other.

You can only set a single fixed location as your warp destination, but you can return to that location from anywhere.

 

It also supports two-way warping, so you can warp out of a dungeon back to a village, and then return to where you left off.

 

This script requires the Event Wrapper

 

Usage

 

Create a common event that makes the following script call somewhere

 

Quick.create_warp(map_id, x, y, one_use?, round_trip?)

 

Where

 

map_id, x, y is the destination

one_use means it disappears after usage. True or false.

round_trip means it creates another warp at your destination that comes back to the source

 

Then have an item/skill/event call the common event to create a warp to the specified location.

 

Download

 

Demo: http://db.tt/CxcsPvli

Script: http://db.tt/MizxMqh7

Required: http://www.rpgmakervxace.net/topic/5511-event-wrapper-scripting-your-events/

 

Notes

 

Need a way to determine if a warp already exists.

Edited by Tsukihime

Share this post


Link to post
Share on other sites

This is pretty neat and I bet you've been waiting through the entire outage to post this, lol

 

By the way, when you warp back, does that erase the warp event you made just like in Diablo? I think a few improvements to bring it closer to Diablo's town portals would be great.

Share this post


Link to post
Share on other sites

I posted this on rpgmakerweb already.

The one-use option deletes the warp after you enter it.

 

I think in diablo, you could create your portal, and then walk BACK to town, enter the portal to go back to the map, and it's still there since you technically haven't used it to go back.

 

I always considered it a bug, but it seems pretty amusing.

Edited by Tsukihime

Share this post


Link to post
Share on other sites

Okay, thanks Tsukihime. I just might use it in a later project.

 

I would use it now, but you can only set one location so that kind of makes it a problem considering I have an open world game and I would use it to return to the last town the player visited, lol

Share this post


Link to post
Share on other sites

If you don't mind using variables to store map ID, x and y I could provide a method that will use variable designation.

 

EDIT: variable designation added. Just use

 

Quick.create_warp_var(map_var, x_var, y_var, one_use?, round_trip?)

Edited by Tsukihime

Share this post


Link to post
Share on other sites

I really like your scrip and would like to make it erase the event when finished. You said it would work if one changes the one time use statue so I went in your game and tried it but it does not do anything different if we put true of false. How does one do it for it to erase after useidge or is it an old version^ I used the one in the demo.

Share this post


Link to post
Share on other sites

You just change the common event script call

Quick.create_warp(2, 9, 9, false)
to
Quick.create_warp(2, 9, 9, true)
Don't change the script itself. Edited by Tsukihime

Share this post


Link to post
Share on other sites

ok, i was wondering, is there a way for the warp to be used to go to one place and stays there unless used again to teleport back to the location that you teleported from?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.