So i have stairs and i want them to be acessable then inacessable for a bit til someone gets an item how would i do that?
How to: How to make an accessable area inaccessable for a while
RPG Maker MV Supportbest methode is to use switches.
on bottom or top, make a event (no image but optional),
make a conditional branch:
if: player has item x
selfswitch B = ON (so it will open the way, blank page with SS B on it)
else
text: you need "itemName" first
end
text can be anything, even a moveroute to push them back and than
show text.
but there are other ways as well, depending on the exact mechanic you want
to built, but this is very basic setup.
on bottom or top, make a event (no image but optional),
make a conditional branch:
if: player has item x
selfswitch B = ON (so it will open the way, blank page with SS B on it)
else
text: you need "itemName" first
end
text can be anything, even a moveroute to push them back and than
show text.
but there are other ways as well, depending on the exact mechanic you want
to built, but this is very basic setup.
So before they have rhe item it will be acessable and then after they will need the item?
first you need a page with no condition... allow transfer there... (accessable at first)
then you need a page with condition switch X is on... inside the page use conditional branch to check party has Y item or not... if yes transfer... if no warning...
then you need to flip the switch X ON at certain time of your story when you want to Need have Y item to be able to climb the stair.
you can also flip the switch X back to OFF to allow climbing stair without having Y item in any time you want.
so you can create scenario like need to have flashlight when going upstair at night because it's dark. but not needed when it's daytime.
hope this help.
estriole's solution is perfect, but you might also try the party having the item first, then loosing it, therefore not being able to walk up the stairs and recovering it again later.
I figured it out thank you!
I've had good results using this plugin which allows you to turn on/off passability of a Region ID using a plugin command (I use it during short cutscenes to keep players from moving the character too far away)
dromarch.itch.io
Gabe MZ - Region Plus by Gabriel
Adds improvements and new functions to the game regions.
dromarch.itch.io
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-how-to-make-an-accessable-area-inaccessable-for-a-while.128575/