The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: Dragonus2011 on August 14, 2011, 02:47:08 AM

Title: (RMVX) Request for a script that allows teleporting using skills
Post by: Dragonus2011 on August 14, 2011, 02:47:08 AM
I want to have a skill for Warping from town to town only outside of battles that allows you to go to the cities/towns that that have already been visited and updates itself as you progress in the game.  Is there any way of accomplishing this?
Title: Re: (RMVX) Request for a script that allows teleporting using skills
Post by: DoctorTodd on August 14, 2011, 04:11:06 AM
Can be done with events  :-\
Title: Re: (RMVX) Request for a script that allows teleporting using skills
Post by: Sashikinaroji on August 14, 2011, 04:40:00 AM
ok, well... since the dear doctor was so vague...

What it boils down to is, you can have a skill that calls a common event. These common events can be used to do lots of different things, anything that an event can do. Therefore, depending on the type of teleport you want, you can have the skill send you:

To the last town you Visited (a la Pokemon)
To the Map's Entrance (a la the .hack//mutation series)
To a location of your choosing (a la FFX-2 [airship])
To a random location (no example known)
Title: Re: (RMVX) Request for a script that allows teleporting using skills
Post by: Dragonus2011 on August 14, 2011, 06:38:03 AM
Ok so how do I set it up to work in transition with the flow of the game?
Title: Re: (RMVX) Request for a script that allows teleporting using skills
Post by: Sashikinaroji on August 14, 2011, 02:34:22 PM
In transition with the flow of the game?

I don't know what you mean.

You have to be very specific when you ask a question, or else it takes much longer to get an adequate response. So, type a paragraph or two explaining exactly what you want.
Title: Re: (RMVX) Request for a script that allows teleporting using skills
Post by: Dragonus2011 on August 20, 2011, 07:49:32 AM
Ok what I mean is say you have only gone to two towns.  At this point you will be going to another town.  Since you haven't went to this third town before you cannot warp/teleport yourself to it just yet.  Once you reach it however you can transport yourself to that place.  Kind of like how Dragon Quest XI does.  Have to reach the city before it's available to warp to that city at any given time after you have already been there.
Title: Re: (RMVX) Request for a script that allows teleporting using skills
Post by: Dragonus2011 on August 20, 2011, 07:51:28 AM
I mean Dragon Quest IX not XI
Title: Re: (RMVX) Request for a script that allows teleporting using skills
Post by: pacdiggity on August 20, 2011, 07:56:52 AM
Activate a switch when you get to the city, then check if that switch is on in your skill's common event. If it is, you can teleport there.
Title: Re: (RMVX) Request for a script that allows teleporting using skills
Post by: Sashikinaroji on August 20, 2011, 03:08:30 PM
Or, variables work equally well, assuming your game is purely linear (that is, you can't go out of order with visiting towns), while only taking up one variable. Each location is assigned a one-time-run event that adds 1 to the variable, and if the variable is equal or greater than a certain location's place in the order, you can teleport there.