HELP: Enemies are no longer doing anything!

Been working with RPG Maker for only a few weeks now. Everything was running fine until I noticed that my enemies no longer did anything! They don't attack! So far I've only got the default troops. I never messed with the enemy settings, and the only troop settings I changed was when I was implementing conditions to steal items. But even when I was troubleshooting and deleted the event entirely, they still won't attack! 
What Plugins do you currently have installed? What battle system are you using? Can you take some screenshots of your current troops and enemies you're having issues with so that we can see how it's set up and the enemies patterns.

Can't help you unless you provide us with more info.

Regards,

Moe
I actually just figured out it was a plugin I installed called LevelMyTP by Pareidolon. I delete it and everything works fine. It somehow messed with the enemy settings but I'm not sure how, I'll paste the script code for the plugin if that'll help. 

/*:

 * @plugindesc TP at start of battle is equal to level.

 * @author pareidolon

 * @help Simply replaces the random starting TP with the actor's level.

 * Setting your character to Preserve TP will undo this even if TP is lower.

 * At level 99 your initial TP will become 100.

 * If extending both level and max TP you may see unusual starting values.

 * In that case simply edit the plugin to remove the value 1.0051.

 * 

 * All new content is free to use under CC BY-SA 4.0

 * Please credit the contributor pareidolon at rpgmaker.net

 */

 

(function() {

 

Game_Battler.prototype.initTp = function() {

    this.setTp(Math.round(this.level * 1.0051));

};

 

})();

 

A lot simpler code than I thought, any idea how this could affect my enemy and/or troop settings?
You haven't done any changes to skill #1, have you? That is the default attack skill, and must be left as attack, unless you are using a plugin to alter it.


If you have plugins, disable them all and test again to see if it still happens. If it doesn't happen when you disable all the plugins, enable them again one at a time, testing in between each one (if you're just using battle test, make sure you save each time you disable/enable a plugin as well, as it doesn't do it or prompt you by default). When it starts happening again, the last plugin you enabled is the one that's causing it, and you should check the settings to see that you've got everything correct.
Yep I turn off the LevelMyTP plugin and everything runs fine. And then I turned off everything except this plugin and it's definitely what causes the problem. So we know it's not conflicting with another plugin. There's something in this code that affects the enemies and causes them to not do anything during battle.

(function() {

 

Game_Battler.prototype.initTp = function() {

    this.setTp(Math.round(this.level * 1.0051));

};

 

})();

 

Now I would love for this plugin to work correctly, but I'm not a programmer and have no idea what this little bit of code means. 

Original thread: https://forums.rpgmakerweb.com/threads/help-enemies-are-no-longer-doing-anything.55190/