Howdy!
I'd like to request a simple merge of Wachunga's Maplinks script to be compatible with BABS v 2.x
I read on an rrr post that there was a merge done by Blizz himself. But somehow I don't know if its the same or if some alias' have changed or whatever the case may be.
Now according to the post that I read located here
All I need to change is the class Game_Player from:
to:
But upon doing so I run into the error that reads:
I have the maplinks script if it'll make the slight merge or the update of Blizz's other post easier?
Its not that its majorly important. Its for simple recreation purposes and for some odd reason in BABS 2.57 whenever I have a lot of teleport events it causes the game to lag like crazy. :/
So any help or assistance is greatly appreciated. And will not go unnoticed. I'm willing to trade art in exchange for help.
Thank you in advance.
I'd like to request a simple merge of Wachunga's Maplinks script to be compatible with BABS v 2.x
I read on an rrr post that there was a merge done by Blizz himself. But somehow I don't know if its the same or if some alias' have changed or whatever the case may be.
Now according to the post that I read located here
All I need to change is the class Game_Player from:
class Game_Player
alias ml_cett check_event_trigger_touch
def check_event_trigger_touch(x, y)
check_maplinks(x,y)
ml_cett(x,y)
end
def check_maplinks(x,y)
if $game_map.valid?(x, y) then return end
dir = nil
if y == $game_map.height then dir = 2
elsif x == -1 then dir = 4
elsif x == $game_map.width then dir = 6
elsif y == -1 then dir = 8
end
if dir != nil
if $game_map.maplinks[dir] != nil
$game_map.maplinks[dir].activate
end
end
end
end
to:
class BlizzABS::Player_Controller
alias ml_cett check_event_trigger_touch
def check_event_trigger_touch(x, y)
check_maplinks(x,y)
ml_cett(x,y)
end
def check_maplinks(x,y)
return if $game_map.valid?(x, y)
if y == $game_map.height
dir = 2
elsif x == -1
dir = 4
elsif x == $game_map.width
dir = 6
elsif y == -1
dir = 8
else
dir = nil
end
if dir != nil && $game_map.maplinks[dir] != nil
$game_map.maplinks[dir].activate
end
end
end
But upon doing so I run into the error that reads:
Code: error
Script 'Maplinks' Line 125: NameError occured.
undefined method 'check_event_trigger_touch' for class BlizzABS::Player_Controller'
I have the maplinks script if it'll make the slight merge or the update of Blizz's other post easier?
Its not that its majorly important. Its for simple recreation purposes and for some odd reason in BABS 2.57 whenever I have a lot of teleport events it causes the game to lag like crazy. :/
So any help or assistance is greatly appreciated. And will not go unnoticed. I'm willing to trade art in exchange for help.
Thank you in advance.