Lecode Tactical Battle System 0.77.2B

upload_2019-1-23_18-56-44.png
Although I wouldn't underestimate the power of 30 lines of code, I would have to agree with Aloe Guvner. From blackbox testing, I would say that 1.6.1 has, in fact, improved Lecode's TBS efficiency. I've run TerraxLighting and YEP_GridFreeDoodads, simultaneously, during a TBS battle with no noticeable lag or crashes.
I'm not sure about it but it seems to me that when you start letbs battle player is teleported into another dimension or smth like that(I mean battle mode lol)
So the player is not on any map so letbs only takes region id and letbs events into consideration which means freedoodads or terraxlighting is not a big deal
But Im not sure I didnt try it myself
Also, just an update.

With my Terrain Heights Script, I will also be including a "Region Movement Cost" script.
This will allow you to pre-set region movement costs.

For example:
Water areas that are walkable, will be able to be set to cost 2 movement when determining pathing.
Still gonna take some testing on my end to make sure both work, but.... they should. At least in .77 anyway.

When I get around to finally test it, I'll post some pics.
Also, just an update.

With my Terrain Heights Script, I will also be including a "Region Movement Cost" script.
This will allow you to pre-set region movement costs.

For example:
Water areas that are walkable, will be able to be set to cost 2 movement when determining pathing.
Still gonna take some testing on my end to make sure both work, but.... they should. At least in .77 anyway.

When I get around to finally test it, I'll post some pics.
Thats exactly what I was trying to do through eventing and landmarks
Glad there will be a script of it
@nathan_walker
use "sprite_name: Duran"
Spoiler: Pics
Inked124_LI.jpg

Here's the doc:
https://lecodemv.github.io/leTBS/tags.html

I'm not sure about it but it seems to me that when you start letbs battle player is teleported into another dimension or smth like that(I mean battle mode lol)
So the player is not on any map so letbs only takes region id and letbs events into consideration which means freedoodads or terraxlighting is not a big deal
But Im not sure I didnt try it myself
LeTBS does create an instance of the map. However, all of the animation and lighting still need to be updated properly every game frame.

Edit: Image overload
Edit: Didn't realize I could zoom in.
@nathan_walker
use "sprite_name: Duran"
Spoiler: Pics

Here's the doc:
https://lecodemv.github.io/leTBS/tags.html




hi thanks for the help i'm pretty new to this amazing battle system thank you thank you thank you
Quick Update on region Costs.
(@UniqueName , you might like this)

Gonna set Region 2 to cost 2 mp to make things easy to see:

The Setup
upload_2019-1-23_16-40-27.png


When adding in the lowest possible costs to move, it should be in theory
something like this:

upload_2019-1-23_16-41-26.png


Then we end up with something like this:

upload_2019-1-23_16-43-49.png


You may wonder, but that upper-left cell can be moved to no?


Let's take a look:
upload_2019-1-23_16-44-16.png



The character walks right thru the more costly area
upload_2019-1-23_16-46-45.png


Unfortuanately this is either due to easystar's "Best Pathing"
or the innate setting for "Cut Corners" I'm not particularly sure.


But that doesn't mean you can't make 2 moves up, then 2 over
on your own.

This is currently what I have.

Update 1-24-2019
It seems to be working fine.
However, it is completely incompatible with my Terrain Heights Plugin
(due to the latter using region id as the height).
I will be updating my Terrain Heights to function similar to the Region Costs plugin,
where there will be a configurable value for each region ID to set the "Height"

EDIT: I think this is done.
I have a ton of testing to do. 🙂
Update on Terrain Plugin.

Working on the compatibility.
Added individually configurable values for every region's height.

Currently working on the dual-integration for Terrain and Costs.
I think I have it mostly fleshed out at this point.

For testing purposes I'm making regions 1 and 3 cost 1 move, and region 2 cost 2.
So as long as the 2 plugins work, I should be able to move to the region 3 (height 3) on the first move.
Wish me luck.

upload_2019-1-25_11-41-13.png


Update 2:
Seems to be working:

This path traverses 2 region 1s and a region 2. If we move here....
upload_2019-1-25_13-5-12.png



We lost 4 movement!!
upload_2019-1-25_13-5-51.png



So it seems to be working fine.

If anyone wants to be my guinea pig, let me know.
I'd really like to see if anyone can just completely destroy it.
(just don't put letters in for any of the plugin values...)
I am on 1.6.1 and LETBS actually ran better with it than 1.5 for me.
Is there a way to make a character have several actions per turn ?

Like having 5 Action Points, with abilities, attack and moving costing Action Points ; said character would end its turn as his Action Points reach zero.
🙂
Hi i'm really new and i hit a wall i do please help me, so when using this plug in and say i buy a hat from my shop and equip it and then when i enter battle its not there because of _idle now say i make 2nd _idle with hat on but how do i call it so like if actor has hat1 equip it will call for 2nd _idle and say if i unequipped hat1 now i want it to call _idle how can i achieve this thank you for taking the time to read
Hi i'm really new and i hit a wall i do please help me, so when using this plug in and say i buy a hat from my shop and equip it and then when i enter battle its not there because of _idle now say i make 2nd _idle with hat on but how do i call it so like if actor has hat1 equip it will call for 2nd _idle and say if i unequipped hat1 now i want it to call _idle how can i achieve this thank you for taking the time to read

If i understand you use character sprites that change.

In that case use tag
use_character
Then youll need a plugin or common event that changes the actors graphic.

Itll be a little tough though.
Anyone knows how to display the damage formula before variance and accuracy before making the attack?
This is common in many tactical RPGs I've played (and very useful indeed).
🙂
If i understand you use character sprites that change.

In that case use tag
use_character
Then youll need a plugin or common event that changes the actors graphic.

Itll be a little tough though.
thank you thank you amazing support in this form i carn't seem to stop walking on the spot in battle now lol and my skill that shoot its shooting from the middle as if i'm just spiting it out of my mouth is there a way to tell it to fire from my right arm and is there a way to set skill to only be learned from buying the gun many many many thanks
upload_2019-1-28_10-37-44.png
Anyone knows how to display the damage formula before variance and accuracy before making the attack?
This is common in many tactical RPGs I've played (and very useful indeed).
I c9mbine Victor Engine Olconrltrol text and Yanfly message core plugins to dusplay stuff in skill box, etc.

There was an earlier post similar but i cant find it right now.
Can anyone tell me whether wip_0.8 in the github can be used now?
I transferred ES6 to ES5, game started normally.
But no Entity can be saw in the battle, and command can't be performed.
I also wonder how to undo movements since it seems that the demo doesn't have it.
I also wonder how to undo movements since it seems that the demo doesn't have it.
I‘ve made movement cancel function.
If you don't use <one_time_move> tag, you can add a _lastCell field for Entity.
Save last cell in the BattleManagerTBS.validateMoveSelection.
Set it null in the BattleManagerTBS.onActionEnd and BattleManagerTBS.turnEnd.
Add undo codes in the BattleManagerTBS.processCommandCancel.
Like this:
Code:
if(this.activeEntity()._lastCell != null){
        var lastcell = this.activeEntity()._lastCell;
        this.activeEntity().teleport(lastcell);
        this.centerCell(this.activeEntity().getCell());

        if (this.activeEntity().oneTimeMove()){
            this.activeEntity().setMovePoints();
        } else {
            this.activeEntity()._movePoints = this.activeEntity()._lastStep;
        }
        

        this.activeEntity()._movePerformed = false;
    }
    BattleManagerTBS.setCursorCell(this.activeEntity().getCell());

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