Tsukihime 1,489 Posted August 15, 2012 (edited) 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 August 15, 2012 by Tsukihime Share this post Link to post Share on other sites
+ Novem 344 Posted August 15, 2012 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
Tsukihime 1,489 Posted August 15, 2012 (edited) 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 August 15, 2012 by Tsukihime Share this post Link to post Share on other sites
+ Novem 344 Posted August 15, 2012 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
Tsukihime 1,489 Posted August 15, 2012 (edited) 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 August 16, 2012 by Tsukihime Share this post Link to post Share on other sites
+ Novem 344 Posted August 17, 2012 Very cool, thanks Tsukihime! Share this post Link to post Share on other sites
anavn1 9 Posted March 14, 2013 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
Tsukihime 1,489 Posted March 14, 2013 (edited) You just change the common event script call Quick.create_warp(2, 9, 9, false)toQuick.create_warp(2, 9, 9, true)Don't change the script itself. Edited March 14, 2013 by Tsukihime Share this post Link to post Share on other sites
ArkhamVI 1 Posted April 10, 2014 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
Tsukihime 1,489 Posted April 11, 2014 Probably is but script may need to be modified to support it. I do not have any plans to do that however. Share this post Link to post Share on other sites