MV So i'm trying to do something with TP..

So i'm trying to figure out if i can use a script call, or one of Yanfly's Plugin's, and possibly a different method of changing this into where TP is used instead. In my new Project i'm trying to use TP as my gauge to drain when my actor (Knyne) transforms, instead this old method i used from SRD's video where it drains MP. If anyone could tell me how to do this, even with Javascripting i would be very happy! As i'm feeling just a tad bit stuck right now.. I got a lot of other things working, expect this.. ANd i don't wanna go any further until a method is used.

(This screenshot is from my very old work 5-6 years ago, but i took this since it works...)
Screenshot (367).png
I'm not sure how your transformation will behave exactly, but it does bring to mind of Trance from FF9. Yanfly did a tips and tricks video here for that. Maybe that will help?
I'm not sure how your transformation will behave exactly, but it does bring to mind of Trance from FF9. Yanfly did a tips and tricks video here for that. Maybe that will help?
I tried that, but i don't want it to auto activate. I want it to be a controllable command.
Try modifying the "Custom Passive Condition" code as follows. (I copied this directly from the wiki.)

JavaScript:
<Custom Passive Condition>
// Check if the party is in battle.
if ($gameParty.inBattle()) {
  // Default the user's trance state to false.
  user._trance = user._trance || false;
  // Sets the condition for the user to be either in the trance state or if the user's TP matches the user's MaxTP.
  condition = user._trance || user.isStateAffected(x); // Modified from user.tp === user.maxTp();
} else {
  // Otherwise, the condition is false.
  condition = false;
}
// If the condition passes...
if (condition) {
  // And if the user isn't in the trance state...
  if (!user._trance) {
    // Then play an animation as the user enters trance.
    user.startAnimation(120);
  }
  // Set the user's trance state to true.
  user._trance = true;
}
</Custom Passive Condition>

Have your command be a skill that applies a state to the user. Change the x in .isStateAffected(x) in the modified code to the ID # of your state.

I haven't tested this, and I'm not familiar with the plugin, so it may not work.
Try modifying the "Custom Passive Condition" code as follows. (I copied this directly from the wiki.)

JavaScript:
<Custom Passive Condition>
// Check if the party is in battle.
if ($gameParty.inBattle()) {
  // Default the user's trance state to false.
  user._trance = user._trance || false;
  // Sets the condition for the user to be either in the trance state or if the user's TP matches the user's MaxTP.
  condition = user._trance || user.isStateAffected(x); // Modified from user.tp === user.maxTp();
} else {
  // Otherwise, the condition is false.
  condition = false;
}
// If the condition passes...
if (condition) {
  // And if the user isn't in the trance state...
  if (!user._trance) {
    // Then play an animation as the user enters trance.
    user.startAnimation(120);
  }
  // Set the user's trance state to true.
  user._trance = true;
}
</Custom Passive Condition>

Have your command be a skill that applies a state to the user. Change the x in .isStateAffected(x) in the modified code to the ID # of your state.

I haven't tested this, and I'm not familiar with the plugin, so it may not work.
Hmm, is it possible for me to change
"if (!user._trance) {
// Then play an animation as the user enters trance.
user.startAnimation(120);"

To something that makes a Common Event activate?
Moderator note: Moving to Plugin Support, as that seems to be the way the conversation is going
To something that makes a Common Event activate?

RPG Maker MZ Script Call Reference

Or, if you're using MV.
Oh that just might help me out a bunch, thanks, mate!

Original thread: https://forums.rpgmakerweb.com/threads/so-im-trying-to-do-something-with-tp.134937/