Lecode Tactical Battle System 0.77.2B

GuilhermeMJ

Veteran
Veteran
Joined
Dec 6, 2017
Messages
33
Reaction score
2
First Language
pt-br
Primarily Uses
RMMV
still the same
upload_2018-2-7_12-6-7.png
 
Last edited:

Pharonix

Shadow Walker
Veteran
Joined
Apr 22, 2012
Messages
764
Reaction score
357
First Language
English
Primarily Uses
RMMV
I don' know what language that is but regarding your issue.

I see that You are using 77.1
Sprite configuration has been removed from the config .js file and moved to actor/enemy note boxes.

Take a look at the demo actor sprite configs.
You will need, at the least config for idle
 

Pharonix

Shadow Walker
Veteran
Joined
Apr 22, 2012
Messages
764
Reaction score
357
First Language
English
Primarily Uses
RMMV
You need to use the new
Code:
<letbs_sprite>
...
</letbs_sprite>
in the actor / enemy notes to define the sprite configuration.
^^this

I just got a new computer, so I'll be back in business soon :)
just really want to get back to working on my project.
 

GuilhermeMJ

Veteran
Veteran
Joined
Dec 6, 2017
Messages
33
Reaction score
2
First Language
pt-br
Primarily Uses
RMMV
in the site of the plugin has nothing on the new codes, I'm very lost
Could you show me exactly what to put in the notes box?
 

GuilhermeMJ

Veteran
Veteran
Joined
Dec 6, 2017
Messages
33
Reaction score
2
First Language
pt-br
Primarily Uses
RMMV
I know a little bit about the new codes because I saw it in the demo, but it gets cut like before
upload_2018-2-8_16-53-35.png
 

Lecode

(─‿‿─)
Veteran
Joined
Dec 18, 2013
Messages
490
Reaction score
659
First Language
French
Primarily Uses
N/A
0.77.2 Update
Code:
# - 0.77.2
#       * AI passes the turn when there is no alive enemy on the battlefield. This is to avoid any bug
#         in the instances where defeating the opposite team doesn't put an end to the battle.
#       * The scan command fully support touch input
#       * The "scope_select" tag can contain multiple values. Ex: scope_select: allies,user
#       * Added a plugin parameter to define a sort method to determine the turn order.
#         By default the method is based on battlers' agi.
#       * Fixed a bug where the modified sequence system from 0.77.1 would prevent "after effects"
#         to take place (counterattack, timeline control effects, ect)
#       * Fixed a bug where statut icons would be incorrectly drawn

I just got a new computer, so I'll be back in business soon :)
just really want to get back to working on my project.
Good for you!
Have just been able to work on LeTBS for a while.
Still a lot to do for the next big version though.

in the site of the plugin has nothing on the new codes, I'm very lost
Yeah I'm sorry but the documentation isn't updated.
About your issue, I don't totally remember how I went with using characters,but the issue is: The chara you're using isn't a default 48*48 chara. You'd have to use custom files. Get your chara as a standalone version, put it in the right folder and use the right tags. Use Angela and Duran configurations as an example.

Man, I booted up the 77.1 demo like LeCode had recommended a while back and without modding anything counter attacks don't even work in his own demo.
I noticed that the 0.77.1 new sequence system broke after effects. Some effects that are supposed to happen when a chain of sequence is completely ended (may be one or multiple actions). That is when counterattack happens. As timeline control effects too.
It's fixed on 0.77.2 just now.

also noticed that auras aren't working properly.
How exactly ?

Additionally I have a question: Double attacks don't work, no? Is there a way to make the Attack +1 and such repeats actually function? Seems a bit wonky unless you make a sequence that contains multiple action hits, I think. Is there no way to make it repeat the SAME sequence twice, for instance? I'm trying to make a weapon that guarentees a double attack when initiating combat.
The easiest way would be to use the custom sequence tag and call attack twice. Or an equivalent sequence.
It just takes 4 lines in the note box. Making an add-on just for repeating sequences would be overkill and not really needed.
Just repeat whatever you want in a custom sequence :).
Code:
<letbs_Sequence>
call: my_attack
call: my_attack
</letbs_Sequence>
Or shorter:
Code:
<letbs_Sequence>
call: my_attack, 2
</letbs_Sequence>
@Adventurer_inc. : I'm glad to see how you use the code. :thumbsup-left:

Is it possible to have an ally or enemy cast a spell on death?
I was working on it the other day. The issue is I'd probably have to take a dirty path ot make it work. Thing that I would like to avoid and that's the issue. When a battler technically die, (considered as such in the default code) he can't deal any damage and has many other restrictions.
Executing a sequence at death would mean to remove the death state before hand than add it just after that.
The cleanest way would be to delay the declaration of death until the proper time.

Is there currently (.77.1) a way to change an actors sprite during a tactical battle?
It was working before .77.1 sadly :$. Noted down...
 
Last edited:

Sissel Cabanela

Veteran
Veteran
Joined
Mar 28, 2016
Messages
110
Reaction score
21
First Language
English
Primarily Uses
0.77.2 Update
Code:
# - 0.77.2
#       * AI passes the turn when there is no alive enemy on the battlefield. This is to avoid any bug
#         in the instances where defeating the opposite team doesn't put an end to the battle.
#       * The scan command fully support touch input
#       * The "scope_select" tag can contain multiple values. Ex: scope_select: allies,user
#       * Added a plugin parameter to define a sort method to determine the turn order.
#         By default the method is based on battlers' agi.
#       * Fixed a bug where the modified sequence system from 0.77.1 would prevent "after effects"
#         to take place (counterattack, timeline control effects, ect)
#       * Fixed a bug where statut icons would be incorrectly drawn


Good for you!
Have just been able to work on LeTBS for a while.
Still a lot to do for the next big version though.


Yeah I'm sorry but the documentation isn't updated.
About your issue, I don't totally remember how I went with using characters,but the issue is: The chara you're using isn't a default 48*48 chara. You'd have to use custom files. Get your chara as a standalone version, put it in the right folder and use the right tags. Use Angela and Duran configurations as an example.


I noticed that the 0.77.1 new sequence system broke after effects. Some effects that are supposed to happen when a chain of sequence is completely ended (may be one or multiple actions). That is when counterattack happens. As timeline control effects too.
It's fixed on 0.77.2 just now.


How exactly ?


The easiest way would be to use the custom sequence tag and call attack twice. Or an equivalent sequence.
It just takes 4 lines in the note box. Making an add-on just for repeating sequences would be overkill and not really needed.
Just repeat whatever you want in a custom sequence :).
Code:
<letbs_Sequence>
call: my_attack
call: my_attack
</letbs_Sequence>
Or shorter:
Code:
<letbs_Sequence>
call: my_attack, 2
</letbs_Sequence>
@Adventurer_inc. : I'm glad to see how you use the code. :thumbsup-left:


I was working on it the other day. The issue is I'd probably have to take a dirty path ot make it work. Thing that I would like to avoid and that's the issue. When a battler technically die, (considered as such in the default code) he can't deal any damage and has many other restrictions.
Executing a sequence at death would mean to remove the death state before hand than add it just after that.
The cleanest way would be to delay the declaration of death until the proper time.


It was working before .77.1 sadly :$. Noted down...
Aye boss, thanks for the relative quick update, I know yer' a busy person. A question for ya': How would I have a condition/argument return true if the target is in counter-attack range?
 

Lecode

(─‿‿─)
Veteran
Joined
Dec 18, 2013
Messages
490
Reaction score
659
First Language
French
Primarily Uses
N/A
A question for ya': How would I have a condition/argument return true if the target is in counter-attack range?
Depends on the context. Do you have access to the user and the target ?
What are you trying to do ?
 

Sissel Cabanela

Veteran
Veteran
Joined
Mar 28, 2016
Messages
110
Reaction score
21
First Language
English
Primarily Uses
Depends on the context. Do you have access to the user and the target ?
What are you trying to do ?
Sorry for my lack of clarity. I'm trying to give the defender of an attack a state grants 100% counter-rate if they are in proper range(specifically need the state applied as an identifier). I think there are 2 ways I can this:
1. In the <Before Eval> for the attack, evaluate target distance and valid counter attack range and if they can counter attack, grant the 'Defender' state(+100% Counter)
2. Using the Yanfly Extra Parameter Core and a custom state, when attacked, the user is granted 100% Counter Rate when in range to counter, 0% otherwise.
Sorry if that doesn't make sense, I'm poor at explaining things.
 

Lecode

(─‿‿─)
Veteran
Joined
Dec 18, 2013
Messages
490
Reaction score
659
First Language
French
Primarily Uses
N/A
@Sissel Cabanela : I see.

This code collects all targeted entities for the current action:
Code:
var aoe = BattleManagerTBS._actionAoE;
var targets = BattleManagerTBS.getEntitiesInScope(aoe);
// targets, an array of Entity objects.
You'd have to loop through each of the selected entity then, and check the distance with the user.
Code:
targets.forEach(function(entity)={
  var distance = LeUtilities.distanceBetweenCells(entity.getCell(), user.getCell());
  if (distance === 1) {
    entity.battler().addState(ID);
  }
});
Given that "user" refers to the user of the attack, it should work.

I have been working a "Query" static class to get various data and informations in a friendly way during runtime.
I plan to do something similar as Yanfly Before/After eval trough side effects. It's coming.

You can also call a common event just before the attack and do your stuff there.
 

Sissel Cabanela

Veteran
Veteran
Joined
Mar 28, 2016
Messages
110
Reaction score
21
First Language
English
Primarily Uses
@Sissel Cabanela : I see.

This code collects all targeted entities for the current action:
Code:
var aoe = BattleManagerTBS._actionAoE;
var targets = BattleManagerTBS.getEntitiesInScope(aoe);
// targets, an array of Entity objects.
You'd have to loop through each of the selected entity then, and check the distance with the user.
Code:
targets.forEach(function(entity)={
  var distance = LeUtilities.distanceBetweenCells(entity.getCell(), user.getCell());
  if (distance === 1) {
    entity.battler().addState(ID);
  }
});
Given that "user" refers to the user of the attack, it should work.

I have been working a "Query" static class to get various data and informations in a friendly way during runtime.
I plan to do something similar as Yanfly Before/After eval trough side effects. It's coming.

You can also call a common event just before the attack and do your stuff there.
If I'm reading that right, distance is the amount of cells between the user and target? So I cannot have a ranged counter attack? Or is 'distance' going to be 'Attack Distance' in this case? If it is the former, if there I can grab the data of the designated Attack/Counter-Attack skill of the Defender and get the range on that move once grabbed? Apologies if I'm being difficult.
 

Lecode

(─‿‿─)
Veteran
Joined
Dec 18, 2013
Messages
490
Reaction score
659
First Language
French
Primarily Uses
N/A
If I'm reading that right, distance is the amount of cells between the user and target? So I cannot have a ranged counter attack?
Exact, only melee counterattacks are available now.
You'd have to wait for a plugin for something more deep. Counter with skills and such.
 

Sissel Cabanela

Veteran
Veteran
Joined
Mar 28, 2016
Messages
110
Reaction score
21
First Language
English
Primarily Uses
Exact, only melee counterattacks are available now.
You'd have to wait for a plugin for something more deep. Counter with skills and such.
Well that's fair enough. My next question would be how would I grab skill data? For instance, what function would return the scope of a skill?
 

Pharonix

Shadow Walker
Veteran
Joined
Apr 22, 2012
Messages
764
Reaction score
357
First Language
English
Primarily Uses
RMMV
Auras don't work this way

I pop intimidating aura. Then walk by enemu, theres no state popup.

I made an aura that halves the mph of enemies, the enemy had 200 mph, but when I got near, he still had 20p hp
 

Adventurer_inc.

Technically a Programmer
Veteran
Joined
Sep 12, 2015
Messages
99
Reaction score
41
First Language
English
Primarily Uses
RMMV
This code collects all targeted entities for the current action:
Code:
var aoe = BattleManagerTBS._actionAoE;
var targets = BattleManagerTBS.getEntitiesInScope(aoe);
// targets, an array of Entity objects.
You'd have to loop through each of the selected entity then, and check the distance with the user.
Code:
targets.forEach(function(entity)={
  var distance = LeUtilities.distanceBetweenCells(entity.getCell(), user.getCell());
  if (distance === 1) {
    entity.battler().addState(ID);
  }
});
Your hard work is highly appreciated. These functions will definitely be useful, I'm going to go ahead and reference these later.

EDIT2 : Alternatively, Is there a simple way to update an event note with javascript (something like $dataMap.events()[x].setNote()) ?
I can do it directly with $dataMap.events[x].note="<xxxxx>" but I'm pretty sure that's really unclean.
This is ridiculously creative. However, I do remember doing something similar in RPG Maker Ace and encryption broked it somehow.
 
Last edited:

Lecode

(─‿‿─)
Veteran
Joined
Dec 18, 2013
Messages
490
Reaction score
659
First Language
French
Primarily Uses
N/A
There was a typo in .77.2 files so please re-download it again for those who have it.

Auras don't work this way

I pop intimidating aura. Then walk by enemu, theres no state popup.
I have just double checked now and this aura did work.
What version are you using ? I wonder what broke it.

Your hard work is highly appreciated. These functions will definitely be useful, I'm going to go ahead and reference these later.
Thank you. My plan is to create a static class to query LeTBS and get whatever information or data the user would need.
And internally that class could be used to eval sequence conditions (if command) and conditions to trigger common events. Right now this process is scattered.
 

Pharonix

Shadow Walker
Veteran
Joined
Apr 22, 2012
Messages
764
Reaction score
357
First Language
English
Primarily Uses
RMMV
I use 77
I have too much to convert for 77.1 at this time
 

Lecode

(─‿‿─)
Veteran
Joined
Dec 18, 2013
Messages
490
Reaction score
659
First Language
French
Primarily Uses
N/A
I use 77
I have too much to convert for 77.1 at this time
I strongly suggest you to wait for the next BIG version. 0.8
The overall configuration system will be redesigned (no config file) and evaluating would be more complete.
Unless RPG Maker MV evolves into giving customizable tools for plugin configurations, the next configuration system won't likely
change at all. So 0.8 would be a proper base and we won't change everything again with the next versions.
 

Sissel Cabanela

Veteran
Veteran
Joined
Mar 28, 2016
Messages
110
Reaction score
21
First Language
English
Primarily Uses
I strongly suggest you to wait for the next BIG version. 0.8
The overall configuration system will be redesigned (no config file) and evaluating would be more complete.
Unless RPG Maker MV evolves into giving customizable tools for plugin configurations, the next configuration system won't likely
change at all. So 0.8 would be a proper base and we won't change everything again with the next versions.
Out of curiosity, do you have a (projected) feature list or ETA for version 0.8?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 3)

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,033
Messages
1,018,441
Members
137,820
Latest member
georg09byron
Top