Still needing it? (7 days off)
Paste this script above Main and below Woratana's script:#==============================================================================
# Game_Map
#------------------------------------------------------------------------------
# This class handles maps. It includes scrolling and passage determination
# functions. The instance of this class is referenced by $game_map.
#==============================================================================
class Game_Map
#--------------------------------------------------------------------------
# Public instance variables
#--------------------------------------------------------------------------
attr_reader :map
end
#==============================================================================
# Game_Interpreter
#------------------------------------------------------------------------------
# An interpreter for executing event commands. This class is used within the
# Game_Map, Game_Troop, and Game_Event classes.
#==============================================================================
class Game_Interpreter
#--------------------------------------------------------------------------
# Method alias of call event
#--------------------------------------------------------------------------
alias cebn_callev callev
#--------------------------------------------------------------------------
# Call event
# event_attr : Attribute of the called event
# page : Event page to be called
# map_id : Map ID where the event is
#--------------------------------------------------------------------------
def callev(event_attr, page, map_id = $game_map.map_id)
if event_attr.is_a?(Integer)
cebn_callev(event_attr, page, map_id = $game_map.map_id)
else
return if event_attr.nil?
return if event_attr.empty?
if map_id != $game_map.map_id
map = load_data(sprintf("Data/Map%03d.rvdata", map_id))
else
map = $game_map.map
end
for i in map.events.values
next if i.name != event_attr
event_id = i.id
end
return if event_id.nil?
if page == 0
event = map.events[event_id].pages[0]
else
event = map.events[event_id].pages[page - 1]
end
@child_interpreter = Game_Interpreter.new(@depth + 1)
@child_interpreter.setup(event.list, @event_id)
end
end
end
Change the Event ID for the Event Name in call method:callev("Event Name", page, map_id)
or
callev("Event Name", page)
For the actual map.
The Call Event by ID function of the original script still working.
Sorry for the bad English...
See you.