- Joined
- Sep 7, 2020
- Messages
- 2
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMVXA
I have been stuck on this error for one of my scripts for a couple of days now and im not sure whats causing it, the code in question is here:
The issue is that when this event is spawned in, it does its movement code precisely once and then stops as if MoveRoute.repeat is false, in fact, the behavior is identical.
if it helps, this method is ran in at the end of Game_Map.setup(), but ive ran it from another event too and i get the same issue.
I think the error is somewhere past move_route because I set move_type to anything other than 3(custom) and the movement repeats just fine
Ruby:
def self.create_ev2(x, y)
ev = RPG::Event.new(x, y)
ev.pages[0].graphic.character_name = 'Actor1'
ev.pages[0].graphic.character_index = 0
ev.pages[0].move_type = 3
ev.pages[0].move_route.list[0].code = 45
ev.pages[0].move_route.list[0].parameters = ["print('test')"]
Game_Event.new(@map_id, ev)
$game_map.need_refresh = true
game_ev = Game_Event.new($game_map.map_id, ev)
$game_map.events[ev.id] = game_ev
return
end
if it helps, this method is ran in at the end of Game_Map.setup(), but ive ran it from another event too and i get the same issue.
I think the error is somewhere past move_route because I set move_type to anything other than 3(custom) and the movement repeats just fine

