Magic Attack to Zero

Okay, so I have been annoyed by this for a while now.

In RPG Maker you are able to make a character's MP start off and stay at zero, but I also wish to make any characters that have no MP to start with no Matk. I will have a monk class that focuses on raw attacks with basic attacks and TP only, so it bugs me when I see "0 MP" but "1Matk".

If there is a script, simple solution or if it is simply impossible to do I would appreciate some answers :3
This scriptlet should work :

#==============================================================================# ** DataManager#==============================================================================module DataManager #-------------------------------------------------------------------------- # ALIAS - Load Database #-------------------------------------------------------------------------- class << self unless method_defined?🙂matk_VIy46M8n_dm_load_database) alias_method🙂matk_VIy46M8n_dm_load_database, :load_database) end end def self.load_database(*args, &block) matk_VIy46M8n_dm_load_database(*args, &block) load_notetags_mat end #-------------------------------------------------------------------------- # Load Notetags MAT #-------------------------------------------------------------------------- def self.load_notetags_mat for obj in $data_actors next if obj.nil? obj.load_notetags_mat end end end # DataManager#==============================================================================# ** RPG::BaseItem#==============================================================================class RPG::BaseItem #-------------------------------------------------------------------------- # Public Instance Variables #-------------------------------------------------------------------------- attr_reader :no_mat attr_reader :no_mat_equip #-------------------------------------------------------------------------- # Load Notetags MAT #-------------------------------------------------------------------------- def load_notetags_mat @no_mat = false @no_mat_equip = false self.note.split(/[\r\n]+/).each { |line| case line when /<no_mat>/i @no_mat = true when /<no_mat_equip>/i @no_mat_equip = true end } end end # RPG::BaseItem#==============================================================================# ** Game_Actor#==============================================================================class Game_Actor < Game_Battler #-------------------------------------------------------------------------- # * ALIAS - Get Base Value of Parameter #-------------------------------------------------------------------------- unless method_defined?🙂matk_nTQssHzp_ga_param_base) alias_method🙂matk_nTQssHzp_ga_param_base, 😛aram_base) end def param_base(param_id, *args, &block) return 0 if param_id == 4 && actor.no_mat == true # MAT matk_nTQssHzp_ga_param_base(param_id, *args, &block) end #-------------------------------------------------------------------------- # * SUPER - Get Reduced Value of Parameter #-------------------------------------------------------------------------- def param_min(param_id, *args, &block) return 0 if param_id == 4 && actor.no_mat == true # MAT super(param_id, *args, &block) end #-------------------------------------------------------------------------- # * ALIAS - Get Added Value of Parameter #-------------------------------------------------------------------------- unless method_defined?🙂matk_nTQssHzp_ga_param_plus) alias_method🙂matk_nTQssHzp_ga_param_plus, 😛aram_plus) end def param_plus(param_id, *args, &block) return 0 if param_id == 4 && actor.no_mat_equip == true # MAT matk_nTQssHzp_ga_param_plus(param_id, *args, &block) end end # Game_ActorEDIT: I spruced the code up a little bit since the previous code could allow magic users out of MP to be set to zero Magic Attack. In the actor note field within the database, just put in '<no_mat>' and MAT will be set to zero for that person.MAT will still show up if the character equips something with MAT on it, but eh. Add '<no_mat_equip>' to block the addition of MAT from equipped gear.
Oh my god, if this works you are my hero sir! :3
Whoops, updated the scriptlet again. I accidentally left out a portion of the code that was in another section. Should work fine now.
And I just use this as a normal script? Not putting it anywhere in particular?
Yeap, just add the scriptet as you would any other add-on script.


Also, updated the code one last time to add the ability to block MAT from equipped gear ('<no_mat_equip>').
Darn, my character still has Matk. I guess all the scripts I have are messing with yours.

Sorry to hassle you Exhydra.
Hmm ... and you are putting '<no_mat>' and/or '<no_mat_equip>' into the actor notetag in the database?

mat-actor-notetag-database.png

If you are putting in the actor notetags, you might try putting the scriptlet below a few of the battle or actor-oriented scripts. Or if you wanted to list which scripts you are using, I could tinker with adding some compatibility.
I did do that, just a question, what site do I put my screenshots so that I can link them on here? The forums won't let me use my usual one..

Edit: I am not sure, I will tinker myself for a bit and reply to you.

And, moved it around enough. Bam! It worked!!!!

You are my hero! :3 Thank you very much!

(Probably a little too many Exclamation marks haha)

Original thread: https://forums.rpgmakerweb.com/threads/magic-attack-to-zero.41764/