- 69
- Posts
- 14
- Years
- Seen Nov 19, 2014
Well i don´t know if i can´t put a link of another RPG Maker forum so i will paste the script i found:
But when i put it in my game it doesn´t work, an older version of this script could remember the position of events but it has graphical problems and didn´t save the position when the savegame where loaded.
I hope that Maruno see this and can help with this because this will be a very useful script.
Code:
#Script made by LiTTleDRAgo
# to clear event position in maps:
# $game_map.event_positions[MAP_ID] = nil
# or
# $game_map.event_positions.delete(MAP_ID)
# to clear event position in all maps:
# $game_map.event_positions.clear
class Game_Map
alias_method(:setup_eventmanager_alias, :setup)
define_method(:event_positions) { @event_positions ||= {}}
def setup(map_id)
setup_eventmanager_alias(map_id)
if self.event_positions[map_id]
(@events = self.event_positions[map_id]) && refresh
else
(self.event_positions[map_id] = @events)
end
end
end
But when i put it in my game it doesn´t work, an older version of this script could remember the position of events but it has graphical problems and didn´t save the position when the savegame where loaded.
I hope that Maruno see this and can help with this because this will be a very useful script.