SockYeti

Villager
Member
Joined
Dec 26, 2017
Messages
11
Reaction score
11
First Language
English
Primarily Uses
RMMV
Hello! So what I'm trying to do is to keep a group of NPCs (in this case Butterflies) in a confined area of the map but I don't want them to impede the player so I have Through On. At first, I tried the YanFly Movement Restrictions Plugin but since that doesn't restrict with Through On it doesn't quite have the effect I want.

In short, is there a way to restrict NPC movement to a confined area while Thorugh is On?
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,957
Reaction score
5,583
First Language
English
Primarily Uses
RMVXA
Wrong place to post - "Tutorials" is for releasing tutorials you have written to help other users.

I'll go ahead and move this to RPG Maker MV Support based on your profile. If you were asking about a different Maker, report this post and let us know which one so we can move this topic to the right place.

I believe that one solution you could use is to give the Butterflies a priority of "Above Player", and also create invisible events to "blockade" them into a certain area that also have a priority of "Above Player". Since the Priority is now different from the player, I THINK you can get away with keep the "Through" property OFF. But I'm not 100% sure.
 

SockYeti

Villager
Member
Joined
Dec 26, 2017
Messages
11
Reaction score
11
First Language
English
Primarily Uses
RMMV
I believe that one solution you could use is to give the Butterflies a priority of "Above Player", and also create invisible events to "blockade" them into a certain area that also have a priority of "Above Player". Since the Priority is now different from the player, I THINK you can get away with keep the "Through" property OFF. But I'm not 100% sure.
Yes, that worked! Thank you!! <3
 

Quexp

Lifelong Learner
Veteran
Joined
Jun 18, 2018
Messages
352
Reaction score
594
First Language
English
Primarily Uses
RMMV
Thank you for asking this and thanks to Wavelength for what to try!

I've had the same issue trying to add butterflies in one of my towns. My problem was trying to find a way for them to fly over fences without letting other NPC's do so. I ended up just settling for them staying in a garden but might have to add more butterflies to my project now. ;)


SockYeti said:
Yes, that worked! Thank you!! <3
WAHOO!!!
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,957
Reaction score
5,583
First Language
English
Primarily Uses
RMVXA
Very glad it worked!! It's worth remembering (@Quexp) that adding a lot of events, even invisible ones, to maps can cause considerable lag (especially in MV which is poorly optimized compared to most other RPGM engines), since the engine thinks it needs to check the Page Conditions for these decorative/invisible events every frame. So while 25-50 events on a map is perfectly safe and even 50-100 usually isn't that bad, don't get carried away. :)
 

Latest Threads

Latest Posts

Latest Profile Posts

The latest post on TheDazzlingsAreBack...
besides itch and occasionally here where are people doing game jams at y'all? (plz do not cross reference this with my previous status lol)
Go out all day!
★No work★
Just want to sleep when I get home Zzzzz
just went through 50 issues of Fables, only to left kind of disappointed by it, I guess I have to wait for season 2 of TWAU instead.
Untitled Project.gif

Feel free to subscribe, cuz im gonna release it first there.
https://crashykk.itch.io/crashykk-retro-tileset

Forum statistics

Threads
110,438
Messages
1,053,298
Members
143,506
Latest member
StardustPiggly
Top