My goal is to make it so after the player gets a thing, for example a plank, it can be placed on a tile that cannot normally be walked on (I am using default interior tile set). The tiles are; cracks put on a normal tile, and pits (makes it pointless to make a single image for the event).
VXAce How to add openable shortcuts for unwalkable tiles? [SOLVED]
RPG Maker VXAce SupportI feel the easiest way to achieve this would be:
Do not use the actual impassable tile on the map. Instead, place a normal walkable floor tile underneath, and create an event set to Same as Character with the crack or pit graphic. Since it's set to Same as Character, the player still won't be able to walk on it and will behave like an impassable tile.
Then in the actual event page:
Then on Page 2 of the event, when Self Switch A is ON, you just set the graphic to a plank sprite, and set it to Below Characters so that it's walkable again.
Do not use the actual impassable tile on the map. Instead, place a normal walkable floor tile underneath, and create an event set to Same as Character with the crack or pit graphic. Since it's set to Same as Character, the player still won't be able to walk on it and will behave like an impassable tile.
Then in the actual event page:
Code:
Conditional Branch: Player has plank?
|Show Choices: Place the plank?, Yes, No
|When Yes
Change Items: Plank - 1
Control Self Switch: A = ON
|When No
(Leave this blank)
Else
|Text: I can't cross here.
End
Then on Page 2 of the event, when Self Switch A is ON, you just set the graphic to a plank sprite, and set it to Below Characters so that it's walkable again.
actually there is an even easier way.
keep the impassable tile, and give the second (conditional) page of the event a walkable tile instead of a regular sprite (scroll to the bottom of the scroll list.
as soon as the condition is fulfilled and that page becomes active, the player can walk on that space.
and you can set the conditions for the second page in every way you want, or have the first page check more complex condition before turning on a self-switch for the second page
keep the impassable tile, and give the second (conditional) page of the event a walkable tile instead of a regular sprite (scroll to the bottom of the scroll list.
as soon as the condition is fulfilled and that page becomes active, the player can walk on that space.
and you can set the conditions for the second page in every way you want, or have the first page check more complex condition before turning on a self-switch for the second page
The main issue doing it this way (the reason I did not do it in the first place) is the pit tiles. I want them to be connected but I am not gonna grab an image of each type.
I was also going to say I would like it if the plank would appear over the hole or crack but that is easy if I just got the event graphic.
You still can paint your tiles on the map though. The only difference is that you must set them to "passable".
The collision will be dictated by the event. On page 1, set the event's graphic to none, and then set it to Same as Characters so that it acts like an invisible wall. On page 2, do what I described in my previous message!
This is a clever idea too! I thought tile passability takes priority over events, so a passable event over an impassable tile will still be impassable, but maybe I'm wrong!
If something like I described didn't work, show us screenshots of your event.
it should work like I described
it should work like I described
I also tried various combinations of things like same as character, etc. Along with other walkable tiles.
Show us the other tab as well.
That second tab should be fine. You just have to make sure the tileset allows you to walk over the item you placed.
I have a different trigger that I enable for testing so ignore the fact that all that is changing it is a self switch.
I have tested out your method and it works for pits but not cracks but I can just get over the crack issue. I am going to set this as solved but it would still be nice it I could get it to work for cracks.
EDIT: Nevermind! Since I was using the rope ladder I could not use the sides I believe.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-add-openable-shortcuts-for-unwalkable-tiles-solved.182932/