Ok thank you =) and also, I'm searching for making the 'swimming' script that is very good compatible with BlizzABS.
I think there is a problem with this small method :
def change_water_passable(passage=0)
@water = []
(0...$game_map.width).each {|x|
(0...$game_map.height).each {|y|
[2, 1, 0].each {|i|
id = $game_map.data[x, y, i]
@water << id if $game_map.terrain_tags[id] == Swim_Config::WATER_TERRAIN
}}}
# This code will get all the possible tile id with
# water terrain tags
@water.each {|i| $game_map.passages[i] = passage }
# then this code will change all the water passages
end
Because when I press Enter before a water_terrain (with the right tag), the tile does not become passable, so my character can't move on.
I also Have a problem when changing the sprite... How to change my character sprite ? Lol it uses this piece of code :
swim_graphic = player.character_name + Swim_Config::SWIM_EXTENSION
$game_player.character_name = swim_graphic
player.set_graphic(swim_graphic, player.character_hue, player.battler_name, player.battler_hue)
I don't know why but my character doesn't get his graphics changed at all when performed :/
(however I show a small window whith my character displayed on it and the character on the window IS changed properly O_O - my window uses
draw_actor_graphic(actor, 20, 60)
)
Well I searched in BlizzABS some key words like 'passages', 'map', 'characters' but no clue how to simply change the graphics in another script