Make Dashing cost Mp??

Is there a way to make Dashing Cost Mp without a script??

I am in need for that since my game The Chosen One will have that implimented in it.
I suppose you could workaround by having a parallel process on each map.
In it you would check to see if the shift is being pressed. ( you would have to limit dashing when the button is being pressed ).
The do a count for 60 frames and then subtract 1 from mp.
But this does not stop dashing from happening even if the mp was 0.
The best way would be to use a script.
I suppose you could workaround by having a parallel process on each map.
In it you would check to see if the shift is being pressed. ( you would have to limit dashing when the button is being pressed ).
The do a count for 60 frames and then subtract 1 from mp.
But this does not stop dashing from happening even if the mp was 0.
The best way would be to use a script.
True, I do see that point, I will have to look into that and try a few things :3
Code:
class Game_Player < Game_Character
  alias amn_mpdash_gameplayer_dash? dash?
  def dash?
    return false if $game_party.leader.mp.zero?
    amn_mpdash_gameplayer_dash?
  end
end

class Game_Actor < Game_Battler
  alias amn_mpdash_gameactor_onplayerwalk on_player_walk
  def on_player_walk
    amn_mpdash_gameactor_onplayerwalk
    self.mp -= 1 if $game_player.dash? && self == $game_party.leader
    # ^ change 1 to whatever integer you want
  end
end

That will make it so that the party leader loses 1 MP every step when dashing.
Code:
class Game_Player < Game_Character
  alias amn_mpdash_gameplayer_dash? dash?
  def dash?
    return false if $game_party.leader.mp.zero?
    amn_mpdash_gameplayer_dash?
  end
end

class Game_Actor < Game_Battler
  alias amn_mpdash_gameactor_onplayerwalk on_player_walk
  def on_player_walk
    amn_mpdash_gameactor_onplayerwalk
    self.mp -= 1 if $game_player.dash? && self == $game_party.leader
    # ^ change 1 to whatever integer you want
  end
end

That will make it so that the party leader loses 1 MP every step when dashing.
Thanks :3

Original thread: https://forums.rpgmakerweb.com/threads/make-dashing-cost-mp.103979/