EXP System help please!

Hey everyone I really need help.

I want to make a system in which instead of gaining, say, each actor gaining 6 xp at the end of the battle,

each actor gains a different amount of xp based on their participation. So maybe an actor would get (actor's level * 1.5) xp for every time they used the attack command, double that when using a spell/skill, a little exp when using guard etc. Also a healer could get xp based on amount of hp healed. 

If someone could please help me with this I would grateful.

Note: Please do not direct me to dekita's exp control, it doesn't work the way I want to and besides, I can't use it for a commercial project (which is what I'm doing!)

Thank you!!!
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
If you're going by a script, then you'll probably need to tag each skill and add a lot of data to the script for it to know when and how much EXP to add.


There might be an alternative that has several other restrictions: using the skill's damage formulas.


in front of the regular damage formula, check if the skill user is an actor and if yes, add EXP to that user.


That doesn't allow you to check the exp-price of the enemies or make variable EXP for different actors, but it might be a possible solution.
Sorry, being a n00b with the damage formula, can you provide the exact formula to check if its an actor and add EXP to that actor?

Original thread: https://forums.rpgmakerweb.com/threads/exp-system-help-please.21140/