Advertisement
roninator2

Update steps

Dec 9th, 2024
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.08 KB | None | 0 0
  1. # Modified the move command so that move route steps are also counted as steps
  2. class Game_Character < Game_CharacterBase
  3.   alias r2_move_route_update_step   process_move_command
  4.   def process_move_command(command)
  5.     r2_move_route_update_step(command)
  6.     case command.code
  7.     when ROUTE_MOVE_DOWN;         $game_party.increase_steps
  8.     when ROUTE_MOVE_LEFT;         $game_party.increase_steps
  9.     when ROUTE_MOVE_RIGHT;        $game_party.increase_steps
  10.     when ROUTE_MOVE_UP;           $game_party.increase_steps
  11.     when ROUTE_MOVE_LOWER_L;      $game_party.increase_steps
  12.     when ROUTE_MOVE_LOWER_R;      $game_party.increase_steps
  13.     when ROUTE_MOVE_UPPER_L;      $game_party.increase_steps
  14.     when ROUTE_MOVE_UPPER_R;      $game_party.increase_steps
  15.     when ROUTE_MOVE_RANDOM;       $game_party.increase_steps
  16.     when ROUTE_MOVE_TOWARD;       $game_party.increase_steps
  17.     when ROUTE_MOVE_AWAY;         $game_party.increase_steps
  18.     when ROUTE_MOVE_FORWARD;      $game_party.increase_steps
  19.     when ROUTE_MOVE_BACKWARD;     $game_party.increase_steps
  20.     end
  21.   end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement