Lecode Tactical Battle System 0.77.2B

If anyone is able to figure out why this error pops up that would be greatly appreciated 😀
Do you have the TBS_Commands plugin ?

Is there a way to set the square areas (for movement etc.) of the giants creature (like dragons) ?
Or some suggestions for how to do it.
Giant creatures aren't supported now Battlers can't have more than one cell as a size.

EDIT: Still not finished...At least I made great progress.
Guys, any ideas how to solve this: I want my spear to reach two tiles, which is easy done. But I also want it to reach the target on the second tile even if there is an actor on the first tile. But the spear only should ignore actors, not obstacles like walls or trees. Is there a way to implement?
Thanks!
Guys, any ideas how to solve this: I want my spear to reach two tiles, which is easy done. But I also want it to reach the target on the second tile even if there is an actor on the first tile. But the spear only should ignore actors, not obstacles like walls or trees. Is there a way to implement?
Thanks!
I just make sure i use the LOS blocking obstacle region and everything works fine.
Sorry, I didnt get it. What means LOS "blocking obstacle region"?
Sorry, I didnt get it. What means LOS "blocking obstacle region"?
LOS = line of sight.
by default this is region 250.
This means you cannot select this cell for an attack by default.

Also @Lecode
I know there's pass_on_use
but is there a no_pass_on_use?
Hi, is the next update going to fix the errors when you have no skills or no items ?
Hi, is the next update going to fix the errors when you have no skills or no items ?
I'm pretty sure that's already fixed.
Do you have the TBS_Commands plugin ?


Giant creatures aren't supported now Battlers can't have more than one cell as a size.

EDIT: Still not finished...At least I made great progress.

Yeah I do have the LeTBS_Commands file
LOS = line of sight.
by default this is region 250.
This means you cannot select this cell for an attack by default.
no, sorry. But maybe I didnt express myself clearly.
There are 3 sprites in a row:

1 2 3

"1" is the actor hero armed with a spear. "2" is also an actor. "3" is an enemy. "1" wants to attack "3" although "2" is standing between "1" and "3". So my problem is that the scope of the spear (which is 2) would in theory reach the enemy but it is blocked but actor "2", therefore "1" cannot attack "3". How can I tell the engine that it should not deal "2" as an obstacle?
no, sorry. But maybe I didnt express myself clearly.
There are 3 sprites in a row:

1 2 3

"1" is the actor hero armed with a spear. "2" is also an actor. "3" is an enemy. "1" wants to attack "3" although "2" is standing between "1" and "3". So my problem is that the scope of the spear (which is 2) would in theory reach the enemy but it is blocked but actor "2", therefore "1" cannot attack "3". How can I tell the engine that it should not deal "2" as an obstacle?
scope_options: through_obstacles
should do just that.
only that if theres a concrete wall in the way, it'll still be able to go through it.
would be an option, but unfortunately this doesnt work. I use the following commands:

<letbs>
scope_options: through_obstacles
scope: line(2)
</letbs>

No matter if an enemy, actor, region 249 or region 250, it always will be recognized from the engine as an obstacle. So no chance for actor "1" to hit enemy "3" 🙁
First off, I love this engine, and I plan on using it for my personal projects in the future. Thank you so much and keep up the great work!

Secondly:
TypeError: Cannot read property 'select' of undefined
at Function.BattleManagerTBS.positioningSelect (LeTBS.js:2165)
at Function.BattleManagerTBS.selectNextStartCell (LeTBS.js:2268)
at Function.BattleManagerTBS.waitForPositioningInput (LeTBS.js:2137)
at Function.BattleManagerTBS.updatePositioningPhase (LeTBS.js:2082)
at Function.BattleManagerTBS.updatePhase (LeTBS.js:1909)
at Function.BattleManagerTBS.update (LeTBS.js:1791)
at Scene_Battle.update (LeTBS.js:971)
at Function.SceneManager.updateScene (rpg_managers.js:2024)
at Function.SceneManager.updateMain (rpg_managers.js:1983)
at Function.SceneManager.update (rpg_managers.js:1907)

Can anyone tell me what this means? Probably an amateur mistake, but I can't javascript for the life of me. If anyone's willing to help me with this (And what will likely be a long chain of comments of me asking for help after more issues like this come up), it'd be absolutely fantastic. Thanks!
Yeah I do have the LeTBS_Commands file
Still cant figure out what the issue is 🙁
Still cant figure out what the issue is 🙁

do you use <letbs_commands> tags anywhere?
If so, I will need to know where and what is in them.
do you use <letbs_commands> tags anywhere?
If so, I will need to know where and what is in them.
Hm I dont believe I am using that tag anywhere, at least I can't find anywhere in the game where ive used it.
I have a problem with projectiles: As in my project there are not only bows but also slings I want to add a projectile "stone".
I did it in 4 steps but it doesnt work.

1) First I put a stone-graphic (.png) into img/LeTBS/Projectiles

2) The I opened LeTBSConfig.js and edited it:

Lecode.S_TBS.Config.Projectiles = {

"sling_stone": {
filename: "Stone",
adapt_angle: true,
speed: 5,
jump: 150
},


3) And added a sequence:

/*-------------------------------------------------------------------------
* Your Sequences
-------------------------------------------------------------------------*/

"sling": [
"play_pose: user, atk",
"wait: 10",
"projectile: sling_stone, user_cell, cursor_cell",
"effects: {aoe}_battlers, current_obj, obj_anim",
"wait: 60"
],


4) Then I created the weapon "sling" and added the following into notes:

<letbs>
scope: circle(4,2)
sequence: sling
</letbs>

But when I want to use the sling in test-game, I get this message:
TypeError
Cannot read property 'slice' of undefined

Anyone an idea what could be the reason for that?
Thanks!
I have a problem with projectiles: As in my project there are not only bows but also slings I want to add a projectile "stone".
I did it in 4 steps but it doesnt work.

1) First I put a stone-graphic (.png) into img/LeTBS/Projectiles

2) The I opened LeTBSConfig.js and edited it:

Lecode.S_TBS.Config.Projectiles = {

"sling_stone": {
filename: "Stone",
adapt_angle: true,
speed: 5,
jump: 150
},


3) And added a sequence:

/*-------------------------------------------------------------------------
* Your Sequences
-------------------------------------------------------------------------*/

"sling": [
"play_pose: user, atk",
"wait: 10",
"projectile: sling_stone, user_cell, cursor_cell",
"effects: {aoe}_battlers, current_obj, obj_anim",
"wait: 60"
],


4) Then I created the weapon "sling" and added the following into notes:

<letbs>
scope: circle(4,2)
sequence: sling
</letbs>

But when I want to use the sling in test-game, I get this message:
TypeError
Cannot read property 'slice' of undefined

Anyone an idea what could be the reason for that?
Thanks!

Is the skill using an animation?
Is the skill using an animation?

It's not a skill. I defined it as a weapon called sling. It can be used with the normal Attack-command. Concerning the animation of the weapon I tried it with pierce physical (like the bow) and without animation. In both cases I got the error message.
It's not a skill. I defined it as a weapon called sling. It can be used with the normal Attack-command. Concerning the animation of the weapon I tried it with pierce physical (like the bow) and without animation. In both cases I got the error message.
Can you send a screenshot of the sling weapon as well as the notetags
sling.jpg
ok, here the screenshot of the sling weapon. "leichte Waffen" is a weapon type I created, "Hiebwaffe" is a created element-type

@Pharonix any idea what could be the reason for the error? Thanks!

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