Lecode Tactical Battle System 0.77.2B

Hi, this is a great engine and I'm still trying to get to grips with it.

One quick question, is it possible to make it so that some spells can or can't be used depending on movement?
Hi, this is a great engine and I'm still trying to get to grips with it.

One quick question, is it possible to make it so that some spells can or can't be used depending on movement?

What do you mean based on movement
What do you mean based on movement
I assume he means 'if you moved this turn, you can't use this skill', or something of that nature?
I assume he means 'if you moved this turn, you can't use this skill', or something of that nature?
EDIT 3:

Turns out this was actually super duper easy. I just didn't use Yanfly's skill conditions correctly.

Add this to a skill's notetag to prevent it from being used if the user moved.
<Custom Requirement>
value = !BattleManagerTBS.activeEntity()._movePerformed
</Custom Requirement>

You need to call through BattleManagerTBS because the _movePerformed is not linked to the battler, which would make user._movePerformed an bad call.

Turns out when Yanfly checks the conditions, it doesn't go:
value = eval(code);
it uses a try catch and sets value to true at the beginning, so in order to properly update value, you need to include value = (condition) in the notetag.
Now these issues appear. I noticed that they all have different numbers. Could you take a look at the error report and let me know exactly what the errors are please?

TypeError: Cannot read property 'list' of undefined
at Game_Event.list (file:///C:/Users/REDACTED/Google%20Drive/REDACTED/REDACTED/js/rpg_objects.js:8470:23)
at Function.<anonymous> (file:///C:/Users/REDACTED/Google%20Drive/REDACTED/REDACTED/js/plugins/LeTBS.js:1768:39)
at Array.forEach (native)
at Function.BattleManagerTBS.prepareEntityFlags (file:///C:/Users/REDACTED/Google%20Drive/REDACTED/REDACTED/js/plugins/LeTBS.js:1766:23)
at Function.BattleManagerTBS.prepare (file:///C:/Users/REDACTED/Google%20Drive/REDACTED/REDACTED/js/plugins/LeTBS.js:1634:10)
at Function.BattleManagerTBS.startBattle (file:///C:/Users/REDACTED/Google%20Drive/REDACTED/REDACTED/js/plugins/LeTBS.js:1624:10)
at Scene_Battle.start (file:///C:/Users/REDACTED/Google%20Drive/REDACTED/REDACTED/js/plugins/LeTBS.js:957:26)
at Scene_Battle.start (file:///C:/Users/REDACTED/Google%20Drive/REDACTED/REDACTED/js/plugins/LeTBS_WinConditions.js:116:44)
at Function.SceneManager.updateScene (file:///C:/Users/REDACTED/Google%20Drive/REDACTED/REDACTED/js/rpg_managers.js:2019:25)
at Function.SceneManager.updateMain (file:///C:/Users/REDACTED/Google%20Drive/REDACTED/REDACTED/js/rpg_managers.js:1983:18)
I still need help with this
I still need help with this


Did you download the 77.2b demo i posted a few pages back?

It looks like you're missing plugins
Did you download the 77.2b demo i posted a few pages back?

It looks like you're missing plugins
If the ones I'm missing are LeTBS.js and LeTBS_WinConditions.js, I already have those. Do I need the newer ones?
If the ones I'm missing are LeTBS.js and LeTBS_WinConditions.js, I already have those. Do I need the newer ones?

You need all of them.

Also what version of MV are you using
You need all of them.

Also what version of MV are you using
I'm using 1.5.1
I'm using 1.5.1
I can't really help you much if you don't tell me Where you got your files
Open your LeTBS.js file in notepad and look at the top few lines and tell me what version it says.

Worst case, just send me a pm to a zipped version of your project.
It's version 0.77.2B. I got the demo from a few pages back
It's version 0.77.2B. I got the demo from a few pages back
Did you build on the project or copy the files over?
Did you add anything to the letbsconfig.js file?
Can you send me a full list of plugins you are using (In the order displayed in plugin manager)

If using the actual demo project, what did you add before you started the battle? The demo project worked fine.

If not, I'll need to see the event that starts the battle
I just copied the files over. Do I need to build on the demo?
I just copied the files over. Do I need to build on the demo?

Its best to, thats what I did, otherwise you need to configure the animations, and sprite data.all the plugins, etc
Its best to, thats what I did, otherwise you need to configure the animations, and sprite data.all the plugins, etc
I tried that, and it still refuses to work. I'm going to have to send you the game file. I'll have to do it through PM.
Is it possible to get something like this to work on Actors that are using Battler Sprite instead of only working on Actors with the "use_chara" tag or no?

I have not tried to change that yet, but it would probably be possible to do. If I make a spell to transform enemies I'll post that solution here too.
Finally getting into messing around with this- is there a way to make sequences that take more than one parameter? I'm trying to make a projectile that is also a push, but putting two values inside the ()'s is just making it crash.
Great system! I've been using it in my game. I really am looking forward to 0.8.

How can I start a battle on a different battlefield than the current room without teleporting the player between rooms?
It'd remove a lot of unnecessary transitions.
How can I start a battle on a different battlefield than the current room without teleporting the player between rooms?
It'd remove a lot of unnecessary transitions.

We talking scripted or randim encounters
Use the letbs_encounters script for randoms.
For scripted you would need the teleportation, but use the transfer back as a win condition
(If win[ teleport back])

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