Could someone explain to me how to activate the stepping animation through a script call? I can't use the move route event command because the event ID isn't something I can know in advance. This is what I've put together so far. Thanks.
event_id = $game_variables[15]
event = $game_map.events[event_id]
# Wait before moving
$game_map.interpreter.wait(60)
# Activate stepping animation
???
# Calculate the new coordinates for moving down
new_x = event.x
new_y = event.y + 1
direction = 2 # Direction 2 corresponds to moving down
# Check if the new coordinates are passable and within region ID 63
if $game_map.passable?(new_x, new_y, direction) && $game_map.region_id(new_x, new_y) ==
63
event.move_straight(direction)
end
# Wait before moving
$game_map.interpreter.wait(60)
# Deactivate stepping animation
???
event = $game_map.events[event_id]
# Wait before moving
$game_map.interpreter.wait(60)
# Activate stepping animation
???
# Calculate the new coordinates for moving down
new_x = event.x
new_y = event.y + 1
direction = 2 # Direction 2 corresponds to moving down
# Check if the new coordinates are passable and within region ID 63
if $game_map.passable?(new_x, new_y, direction) && $game_map.region_id(new_x, new_y) ==
63
event.move_straight(direction)
end
# Wait before moving
$game_map.interpreter.wait(60)
# Deactivate stepping animation
???