I tried many different ways, but it didn't help ;-; I was actually trying to create a move route via scripts, but I couldn't find a "wait" method which actually works. I tried putting a count in the update, using wait(x), @wait_count = x... Either it shows en error message or just doesn't do anything.
So I decided do make the move route via events, then call the event via script. The problem is: the move route is not for a especific event, it can happen to any event, using its ID as reference (because of a system I'm creating). But it's not possible to do it via events. So I'd need a way to change move route target via scripts. How can I do it?
I tried putting this method in the Game_Map:
def run_common_event(id, eventid)
common_event = $data_common_events[id]
if common_event
child = Game_Interpreter.new(2)
child.setup(common_event.list, eventid)
child.run
end
end
end
Then calling it this way: $game_map.run_common_event(2, event.id)
But it ends up with en error:
http://prntscr.com/3q10kj
Any idea? ;-;