- Joined
- Mar 21, 2013
- Messages
- 10
- Reaction score
- 0
- First Language
- English
- Primarily Uses
Hi everyone,
I'm looking for a script that gives the characters 0 MP at the beginning of a battle and at the start of their turn they get a fixed amount of MP to use which gets added on to their existing MP. As far as I can tell, you can do this with a percentage of yout total MP using states but i'm looking for a fixed regeneration amount. An example of this in a game is Final Fantasy Tactics Advance 2, please see the link below for a visual aid. (Skip forward to about 2:30 for the battle).
http://www.youtube.com/watch?v=ugSbEHloGVw
In the example, the characters get 10 MP at the start of every turn regardless of how much MP they already have.
At the end of the battle, I want the characters to keep the MP they haven't used for out of battle skills (Cures and whatnot) but always reset the MP back to 0 once the next battle starts.
This is a link to what i'm using at the moment, although it doesnt work correctly as it is for vx.
http://forums.rpgmakerweb.com/index.php?/topic/3379-mp-regen-system/
I am also using this little script with the above script, but these together are unreliable and skips turns/gives double MP on occasions.
If you need more information, just let me know!
Thanks
I'm looking for a script that gives the characters 0 MP at the beginning of a battle and at the start of their turn they get a fixed amount of MP to use which gets added on to their existing MP. As far as I can tell, you can do this with a percentage of yout total MP using states but i'm looking for a fixed regeneration amount. An example of this in a game is Final Fantasy Tactics Advance 2, please see the link below for a visual aid. (Skip forward to about 2:30 for the battle).
http://www.youtube.com/watch?v=ugSbEHloGVw
In the example, the characters get 10 MP at the start of every turn regardless of how much MP they already have.
At the end of the battle, I want the characters to keep the MP they haven't used for out of battle skills (Cures and whatnot) but always reset the MP back to 0 once the next battle starts.
This is a link to what i'm using at the moment, although it doesnt work correctly as it is for vx.
http://forums.rpgmakerweb.com/index.php?/topic/3379-mp-regen-system/
I am also using this little script with the above script, but these together are unreliable and skips turns/gives double MP on occasions.
#==============================================================================# ** Scene_Battle#------------------------------------------------------------------------------# This class performs battle screen processing.#==============================================================================class Scene_Battle < Scene_Base #-------------------------------------------------------------------------- # * Alias Listings #-------------------------------------------------------------------------- alias tds_mp_turn_regen_scene_battle_battle_start battle_start alias tds_mp_turn_regen_scene_battle_turn_end turn_end #-------------------------------------------------------------------------- # * Battle Start #-------------------------------------------------------------------------- def battle_start # Run Original Method tds_mp_turn_regen_scene_battle_battle_start # Set Game Party Members MP to 0 $game_party.members.each {|m| m.mp = 10} $game_party.members.each {|m| m.mp = 10} # Refresh Status refresh_status end #-------------------------------------------------------------------------- # * End Turn #-------------------------------------------------------------------------- def turn_end # Run Original Method tds_mp_turn_regen_scene_battle_turn_end # Increase Game Party Members HP by 1 $game_party.alive_members.each {|m| m.mp += 10} # Refresh Status refresh_status endend
Thanks

