class Game_Temp
def event_name_cache
@event_name_cache ||= {}
@event_name_cache
end
def set_event_name(map_id, event_id, name)
key = [map_id, event_id]
event_name_cache[key] = name
end
end
class Game_Event
def name
key = [$game_map.map_id, id]
$game_temp.event_name_cache[key] || @event.name
end
end
class Game_Temp
def event_name_cache
@event_name_cache ||= {}
@event_name_cache
end
def set_event_name(map_id, event_id, name)
key = [map_id, event_id]
event_name_cache[key] = name
end
end
class Game_Event
def name
key = [$game_map.map_id, id]
$game_temp.event_name_cache[key] || @event.name
end
end