Experience Rate Modifier

In one of my projects I change the magic attribute to "intelligence" and I'd like for the character's experience rate to increase proportionately with his intelligence stat.   The notetag would probably have to A) specify what parameter the experience rate is based on 😎 specify how many points of that parameter are required to increase the rate by 1%.   For example, 1 would make it so that 50 intelligence increased the experience rate by 50%.    10 would make it so that 50 intelligence increased the experience rate by 5%.  
Uh....hm.

Only thing I can think of, is using a state to do this. There's an Auto Passive States plugin that might be able to help you out with that.
Oh hmm I have that plugin...so I'd give every char the state and what would it do exactly? How would it change the exp rate based on the parameter?
This is all I will probably do for this one.

Put in <expRate:0.10>

to have that actor have a passive 10% increase in exp.

Of course this can be expanded on greatly but it is step in a direction.

Code:
Game_Actor.prototype.gainExp = function(exp) {	var actor = this.actor();    var newExp = this.currentExp() + Math.round(exp * this.finalExpRate());		if(actor.meta.expRate !== "undefined"){	var expRate = actor.meta.expRate;	newExp += newExp*expRate;	};    this.changeExp(newExp, this.shouldDisplayLevelUp());};
Here, see if it works for you:

http://pastebin.com/ahQPmtCV
Thank you so much!  Hmm doesn't appear to be working, trying to make sure i'm not doing something wrong...

It seems as though whoever has the highest parameter/rate is conferring the bonus to the entire party, instead of keeping the exp rates separate.
That's strange, it works fine for me. Ah, I didn't change how the received exp is displayed in the battle message (it shows just the troop's base exp), so check the exp of each party member before and after some fight to see if they are really getting the same amount of exp while having different parameter values, please.
Yeah - even though the msg says something else - they get the boost, but they all get the exact same amount of exp.   
What other plugins are you using? What values are you using in the parameters of my plugin?Try it in a new project to see if it's working.
Ahh I tried it in a new project and it does work.  I'm using quite a number of plug ins; will have to spend some time to figure out what is causing the conflict.  Thanks again for the script.

Original thread: https://forums.rpgmakerweb.com/threads/experience-rate-modifier.49099/