Copy events during run-time! v1.0
By: Near
Introduction
I recently figured out how to take an event from a map, and place it in the player's current map.
Screenshots
No screens. It doesn't prove much to have screenies of an event on a map, now does it?
Demo
Why do you need a demo for such a simple script?
Script
[rgss]Â
class Game_Map
 def new_ev_id
  for i in 0..999
   return i if @events.nil?
  end
 end
Â
 def transfer_event(map_id, ev_id, x, y)
  new_map ||= Game_Map.new
  new_map.setup(map_id)
  ev = new_map.events[ev_id]
  @events[new_ev_id] = ev
  @events[new_ev_id].moveto(x, y)
  refresh
  new_map = nil
  ev = nil
 end
end
Â
[/rgss]
Instructions
Just call $game_map.transfer_event(<the map the event is on>, <the event's id>)
Easy as that.
Credits and Thanks
RTH, because he helped me figure this out.
Terms and Conditions
Do what you like.
By: Near
Introduction
I recently figured out how to take an event from a map, and place it in the player's current map.
Screenshots
No screens. It doesn't prove much to have screenies of an event on a map, now does it?
Demo
Why do you need a demo for such a simple script?
Script
[rgss]Â
class Game_Map
 def new_ev_id
  for i in 0..999
   return i if @events.nil?
  end
 end
Â
 def transfer_event(map_id, ev_id, x, y)
  new_map ||= Game_Map.new
  new_map.setup(map_id)
  ev = new_map.events[ev_id]
  @events[new_ev_id] = ev
  @events[new_ev_id].moveto(x, y)
  refresh
  new_map = nil
  ev = nil
 end
end
Â
[/rgss]
Instructions
Just call $game_map.transfer_event(<the map the event is on>, <the event's id>)
Easy as that.
Credits and Thanks
RTH, because he helped me figure this out.
Terms and Conditions
Do what you like.