Teleportation & coordinates

Nitroxone

Lambda individual n°5774
Member
Joined
Sep 13, 2018
Messages
17
Reaction score
2
First Language
French
Primarily Uses
RMVXA
Hi all,

First and foremost : english is not my native language, I apologize in advance because it may be hard to understand me.

I've created a simple system that teleports you at the exact same location on a "mirror map" when you press a button.
But, one of those maps is actually several years later than the first one (like a time travel).

Obviously, I've moved some objects on one of the maps ; and the player cannot walk on these (beds or boxes for example).

So, how can I make sure the player does not teleport onto one of these objects ?
 

Frogboy

I'm not weak to fire
Veteran
Joined
Apr 19, 2016
Messages
1,698
Reaction score
2,199
First Language
English
Primarily Uses
RMMV
First of all, your English is almost perfect in your post. No need for apologies.

Can the player time travel (switch maps) wherever they like? I'm assuming this is the case but I want to make sure.

If so, you actually have a really good question. I'm assuming you want them to appear at least very close to where they left from and not always in the same spot. I wonder if there's a good way to tag several spots with a Region ID and then find the nearest one that matches your desired coordinates.

This is an interesting one so I'm willing to bet that there will be at least a few people here that will start experimenting with this to find a solution. I, unfortunately, won't be by my computer for a while to mess around with it right now.
 

Nitroxone

Lambda individual n°5774
Member
Joined
Sep 13, 2018
Messages
17
Reaction score
2
First Language
French
Primarily Uses
RMVXA
Thanks for your answer !

Yes, the player would be able to teleport anywhere, anytime (like in The Silent Age, if you have played it).

I'm still thinking on a way to tag terrains and make sure the player does not teleport on these, but I can't seem to find a solution right now ... Still need help :/
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,235
Reaction score
7,617
First Language
German
Primarily Uses
RMMV
you can use the event command "get location info" to check data about a position, but that command only works for the current map.
So depending on what exactly you want to do you could either make an autorun on the other map that checks if a position is wrong directly after the teleport (for example terrain tag on the tileset), or you could use something like region ID on the current map to indicate which positions would cause problems with teleporting (this would require you to make the Region-ID into a pseudomap of the other map)

any more complex variants would require a plugin to handle, and most likely that would have to be a special plugin commission instead of a free plugin request because others might not be able to use it.
 

Nitroxone

Lambda individual n°5774
Member
Joined
Sep 13, 2018
Messages
17
Reaction score
2
First Language
French
Primarily Uses
RMVXA
Okay, thanks Andar !

Here is the method I've used :
I placed region IDs on the tiles that cause problem with teleporting. Then, when the player tries to teleport, I simply check if he is on one of those tiles.
This simple system seems to be working now.

Thanks for your help !
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Pootscooter wrote on Pharonix's profile.
Hey @Pharonix, just wondering what you're up to lately and if you've had an opportunity to check out the LTBS thread in the past few days...(a couple of us could really use your expertise). Hope you are well and Happy Thanksgiving!
Anyone know the best size image to put in signature?
Well, the local collections agency is hiring... bleh. I'm not rude enough for them to hire me. Even the people they collect FOR don't like dealing with them. >.>
EA: "Kids are buying currency, not using money to gamble. It shouldn't be illegal!"
Me: "So... kids should be allowed into casinos to buy poker chips and not spend them at the blackjack table? Pretty sure, even buying currency used to gamble is illegal for children."
Been hard at work in photoshop working with MOG scripts for main menu & victory result screens, might do all my maps and Npc chatter this week too!

Forum statistics

Threads
105,500
Messages
1,014,214
Members
137,155
Latest member
diegodevin
Top