我沒教你改變行走圖呀~
總之先插入這個腳本,你的小舟就變成陸地行走了
至於上了小舟要怎麼設定,請參考我樓上的回覆
(順帶一提,變更移動速度,如果有跑步功能,需要加上開關判定呢!)
class Game_Player < Game_Character def map_passable?(x, y, d) case @vehicle_type when :boat $game_map.boat_passable?(x, y,d) when :ship $game_map.ship_passable?(x, y) when :airship true else super end end end class Game_Map def boat_passable?(x, y, d) check_passage(x, y, (1 << (d / 2 - 1)) & 0x0f) end end
class Game_Player < Game_Character
def map_passable?(x, y, d)
case @vehicle_type
when :boat
$game_map.boat_passable?(x, y,d)
when :ship
$game_map.ship_passable?(x, y)
when :airship
true
else
super
end
end
end
class Game_Map
def boat_passable?(x, y, d)
check_passage(x, y, (1 << (d / 2 - 1)) & 0x0f)
end
end
|