How to make TP a damage type for skills to effect?

Hi,

I want to have my classes traits for elemental resistances effect how much TP is gained or lost when skills are used on an actor. I think this can be done by having TP be treated like HP or MP, but I can't figure out how.

Can anyone please help me?

If I have a skill add an effect for TP gain, it is not changed (increased or decreased) by traits of the class with elemental bonus/resistance to the element of the skill used and I would really like to figure out how since this doesn't do it either.

Thanks for any help!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-tp-a-damage-type-for-skills-to-effect.154016/