Can I make an event impassable to another event but passable to me ?

aspdmulti

Villager
Member
Joined
Aug 18, 2021
Messages
8
Reaction score
2
First Language
Bahasa
Primarily Uses
RMMV
First of all, i am using yanfly core engine. Now the question :
I try to make a hole on the floor event that can with [Tileset B]. When my character step on it, it transfer me to another location. Problem is, that hole i am using isn't passable even though I set it at below character. That's why i check the through checkbox. Now because of that, the enemy chasing me can go through the hole. I want to make the enemy to dodge the hole. Any suggestion ?
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
970
Reaction score
432
First Language
english
Primarily Uses
RMMV
do you also happen to have yanfly region restriction? with that you can setup regions that block events but not player and vise versa.
(i tend to put them infront of doors cus i hate when NPC blocks a doorway)
edit: region restriction its part of the free bundle
 
Last edited:

aspdmulti

Villager
Member
Joined
Aug 18, 2021
Messages
8
Reaction score
2
First Language
Bahasa
Primarily Uses
RMMV
WOW ! Thank you so much ! You're not just solving my problem, but you just make my future project a lot easier to build !
do you also happen to have yanfly region restriction? with that you can setup regions that block events but not player and vise versa.
(i tend to put them infront of doors cus i hate when NPC blocks a doorway)
edit: region restriction its part of the free bundl
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,936
Reaction score
8,610
First Language
German
Primarily Uses
RMMV
that hole i am using isn't passable even though I set it at below character.
below character with a tileset does NOT mean that the tile becomes passable, it means that the passability of the tile that is used for the graphic will become priority.

If the tile itself is passable in the tileset, then that event will be passable. If not then not.

The usual solution is to make the hole part of the map, and use a passable tile (for example a ladder) as part of the event graphic. That would automatically work like you want, blocking other events but allowing the player to enter without any script use.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,509
Reaction score
1,730
First Language
Dutch
Primarily Uses
RMMV
events can be used for same or below, easy control for passability,
region restriction mentioned Tiamat-86 might work nicely, but it will
ALWAYS restricted, and not temporarly! but if you want to toggle
it ON and OFF, I Suggest to use (in combination with RegionRestriction
the plugin [RED_setRegionID] because it gives you more control, and
you can disable, enable restriction when needed.

example:
a path is blocked but open in sight, but noone can enter (page 1)
if you have switch, you can remove this as a blank page on 2 with
the switch condition to make is passable. or change the ID of
the region from 20 to 21 or from 20 to 25 depending on the restriction,
switch, loot, etc etc.

you can play around with it, but in combination with YEP_RegionRestriction,
you have total control how things works :)
 

Latest Threads

Latest Posts

Latest Profile Posts

thought I'd upgrade to mz from mv cause of the nice quality of life features but ****ing hell why couldn't they allow old plugins to work in it and secondly how come in over a year since it's release has there been no mz version of something so crucial as a non grid based movement plugin. I guess I'll stick with mv. (why wasnt mz just an update to mv anyway literally nothing substantial changed..)
Something might be coming...
Hallo.png
A new day for creating :)
2021 has been the runner-up for the worst year of my life. 2015 may take that title, but '21 is pushing it. Excuses really don't justify how much of a jerk I've been this year to a lot of people.

I'm sorry. I don't intend to be a jerk forever, but I'd rather back up my intent with actions, not words.

Forum statistics

Threads
116,020
Messages
1,094,982
Members
151,337
Latest member
Laura1999
Top