Frostorm

[]D[][]V[][]D
Veteran
Joined
Feb 22, 2016
Messages
2,788
Reaction score
2,224
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.
 

ray_stride07

Veteran
Veteran
Joined
Feb 28, 2022
Messages
49
Reaction score
10
First Language
Indonesia
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.
yups thats right and i think this plugin need sound effect when the enemy notice and lost player
 

Frostorm

[]D[][]V[][]D
Veteran
Joined
Feb 22, 2016
Messages
2,788
Reaction score
2,224
First Language
English
Primarily Uses
RMMV
yups thats right and i think this plugin need sound effect when the enemy notice and lost player
GALV_BalloonSoundEffects.js would work for that purpose.
 

Latest Threads

Latest Profile Posts

What is a thing you like to see in RPGs?
Well, I hope things go well tomorrow. I think I might be coming down with a cold, so gonna warm up some chicken soup and sleep.
Status too sad. Pls delete, mods. Thanks.
The most important thing to design your game for is fun. If a game isn't fun, why would anyone want to play it? Well, that and "can you play the game?". Anything else is incidental.
I just realized that I have been on this site for nearly 1/3 of my life...

Forum statistics

Threads
124,678
Messages
1,165,188
Members
163,488
Latest member
williswhere
Top