How to make TP damage skill?(Visustella)

I used Battle core,Skills and state core and EnhancedTPSystem.The help file is complex and I trouble in precisely locating the position of the problem I want to solve.
I want to make a skill that can decrease actor's TP.Actor1 release the skill and Actor2 get 2 TP damage .Which notetag or JS code should I write?
By the way,I also haven't find out a way to display state icon on the top of the sideview actors as well.(like the picture below)
If anyone know how to change settings to achieve this I would appreciate it.:LZSproud:
1752081694082.png
Well, the only way to change TP in the game engine is a Common Event. So you are looking at an action sequence for the skill. This is the bit in Battle Core you should be looking at:

MECH: HP, MP, TP
- Alters the HP, MP, and TP values for unit(s).
- Positive values for healing. Negative values for damage.

Targets:
- Select unit(s) to receive the current action's effects.

HP, MP, TP:

Rate:
- Changes made to the parameter based on rate.
- Positive values for healing. Negative values for damage.

Flat:
- Flat changes made to the parameter.
- Positive values for healing. Negative values for damage.

Damage Popup?:
- Display a damage popup after?
The state icons come from VS Visual State Effects
Code:
<JS Post-Apply>
target.gainTp(-x);
</JS Post-Apply>

Put this in your skill's note and replace 'x' with the number or formula dictating how much TP you want the target to lose.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-tp-damage-skill-visustella.178820/