Lecode Tactical Battle System 0.77.2B

sing a battle during an autorun event. That is, trigger autorun > stuff happens > battle processing > after battle more stuff happens > end autorun doesn't work, because the system hangs after the deployment phase. The battle starts without errors, but the move, attack, skill, etc window never shows up, forcing me to close the game. This was in the demo with nothing changed except of course a small autorun event on one of the battle maps.

I too noticed the hanging problem, but it's not particularly a bug. What happens is you hit the battle map, and it wants to run the autorun event.
The "bug" would be running non-LETBS tagged events.

Wth some autorun events, I found that using a second map for the battle, and if you win, it transfers to the correct place with the right switches works fine for me. The only time it wouldn't work is if you plan on having a thousand maps.
I like doing things this way, so my events don't interfere.
I like to make things event-heavy, so the less clutter on the battle map, the better for me.
I sometimes make the battle map the Post-battle map too, and to do this, I use switches that trigger on story-driven battles that when won, all the events I need to turn off disappear due to Switch (some switch) being flipped on.
Also how would I go about having an action point system where the characters have a set about of points per turn and skills cost set amounts? Like 10 points per turn with skills costing anywhere from 2-10 points when you use them. Instead of having one action it would be multiple actions per turn.
Don't bother with that for now, it's a feature I want to add soon. Before 1.0 (or actually for 1.0 specifically).

First, I'm having a hard time figuring out how to give different enemy troops different deployment cells. Mostly so multiple battles on the same map (particularly large maps) don't always have to start in the same locations. For now I can just use copies of the same map and transfer the player before battle, but I thought this might be a nice feature.
I'm not sure I understand. Do you mean to want random maps for battles ?

Third...how the heck do I get TP to display on the status windows? Been looking for it forever.
Oh :hswt:. I'll add it for the next patch, for sure.
As for the "Point" system
you could try this:
Theres a One-Time offense config in the main LETBS plugin.
Turn this off
Then what you can do is instead of mana, rename it something like AP, and give low values.
Then every skill will use 1 or 2 or 10 etc.
This would keep the "1 time move" but actors can make multiple attacks in one turn.
Then I think you would just need to set everyone's mp regeneration to 100%.
That way they "Recover" all their AP the next turn. Or you can use an event to cycle through all enemies/allies to recover 10 AP or whatever you want.
View attachment 68548

This works for the action point system, if you are still planning on adding it then great 🙂

How would I go about getting rid of the extra slots in the red box? Also when the enemy bat dies it disappears which is great, but I can still mouse over it and it counts as an obstacle that blocks line of site. How do I remove the bat completely from the battle after it dies?
Don't bother with that for now, it's a feature I want to add soon. Before 1.0 (or actually for 1.0 specifically).


I'm not sure I understand. Do you mean to want random maps for battles ?


Oh :hswt:. I'll add it for the next patch, for sure.

Any predictions on when your Side Effects plugin will make an appearance? That's like in my top 3 plugins list for sure. 🙂 Also any plans to make this compatible with Yanfly's Target Core? Being able to target specific targets on the whole map, like Lvl ? Flare, would be cool.
I'm not sure I understand. Do you mean to want random maps for battles ?

No no, sorry for the weak explanation. What I mean is assigning specific troops and/or enemies to specific enemy cell events when there are more cells available than enemies. This is so multiple battles triggered on large maps wont have enemies starting all over the place instead of a reasonable distance from the player. For example on this map:

Spoiler
ioL67eh.png

[/spoiler}

When the player encounters the bat between the two ponds, I'd like to limit possible enemy starting cells to the three events near it. And then do the same thing when the player encounters the bat over to the far right side. I guess the simplest way to say it, would be that I think it'd be really cool to have an option to have enemy starting cells be chosen within a number of tiles from the players' location when they trigger a battle.
Also when the enemy bat dies it disappears which is great, but I can still mouse over it and it counts as an obstacle that blocks line of site
Ok, I'll fix that.

Any predictions on when your Side Effects plugin will make an appearance?
I plan to do a side effects plugin for LeTBS only, I'm not sure about updating the current one tho, it's so old.

No no, sorry for the weak explanation. What I mean is assigning specific troops and/or enemies to specific enemy cell events when there are more cells available than enemies. This is so multiple battles triggered on large maps wont have enemies starting all over the place instead of a reasonable distance from the player
Use <Enemy Cell: Index> to set a precise starting cell for the enemy.
Hey. Don't have any issues. Just wanted to pop in and say thanks for making this plugin. I haven't actually used it yet (holding off until you have it a bit more fleshed out), but it's super promising and I'm so very glad you're still working on it. Just know that there's plenty of people who aren't posting that appreciate your work.
Hey. Don't have any issues. Just wanted to pop in and say thanks for making this plugin. I haven't actually used it yet (holding off until you have it a bit more fleshed out), but it's super promising and I'm so very glad you're still working on it. Just know that there's plenty of people who aren't posting that appreciate your work.

For real what this guy said! You are doing an amazing job. You and Pharonix are extremely helpful
I plan to do a side effects plugin for LeTBS only, I'm not sure about updating the current one tho, it's so old.

Oh that's what I meant. I know it probably won't be called exactly that, I'm just excited to get a version of it for this battle system at all 🙂
This is pretty nice, maybe for my next game I might use it.
Sorry for posting so much and constantly asking about this one but I still cant figure out how to get rid of the extra space in this window. I finally got rid of the extra text but the space is still there. I was looking in the windows.js file to see if there was something in there but I'm really new to this and have no idea what I'm looking for. Also a little bubble pops up to say what skill is being used but sometimes it covers the skill animation. Can I remove this window so that it doesn't block the skill animation? In the picture I use fire jet upwards and the window blocks the animation.


Edit: I also notice that if you play around with the "jump" of a projectile sometimes it makes the projectile start at the target and fly to the caster. Sometimes it depends on the range it is traveling. Like at 200 jump if i hit 3 or more squares away it will play correctly but any closer and it flies at me instead of the target.

Charged skills use the current turn to charge and then use up the entire next turn to cast. How do you set it so that when you finally cast it doesn't use up the turn? Otherwise you are immobile for 2 whole turns.
Me again! Another small thing. Is there any way to change the text of the confirmation at the start of battle? I'd like to change it from "Are you sure? Yes/No" to maybe "Begin battle? Confirm/Cancel" or some such.

Also, is there a way to change the z-axis (that is, on screen layering) of the squares that indicate movement and range? When I have fog, tints, etc. on my maps, they get a lot harder to see and I'd like to move them up if possible.

Thanks again for the awesome plugin! 🙂
Me again! Another small thing. Is there any way to change the text of the confirmation at the start of battle? I'd like to change it from "Are you sure? Yes/No" to maybe "Begin battle? Confirm/Cancel" or some such.

Thanks again for the awesome plugin! 🙂

That's extremely easy to do.

Open the ultilties plugin and go to line 373 It should read:
this._headerTexts = texts || ["Are you sure ?"];

Now unless I am mistaken, the text in between the quotes is fully editable with no effect on code.
Hi ! I'm quite new at RPG maker MV and this plugin looks very interesting !

I'm looking to make a flag entity and a win condition that goes with it like :

<LeTBS> Flag: 201
For my entity, i use flag "201" and this is my win condition :
LeTBSWinCds Add Defeat FlaggedEntity 201

But, if i do that, the plugin reply an error : Cannot read property '1' of undefined.

By digging a little bit, it may be looking for a "flagname" (seems logic because the win conditon need the name of the monster in the starting text) in the win condition file but i don't know how to put one to my flag...

Any help here ? :aswt2:
Also a little bubble pops up to say what skill is being used but sometimes it covers the skill animation. Can I remove this window so that it doesn't block the skill animation?
Normally the bubble is programmed to pop up below the user, if he faces upward. Seems like it's broken.

Charged skills use the current turn to charge and then use up the entire next turn to cast. How do you set it so that when you finally cast it doesn't use up the turn? Otherwise you are immobile for 2 whole turns.
I can add an option for that.

Me again! Another small thing. Is there any way to change the text of the confirmation at the start of battle? I'd like to change it from "Are you sure? Yes/No" to maybe "Begin battle? Confirm/Cancel" or some such.
I'll add some parameters for that in the next update.
For now, open LeTBS_Windows.js, look for the lines:
Code:
Window_TBSConfirm.prototype.initialize = function () {
    LeU_WindowConfirmation.prototype.initialize.call(this);
};
Replace them with:
Code:
Window_TBSConfirm.prototype.initialize = function () {
    LeU_WindowConfirmation.prototype.initialize.call(this);
    this._okText = "Confirm";
    this._cancelText = "Cancel";
    this._headerTexts = ["Begin Battle ?"];
    this.refresh();
};

But, if i do that, the plugin reply an error : Cannot read property '1' of undefined.

By digging a little bit, it may be looking for a "flagname" (seems logic because the win conditon need the name of the monster in the starting text) in the win condition file but i don't know how to put one to my flag...
Oh, there's a typo...
Replace the line 228 of LeTBS_WinConditions with:
Code:
this._defeatFlaggedEntities.push([flagId, flagName]);
Hi again !

Thanks you for the win condition, it was really that !

Looking forward for new versions !
Thanks for the answers 🙂 Found something else...the item command seems to be broken. Even in the demo with no changes, I get this error:

Spoiler
s7sluSE.png
Not sure what is wrong but the salvation skill in the demo does nothing. It does not pull or heal anyone.

Also Ice Prison locks the enemy inside of it but when its the enemies turn it creates an error.

Is it possible to make it so that skills can only be cast on certain players? Like a heal summon skill that can only be cast on something you summoned?
Thanks for the answers 🙂 Found something else...the item command seems to be broken. Even in the demo with no changes, I get this error:
Also Ice Prison locks the enemy inside of it but when its the enemies turn it creates an error.
They'll be fixed on the next update.

Not sure what is wrong but the salvation skill in the demo does nothing. It does not pull or heal anyone.
Ok, let me check it.

Is it possible to make it so that skills can only be cast on certain players? Like a heal summon skill that can only be cast on something you summoned?
No, not for now.
@Rem Rem
Is it possible to make it so that skills can only be cast on certain players? Like a heal summon skill that can only be cast on something you summoned?

Actually, I think you can not do that but you can use a little trick that will make your healing skill work on summons but do not work on everything else :

With the plugin elemental negation from hime :
http://himeworks.com/2015/12/elemental-negation/

Here is a little example of what you can do:

You can create a skill that will damage enemies and heal allies but you can change the rate of the skill:
For your summon healing skill, make it use a special element just for it : summon_heal

The skill will inflict 20 damages but in your summon actor box put :
<element rate: summon_heal, -500% />

So the skill will inflict 20 damages if cast on anything it should not but if cast in a summon it will heal it 100! (-500%)

Of course you can change these number how you want and make your skill do nothing (0 damage or 0 heal on something it should not and heal your summons, that was just an example)

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