Lecode Tactical Battle System 0.77.2B

Hello Ygdrassill,


Did you get the same error with the 0.5 version of this script (same configuration)?


Does it crash if you remove the battle win conditions (if win...; if lose...)?


Did you used any other plugins that might be conflicting? (Just turn other plugins OFF in the plugin management)


Try to check all these points and if you still didn't figured it out, please provide a demo of your project with just this battle and I'll try to see what's wrong (PM is ok) : )
If its possibly I'd like to request a standalone version of this that can be called vis plugin command so I'm not locked into using it as my only combat system. Like for example:


You know how FF7 has its main combat system then another one for that mini-game? That's the kind of setup I'd like if you can manage it. 🙂

Just as Chaossica said.

I'd like to see this too. In a perfect world I'd be able to set how many squares an Actor and Enemy occupies. I belive Chosicca has said that is a feature that is already coming. Fingers crossed!

Yes it's comming.

Update:


The following errors occur when attempting to run your combat system:

Ok, will fix it.

When you add the ability to add an actor or enemy battler, can you grant us the ability to have the actor or enemy summoned using the "Crash into things" option you have coded?


I want to have a boss that throws goblins at players as a projectile weapon, inflicting damage to both (the player and the thrown goblin), before adding the Goblin to the battle in the square adjacent to its target. I also want to have a weather effect where cats and dogs fall out of the sky and can randomly hit players (inflicting damage) and then "spawning" adjacent to them; and I will imagine I need a similar mechanic to implement that.

This is a really cool idea. Will probably make a tuto for that once the summon system is released.

After updating to 0.6 I get this error when my battle launches.


https://gyazo.com/e85b84d8354efefbf25923a2ea71d2fb


Is there something I am missing for the script?


https://gyazo.com/da1586f549e46e1ed470e18c83f86b87

Yes please provide a demo 🙂.


Or, send me the screenshot of the console errors, to begin with.
I have a request I think EVERYONE who uses yanfly plugins will agree with:


Please make it so your combat system works with Yanfly's full list of combat plugins or at the very least the major ones. Or at the very very least make it so your combat system doesn't intefer and runs seperately from Yanfly's core combat system plugin.


I am REALLY, REALLY hoping you can manage to make this combat system run independent from yanfly's though still use some of his plugins as "addons" to it. I would hate to have to choose between them because I would choose yanflys since its the core combat system for my game. Please don't take offense to this! ^^;
Hey two questions Is there a way to create a turret enemy and when they step in x amount of squares it attacks  and i have a wrestler class  i want to have a move called German suplex where the user has to be behind and sends the victim two tiles behind
Hey two questions Is there a way to create a turret enemy and when they step in x amount of squares it attacks.

Copy this:


<letbs>
ai_pattern: ranged_fighter
move_points: 0
</letbs>


and paste it inside the "Note" section of the enemies tab.
 

i have a wrestler class  i want to have a move called German suplex where the user has to be behind and sends the victim two tiles behind

I believe you edit skills in the code. If you open up "LeTBS.JS" and locate the "your sequences" section
It looks like all the skill commands are handled here.


Also; wrestler class sounds great. 🤣
Please add Berserk AI, Fear AI and Confusion AI and movement limiters which can be applied via States.


Berserk: Can only move towards the nearest enemy.


Confusion: Move is automatic at the beginning of the turn and randomized.


Fear: Cannot move towards the nearest enemy.
@deathsia: Making the TBS compatible with Yanfly's plugins is one of my final goals.


Will make some patches for the next version.

Hey two questions Is there a way to create a turret enemy and when they step in x amount of squares it attacks

Enemies can't attack automatically unless you force an action using eventing. I will probably add the ability to trigger


sequences for aura and marks. That way it'll be easy to achieve what you want.


@RetroBoy: I'll complete the AI core for 0.7 so you'll be able to configure all of that 🙂.


And yeah the confusion AI, I definitely need to add this.


I made a post on my patreon blog about planned features for 0.7.
Yes please provide a demo 🙂.


Or, send me the screenshot of the console errors, to begin with.

Ok sent you a PM with the demo, I hope you are able to figure it out :3 , Idk what I am doing wrong D:
Just want to say thanks for working on a TBS for MV, when MV first started to come out I was thinking of trying to learn JS to try to make one, but that hasn't come to fruition.

I do have a couple of system specific questions that I hope you can answer 🙂

1. Is there any way to set an animation to follow a specific pattern? For instance, I'm currently toying around with your system and for the idle animations, I'm using walking frames. The way it animates is 2, 3, 1. I would like to be able to config it to use the pattern is 2, 3, 2, 1 in order to make a "smooth walking animation".

2. Not sure if it's due to map size, but when characters (and AI) use the movement command, it gets really laggy as it processes. How can I diagnose what causes the staggering?

I appreciate the work being put into this, and eagerly look forward to the next release 🙂.
Hello guys,


Today I'm going to do a special tutorial about how to use deeper the Lecode TBS (if you like it, I might do more of them) (Like graphics tips related to the TBS, deep configuration, funny tricks and so on)


We will do like the game "Dofus", in this game you can clearly see the grid or turn the game in "tactical mode" (You don't see anymore the good looking graphics but it focus in the tile property of the map and highligts Walls (characters and spell can't go trough TILE Configuration 250 by default in LecodeTBS) and small walls (characters can't go trought but spells can TILE Configuration 249 by default in Lecode TBS))


Tile configuration.png


You will have to make your own graphics for it to work (but it is quite easy to do actually and I am sending samples with this message) AND these graphics have to be in your picture folder! (not parallaxes)


The grid :


Grid17x13.png


The tactical map of battle 1 :  (squares are 48*48 if you didn't modify it with shaz script (wich is compatible with lecode tbs)


(Oups there is one black square missing in the lower left part :3)


Basicmap1.png


I use this with the scripts Common Event buttons from HIME :


http://himeworks.com/2016/01/common-event-buttons/


And ZE Key mapper (if you don't use this one you can not bind keys like G, T and so on...) (THIS plugin must be below Comment Event buttons)


http://mvplugins.com/plugin/Zalerinian/ZE%20-%20Key%20Mapper


Those scripts are compatible with Lecode TBS but they must be below them in the plugin order ! (Or you won't be able to use them in battle!)


I will bind the Tactical to the "T" button for now


t bind.png


In your common event , you will have to make a comment :


<trigger button: t />


To bind the T button and then control your switches (When you are on map 1, activate the switch for map 1 and so on) so when you are on the map 1 and use the button, you will see the tactical pattern for the map 1, when you teleport on the map 2, put your swith map 1 off and map 2 ON...


When your tactical version is activated, activate a swich to say that the tactical is activated


So the final configuration will be in your common event :


<trigger button: t />


If you are on MAP 1 (check with a switch who is turn ON when you get on the map and OFF when you leave) :


--- If the switch tactical is activated, (and the button T is pressed, then Delete the Tactical picture) then turn the switch OFF


--- If the swith tactical is not activated, (and the button T is pressed, then add a picture ON the map with the tactical version of it) then turn the switch ON


That way, you will be able to toggle just with one button (inform your player beforehand)


You just have to do the same thing with the g button for just the grid if you want.


Here is to check if the player is in map1 with a switchTutoriel 1.png


That's all!


Have fun with this!


Tactical ON.png


Grid ON.png
1. Is there any way to set an animation to follow a specific pattern? For instance, I'm currently toying around with your system and for the idle animations, I'm using walking frames. The way it animates is 2, 3, 1. I would like to be able to config it to use the pattern is 2, 3, 2, 1 in order to make a "smooth walking animation".

No. The pattern is 1, 2, 3, 4, 5...n where n is the number of frames of your sprite.


You need to adjust your graphics in order to get what you want. I'm using the default charset in the demo, that's why


the animation is bit weird since the pattern MV uses isn't the same.

2. Not sure if it's due to map size, but when characters (and AI) use the movement command, it gets really laggy as it processes. How can I diagnose what causes the staggering?

Yeah, noticed that too. I think it's related to the pathfinding engine. I definitely need to fix that.
Thanks for the reply, @Lecode.

I have a feature that I just thought of, and I don't know if it's in the system already. Is it possible to use the note tag <letbs> </letbs> to assign a character a certain battler set? 

For example, say I want a player to be able to input a custom name. If I understand correctly, the character name has to be exact in order to use the defined battlers. (Just tested a name input before battle, and changing the name indeed changes the sprites).

If it's not possible already, I think it would be a great addition to the system to add more functionality. 😀

I've been using Time Fantasy sprites for MV, and I saw earlier in the thread someone asking how to use that pack with LeTBS. Here's the following frame guides you can use in order to have it work:
 

Spoiler
3 Frame:
6Bz4ksq.png

4 Frame:
pjXrDHt.png



Just place your Time Fantasy MV sized sprites in to that framework, and you'll be good to go. Just be sure to use an art program to remove the background so your battlers are transparent :]
QUESTION:


  How does TARGET RATE work with the engine, does it work?


For Example:
  If a target has a higher Target Rate are enemies limited to melee attacks more likely to approach him?


I ask because I am in the middle of designing skills and it will impact how I go about doing it. Also, if they are drawn to the actor with the highest TARGET RATE, will they choose to pursue them over attacking other more nearby actors?


  I only ask because I don't want an "exploit" in the game where someone massively ups their Target Rating and then runs away, luring all the foes, so no one else is attacked. But I do want foes to try to target the foe with the highest Target Rating if they are able.
I have a feature that I just thought of, and I don't know if it's in the system already. Is it possible to use the note tag <letbs> </letbs> to assign a character a certain battler set?

There are sprite_name: string and sprite_config: string.


sprite_config refers to the Sprite configuration name in the configuration file.


"Angela": [ // <=========== THIS
["idle", "_idle", 1, 0],
["move", "_move", 4, 0],
["cast", "_cast", 1, 0],
["atk", "_atk", 4, 0],
["hit", "_hit", 1, 0],
["dead", "_dead", 1, 0],
["turn_start", "_victory", 5, 0],
["victory", "_victory", 5, 0]
],


And Instead of looking for [battler's name]_idle the engine will look for [sprite_name]_idle.

How does TARGET RATE work with the engine, does it work?

It's good you're mentioning that. I'll make it work in the next version when working in the AI, because right now it's totally


ignored. I was planning to add a similar stat for the tackle and dodge system (which will come later) but if there is


already such stat let's use it. I totally forgot it.


(Long post below sorry for the incoming mistakes, my english isn't max level yet)

If a target has a higher Target Rate are enemies limited to melee attacks more likely to approach him?


I ask because I am in the middle of designing skills and it will impact how I go about doing it. Also, if they are drawn to the actor with the highest TARGET RATE, will they choose to pursue them over attacking other more nearby actors?


  I only ask because I don't want an "exploit" in the game where someone massively ups their Target Rating and then runs away, luring all the foes, so no one else is attacked. But I do want foes to try to target the foe with the highest Target Rating if they are able.

It's as you wish. AI uses behavioral patterns configured in the configuration file. You'll be able to set how much your enemies are drawn to the actor


with the highest TARGET RATE. Right now here's how selecting a target is done, inside the "use_offense" pattern:


"if: chance(70)",
"search_target: lowest_enemy, 100%",
"if: !isTargetValid()",
"search_target: closest_enemy, 100%",
"endif",
"else",
"search_target: closest_enemy, 100%",
"endif"


It literally means:

  • 70% of the time:

    Look for a target with the lowest HP
  • If no one is found (maybe the battler with the lowest HP is out of range), look for the nearest one

[*]On the other hand, look for the nearest battler


For those wondering, the 100% parameter with the search_target command means: "The enemy is allowed to use


100% of it's move points to search a target". This value can be reduced for enemies who don't want to make dangerous moves,


using all their move points and letting none to escape after the attack, ect. Enemies with a "fear" behavioral pattern


should have a low value to approach actors carefully.


Anyway what I wanted to show there is the randomness of the pattern. 70% of the time, the AI wiil look for enemy with the


lowest HP in priority, and on the other hand, it'll just look for the closest one. So you can use the same


randomness to prevent the AI to be always drawn to your actor with the highest TARGET RATE.


I'll explain all of that deeply (each commands too) in the next version once the AI core will be completed.


And I'll also make a video where I create a Boss AI.


The available AI commands will increase gradually over the updates, just like with sequence commands.


By the way, here is how the patterns ranged_fighter and melee_fighter are used:


"after_offense": [
"if: pattern('ranged_fighter')",
"move: away_enemies, 100%",
"else",
"if: !isInMeleeWith('defined_target')",
"move: away_enemies, 50%",
"endif",
"endif"
]


The pattern "after_offense" is used after an assault.

  • If the pattern is ranged_fighter

    Move away enemies by using 100% of available move points

[*]Otherwise (so it's melee_fighter)

  • If not in melee with the previously set target

    Move away enemies by using 50% of available move points

[*](Otherwise, don't do anything: stay in melee with the target)



You can play with that and for example to make the melee_fighter type AI more agressive,


set move: toward_target, 100% instead of away_enemies.


If not in melee with it's target it'll rush toward it after an asault.
For some reason when I liked your post it said "You are not allowed to give reputation to this user" which was kind of weird.


Anyway, thank you for explaining all of this mate. I am loving what you're doing here and I have muchos respect for your efforts. Keep it up. Big surprise for you when its finished. 😉
How do I create victory event?
Please send me a demo with project.. 


i try the demo that u provide but...  it's still said "type error undefine" 
Hello fungus, for the demo you have to make a new project on your own.

Then, download this file :




Then put all the files you downloaded in the fresh created project and you are set up!

Hello angelregion,

Look at the cristal event in the start of the demo just before a battle
Plugin command 1 : LeTBS ON //This activate leTBS
Plugin command 2 : LeTBSWinCds Clear //This reset win conditions
And for the plugin command 3, you decide your win condition .i.e.
Plugin command 3 : LeTBSWinCds Add Defeat All //This win condition is for killing all enemies

There are other win conditions and there are in the demo before a fight !
Hello guys, this time I will tell you how to set up an enormous fire demon boss in the lecode tbs (and show you a little how to “control your sprites” with an editor) like gimp or photofiltre 7 (these are free but you can use photoshop if you can afford it)


For this, I will use a sprite in the “megabundle” that you can find here (50 dollars) (but you can create your own for free)


http://www.rpgmakerweb.com/a/fantasy/high-fantasy-mega-bundle


Now if you use the default tile size, it is 48*48 pixel so if you want to set up a bigger enemy that won’t fit, you have to use as many 48*n squares for future gtbs compatibility (with many squares) (if you didn’t change tile size with shaz script which is compatible with letbs)

Tuto0.png

This picture is 420*560 so we are not good, first we will calculate the horizontal size :
48 * 3 * 3 ( is bigger than 2 and smaller than 3 so we take 3 squares) and 3 poses = 432

And for the vertical size, it is : 48 * 3 * 4 (there is 4 poses) = 576

tuto1.png

Ok now we are good, we will work with the dead pose: so, we will do the same (432*576)


Then put the grid with 48*48 squares


Tuto2.png


Then we will select the middle three 48*48 scares and then copy and paste at left and right (with the grid help it is easy)

tuto3.png



Then we will take a picture of if for the turn order, it have to be 40*40 pixel


tuto4.png

And then paste it in a 40 * 40 template like this

tuto5.png
Then you just have to put the files with the good names in the good folder!
Now we will have a problem, the monster will take 9 squares like this:

XXX
XXX
XOX


But only the “O” is vulnerable and he will be able to go through small paths (1 square) (you can make up a story while telling to the player that only the feet are vulnerable and do not make small paths on map with boss) while waiting for lecode multi square enemy patch : )

If you have some questions on how to use this software, you can PM me : )
Chaosicaa// no no. What I'm saying... I want to run a common event when I defeat all enemy.

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