RPG Maker Forums

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.

#==============================================================================# ** 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
If you need more information, just let me know!

Thanks

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top