public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

YEP Enhanced TP: Disable TP generation on certain skills

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: YEP Enhanced TP: Disable TP generation on certain skills
  • Original author: Shake0615
  • Original date: April 21, 2018
  • Source thread: https://forums.rpgmakerweb.com/threads/yep-enhanced-tp-disable-tp-generation-on-certain-skills.94369/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Requests

Summary

I'm looking for an edit to the Deal HP DMG parameter of YEP_Enhanced TP.js plugin. I want to be able to restrict TP generation on HP DMG to skills that are tagged with Skill Type 2 in the database (Default, I believe is called Special). All other skills will not generate TP. I'd appreciate any help on this. Thanks! The calculation appears to be around this area of the code in lines 3766-3778 but I don't know how to check to see if an attack with the element "Normal Attack"...

Archived First Post

I'm looking for an edit to the Deal HP DMG parameter of YEP_Enhanced TP.jsplugin. I want to be able to restrict TP generation on HP DMG to skills that are tagged with Skill Type 2 in the database (Default, I believe is called Special). All other skills will not generate TP. I'd appreciate any help on this. Thanks!

The calculation appears to be around this area of the code in lines 3766-3778 but I don't know how to check to see if an attack with the element "Normal Attack" was used.

Code:
Yanfly.ETP.Game_Action_executeHpDamage = Game_Action.prototype.executeHpDamage;
Game_Action.prototype.executeHpDamage = function(target, value) {
    Yanfly.ETP.Game_Action_executeHpDamage.call(this, target, value);
    var user = this.subject();
    var dmg = target.result().hpDamage;
    if (dmg > 0) {
      if (target) target.chargeTpByDamageType(user, dmg, 'takeHpDmg');
      if (target) this.allyTpGain(target, dmg, 'allyHpDmg');
      if (user) user.chargeTpByDamageType(target, dmg, 'dealHpDmg');
    } else if (dmg < 0) {
      if (user) user.chargeTpByDamageType(target, dmg, 'healHpDmg');
    }
};

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#039#rpg-maker-archive#js-requests

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar