Save-Point

Full Version: Save-Point
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Board Message
Sorry, you do not have permission to access this resource.
Save-Point - Script that restores MP while walking on the world map or dungeon

Save-Point

Full Version: Script that restores MP while walking on the world map or dungeon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was just wondering is there a script for RMVX that slowly restores your MP while walking around the world map or a dungeon like in Golden Sun?
Thank you but how do you event it without too much lag though?
Do it via events!
Every time the character changes X/Y position, +1mp
Quote:Do it via events!
Every time the character changes X/Y position, +1mp

Or if he press button to move. More easier, than the X\Y variable changes. ^___^
Yes but then you could just stand against a wall and still increase your MP ;)
Code:
# Restore SP while moving | Written by Valdred for Rose Guardian | rpgmakers.net
class Scene_Map
  alias ol_up_val update
  def update
    $game_party.actors.each {|i|i.sp += 1 if $game_player.moving?}
    old_up_val
  end
end

paste above main

or if you want it to happen always, even when the player is standing still, use this modification:
Code:
# Restore SP while moving | Written by Valdred for Rose Guardian | rpgmakers.net
class Scene_Map
  alias ol_up_val update
  def update
    $game_party.actors.each {|i|i.sp += 1}
    old_up_val
  end
end

Tell me if you need more help


Damn, I wrote for xp :P I will see if I can translate it.
I still think that an event would be easier than a script.