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,306
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,306
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

I'm just so close to replacing LUK with a different stat, maybe DEX but we'll see.
Slapped together a title screen and working on some dungeon clutter + portraits for Dubhghaill and Einar. Usual CW for minor body horror wrt Einar
QVLJIgD.png

OaPcYUy.png

r55FiUJ.png

EIgO94y.png
cT1V4nb.png
>studying for months for an exam
>does exam
>waits 3 months for the results to come out
>me trying to login, incorrect password
>I get recovery password
>me trying to login, incorrect password

What the heck. As a son of a Karen, I'm going to file a few complaints.
Apparently Amazon Prime users get free Genshin Impact stuff like primogems and whatnot every month, but I'm not sure I ever want to fall into the abyss of F2P ever again.

Forum statistics

Threads
117,146
Messages
1,104,942
Members
153,221
Latest member
Kostec
Top