Hello! So I'm trying to work out a rolling ladder in a library that you can climb. I've figured out how to make the whole thing (i.e. several vertically stacked events) roll when you push it from the bottom, but I'm still having a couple of issues related to Priority and Passability.
Major Problem: In order for the ladder events to be able to move over the bookcases behind them, they need to have "Through" checked. But when they have "Through" checked and "Below characters" priority, my character can't actually walk on them unless they can walk on the bookshelves underneath (but I can't make the bookshelves passable in general, or the player could just walk onto them at any time directly from the floor). If I change the ladder events' priority to "Same as characters", I still can't walk onto them, even with "Through" checked.
So I came up with a creative work-around: create an alternate tileset where the bookcases are passable (only on the top and bottom borders, so the player can't walk off of the ladder onto them), and trigger a tileset change when the player begins climbing the ladder and change it back when they get off... but this doesn't work either. I still just can't climb the ladder over the bookshelves. Through testing I discovered it's not that the tileset isn't changing (it is), nor that passable bookcases wouldn't solve the problem (they do). When I start the map on the alternate tileset, everything works perfectly fine (other than the old issue of being able to just walk onto the bookcases without the ladder). But when I start the map on the normal tileset and then change it to the alternate one with the engine's command, the passability of the tiles doesn't effectively change, even though the tileset itself has definitely changed (I tested it with a visibly different tileset to make sure).
Why does changing the tileset with a command, within the game, only change the images but not the actual passability of those tiles? If this wasn't an issue, I'd have my bookcase/ladder issue all figured out and working perfectly. How else can I get around this and make it work?
Minor Problem: In the tileset configuration I have the ladder tiles (including the bottom) only passable from the top or bottom, not the sides. Unfortunately, when the ladder events have "Through" checked and "Below characters" priority (as they have to in order to work, as explained above), this is ignored and the character can pass from the sides, too. This is really only relevant for the bottom ladder event that you push from the sides, and is mostly an aesthetic issue, as I don't like that you can push it once but then just keep going through it if you hold the movement button -- or that you can push it one tile at the time to the edge of the bookcase (where it can go no further), and then suddenly just walk through it instead.
Is there any way to make it obey the "no passing from the sides" rule (or mimic it with scripting) while the event's priority is "below" and "through" is on? If not, then I suppose I can live with it (better than scrapping the whole ladder system). Hence, this is the less pressing issue.
Thank you to anyone who has any ideas! I've attached screenshots of my event pages, tileset configurations, and how it's set up on the map. If you need any more information to understand what's going on, or need to see an entire line of script that got cut off, etc., please let me know and I will provide!
Thanks again for your time and brainpower <3
P.S. The reason I checked if the player's distance from the event was less than one (i.e. with Math.abs script) is because I'm using the Altimit Movement plugin, and it wasn't registering if simply player.x = event.x, etc., unless I was exactly in the center of a tile.
Major Problem: In order for the ladder events to be able to move over the bookcases behind them, they need to have "Through" checked. But when they have "Through" checked and "Below characters" priority, my character can't actually walk on them unless they can walk on the bookshelves underneath (but I can't make the bookshelves passable in general, or the player could just walk onto them at any time directly from the floor). If I change the ladder events' priority to "Same as characters", I still can't walk onto them, even with "Through" checked.
So I came up with a creative work-around: create an alternate tileset where the bookcases are passable (only on the top and bottom borders, so the player can't walk off of the ladder onto them), and trigger a tileset change when the player begins climbing the ladder and change it back when they get off... but this doesn't work either. I still just can't climb the ladder over the bookshelves. Through testing I discovered it's not that the tileset isn't changing (it is), nor that passable bookcases wouldn't solve the problem (they do). When I start the map on the alternate tileset, everything works perfectly fine (other than the old issue of being able to just walk onto the bookcases without the ladder). But when I start the map on the normal tileset and then change it to the alternate one with the engine's command, the passability of the tiles doesn't effectively change, even though the tileset itself has definitely changed (I tested it with a visibly different tileset to make sure).
Why does changing the tileset with a command, within the game, only change the images but not the actual passability of those tiles? If this wasn't an issue, I'd have my bookcase/ladder issue all figured out and working perfectly. How else can I get around this and make it work?
Minor Problem: In the tileset configuration I have the ladder tiles (including the bottom) only passable from the top or bottom, not the sides. Unfortunately, when the ladder events have "Through" checked and "Below characters" priority (as they have to in order to work, as explained above), this is ignored and the character can pass from the sides, too. This is really only relevant for the bottom ladder event that you push from the sides, and is mostly an aesthetic issue, as I don't like that you can push it once but then just keep going through it if you hold the movement button -- or that you can push it one tile at the time to the edge of the bookcase (where it can go no further), and then suddenly just walk through it instead.
Is there any way to make it obey the "no passing from the sides" rule (or mimic it with scripting) while the event's priority is "below" and "through" is on? If not, then I suppose I can live with it (better than scrapping the whole ladder system). Hence, this is the less pressing issue.
Thank you to anyone who has any ideas! I've attached screenshots of my event pages, tileset configurations, and how it's set up on the map. If you need any more information to understand what's going on, or need to see an entire line of script that got cut off, etc., please let me know and I will provide!
Thanks again for your time and brainpower <3
P.S. The reason I checked if the player's distance from the event was less than one (i.e. with Math.abs script) is because I'm using the Altimit Movement plugin, and it wasn't registering if simply player.x = event.x, etc., unless I was exactly in the center of a tile.