Fantastic; It works practically perfect now. Thanks for the quick fix!
Only other thing I was wondering is if there was anyway to make it remember the default passage settings previously set through RMVXA itself.
Example:
Default Tileset Passage Settings In Ace:
[IMG]http://i60.tinypic.com/2zt91cg.png[/IMG]
^^Default Tileset Passage Settings when loaded.
Anyways; It'd be fantastic if you managed to fix this, as it's a bit time consuming to try and set every tree I place with the above settings manually. Great script though; Love it saves me plenty of time.
A bit irrelevant but I tried to do some fiddling but my knowledge of ruby is incredibly basic.
With the star passage fix I notice it remembers the Default passage settings, but in turn any passage settings you changed via your script no longer work properly.
Star Passage Script:
class Game_Map def check_passage(x, y, bit) all_tiles(x, y).each do |tile_id| flag = tileset.flags[tile_id] if flag & 0x10 != 0 # [☆]: No effect on passage next if flag & bit == 0 # [○] : Passable but star return false if flag & bit == bit # [×] : Impassable else return true if flag & bit == 0 # [○] : Passable return false if flag & bit == bit # [×] : Impassable end end return false # Impassable endendI noticed you basically have the same snippet with a few minor adjustment inside of your script.
Code:
def def_check_passage(x, y, bit) all_tiles(x, y).each do |tile_id| flag = tileset.flags[tile_id] next if flag & 0x10 != 0 # [☆]: No effect on passage return true if flag & bit == 0 # [○] : Passable return false if flag & bit == bit # [×] : Impassable end return false # Impassable end def def_passable?(x, y, d) def_check_passage(x, y, (1 << (d / 2 - 1)) & 0x0f) end