How to start combat on NPC Event Touch using manual eventing?

Hi everybody, I was hoping for some pointers on how to go about handling this presumably simple issue.

I'm prototyping a dog that runs in a series of predesigned randomly selected routes around a junkyard map, but if either he or the player make contact with one another during one of those routes the dog event initiates combat with the player.

If the dog was just running the same route over and over and over I can just dictate that singular route into the autonomous movement panel and set the dog event as a parallelprocess that on event touch enters into battle.

However, when setting up the pool of dog movement routes via the eventing panel, I have no idea how to make the dog event enter combat on player touch, as I need to set it to a parallel process to make it run around those random routes to begin with and I don’t see any sort of event command or if condition like "If Touches Player, Activate Battle Processing". I feel like there must be some relatively simplistic way to accomplish this through the eventing panel that I just don’t know about though, which is why I'm here asking for help.


Thank you greatly for any assistance!
I assume your "path selection" page runs on parallel anyway, so my solution would be yes, just make the page a separate parallel event that moves the dog and give the dog itself an event touch page that starts the combat. Pretty simple.
What SGHarlekin said - Control the dog remotely from another event and make the dog itself touch trigger.
Brilliant, I never would have thought of such a thing, still pretty new to this. Thank you both very much. If there are any other alternative setups I'd still love to hear them just to expand my understanding of how certain things can be achieved in different ways, but that'll be my solution for now.
It is possible to combine what you want into the dog event itself.

On the autonomous route dropdown selection is 'Custom'. Custom runs like a parallel process. You could put your route move in there (naturally with Repeat box checked) and set the trigger to event touch. There's no need for a separate event.
It is possible to combine what you want into the dog event itself.

On the autonomous route dropdown selection is 'Custom'. Custom runs like a parallel process. You could put your route move in there (naturally with Repeat box checked) and set the trigger to event touch. There's no need for a separate event.
Would it be possible to contain all three of the routes selected by random variable simultaneously within the autonomous route custom dropdown? My understanding was no as It seemed I was only able to get one route set in there, but the autonomous route panel is not yet an aspect of the RPGMAKER MZ engine I am very familiar with. If it is indeed possible to house all 3 there, any explanation of this process would be greatly appreciated. Thank you for your reply
How are you running the variable? I am assuming that it is once each time the map is loaded.

My suggestion stems from my own mapping habits. Each map has a parallel process event which activates as the map is loaded so that everything is set up before it fades into view. Here I set the BGM, background SE's, tinting, etc. etc. I then have Erase Event so that it goes away having run just once and does nothing until the next time the map is loaded.

It is also the place where I run variables for that map. So if I were doing this, I would set the variable which, for the sake of the example we'll say is #248, with random 0-2. The dog would then have 3 pages with the appropriate route, with the condition that variable 248 = (random numer) like this:

1701516418907.png


You might say that having 3 pages is no better than having 2 separate events. I prefer to have as few parallel processes running as possible to avoid potential lag problems etc. so in this instance once the Erase Event has run (which it will before the player sees the map) no other parallel is active. It is, though, personal preference to some extent, and I can see why others choose another method.
Would it be possible to contain all three of the routes selected by random variable simultaneously within the autonomous route custom dropdown? My understanding was no as It seemed I was only able to get one route set in there, but the autonomous route panel is not yet an aspect of the RPGMAKER MZ engine I am very familiar with. If it is indeed possible to house all 3 there, any explanation of this process would be greatly appreciated. Thank you for your reply
I mean you can run scripts in the moveroute, but your post was about doing it the eventing way, so I figured the separate parallel is the simplest way in that regard.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-start-combat-on-npc-event-touch-using-manual-eventing.163507/