How would I do a check if something is in the way such as impassable tiles from Event A to Event B in conditional branch?
check between event a - event b
Learning Ruby and RGSSxBasically that needs a pathfinding script - there is no single command that can check that, even a simple check for a direct-line-of-sight requires a loop through all tiles between the events.
Sorry, I don't have any links to pathfinding or line-of-sight scripts ready, but with those names you should be able to search for them.
Sorry, I don't have any links to pathfinding or line-of-sight scripts ready, but with those names you should be able to search for them.
I got it solved thank you Andar XD
Thanks to Meow for pointing me the right direction /bow > Meow
Direction to link in case someone else were curios about this:
http://forums.rpgmakerweb.com/index.php?/topic/3452-direction-based-line-of-sight-events/
Close post please and thanks 😉
Thanks to Meow for pointing me the right direction /bow > Meow
Direction to link in case someone else were curios about this:
http://forums.rpgmakerweb.com/index.php?/topic/3452-direction-based-line-of-sight-events/
Close post please and thanks 😉
You'd need to put it into a loop, where the passability between each pair of tiles on the path is checked.
If A and B are not on the same row or the same column (the path is not a straight horizontal or vertical line) that also brings up the question of how to determine what tiles are actually on the path.
If A and B are not on the same row or the same column (the path is not a straight horizontal or vertical line) that also brings up the question of how to determine what tiles are actually on the path.
Original thread: https://forums.rpgmakerweb.com/threads/check-between-event-a-event-b.45734/