Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,846
Reaction score
1,601
First Language
English
Primarily Uses
RMMV
So I recently decided to switch back to Galv's Event Detectors plugin after an unsatisfactory experience w/ Yanfly's Event Chase plugin. There's a specific enemy behavior I'm trying to implement, but haven't been able to, despite getting very close. So, I have visible monsters on the map and I want them to a few things.
  1. Wander around randomly when not detecting the player.
  2. Chase the player upon detection. (chases for X tiles, and accounts for LoS)
  3. Return to the original location and continue wandering randomly after "losing" the player.
The problem is that I can't get the monsters to BOTH wander randomly and return to their original location at the same time. For example, "return,search,6,1,3,5,1" will make it so the monster will chase the player upon detection, but then return to its original location after losing sight of the player. On the other hand, "rand,search,6,1,3,5,1" will make it so the monster will chase the player upon detection, but then wander around randomly after losing sight of the player. What I want it to do is chase the player upon detection, but then return to its original location then wander around randomly starting from that location. Is this possible? I've also tried using the following in a custom move route, but it didn't seem to work. The (0) refers to return and (1) refers to rand. "14" is simply the event ID and "6" is the distance. Lastly, "true" enables LoS.
Galv.DETECT.event(14,6,true) ? this.detector(0) : this.detector(1);

In short, I want to combine the rand & return behaviors.
 

Latest Threads

Latest Posts

Latest Profile Posts

Does anyone know of NPC sprites for RMMZ? I know of Flirion's RMMV recolours, but RMMZ's sprites are slimmer and more detailed, so I'm a bit on the edge to use Flirion's im RMMZ...
I can't believe that after all those years, KH Union X Dark Road is closing the services.

Due to a situation in which I thought plugin adaptations had stopped for the QPlugins, I "ghetto" converted these 7 over yesterday. They appear to work perfectly as long as you use old style plugin commands. I am uncertain if I will have a lot of free time in the future to work on this, but if you'd like them, here they are.
Was there a thread that you could share a screenshot of your game? I feel like I found it once but can't locate it again.

I was being lazy and just copied a map to test a new parallax, but I forgot to delete all the events. This was the result. :o

Forum statistics

Threads
108,818
Messages
1,039,788
Members
141,277
Latest member
FeatherStone
Top