Event Map Memorizer (by Raizen) Improvement

Hello, so I'm using Event map Memorizer by Raizen (for those who don't know it memorizes Events positions so that when you get in a map they stay in the same place they were when you got out) and I really like it, it gives more immersion to the game, as it gives the impression time continues when you exit a map and get back there, instead of just "restarting".

But I've encountered a problem. I like to give like to events around the game, mainly those the player interacts the most, so I generally give them a routine (Custom Autonomous movement) to feel like they actually have something to do instead of just standing there or walking around randomly.

BUT it's pretty be lame if everytime you enter the map the character does everything from the begining, it stops looking like a person with routine and it just starts looking like a computer that reboots everytime you see him.

This script would fix this BUT it doesn't save the current movement/direction in the move route (or in other type) which causes real problems since the character just ends up blocking the player's path and stuff like that xD.

Although it saves the event position, it's movement still restarts.

So it would be really cool if someone could add this feature (if it's possible that is) since I can't really script.

If you need a favour in return just ask 😉

EDIT: Oh also, if you need something from the script to be translated, a comment or something, just ask. (it's in portuguese, aaand I'm Portuguese)

Here's the Script:

#==================================================================# Event Map Memorizer# Autor: Raizen# Compatibilidade: RMVXAce#==================================================================# Descrição: O script permite com que seja salvo as posições dos eventos,# ao ser feito o teleport os eventos no mapa estarão nas mesmas posições# em que o jogador saiu do local, não tem impacto em relação a lag no jogo.# Ele é configurado para automaticamente salvar e carregar essas posições# no momento do teleport.# Para salvar manuamente.# Chamar Script: $game_map.save_event_positions# Para carregar manualmente.# Chamar Script: $game_map.load_event_positions# Para limpar o save das posições do evento de um certo mapa# no local do map_id coloque o id do mapa.# Chamar Script: $game_map.clear_event_positions(map_id)module Lune_event_pos# Switch que ao estiver ligado ele desativa o save# das posições e carregamento das posições dos eventos.Switch = 1end#==================================================================#==================================================================#===================== Aqui começa o script ======================##=================================================================##==================== Alias methods =============================## reserve_transfer => Game_Player# initialize => Game_Map# perform_transfer => Game_Player#=================================================================##======================== New methods ===========================## save_event_positions => Game_Map# load_event_positions => Game_Map# clear_event_positions => Game_Map#=================================================================##=================================================================##==============================================================================# ** Game_Map#------------------------------------------------------------------------------# Esta classe gerencia o mapa. Inclui funções de rolagem e definição de # passagens. A instância desta classe é referenciada por $game_map.#==============================================================================class Game_Mapalias :lune_memorize_initialize :initialize #-------------------------------------------------------------------------- # * Inicialização das variáveis #-------------------------------------------------------------------------- def initialize lune_memorize_initialize @memorize_pos = [] end #-------------------------------------------------------------------------- # * Memorização das posições #-------------------------------------------------------------------------- def save_event_positions @memorize_pos[@map_id] = [] $game_map.events.values.select {|event| @memorize_pos[@map_id][event.id] = [event.x, event.y]} end #-------------------------------------------------------------------------- # * Carregamento das posições #-------------------------------------------------------------------------- def load_event_positions return if @memorize_pos[@map_id] == nil $game_map.events.values.select {|event| event.moveto(@memorize_pos[@map_id][event.id][0], @memorize_pos[@map_id][event.id][1])} end def clear_event_positions(map_id) @memorize_pos[map_id] == nil endend#==============================================================================# ** Game_Player#------------------------------------------------------------------------------# Esta classe gerencia o jogador. # A instância desta classe é referenciada por $game_player.#==============================================================================class Game_Player < Game_Characteralias lune_perform_transfer perform_transferalias lune_perform_reserve reserve_transfer #-------------------------------------------------------------------------- # * Carregando as posições #-------------------------------------------------------------------------- def perform_transfer lune_perform_transfer $game_map.load_event_positions unless $game_switches[Lune_event_pos::Switch] end #-------------------------------------------------------------------------- # * Salvando as posições #-------------------------------------------------------------------------- def reserve_transfer(map_id, x, y, d = 2) lune_perform_reserve(map_id, x, y, d = 2) $game_map.save_event_positions unless $game_switches[Lune_event_pos::Switch] endend Hum, quick question... How do I make Spoilers?

Original thread: https://forums.rpgmakerweb.com/threads/event-map-memorizer-by-raizen-improvement.18140/