Jump to content


Photo

Warp Stone


  • Please log in to reply
10 replies to this topic

#1 Tsukihime

Tsukihime

    Advanced Member

  • Ace Member
  • 7,120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 15 August 2012 - 04:58 PM

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.rpgmakerv...ng-your-events/

Notes

Need a way to determine if a warp already exists.

Edited by Tsukihime, 15 August 2012 - 04:59 PM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#2 Novem

Novem

    Author

  • + Sponsor
  • 2,679 posts
  • LocationTonawanda, New York
  • RM Skill - Writer

Posted 15 August 2012 - 05:05 PM

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.
Hey there. I'm Novem, author and a long time veteran of this community (previous known under names such as Nine or Obrusnine). 
 
If you're interested in my books, you can find them on amazon in the links in this spoiler.
 

 
Quotes:
Spoiler


uUftBOz.png

#3 Tsukihime

Tsukihime

    Advanced Member

  • Ace Member
  • 7,120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 15 August 2012 - 05:24 PM

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, 15 August 2012 - 05:25 PM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#4 Novem

Novem

    Author

  • + Sponsor
  • 2,679 posts
  • LocationTonawanda, New York
  • RM Skill - Writer

Posted 15 August 2012 - 05:27 PM

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
Hey there. I'm Novem, author and a long time veteran of this community (previous known under names such as Nine or Obrusnine). 
 
If you're interested in my books, you can find them on amazon in the links in this spoiler.
 

 
Quotes:
Spoiler


uUftBOz.png

#5 Tsukihime

Tsukihime

    Advanced Member

  • Ace Member
  • 7,120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 15 August 2012 - 05:35 PM

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, 15 August 2012 - 07:09 PM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#6 Novem

Novem

    Author

  • + Sponsor
  • 2,679 posts
  • LocationTonawanda, New York
  • RM Skill - Writer

Posted 16 August 2012 - 09:53 PM

Very cool, thanks Tsukihime! :D
Hey there. I'm Novem, author and a long time veteran of this community (previous known under names such as Nine or Obrusnine). 
 
If you're interested in my books, you can find them on amazon in the links in this spoiler.
 

 
Quotes:
Spoiler


uUftBOz.png

#7 anavn1

anavn1

    Advanced Member

  • Ace Member
  • 161 posts
  • RM Skill - Jack of All Trades

Posted 13 March 2013 - 07:19 PM

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.



#8 Tsukihime

Tsukihime

    Advanced Member

  • Ace Member
  • 7,120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 13 March 2013 - 07:25 PM

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, 13 March 2013 - 07:25 PM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#9 ArkhamVI

ArkhamVI

    Newbie

  • Ace Member
  • 9 posts

Posted 09 April 2014 - 11:06 PM

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?



#10 Tsukihime

Tsukihime

    Advanced Member

  • Ace Member
  • 7,120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 11 April 2014 - 12:42 PM

Probably is but script may need to be modified to support it. I do not have any plans to do that however.
All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#11 Counselor

Counselor

    Advanced RPG Developer

  • Ace Member
  • 11 posts
  • LocationUnder my blanket
  • RM Skill - Designer

Posted 12 April 2014 - 10:29 PM

Well done.


fog303.png

6yfub4.png

Fdlq6er.gif





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users