MV YEP_SkillCore & EnhancedTP Support

Background:
I am utilizing YEP_SkillCore & YEP_EnhancedTP plugins to streamline my skill system using different TP modes unlocked when actors reach certain levels.

Ideally, depending on which TP mode an actor has equipped would determine which of their learned skills are visible. I assume there is a way to do it by adding a code within the note tag of said skills calling on a certain TP mode, but I do not know how to code the desired effect:

JavaScript:
<Custom Show Eval>
  if CODE {
    visible = true;
  } else {
    visible = false;
  }
</Custom Show Eval>

Community assistance would be greatly appreciated. Thank you.
Bump
I assume there is a way to do it by adding a code within the note tag of said skills calling on a certain TP mode, but I do not know how to code the desired effect:
The bottom section of the Enhanced TP Mode documentation actually gives you the relevant script calls.

Code:
<Custom Show Eval>
visible=user.tpMode()==x;
</Custom Show Eval>

where x is the mode that will make the skill show up.
The bottom section of the Enhanced TP Mode documentation actually gives you the relevant script calls.

Code:
<Custom Show Eval>
visible=user.tpMode()==x;
</Custom Show Eval>

where x is the mode that will make the skill show up.
I will let you know once I have a chance to test it, thanks!
The bottom section of the Enhanced TP Mode documentation actually gives you the relevant script calls.

Code:
<Custom Show Eval>
visible=user.tpMode()==x;
</Custom Show Eval>

where x is the mode that will make the skill show up.
Turan, it worked. Thank you! SOLVED.
Spoke too soon. You can still see the skill when I switch to a different TP mode.

JavaScript:
<Custom Show Eval>
visible=user.tpMode()==10-level;
</Custom Show Eval>

I also tried this:

Code:
<Custom Show Eval>
visible=user.tpMode()==1;
</Custom Show Eval>
Spoke too soon. You can still see the skill when I switch to a different TP mode.
How is that first one supposed to work? "level" by itself is a variable not declared in that notetag, so that would return undefined.

If you mean user.level, why would that have an inverse relationship to the TP mode? It seems like that would quickly get into negative values.

I also tried this:
That one should work if you're certain of what their TP mode is. You're saying you switch to a mode that's not #1 and the skill still shows up?
How is that first one supposed to work? "level" by itself is a variable not declared in that notetag, so that would return undefined.

If you mean user.level, why would that have an inverse relationship to the TP mode? It seems like that would quickly get into negative values.


That one should work if you're certain of what their TP mode is. You're saying you switch to a mode that's not #1 and the skill still shows up?
The TP mode is named "10-level". Should I safely rename it to "10 Level" so it does not disrupt the code?
Names are irrelevant, that function is going to return a number - TP mode 1, 2, 3, etc.

Exactly the way they're designated in the plugin parameters.
Names are irrelevant, that function is going to return a number - TP mode 1, 2, 3, etc.

Exactly the way they're designated in the plugin parameters.
When I use the original recommended script, I cannot see the starting skill in TP mode 1. It shows up invisible. Code below.


JavaScript:
<Custom Show Eval>
visible=user.tpMode()==1;
</Custom Show Eval>
I got it. If you look at the documentation for Enhanced TP, the tpMode() function is returning the mode itself, some kind of data structure.

tpModeId() will return the ID.
I got it. If you look at the documentation for Enhanced TP, the tpMode() function is returning the mode itself, some kind of data structure.

tpModeId() will return the ID.
Okay, now it works. Thank you.

Edit:
Adding the script in case anyone needs this in the future.

JavaScript:
<Custom Show Eval>
visible=user.tpModeId()==1;
</Custom Show Eval>

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/yep_skillcore-enhancedtp-support.152954/