Lecode Tactical Battle System 0.77.2B

Hey just a question, do i need to use the built in battle system ?
Like, can i use the Script but do the battles in another style ? More like in the Advanced Wars Games ?
A few bugs/possible fixes/edits required i have come across...

1. if you have more players in a party than spots in the map, it places extra player in top left corner of map, then errors out(as pictures below)
Spoiler: picture


2. even if you put in for it to use default sprites, you still need to create dummy sprites with the same character name(doesnt matter what pic is shown in the png)

Spoiler: picture



3. Auto battle crashes when enemy/hero's decide to go to the same tile

Spoiler: picture


4. I want to remove location facing so you dont get to choose what way theyre facing. removed many lines from the config but still doesnt stop it.
any easy idea?

5. when clicking auto battle, how to cancel it mid-game?

6. how to change the look/design or the character select menu for the battle?

and finally

7. how to start the battle without filling all the character boxes? say for example i have 4 characters, but only want 2 to battle. i cannot start without all tiles filled



so to add(by others comments)

8. if u actually click another persons position, it errors out

9. command box doesnt stay on screen if the map is bigger than normal
Hey just a question, do i need to use the built in battle system ?
Like, can i use the Script but do the battles in another style ? More like in the Advanced Wars Games ?


yes u can, but it seems that are still a few bugs to sort out before its complete
@Kanzlerino
Yes, actually this system is powerful, you can build a lot of srpg type if you can script
Here is an example : enchanted arms srpg style with faceset battlers:
Spoiler
Chaosicaa low quality.png
(Yes, the IA was smart and used a cross type AoE spell to damage 4 out 5 ally characters, bad positioning!)
I might do some little tutorials if you want to know how to change some windows places!
You can also use a plugin command midgame to return to the default battle engine :
LeTBS OFF and LeTBS ON

@ShellFlare
Yes, this is a known bug when you want to place your character elsewhere with your mouse during the positioning phase, this might be corrected soon!

@Fuchsilein
It is not possible yet to easily customize via plugin (you'll have to go in the script)

@mpurnell
Oh nice catch !

For the direction facing there is an easy line in the plugin configuration, you just have to set it to false!
But there is a little bug, it does not remove it from the positioning phase yet, just in battle
To cancel autobattle, there is the button tab by default but you can change it via plugin configuration !
To change the look of windows, you'll have to go in the script, no easy configuration yet :/
To restrict the number of battlers, I am not sure it works but did you tried the script call before the battle (via event) :


Game_Party.prototype.maxBattleMembers = function() {
return 2;
};


This should restrict the number of battlers to 2 (do not forget to change it again after the battle)

@autophagy
Humm, yes, they stop playing, that's weird :/

@MinesharkGaming
I was wondering if there was a way to make it so your whole team goes first then the enemy's team?
Yes, you can :
There is a plugin configuration for this : fair repartition set to true by default, you just have to set this parameter to false
Is there any commands documentation? I keep getting an error for win conditions not defined but can't find any documents for it, and the posts i've seen for it aren't fixing the error.
@Izembo
You should use some plugin command before the first fight :

LeTBS ON
LeTBSWinCds Clear
LeTBSWinCds Add Defeat All

(3 different plugin command) try to look at the events in the demo, the green crystal have them inside the event!
You will also need actor starting positions and enemies starting positions on your map to initiate the battle, you can know more about that here :
https://lecodemv.github.io/leTBS/starting_battles.html
looks like a simple plugin order error

Hello. Sorry to bother, but I have the exactly the same problem. I know I'm probably being dumb here, but I'm really new in these things. How to change the order of the plugins and what is the correct load order for them? It's my current order if it help.
Hello. Sorry to bother, but I have the exactly the same problem. I know I'm probably being dumb here, but I'm really new in these things. How to change the order of the plugins and what is the correct load order for them? It's my current order if it help.
https://lecodemv.github.io/leTBS/starting_battles.html
Thank you for hour fast reply, but I think I was not clear what is my problem or I'm simply don't understand something. I replied to your answer on a prevous problem on page 21. I try to test the example game to see the features, but right when I try to run the game I get this error message:
45035-807fbd1a1d1caef33d3bac04a76ef079.jpg


In the base game the settings you linked to me are corrects, so that is not my problem now (I think).
You replied to this problem that the plugin order is wrong. I don't know how to change the plugin order and what is the correct order. Thank you again and sorry for the trouble I cause to you.
Thank you for hour fast reply, but I think I was not clear what is my problem or I'm simply don't understand something. I replied to your answer on a prevous problem on page 21. I try to test the example game to see the features, but right when I try to run the game I get this error message:
45035-807fbd1a1d1caef33d3bac04a76ef079.jpg


In the base game the settings you linked to me are corrects, so that is not my problem now (I think).
You replied to this problem that the plugin order is wrong. I don't know how to change the plugin order and what is the correct order. Thank you again and sorry for the trouble I cause to you.

Well you have windows and turn order in the wrong plave (need to switch places) but i personally put the extra LETBS stuff above the yanfly plugins and it works for me
Well you have windows and turn order in the wrong plave (need to switch places) but i personally put the extra LETBS stuff above the yanfly plugins and it works for me

I think I have switched them correctly, but it's still the same. My new order:
45036-6de04e9e0e69307543022a8fdd30e882.jpg
@Izembo Hi! I may have the answer for your problem.
I was wondering the same thing and the demo only showed two victory conditions.....so I went and checked out the script. It basically contains all the info you need to properly set up your win conditions....if you can read Javascript, that is. Most people can't so I'm gonna list the plugin commands here.

This is gonna be a long explanation, so I'm gonna put it into a spoiler!

Spoiler
To set win conditions, first, you use this plugin command:

LeTBSWinCds Clear

Then, you use a new plugin command. It starts like this:

LeTBSWinCds Add

But don't apply it yet! You have to add keywords. There's three keywords that you can choose from.
If you want the player to defeat certain or all entities, you type this next:

Defeat

Now, you specify what exactly the player has to defeat by adding more text.

So, if you want the player to kill all enemies, type this next:

All

If you want them to only kill all enemies of a certain type, add this instead:

Enemies All enemyID

...where enemyID should be replaced by the database ID of the enemy type.

You can also make them kill only a certain number of a certain enemy type if you add this instead:

Enemies number enemyID

...where number is replaced by the number of enemies of the enemyID type.

There's another option - you can make the player kill a flagged entity. It works like this: Instead of the Enemies keyword and everything that follows after it, add this:

FlaggedEntity flagName

...but I can't get it to work. If someone can, please tell me how it's set up correctly!

There's also the possibility to make the player protect an entity. Remember when I said there's three keywords to choose from? The first one is Defeat. The second one is:

Prevent

This means you have to prevent someone's death, basically. Of course you need to specify whose. So, after the keyword, add something like this:

ActorDeath actorID

...where actorID is the database ID of the actor you want the player to protect.
Instead, you could type:

EntityDeath flagName

...where flagName is text. Or rather, the name you want to be displayed. If you put "Test" here, make sure to add a flag to the entity that you want the player to protect by adding this comment to the event on the map:

<LeTBS> Flag: Test

You can put any word there as long as the flagName and the comment flag match. Keep in mind that you should flag an entity that actually participates in the battle, and not for example, a door.

Unless you use the third option! Which is:

Flag flagName description

Flag is the keyword. flagName is a name you choose for the flag, for example "Door". description is any text you choose. If you flagged a door with "Test" by adding a comment in the event, then you could write something like:

Flag Door Open the door

"Open the door" will be displayed at the beginning of the battle. Now you need to give the player a way to activate this flag. Add the comment to the door event, add a trigger inside the comment, and then add a plugin command to the door:

LeTBSWinCds ActivateFlag Door

This will activate the flag "Door" when you trigger the door event. You can use the same way to deactivate a flag, just use this instead:

LeTBSWinCds DeactivateFlag Door

Now comes the cool thing: You can combine win conditions.
Just add multiple plugin commands! The player will have complete all the tasks. For example, you could do this:

LeTBSWinCds Clear
LeTBSWinCds Add Flag Test Do the thing
LeTBSWinCds Add Flag Test2 Also do this

LeTBSWinCds Add Prevent ActorDeath 1

The player will have to "do the thing" by activating flag Test, but "also do this" by activating flag Test2. On top of that, they will have to keep actor 1 alive! Sounds stressful.

I hope this helps....and that it wasn't too confusing! If you still get an error, your problem might be something else.
I have done something but I'm pretty sure it's wrong. I edited the LeTBS_WinConditions.js file with Notepad and typed the commands to the end of the script (I think that's where I went wrong) like this (the problem still the same when I try to test the game):

45048-6e6460b48a415899a58ecc9904ebd25f.jpg


Edit: Sorry, I just realized that you wrote to someone else 🙂
Ohhh so much bug reports. I'm overwhelmed, give me the time to check them all !
I got busy the past few days but today I managed to a live update for the next version. (Extra turn & charging skills)
I'll focus on bug fixing for now.

THanks @autophagy ,@Chaosicaa for helping.
Thank you for your updates here, thanks to that my problems were solved. I've a question though, it's possible to have multiple battles in the same map? Like in the same map you can multiple battles with different groups of enemies, you finish the battle with one group, move around and start battle with another, all in the same map.

I was thinking in the possibility of using the system for quick tactical battles with small groups of enemies instead of larger groups. This way you can explore the map while having small battles or avoid some battles while getting others.

Also now that I had the opportunity to test it, the dead_no_loop and dead_vanish don't seems to be working, I did several tries with different ways using it, and the animation don't even play with them. How you tag an specific enemy with sequence(dead): dead_vanish? It's very interesting idea to me, since perhaps I could even use a custom sound for each individual enemy along with its own death animation effect.
yea i still have the noted above errors to fix, but on another note, any idea how to get the command window to stay in a position rather than float? above character? tried adding X/Y but keeps conflicting with other required plugins
Is it Possible to work with the Battle System if i use parallax maps?
Is it Possible to work with the Battle System if i use parallax maps?

yes. doesn't conflict with parallax mapping at all
Really? Then i don't know how to make it work with the Plugin <_>
Everytime i try to Show it it only Show me the Parallax map i paste in the world picture
Okay so after more experimenting on the live demo, if you try to mouse place your actor on a slot they were not auto-placed on, the game will crash with "Cannot read Property 'fixed'.

It seems to more or less be fine with keyboard.

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