ok, heres what to do,
step 1 - make sure you have version 1.9 of the script, if not you can get it from my blog (link is in my spoiler)
step 2 - go to class Game_Actor < Game_Battler around line 1660
step 3 - put the following peice of code under other attr_reader methods
step 4 - below the attr_reader methods you should see a method called initialize, replace the method with this
Code:
alias old_initialize initialize
def initialize(actor_id)
old_initialize(actor_id)
@level_up_pts = 0
@atti_ptz = 0
@MAX_VIT = DPB::PSPDS::DEFAULT_MAX_VIT
@MAX_STR = DPB::PSPDS::DEFAULT_MAX_STR
@MAX_DEX = DPB::PSPDS::DEFAULT_MAX_DEX
@MAX_MAG = DPB::PSPDS::DEFAULT_MAX_MAG
@gain_mp_reg = true
end
def stop_mp_reg
@gain_mp_reg = false
end
step 5 - go to the very bottom of the script and you should find a method called "mag_option_stat_mods", within that method you should see
Code:
@actor.add_xparam(8, DPB::PSPDS::OPTION_4_MRG_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MRG_RAND_MIN, DPB::PSPDS::OP_4_MRG_RAND_MAX))
simply highlight that and replace it with
Code:
if @actor.gain_mp_reg
@actor.add_xparam(8, DPB::PSPDS::OPTION_4_MRG_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MRG_RAND_MIN, DPB::PSPDS::OP_4_MRG_RAND_MAX))
end
step 6 - you can now use a script call like this (replace X with an actors id )
Code:
$game_actors[X].stop_mp_reg
that will stop it for you, however i will update the whole script tonight to include this script call and "stopping" mp regen function for everything, e.g when you give a weapon mag it would still increase the mp regen
is there any other stats that you are wanting to stop ? if so let me know and il try include them, but for now imust leave, good luck with implimenting this in your game and if you cannotdo it i will upload the changes in an update tomorow
🙂