Lecode Tactical Battle System 0.77.2B

Anything new, Chaosicaa?
hey guys, have any of you tried to add healthbars or other info to the battlers? i think it would be a really useful feature.
I mean showing the healthbar above the battler graphic for example, or icons that show altered states like buffs or debuffs.
Any idea if any of this is currently possible?
hey guys, have any of you tried to add healthbars or other info to the battlers? i think it would be a really useful feature.
I mean showing the healthbar above the battler graphic for example, or icons that show altered states like buffs or debuffs.
Any idea if any of this is currently possible?

I thought about it, but figured that's what the status box was for.
I do admit, a health bar would probably be best.
States might make it a little too.... cluttered.
hey guys, have any of you tried to add healthbars or other info to the battlers? i think it would be a really useful feature.
I mean showing the healthbar above the battler graphic for example, or icons that show altered states like buffs or debuffs.
Any idea if any of this is currently possible?

At least in the version of the demo I'm using, there already are health bars under the battlers. I believe it's just a toggle in one of the plugins' settings.
hey guys, have any of you tried to add healthbars or other info to the battlers? i think it would be a really useful feature.
I mean showing the healthbar above the battler graphic for example, or icons that show altered states like buffs or debuffs.
Any idea if any of this is currently possible?
The Hp part is actually a pretty good idea. I had been looking for a way to reutilize hover ever since I was planning to drop mouse support.
85787-03ced173abcf440c72a2889608bbf336.jpg

Here's the code if anyone is interested:
Spoiler: LeTBS_EntityHud_Addon.js
Code:
/*-------------------------------------------------------------------------
* Mouse Hover replaced by Fire Emblem-like health bar on battlers
 - I recommend placing this at the very bottom of LeTBS_EntityHud.js so if it updates it removes this
 - Battler names will show on hover
 - Bars only hide on death
-------------------------------------------------------------------------*/
Window_TBSEntityHud.prototype.initialize = function (entity) {
    this._entity = entity;
    var width = this.windowWidth();
    var height = this.windowHeight();
    Window_Base.prototype.initialize.call(this, 0, 0, width, height);
    this.opacity = 0;
    //this.contentsOpacity = 0;
    this.refresh();
    this.updatePosition();
};
// Battler names will show only on hover
Window_TBSEntityHud.prototype.refresh = function () {
    this.contents.clear();
    this.resetFontSettings();
    var battler = this._entity.battler();
    //- Name
    var x = 0;
    var y = 0;
    var w = 46;
    this.contents.fontSize -= 4;
    this.changeTextColor(this.systemColor());
    this.leU_drawText(this.showName||"", "center", y);
    //y += this.contents.fontSize;
    x = this.contentsWidth() / 2 - w / 2;
    var color1 = this.hpGaugeColor1();
    var color2 = this.hpGaugeColor2();
    this.drawGauge(x, y, w, battler.hpRate(), color1, color2);
};
// Bars only hide on death
TBSEntity.prototype.showMiniHud = function () {
    if(this.battler().rpgObject().TagsLetbs.hideHudWindow) return;
    this._miniHud.showName = this._battler.name();
    this._miniHud.contentsOpacity = 255;
    this._miniHud.refresh();
};
TBSEntity.prototype.hideMiniHud = function () {
    this._miniHud.showName = "";
    if(this._dead) this._miniHud.contentsOpacity = 0;
    this._miniHud.refresh();
};
Lecode.S_TBS.EntityHud.oldTBSEntity_onDamage = TBSEntity.prototype.onDamage;
TBSEntity.prototype.onDamage = function (user) {
    Lecode.S_TBS.EntityHud.oldTBSEntity_onDamage.call(this, user);
    this._miniHud.refresh();
};
You could add more stuff by adding to Window_TBSEntityHud.prototype.refresh.

Edit: I made a slight edit to the code to keep its originality (I didn't realize hover was handled efficiently). Instead of just deleting the hover effect, names will show only when hovered but bars are always shown. I also added a gif.
@Adventurer_inc. just tried your code, works like a charm! thank you so much for sharing it.
Help me.... How to modify the timeline?
No matter how much hero raise hero's speed, the enemy takes second order.
[ally[78speed] - enemy[60speed] - ally[70speed] - enemy[50speed] .....]
I want to change this
[ally[78speed] - ally[70speed] - enemy[60speed] - ally[50speed] ...]
Help me.... How to modify the timeline?
No matter how much hero raise hero's speed, the enemy takes second order.
[ally[78speed] - enemy[60speed] - ally[70speed] - enemy[50speed] .....]
I want to change this
[ally[78speed] - ally[70speed] - enemy[60speed] - ally[50speed] ...]
You have fair turn distribution turned on.
Change it in the letbs config in the plugin manager
Hello! Is there a way to have the combat set to a 1 turn side battle, then return to the battle field?
I'm sorry to keep asking.
my character's focused_by_ai_for_offense = -800.
One of them changed 'focuse_by_ai_for_offense' to -200, and only monsters attack him. [I test monster offense behavior to attack lowest_enemy]
However, It is impossible to express this ai setting for status(provoke etc.)
Who know how to make provoke skill...
I got the demo to run, however when i choose the items tab, it crashes the game and says cannot read property "leTbs_scopeData" of null, i cannot find out whats causing the issue here.
I'm starting to get worried, I hope nothing unfortunate has happened to Chaosicaa and/or Lecode... It's been a while since we've heard anything, let alone an update.
I got the demo to run, however when i choose the items tab, it crashes the game and says cannot read property "leTbs_scopeData" of null, i cannot find out whats causing the issue here.

You are using an old version, that version crashes if you have no items and select that menu
ah i see, do you by any chance know where i can get a newer version? and also thank you
ok i downloaded the newest one and i am having an issue this one says: cannot read property 'tile anim of' defined
ok i downloaded the newest one and i am having an issue this one says: cannot read property 'tile anim of' defined

Are you building off the demo or did you just import the scripts
I am testing a few things off the demo
nevermind i got it to work, but now i am having a issue that says it cannot read property of "apply" of undefined

I found out the issue now it says "cannot read property fitting height of undefined" is there a specific order to put these plugins because i cannot figure out how to use this
nevermind i got it to work, but now i am having a issue that says it cannot read property of "apply" of undefined

I found out the issue now it says "cannot read property fitting height of undefined" is there a specific order to put these plugins because i cannot figure out how to use this

You need to make sure you have all the animations from the demo. The 772B one, if you're using that version.
There's a whole block of animations that are used, In particular the needed ones are:
Cast animation
Ally/Actor Placement
Enemy Placement

As these are actually called by the LETBS.js file.
Otherwise you'll need to configure those values in the plugin manager.

If you are using the demo provided by chaosiica for 0.77.2B, it works without any issues. (Search this thread for: LeTBS_0772B.zip)
Hi guys... I just wonder why every time I download the demo from dropbox, I can't get full file. It's even the project file isn't there

Original thread: https://forums.rpgmakerweb.com/threads/lecode-tactical-battle-system-0-77-2b.71572/