Change starting (Not max) MP

Should be something simple? Hopefully.


I want the player and the enemies to start with zero mana points in combat, and also the player at the start of the game, but I imagine that's easier solved with eventing.
Got carried away a bit. This should do the trick.

Spoiler
#==============================================================================
#  This Snippets causes all battlers to start with MP other than max. 
#  Compability: High
#  Note: If there is a compatibility issue, place this snippet below all scripts.
#==============================================================================
# Settings
#==============================================================================
module MP_SETUP
    # The 0 below is the starting mp for all players and enemies.
    # The 0 below is not limited to just a number. For example, "10" would 
    # starting mp of 10 but "mmp * 0.50" is starting mp of 50% of maxmp.
    # "mdf * 0.05" is starting mp of 5% of magic defense.
    MP = "0"
end
#==============================================================================
# End Settings
#==============================================================================
#==============================================================================
# ** Game_Actor
#------------------------------------------------------------------------------
#  This class handles actors. It is used within the Game_Actors class
# ($game_actors) and is also referenced from the Game_Party class ($game_party).
#==============================================================================
class Game_Actor < Game_Battler
  #--------------------------------------------------------------------------
  # * Setup
  #--------------------------------------------------------------------------
  alias advt_setup_mp setup
  def setup(actor_id)
    advt_setup_mp(actor_id)
    @mp = eval(MP_SETUP::MP||"0").to_i
  end
end
#==============================================================================
# ** Game_Enemy
#------------------------------------------------------------------------------
#  This class handles enemies. It used within the Game_Troop class 
# ($game_troop).
#==============================================================================
class Game_Enemy < Game_Battler
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  alias advt_initialize_mp initialize
  def initialize(index, enemy_id)
    advt_initialize_mp(index, enemy_id)
    @mp = eval(MP_SETUP::MP||"0").to_i
  end
end

Original thread: https://forums.rpgmakerweb.com/threads/change-starting-not-max-mp.59920/