Change exparameters mid-game

In the event command menu there is only the option to change parameters.  However, I want to give a couple of characters a bonus increase in an exparam - EVA in this case, but it could be any one of the others.

Is this possible?  And while I'm at it, could this also be done with sp-parameters?

Thank you.
Actually, I don't think so.

What you could do was creating an item that increases the EVA and/or the SP-Parameters to the value you want to, and then, through an Event Command, use this item on the characters.

From what I know, that's the closest you can get to changing these Parameters.
Probably not by default, but you could add new instance variables to Game_BattlerBase or any of its subclasses and modify these methods (line 272+):

Code:
#--------------------------------------------------------------------------# * Get Ex-Parameter#-------------------------------------------------------------------------- def xparam(xparam_id)  features_sum(FEATURE_XPARAM, xparam_id)end#--------------------------------------------------------------------------# * Get Sp-Parameter#--------------------------------------------------------------------------def sparam(sparam_id)  features_pi(FEATURE_SPARAM, sparam_id)end
@Skyninja

Thank you for the suggestion.  I may fall back on that if nothing else works, but at first glance, Iavra seems to have come up with a way.

@Iavra

Thank you for this.  I assume pasted below Materials and above Main.

What I can't work out, though, is what the script call would be if I wanted to, for example increase EVA for Actor 7 or CEV for Actor 5.

Could you give me an example that I can use as a base?

Thank you.
This would be a quick example for adding absolute values:

Code:
class Game_BattlerBase		alias :x_s_params_clear_param_plus :clear_param_plus	alias :x_s_params_xparam :xparam	alias :x_s_params_sparam :sparam		def clear_param_plus		super		@xparam_plus = [0] * 10		@sparam_plus = [0] * 10	end		def xparam_plus(param_id)		@xparam_plus[param_id]	end		def sparam_plus(param_id)		@sparam_plus[param_id]	end		def add_xparam(param_id, value)		@xparam_plus[param_id] += value		refresh	end		def add_sparam(param_id, value)		@sparam_plus[param_id] += value		refresh  	end		def xparam(xparam_id)		value = features_sum(FEATURE_XPARAM, xparam_id) + xparam_plus(xparam_id)		[value, 0].max	end	def sparam(sparam_id)		value = features_pi(FEATURE_SPARAM, sparam_id) +  sparam_plus(sparam_id)		[value, 0].max	end	end
Alternatively, you can use one of the dynamic features scripts, for example the one written by Shaz.

Those scripts allow you to dynamically add features during runtine, which not only dolves the problem of EX- and SP-Parameters, but lets you change other options as well.
I think I've got it now.

Thank you both.  Your help is much appreciated.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/change-exparameters-mid-game.40925/