public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

Advanced Help with my Move Route/conditional branch

BMM_Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Advanced Help with my Move Route/conditional branch
  • Original author: Shaddow
  • Original date: March 26, 2016
  • Source thread: https://forums.rpgmakerweb.com/threads/advanced-help-with-my-move-route-conditional-branch.59410/
  • Source forum path: Game Development Engines > Legacy Engine Support > RPG Maker VXAce Support

Summary

Okay, Now that Shaz has kindly gotten me to understand the basics of Move Route, I am finding that what I am doing is pretty inefficient and causing a few bugs. I am hoping someone could take a look at what I am doing here and help me out. Within the event itself I have this script if Input.press?X) &&

Archived First Post

Okay,


Now that Shaz has kindly gotten me to understand the basics of Move Route, I am finding that what I am doing is pretty inefficient and causing a few bugs. I am hoping someone could take a look at what I am doing here and help me out.


Within the event itself I have this script


if Input.press?X) &&
$game_player.direction == 2 && $game_player.x == $game_map.events[3].x &&
$game_player.y == $game_map.events[3].y-1 or $game_player.direction == 4 &&
$game_player.x == $game_map.events[3].x+1 && $game_player.y == $game_map.events[2].y or
$game_player.direction == 6 && $game_player.x == $game_map.events[3].x-1 &&
$game_player.y == $game_map.events[3].y or $game_player.direction == 8 &&
$game_player.x == $game_map.events[3].x && $game_player.y == $game_map.events[2].y+1

$game_temp.reserve_common_event(3)

$game_map.events[3].force_move_route(@mr)

$game_map.events[3].force_move_route(@mr1)
end


Which is basically checking to see what direction the player is facing, if they are pushing X and if the enemy is in the x/y next to the player in that direction. It then is supposed to do this move route


@mr = RPG::MoveRoute.new
@mr.repeat = false
@mr.wait = true
@mr.skippable = true
@mr.list = []

@mr.list.push( RPG::MoveCommand.new(35, []) )
@mr.list.push( RPG::MoveCommand.new(29, [5]) )
@mr.list.push( RPG::MoveCommand.new(44, [RPG::SE.new('blow1'), 80, 100]) )
@mr.list.push( RPG::MoveCommand.new(32, []) )
@mr.list.push( RPG::MoveCommand.new(11, []) )
@mr.list.push( RPG::MoveCommand.new(29, [3]) )
@mr.list.push( RPG::MoveCommand.new )

@mr1 = RPG::MoveRoute.new
@mr1.repeat = false
@mr1.wait = true
@mr1.list = []

@mr1.list.push( RPG::MoveCommand.new(42, [100]) )
@mr1.list.push( RPG::MoveCommand.new(15, [3]) )
@mr1.list.push( RPG::MoveCommand.new(42, [255]) )
@mr1.list.push( RPG::MoveCommand.new(31, []) )
@mr1.list.push( RPG::MoveCommand.new(36, []) )
@mr1.list.push( RPG::MoveCommand.new )


Which I placed into a common event, as these steps will be used for every event like this and I figured that would save space. I get an error whenever I face the event, I do not even have to be pushing the X button.


Protected download


Any suggestions on what I am doing wrong, or how to make this process a little easier would be a great help.

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

Referenced Images / Attachments

list error.PNG
list error.PNG
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#rpg-maker-archive#vxace-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar