How to set Event movement route after Spawning (SOLVED)

Hello! Beginner here!

I'm trying to build a game where the player is chased by bats.

When the player is within his safe area, the bats just roam around (Move at random). When the player leaves a set area, a switch is toggled and the bats chase him (Move toward player) and when touching the player a text shows up (Event touch). When returning to his safe area the switch is turned off and the bats return to moving at random. I have the Move toward player set as a separate Event, and the Event touch is enabled on each bat's event page.

bat1 event.jpg

moveset.jpg


This all works fine, except for when I want to randomise the placement of the bats by spawning them with the VisuStella Events & Movement Core plugin. They spawn fine, and touching them does trigger the text, but the spawned bats don't follow the moveset. The spawned one just stands still. At the moment, I'm having a "dummy" bat on the map which is then also spawned in. The dummy follows the moveset, the spawned copy doesn't.

spawning.jpg


I don't really understand if the separate movements Event understands that the spawned bat is to be included in the movement set (Bat1). Edit: I've found that unless I leave the "template name" blank/Untitled, the event doesn't spawn...

overview.jpg


Is there a way to implement all the above features?

Any help would be GREATLY appreciated!!
Look in the help files of the plugin, for the event ID.

Because you spawn the event in later, it will have a new ID, probably.

I don't own the plugin, or I would take a look for you, but that is how it works with the yanfly plugin. And this plugins is pretty much based on the yanfly version for MV.
One hint:
this is easier to do with two event pages and autonomous movement instead of two events.

on the first event page, set autonomous movement to random
on the second event page, use condition switch chasing = ON and set the autonomous movement to approach, with the text as normal and event touch etc

that way you don't need the event ID to change behaviour
Look in the help files of the plugin, for the event ID.

Because you spawn the event in later, it will have a new ID, probably.

I don't own the plugin, or I would take a look for you, but that is how it works with the yanfly plugin. And this plugins is pretty much based on the yanfly version for MV.
Thanks for the comment! You say it spawned in later, therefore not included in the moveset commands. Should I put a wait command on my separate event moveset command, in order to let the bat spawn first?

However I seem not to be able to spawn the bat with a template name. This was confirmed when I added a plugin which shows event names. As I wasn't able to set an event name to the spawned one, he doesn't have one... I don't understand how to tie the movement set in the separate event to the newly spawned event, since it only allows me to pick an event from the drop-down menu, picking "Bat1"?

no bat.jpg


One hint:
this is easier to do with two event pages and autonomous movement instead of two events.

on the first event page, set autonomous movement to random
on the second event page, use condition switch chasing = ON and set the autonomous movement to approach, with the text as normal and event touch etc

that way you don't need the event ID to change behaviour
Thank you! This would have been a perfect fix! Unfortunately, I don't think one can have one event page for movement which is parallel, and one page set to touch for when touching the player. It doesn't work?

I guess I could solve this by inputting the movement sets into the bats, but then I don't know how to do an event touch for when they touch the player to display the kill text.
Unfortunately, I don't think one can have one event page for movement which is parallel, and one page set to touch for when touching the player.
I never wrote about set move route or parallel, I wrote about autonomous movement, which doesn't need any trigger and is always parallel.
you know, the box between the sprite and the content, the one that is set to fixed in all your screenshots and should be switched to either random or approach?
I never wrote about set move route or parallel, I wrote about autonomous movement, which doesn't need any trigger and is always parallel.
you know, the box between the sprite and the content, the one that is set to fixed in all your screenshots and should be switched to either random or approach?
Hello again Andar, you are a life saver!

Made your suggested changes and now it all works brilliantly.

THANK YOU!🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-to-set-event-movement-route-after-spawning-solved.170908/