Set the player's map id and coordinates by talking to an npc?

Basically I have this npc that sets your X Y and map ID to 3 variables when you talk to them and when you get a game over you should teleport there, the problem is when the game over map transfers you it just transfers you back to the game over map, I've heard about casting it to integer or something like that but I don't know anything about that stuff. Anyone know?
"Game over map"? Is that a plugin you're using? If so, can you give a link to it? Otherwise, can you explain how you're transferring the player there on game over?

Maybe you just need to heal the party first.

(RPG Maker automatically floors game variables to integers, but that shouldn't be relevant here.)
that sounds as if you used the commands in the wrong way or at the wrong time.
please show a screenshot of what exactly you do, and what happens.
"Game over map"? Is that a plugin you're using? If so, can you give a link to it? Otherwise, can you explain how you're transferring the player there on game over?

Maybe you just need to heal the party first.

(RPG Maker automatically floors game variables to integers, but that shouldn't be relevant here.)
Yeah its a plugin but all it does is take you to a set map id that can be anything but I set it to a map where another event teleports you, don't think the problem is with the plugin
that sounds as if you used the commands in the wrong way or at the wrong time.
please show a screenshot of what exactly you do, and what happens.
1650336732338.png
@mynameisnottyrian that is not a screenshot, that is a tiny snippet of an incomplete screenshot and useless here.
we need the full event screenshot of both the event that sets the variables and the event where the teleport to the wrong map happens.
please give us those screenshots and explain what happens as opposed to what you want to happen.
@mynameisnottyrian that is not a screenshot, that is a tiny snippet of an incomplete screenshot and useless here.
we need the full event screenshot of both the event that sets the variables and the event where the teleport to the wrong map happens.
please give us those screenshots and explain what happens as opposed to what you want to happen.
I don't understand why I need to tell you what happens when I already told you what happens but whatever
1650408500143.png

1650408542080.png

and like I already described you press continue but it just takes you to the game over map again and why does the placeholder text matter?
I asked for complete screenshot. Those content screenshots are worthless because they don't tell us the event properties like trigger and so on. The placeholder text never mattered at all.

if the transfer takes you to the game over map, then most likely the first part of the sequence is run after you got to the game over map, but it needs to be run before you got to the game over sequence.
but we can't even guess where or when that event is run because you didn't give the full screenshots.
Edit: didn't read part of caethyril's post and am just being redundant, move along. xD
Just slow down, take a breather, and go carefully. You're up in your head about this problem and ignoring what people are saying they need in order to help you.

caethyril asked you for a link to the plugin so we can see its instructions and code.

Andar asked you for a screenshot, and you keep providing these edited down snips.

Neither of these people are wrong - if I had responded to this thread earlier, I would've asked for the exact same thing.
"Game over map"? Is that a plugin you're using? If so, can you give a link to it? Otherwise, can you explain how you're transferring the player there on game over?

Maybe you just need to heal the party first.

(RPG Maker automatically floors game variables to integers, but that shouldn't be relevant here.)
sorry for the late follow up https://himeworks.com/files/rmmv/scripts/HIME_GameOverEvents.js?v1
I don't understand why I need to tell you what happens when I already told you what happens but whatever
My goodness... it's because what you say should happen isn't necessarily what is happening. Clearly, it's not working. So there's probably something wrong with the way you set up the events; but in order to diagnose the problem, we need to see everything. Telling us what's supposed to happen isn't helpful, since that's not what's actually happening. And telling us what does happen (i.e. what goes wrong) isn't helpful, because we aren't psychic and can't guess why it's going wrong unless we see all of the actual code/event setup. Several things could potentially be wrong, it requires further investigation to determine exactly what.

Hard second on what ATT_Turan said. No need to crop the screenshots, as it's just excising pertinent information that we need to make sure isn't inadvertently causing the problem.
Add a "full heal" in the continue option as you're teleporting a dead player so it snaps back to the game over and you loop.
What @BK-tdm said. Presumably the plugin teleports you to the game over map when the party is all dead. If you teleport them to a different map and they're still all dead, the plugin's just going to return them to the game over map again. Reviving the party first should fix it.
sorry for the late follow up
but you still haven't given the requested full screenshots of your events.
an event is more than just its commands.

just for you to understand, THIS is a full screenshot:
eventexample.png


So please give us a full screenshot of your events, WITHOUT cutting away the important parts
but you still haven't given the requested full screenshots of your events.
an event is more than just its commands.

just for you to understand, THIS is a full screenshot:
View attachment 223761


So please give us a full screenshot of your events, WITHOUT cutting away the important parts
1650572848836.png

1650572875745.png
Add a "full heal" in the continue option as you're teleporting a dead player so it snaps back to the game over and you loop.
alright I've tried this it still teleports me back to the gameover EDIT: okay used recover all instead and now it takes me to this map with some boats stacked on eachother (wait no forgot to talk to the npc, works now thanks)
Ah, I thought so. Happy RPG Making!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/set-the-players-map-id-and-coordinates-by-talking-to-an-npc.146876/