How to reset actor map position?

sorachan

Villager
Member
Joined
Sep 30, 2021
Messages
6
Reaction score
1
First Language
English
Primarily Uses
RMMZ
I have a guard walking using custom route.

A map event happens then a switch is turned on, this guard would speak differently after this switch.

Once the switch is turned on, guard event will go to the second page, but the location of this guard is not resetted unless player go out of the map and come back in, his walk route is now messed up.

I tried to tranfer player somewhere in this map, but this does not reset guard position.

How can I fix this? Thanks
 

JamesRyan

Game Designer
Veteran
Joined
Sep 13, 2014
Messages
734
Reaction score
242
First Language
Vietnamese
Primarily Uses
RMMV
Why don't you transfer the event back to where it was before turning to the second page?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,305
Reaction score
8,750
First Language
German
Primarily Uses
RMMV
either use the event command "set event location" to teleport the event there, or install a pathfinding plugin and give the event a command to walk to that position with pathfinding commands.

in both cases you need a command and specify its destination
 

sorachan

Villager
Member
Joined
Sep 30, 2021
Messages
6
Reaction score
1
First Language
English
Primarily Uses
RMMZ
either use the event command "set event location" to teleport the event there, or install a pathfinding plugin and give the event a command to walk to that position with pathfinding commands.

in both cases you need a command and specify its destination
I tried set event location. Isn't this only activate if the player talk with the guard?

The guard is walking on this map, when the switch is on, he's still walking, but the event is now at page 2 so the route is resetted from the beginning, he now walks with messed up route. I don't think set event location solves the problem...
 

sorachan

Villager
Member
Joined
Sep 30, 2021
Messages
6
Reaction score
1
First Language
English
Primarily Uses
RMMZ
Actually, now I think about it, I can use a conditonal branch on page 1...

Anyway, thanks for the help...
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,305
Reaction score
8,750
First Language
German
Primarily Uses
RMMV
I tried set event location. Isn't this only activate if the player talk with the guard?
you need to place it at the exact sequence where you control the switch that changes the guard behaviour
 

Latest Threads

Latest Posts

Latest Profile Posts

"Yeah. It's been a rough road lately. But that's the thing about the Rangers. It doesn't matter how hard it gets, or how many of them fall. They never stop fighting. The Rangers NEVER stop fighting".

Angela Deth, you are a hero of mine. Sorry for my first run of Wasteland 3.
We must press on. For all those we couldn't save. For all those we might yet save.
FirestormNeos wrote on DarkPlasmaBall's profile.
asking this here instead of the thread in question to avoid derailing it, but I'm curious; is there a particular reason you'd include a "Terms of Use" for an RPG Maker game? Like, are there multiplayer features for the game you're working on?
The holidays are upon us! Everyone search for safety from the grocery store music!
I don't understand people sometime. Walking to work today came across someone walking the opposite way in a nice suit, I politely move to the side into the shrubbery so he doesn't have to get his suit dirty and say "good morning" as he passes me, he turns around glaring daggers and asks "why are you talking to me?" like he's bloody offended by me wishing him a good morning or something. Just, why?

Forum statistics

Threads
117,138
Messages
1,104,893
Members
153,202
Latest member
EnderMon
Top