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,321
Reaction score
8,755
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,321
Reaction score
8,755
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

Guess I had to do something related to xmas... :kaoswt2:
SWZtrkz.jpg
"16. Do NOT contact other members by private message, on the forum or status feed, inviting them to put additional tools (such as leaderboards, ads, etc - whether yours or another person's) into their game."
Oh no. Necessity is the mother of invention. Do I want to know what happened?
Early WIP for my next entry. Since it's early you're going to need to wait a little longer than usual. What's that? You'll find out in my next update!
12.PNG

Forum statistics

Threads
117,183
Messages
1,105,264
Members
153,312
Latest member
Homaniac
Top