Enemy TP

How do you set an enemies TP? I found a post online saying use self.tp = 100 but it doesn't seem to work.
Unfortunately my NPC skills need to use TP to work correctly as my Blue Mage class can learn those skills as well.
"self" isn't valid javascript, so that might be advice for an older version of RPGMaker using a different language.

Where are you trying to put the code to set their TP? Are you using any plugins to try and accomplish this?
"self" isn't valid javascript, so that might be advice for an older version of RPGMaker using a different language.

Where are you trying to put the code to set their TP? Are you using any plugins to try and accomplish this?
I figured you put it in the enemies Notes section, is that not right? And I don't know of any plugins that would help. Even yanflys plugin doesn't really seem to say how.
The notes do nothing on their own, they're just a place you can write text (notes) for yourself. Plugins can try to read the notes and look for specific text, which is where notetags come from.

A few solutions I can think of:

If you want the enemy to always have maximum TP, you can give it a TP Regeneration Trait of 100%.

If you want a specific troop to start with 100% but proceed normally after that, you can make a Troop Event with a Span of Battle on Turn 0 and uses Change Enemy TP to add 100 to their TP.

If you're using Yanfly's Enhanced TP plugin, you can assign custom TP modes to enemies the same way you set a custom default for an actor, and give different TP modes different starting (and maximum) values. If you don't assign a custom default, the enemies use the default mode you set in the plugin parameters.

If you were using MP instead of TP you could just change the MP Cost Rate to 0, but I'm assuming you actually want the other effects of TP in this case.
Thank you, got it working. Had to make an NPC TP mode and use the numerical value of it in the Notes not the name.
My personal preference, just for the sake of writing slightly fewer notetags, was to set my NPC TP mode as the default, make it not available to players, and manually specify each actor's default TP mode back to the "actor" mode- reasoning that I'll maybe have ~8 actors, and maybe ~40 enemies by the end.
My personal preference, just for the sake of writing slightly fewer notetags, was to set my NPC TP mode as the default, make it not available to players, and manually specify each actor's default TP mode back to the "actor" mode- reasoning that I'll maybe have ~8 actors, and maybe ~40 enemies by the end.
I agree, this is pretty much what I just ended up doing lol

Original thread: https://forums.rpgmakerweb.com/threads/enemy-tp.109218/