Different Skill Cost depending on the class?

I want to have a not repeated skill on the database which will have different cost depending on the class of the user. For example, if a Mage uses Fire will cost 10MP but if a Sorceress uses Fire It will cost 15TP. i'm trying to achieve this since I don't want to have classes with both costs. I think that I can achieve this with Yanfly Skill Cost Manager and the following notetag:

<custom cost requirement> string string</custom cost requirement>Something like: if actor class = 1,3,5 cost = 15 tp
                        else
                        10 mp

I don't know if this is possible in this way or another, any comment will be appreciated.
Are you able to reference the current subject (eg: whoever's choosing the action)?

Otherwise you'd have to do something like

Code:
[1,3,5].include?(BattleManager.actor.class.id) ? 15 TP : 10 MP
I don't know how you would specify the actual cost.
Well graphically explained, something like this?:

Capturadepantalla19_zps7e30c339.png
It should be evaluated so whatever tag yanfly's using to allow you to specify ruby statements is where you would put it.
didn't work  🙁

Sintiacutetulo_zps336bd0c3.png

EDIT: This is how the skills that produced the error is set. The third notetag is from Kread-ex multiple skill types, I'm using that to complement the main idea of not repeating stuff in database. Now I think that the problem is caused due to the include? method being overwritten.


EDIT 2: Moved multiple skill types in the slot above and the error disappeared, but the skill wasn't displayed on the command of an actor with the class #20. Now see Edit 3.

Sintiacutetulo2_zps78f0ab0e.png

EDIT 3: Placed multiple skill types in the last slot and the skill is displayed again. I read more about Skill cost manager and I have to specify the custom cost to set a requirement, not specify both things in the same notetag so now it looks like the following picture. I'm missing how to set in the custom cost requirement to eval the actor class... again, and I'm not sure if writing 15 TP on custom cost is right.

Sintiacutetulo3_zpse2cfd786.png
I didn't look at yanfly's script.


You'll have to figure out how to specify the TP cost...
I'll give up with this after long, will have to use duplicated or different skills for actors, thanks anyway hime!
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/different-skill-cost-depending-on-the-class.15674/