MV Does this plugin have Plugin Commands?

So I'm trying to get a DoT state to show the damage popup (dmg numbers) since the damage is calculated in a <Custom Regenerate Effect> notetag. The usual startDamagePopup() function won't work here since I'm using LTBS (LeCode's Tactical Battle System), which has its own plugin extension: LeTBS_DamagePopupEX.js (this is the plugin I'm referring to in the thread's title).

The plugin's help section says a plugin command can be used to force a popup to show:
JavaScript:
 * ============================================================================
* Force Popup
* ============================================================================
*
* You can force a popup on an entity using a plugin command
* LeTBS ShowPopup [Entity] Text(...) FontSize(...) Color(...) IconL(...) IconR(...)
*
* The parameters after Text are optional. Replace the dots with wanted values.
* For more details, see the documentation page about plugin commands.
Edit: LTBS Documentation/Demo
However, when I peer into the plugin's code, I find no reference to this plugin command whatsoever!
Spoiler: LeTBS_DamagePopupEX.js
JavaScript:
/*
#=============================================================================
# LeTBS: Damage Popup EX
# LeTBS_DamagePopupEX.js
# By Lecode
# Version 1.5
#-----------------------------------------------------------------------------
# TERMS OF USE
#-----------------------------------------------------------------------------
# https://github.com/LecodeMV/leTBS/blob/master/LICENSE.txt
#-----------------------------------------------------------------------------
# Version History
#-----------------------------------------------------------------------------
# - 1.0 : Initial release
# - 1.1 : Support move points popup
# - 1.2 : Added text popup
# - 1.3 : Move points popup are correctly supported
# - 1.4 : Update to support the new anchor from TBSEntity_Sprite
# - 1.5 : Fixed a bug where state popups would overlap with damage ones
#       : Fixed a bug causing blank popups to be displayed
#=============================================================================
*/
var Imported = Imported || {};
Imported["LeTBS_DamagePopupEX"] = true;

var Lecode = Lecode || {};
Lecode.S_TBS.DamagePopupEX = {};
/*:
* @plugindesc Improve popups and show states alterations
* @author Lecode
* @version 1.5
*
* @help
* ============================================================================
* Introduction
* ============================================================================
*
* This plugin add some extra features to the popup display for LeTBS.
* The popup system is also modified to display the damage in chain.
*
* ============================================================================
* Force Popup
* ============================================================================
*
* You can force a popup on an entity using a plugin command
* LeTBS ShowPopup [Entity] Text(...) FontSize(...) Color(...) IconL(...) IconR(...)
*
* The parameters after Text are optional. Replace the dots with wanted values.
* For more details, see the documentation page about plugin commands.
*
* ============================================================================
* WARNING: Work In Progress
* ============================================================================
*
* The plugin is in WIP state currently. Most of the features are unexploited.
*/
//#=============================================================================


/*-------------------------------------------------------------------------
* Get Parameters
-------------------------------------------------------------------------*/
Lecode.S_TBS.DamagePopupEX.shiftY = 32;



/*-------------------------------------------------------------------------
* TBSEntity
-------------------------------------------------------------------------*/
TBSEntity.prototype.prepareExtraPopups = function () {
    var sprite = this._sprite;
    sprite._popupsInfo.movePoints = this.getMovePoints();
};

Lecode.S_TBS.DamagePopupEX.oldTBSEntity_onTurnEnd = TBSEntity.prototype.onTurnEnd;
TBSEntity.prototype.onTurnEnd = function () {
    this.prepareExtraPopups();
    Lecode.S_TBS.DamagePopupEX.oldTBSEntity_onTurnEnd.call(this);
};

TBSEntity.prototype.addTextPopup = function (text) {
    this._sprite.addTextPopup(arguments);
};

TBSEntity.prototype.addTextIconPopup = function (text, icL, icR, fontSize) {
    this._sprite.addTextIconPopup(arguments);
};

Lecode.S_TBS.DamagePopupEX.oldTBSEntity_changeMovePoints = TBSEntity.prototype.changeMovePoints;
TBSEntity.prototype.changeMovePoints = function (nbr) {
    /*Lecode.S_TBS.DamagePopupEX.oldTBSEntity_changeMovePoints.call(this, nbr);
    if (nbr !== 0)
        this._sprite.addExtraPopup("movePoints", [nbr]);*/
};

/*-------------------------------------------------------------------------
* TBSEntity_Sprite
-------------------------------------------------------------------------*/
Lecode.S_TBS.DamagePopupEX.oldTBSEntitySprite_initialize = TBSEntity_Sprite.prototype.initialize;
TBSEntity_Sprite.prototype.initialize = function (battler, entity) {
    Lecode.S_TBS.DamagePopupEX.oldTBSEntitySprite_initialize.call(this, battler, entity);
    this._popupsInfo = {};

    this._popups.push = function (spriteDmg) {
        //- If inserted sprite dmg isn't void
        if (spriteDmg.children.length > 0) {
            this.shiftPreviousPopups();
            Array.prototype.push.call(this._popups, spriteDmg);
        }
    }.bind(this);
};

Lecode.S_TBS.DamagePopupEX.oldTBSEntitySprite_addPopup = TBSEntity_Sprite.prototype.addPopup;
TBSEntity_Sprite.prototype.addPopup = function () {
    var result = this._battler.result();
    Lecode.S_TBS.DamagePopupEX.oldTBSEntitySprite_addPopup.call(this);
    var addedStates = result.addedStateObjects();
    var removedStates = result.removedStateObjects();
    while (addedStates.length > 0) {
        this.addExtraPopup("addedState", [addedStates.shift()]);
    }
    while (removedStates.length > 0) {
        this.addExtraPopup("removedState", [removedStates.shift()]);
    }
    this._popupsInfo.movePoints = this._entity.getMovePoints();
};

TBSEntity_Sprite.prototype.addExtraPopup = function (type, args) {
    var sprite = new Sprite_Damage();
    sprite.x = this.x;
    sprite.y = this.y - this.height;
    sprite.extraSetup(type, args);
    this._popups.push(sprite);
    BattleManagerTBS.getLayer("movableInfo").addChild(sprite);
};

TBSEntity_Sprite.prototype.shiftPreviousPopups = function (sign) {
    sign = 1 || sign;
    var shift = Lecode.S_TBS.DamagePopupEX.shiftY;
    for (var i = 0; i < this._popups.length; i++) {
        var popup = this._popups[i];
        popup.y -= shift * sign;
    }
};

TBSEntity_Sprite.prototype.addTextPopup = function () {
    this.addExtraPopup("text", arguments[0]);
};

TBSEntity_Sprite.prototype.addTextIconPopup = function () {
    this.addExtraPopup("textIcon", arguments[0]);
};


/*-------------------------------------------------------------------------
* Sprite_Damage
-------------------------------------------------------------------------*/
Sprite_Damage.prototype.extraSetup = function (type, args) {
    if (type === "addedState")
        this.createAddedStates(args[0]);
    else if (type === "removedState")
        this.createRemovedStates(args[0]);
    else if (type === "movePoints")
        this.createMovePoints(args[0]);
    else if (type === "text")
        this.createText(args[0], args[1], args[2]);
    else if (type === "textIcon")
        this.createTextIcon(args[0], args[1], args[2], args[3], args[4]);
};

Sprite_Damage.prototype.createAddedStates = function (state) {
    var text = "+";
    var textW = this._damageBitmap.measureTextWidth(text);
    var w = Window_Base._iconWidth + 2 + textW;
    var h = Window_Base._iconHeight;
    var sprite = this.createExtraChildSprite(w, h);
    this.drawIcon(sprite, state.iconIndex, 0, 0);
    var y = h / 2 - sprite.bitmap.fontSize / 2;
    this.drawText(sprite, text, Window_Base._iconWidth + 2, y, w);
};

Sprite_Damage.prototype.createRemovedStates = function (state) {
    var text = "-";
    var textW = this._damageBitmap.measureTextWidth(text);
    var w = Window_Base._iconWidth + 2 + textW;
    var h = Window_Base._iconHeight;
    var sprite = this.createExtraChildSprite(w, h);
    this.drawIcon(sprite, state.iconIndex, 0, 0);
    var y = h / 2 - sprite.bitmap.fontSize / 2;
    this.drawText(sprite, text, Window_Base._iconWidth + 2, y, w);
};

Sprite_Damage.prototype.createMovePoints = function (value) {
    var text = value < 0 ? "-" : "+";
    var textW = this._damageBitmap.measureTextWidth(text);
    this.createDigits(0, value);
    var digits = this.children[this.children.length - 1];
    var w = textW + digits.width + 2;
    var h = digits.height;
    var sprite = this.createExtraChildSprite(w, h);
    sprite.dy = 1;
    sprite.x = - this.digitWidth() * 0.8;
    var y = h / 2 - sprite.bitmap.fontSize / 2;
    var x = textW;
    this.drawText(sprite, text, 12, y, w);
    this._flashColor = [175, 175, 0, 160];
    this._flashDuration = 90;
};

Sprite_Damage.prototype.createText = function (text, fontSize, color) {
    fontSize = fontSize || 28;
    var textW = this._damageBitmap.measureTextWidth(text);
    var w = 2 + textW;
    var h = fontSize + 2;
    var sprite = this.createExtraChildSprite(w, h);
    this.drawText(sprite, text, 1, 0, w, null, color);
};

Sprite_Damage.prototype.createTextIcon = function (text, icL, icR, fontSize, color) {
    fontSize = fontSize || 28;
    var textW = this._damageBitmap.measureTextWidth(text);
    var w = 2 + textW + Window_Base._iconWidth +
        (icL ? Window_Base._iconWidth : 0) +
        (icR ? Window_Base._iconWidth : 0);
    var h = Math.max(Window_Base._iconHeight, fontSize) + 2;
    var sprite = this.createExtraChildSprite(w, h);
    if (icL)
        this.drawIcon(sprite, icL, 0, 0);
    this.drawText(sprite, text, Window_Base._iconWidth + 2, 0, w, null, color);
    if (icR)
        this.drawIcon(sprite, icR, textW + Window_Base._iconWidth, 0);
};

Sprite_Damage.prototype.createExtraChildSprite = function (w, h) {
    var sprite = new Sprite();
    sprite.bitmap = new Bitmap(w, h);
    sprite.anchor.x = 0.5;
    sprite.anchor.y = 1;
    sprite.y = -40;
    sprite.ry = sprite.y;
    sprite.dy = 0;
    this.addChild(sprite);
    return sprite;
};

Sprite_Damage.prototype.drawText = function (sprite, text, x, y, maxWidth, align, color) {
    if (color)
        sprite.bitmap.textColor = color;
    sprite.bitmap.drawText(text, x, y, maxWidth, 28, align);
};

Sprite_Damage.prototype.drawIcon = function (sprite, iconIndex, x, y) {
    var bitmap = ImageManager.loadSystem('IconSet');
    var pw = Window_Base._iconWidth;
    var ph = Window_Base._iconHeight;
    var sx = iconIndex % 16 * pw;
    var sy = Math.floor(iconIndex / 16) * ph;
    sprite.bitmap.blt(bitmap, sx, sy, pw, ph, x, y);
};
I did a a ctrl-F on "ShowPopup" throughout the plugin, but only found 1 instance of it (in the help section). This leaves me to believe the plugin command isn't actually functional/implemented.

Is my hypothesis correct? Is the plugin command really not implemented? Or do I simply have the syntax incorrect when trying to use this plugin command?: LeTBS ShowPopup [Entity] Text(...)

Also, <DoT Formula: x> won't work as a solution since that notetag simply has no effect in an LTBS battle. I hope this is sufficient info to answer my question, and thx in advance!
There are no plugin commands.

Could you please remove the plugin from your post, and replace it with a link to where you got it from? If it exists, a forum thread or website that has some discussion about the plugin is far better than the code itself (as it will include usage instructions as well as a link to the code, should we need it).
also, you can check if it has plugin commands or not to search for it in the code
around this line:

FUNCTIONNAME.prototype.pluginCommand = function (1, 2, 3)

1, 2, 3 are mostly optional, sometimes it is used, other times it isn't.

otherwise, it would be noted in the helpfile section how to use it.
if it's not there, than a scriptcall otherwise if present.
Could you please remove the plugin from your post, and replace it with a link to where you got it from? If it exists, a forum thread or website that has some discussion about the plugin is far better than the code itself (as it will include usage instructions as well as a link to the code, should we need it).
Well, the plugin is only obtainable by downloading the entire Demo project, which is ~380Mb. In other words, it is not available as a standalone plugin. Also, several users have stated that the link for the Demo no longer works, so I am fortunate to have a copy of it. There is a thread for LTBS, but it's largely unhelpful/inactive. The only person who reads that thread that could be of any help is @Pharonix, but I usually just PM him directly instead. The plugin's documentation site has literally no mention on this subject either: https://lecodemv.github.io/leTBS/old/home.html (Demo project found there as well)

I've also tried attaching the JS file directly to the post, but it doesn't let me for some reason (it just crosses it out). Screenshot:
1608853339575.png


@Shaz What would you recommend I do given this situation? If I remove the contents of the spoiler, how would people see the plugin's code?

Edit: I wanted to also mention that the LTBS thread as well the documentation website are for the overall LTBS plugin as a whole and don't cover the LeTBS_DamagePopupEX.js plugin extension specifically.
tl;dr I just didn't feel like people would want to download 380Mb for something so insignificant. ¯\_(ツ)_/¯

Anyway, so I guess the example Plugin Command in this plugin's help section was a work in progress? Since there's no reference to any of it in the remaining code, I assume this is the case...which is rather unfortunate.😔
don't worry about it, if it's not available anywhere other than a large demo project which may or may not be available.

There are no plugin commands in that code, and I don't see any other way that it might pick up the commands either - no notetags, looking for comments in events, etc. Looks like they made a bit of a start but didn't get very far at all.
Looks like someone else had a similar problem here. Unfortunately I think they came away without a solution too.
I don't know much about the battle system, but it appears that if a plugin command were to be used, it would probably just call TBSEntity_Sprite.prototype.addPopup(). It appears that it should work similarly to calling the startDamagePopup() function you mentioned, so you'd just have to figure out how to call it from the LTBS entity (whatever that means).
I don't know much about the battle system, but it appears that if a plugin command were to be used, it would probably just call TBSEntity_Sprite.prototype.addPopup().
Hmm, I can't seem to find "addPopup()" anywhere in the plugin's code. Where did you find that?
Edit: Nvm, found it...somehow missed it on the 1st pass lol.
Edit2: @ramza Omg it worked!! Thank you so much!😂


@Wavelength This method should also work for the issue mentioned in the thread you linked. Should I share this with them over there? (I wanted to ask 1st since it might count as necro-posting)

Solution: BattleManagerTBS.activeEntity().addPopup();
Credit: @Pharonix for activeEntity() & @ramza for addPopup().
Thx guys, I couldn't have done this myself. 😛

Now if you don't mind, I'm gonna go treat myself to a slice of cake... 🙏
Go for it - just add a comment in your post saying I said it'd be okay for you to necropost. It's not that old and the OP did bump so might still be looking for a solution.

Original thread: https://forums.rpgmakerweb.com/threads/does-this-plugin-have-plugin-commands.131391/