Move Route via Script for a Yanfly Spawned Event

Rrrrryan

Villager
Member
Joined
Sep 8, 2017
Messages
12
Reaction score
1
First Language
English
Primarily Uses
RMMV
Hey everyone,

I am using Yanfly's Event Spawner plugin to add an event to the map. This event functions as a follower NPC with an on action button trigger who you can issue the orders "wait here" or "follow" to. If "follow" is selected, I have a parallel common event that runs when a switch is flipped. All I am seeking to do is to recreate the "Set Move Route" to make the spawned event move towards the player without waiting for completion when that "follow" command is chosen. (I cannot use the "set move route" since the event is spawned)

I understand how to get the event ID of the Yanfly Spawned event by using the command $gameMap.LastSpawnedEventID() and assigning it to variable '3'. I can then reference that event using $gameMap.event($gameVariables.value(3))

Using some of the previously posted threads on this board regarding similar issues, I understand the next script would be $gameMap.event($gameVariables.value(3)).moveTowardPlayer() but this alone does not behave like the "Set Move Route" would. Instead, the event shakes and moves rapidly and does not seem to be affected by speed or frequency settings. Can anyone offer assistance?
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
21,796
Reaction score
11,009
First Language
English
Primarily Uses
RMVXA
[MOVE]Javascript/Plugin Support[/MOVE]
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Sorry Aerith... I will abandon your shoes... :guffaw:
Spent a whole bunch of time today reworking the area in the video because someone said it was too illusory. So I reworked it so it changes less, moved the grass up to the same level as the player.... And found enough extra resources to make the grass moves when the player touches it. Also lots more water, because it looks amazing. I'll probably put up a short updated video later today.
I never noticed how NOISY birds can be in the morning..
The worst part of writing the thesis is getting to a point where it's nearly done and you feel like an 8th-grader could've written something on that level.
So ... uh ... this weekend I have to cut my husband's hair. He searched long and hard - highest mountains, deepest valleys, across vast oceans. All hairdressers are now closed. So it's me.

Forum statistics

Threads
95,765
Messages
931,704
Members
126,168
Latest member
Daruyo
Top