Lecode Tactical Battle System 0.77.2B

Hi there,

I encounter some issues with the demo, can someone help me please ?
All work fine until a battle start and i get this...
are you using the latest patch?
It seems you are using an older version where it crashes if you choose an option (skill or item) that has an empty list.
It crashes because there is no scope to preview.

Check a few pages back, someone posted the latest full demo with the patch in it.

Edit:
I found it for you:
https://www.dropbox.com/s/bbs5o5lxtm0o244/LeTbs 076A Demo.rar?dl=0
I just downloaded all yesterday and i use the 1.50 version of MV, i will try it anyway and give you news
@Imatsu Try this version instead, this is the 0.76B (@Pharonix link is 0.76A, there is still the bug inside but preview scope is disabled by default so it won't appear if you do not able it while 0.76B is activated by default but the preview bug you are facing is solved):
https://www.dropbox.com/s/so0klk0jx6la3g1/LeTbs 076B Demo.rar?dl=0
Would it be possible to add a plugin variable that would allow us to set an enemy animation for placement?
I feel this would add a small, yet aesthetically pleasing change.

Or better yet, allow us to use a tag called placement_animation: x
and let us be able to set each enemy or ally's animation directly on the database object
-This would allow the evil overlord to have a longer animation play when he's placed, or allow your paladin to appear from a flash of light,
Alright.

On an unrelated note, how do I modify battle damage based on how far the enemy is.
I want a beam attack that does more damage the further the enemy is.
That'd be easily doable with the side effects system I plan to add to LeTBS.

Also would transformation skills be possible? or replacement? Like you use a spell on an ally and replace them with another party member, or use a transformation spell to turn an enemy into a rock for 3 turns?
That's not properly supported for now.

@Imatsu Try this version instead, this is the 0.76B (@Pharonix link is 0.76A, there is still the bug inside but preview scope is disabled by default so it won't appear if you do not able it while 0.76B is activated by default but the preview bug you are facing is solved):
https://www.dropbox.com/s/so0klk0jx6la3g1/LeTbs 076B Demo.rar?dl=0
Added the link to the main post.
Alright.


That'd be easily doable with the side effects system I plan to add to LeTBS.


That's not properly supported for now.


Added the link to the main post.

Sounds great Lecode. Looking forward to side effects.

Wondering how to add in a mana shield.
I found a script but its not compatible.

I want a character to have a passive mana shield (Yanfly auto passives)
and have it block say 20% damage as mp damage. So 100 damage would do 20 mp damage and 80 hp damage.
The script I found doesn't seem to work with LETBS. 🙁
Thanks @Pharonix, it all work nicely now
I will use your version @Chaosicaa
How it's all mine to understand how it work haha
Interesting issue here.
Wonder if you can help me @Lecode

I created a skill that takes 4 selections, saves them then teleports the player to each to cause AOE.
It seems to only cause aoe on the first target.

I'm uploading the videos to dropbox now. So I'll edit this when they're out.

Spoiler: Dasher
"dasher": [
"wait: 60",
"call: pre-skill",
"save_cells: user_old, user_cell",
"save_cells: first, cursor_cell",
"request_selection: skill(501)",
"save_cells: second, cursor_cell",
"request_selection: skill(501)",
"save_cells: third, cursor_cell",
"request_selection: skill(501)",
"save_cells: fourth, cursor_cell",
"look_at: user, first",
"set_speed: user, +6",
"anim: user, 154",
"move_to_cell: user, saved(first), true",
"anim: user, 155",
"set_speed: user, reset",
"set_frame: user, atk, last",
"wait: 12",
"map_effects: {aoe}_enemy_cells, current_obj, 231, 0, true",
"wait: 60",
"look_at: user, second",
"set_speed: user, +6",
"anim: user, 154",
"move_to_cell: user, saved(second), true",
"anim: user, 155",
"set_speed: user, reset",
"set_frame: user, atk, last",
"wait: 12",
"map_effects: {aoe}_enemy_cells, current_obj, 231, 0, true",
"wait: 60",
"look_at: user, third",
"set_speed: user, +6",
"anim: user, 154",
"move_to_cell: user, saved(third), true",
"anim: user, 155",
"set_speed: user, reset",
"set_frame: user, atk, last",
"wait: 12",
"map_effects: {aoe}_enemy_cells, current_obj, 231, 0, true",
"wait: 60",
"look_at: user, fourth",
"set_speed: user, +6",
"anim: user, 154",
"move_to_cell: user, saved(fourth), true",
"anim: user, 155",
"set_speed: user, reset",
"set_frame: user, atk, last",
"wait: 12",
"map_effects: {aoe}_enemy_cells, current_obj, 231, 0, true",
"wait: 60",
"call: post-skill"
],

EDIT:
https://www.dropbox.com/s/krsvmfnyv0ejlnk/clip0011.avi?dl=0
https://www.dropbox.com/s/qtemqd7xv0kcnew/clip0012.avi?dl=0

It also hits allies, but I used {aoe}_enemy_cells
Whew, been a bit since i've posted in here! Life can get busy sometimes..

Thank you so much for the patch fixing common events @Lecode, it is much appreciated!

I have been having a few issues now however, if anyone knows any of these answers feel free to answer 🙂

First off, the icon for skills does not show up for me anymore, no idea why. The value for the icon I want is entered in and I haven't changed anything with that, which is odd...It is called Spells for me since spells are the only types of skills I use in this project, but that hasn't affected anything until the patch.

None of my enemies attack me anymore, they just sit there and seem to be searching for something lol, they get easily distracted now 😛 Here's a screenshot of the console if I just repeatedly type end turn for a while. Both enemies are standing right next to me, they move a square or two, then end turn.
Spoiler: Picture
Screenshot 2017-09-15 19.44.05.png

Whenever my character uses just a normal melee attack, the turn never ends. I am just able to keep using melee attacks over and over until the enemy is dead, which is obviously quite broken 😛 I haven't modified anything that I remember with the attack skill, not sure what is going on there. I even have the pass_on_atk_use in the notes for it and that does nothing..strange.

Where exactly is the option to disable the positioning window located at? I am not seeing it in the plugin config in rpg maker or anything, do I need to find that in one of the plugin files?

EDIT: I forgot, I am also trying to shift over my skills menu to create more room, but I cannot find the x y coordinate options in the LeTBSWindows.js

I found the w and h but I can't change where it physically displays itself 🙁

I think these are the only major issues lately.. Keep up the great work man!
Is there a way to make a wall that blocks projectiles? Basically like Yasuo's windwall from league of legends. It still lets the enemies shoot the projectiles so it doesn't block line of sight, it just stops them before they hit the player. I want to have a character that projects a barrier around an ally so that you can defend the ally from ranged attacks while he goes melee on another enemy.
I created a skill that takes 4 selections, saves them then teleports the player to each to cause AOE.
It seems to only cause aoe on the first target.
Nop, it uses the last AoE on the selection. You requested 4 selections, then asked the sequence runner to:
"map_effects: {aoe}_enemy_cells, current_obj, 231, 0, true".
At the end of the 4th selection, and especially when you moved the , aoe is settled, and all the next "map_effects" commands will use that aoe.
When each selection has to be treated individually, you should use the same approach as Mega Sparkle.

Also:
-Commands "look_at: user, first", and "look_at: user, second" and so on won't work. nor first, or second is a valid key to specify an AoE.
Instead use saved(first), saved(second) and ect.
-Since you're teleporting the user, altering the speed isn't needed.

Set this tag in your skill's notebox:
Code:
<letbs>
...
4 selections: distinct; Select 4 areas
</letbs>

With these sequences:
Code:
"dasher": [
        "save_cells: user_old, user_cell",
        "call: pre-skill",
        "call_for_every_mscope: dasher_effects",
        "move_to_cell: user, saved(user_old), true",
        "call: post-skill"
    ],

    "dasher_effects": [
        "look_at: user, saved(mscope_center)",
        "anim: user, 154",
        "move_to_cell: user, saved(mscope_center), true",
        "anim: user, 155",
        "set_frame: user, atk, last",
        "wait: 12",
        "map_effects: saved(mscope_aoe), current_obj, 231, 0, true",
        "wait: 60",
    ],
Give it a try.
call_for_every_mscope calls a sequence for each multi selection. For each of them, the center and the aoe are saved as, respectively mscope_center and mscope_aoe. So you can use the selections individually by this mean.

It also hits allies, but I used {aoe}_enemy_cells
Noted.

@Tewth : You're having really strange bugs...Except for the icons...It's caused by a silly error since last patch.
Have you the correct files ? Are the plugins in the right order ?

Where exactly is the option to disable the positioning window located at? I am not seeing it in the plugin config in rpg maker or anything, do I need to find that in one of the plugin files?
The positioning window can't be disabled. And hidding it in the code won't just work. The whole "positioning phase" depends on it.

EDIT: I forgot, I am also trying to shift over my skills menu to create more room, but I cannot find the x y coordinate options in the LeTBSWindows.js
The x and y coords are automatically calculated so the windows float above entities.
I'm not going to work heavily on the windows until the core system is completed to a satisfactory level....So if you can make some tweaks yourself in the LeTBSWindows.js file, go ahead.

@Rem Rem: If the skill requires a line of sight, the user won't just be able to launch any projectile, because of the obstacle. So you can just summon some obstacles.
@Rem Rem: If the skill requires a line of sight, the user won't just be able to launch any projectile, because of the obstacle. So you can just summon some obstacles.

But if it is an obstacle it blocks movement, it needs to block just line of sight so that people can walk through the barrier.
@Lecode,
Thanks for the updated config info and tags.
I'll let you know how it works out for me.

But if it is an obstacle it blocks movement, it needs to block just line of sight so that people can walk through the barrier.
@Rem Rem
Lecode means use the summon feature to summon an actor, such as Ice Blocks, the ice blocks work as a non-moving entity (like summoning an actor)
This means they'd be targetable and any Line of Sight skill would force the AI to target the "Summoned Ally" in this case, the ice block.
Look at Ice Prison: - it summons ice blocks in the AOE.
You would copy as Ice wall - change to ally, and give it the ID of an actor (Playable Character) and create a Dummy actor as an ice block.
Then make sure it has no skills, no move and is set to
type: "ai_playable", (Look at pixie for help creating AI-controlled Summons)


EDIT:
@Lecode, it crashed:
I chose skill
selected all 4, great.
Then it faced the first target, moved.
Then it crashed when trying to apply the effects.
upload_2017-9-18_7-57-19.png


EDIT2:
The issue was stemming from using saved(mscope_aoe) and map_effects
I swapped map effects with the regular effects for now
New question:

How do I add in a state for "Fear"
I want to inflict a state that when an enemy is "Fearful" he will run away from the player (or become ranged)
Is it possible to use states to alter the AI play-style?
like giving them a bunch of skills with a turn modifier that randomly changes their state?
For example. an enemy battle mage starts by using spells, then on turn 5, he switches to melee,
then turn 10 he switches back to normal?

Or is the best way to do this by adding a modification spell, and using enemy_transform to transform into a copy of the enemy, only with melee style?

The above works for specific enemies, but I don't want to use enemy transform for fearful enemies, since it modifies all their stats.
I turn an enemy into a rock with 999 defense, because he's a rock and can't be killed, I don't want to change the stat's of enemies that are fearful, but it would be interesting - Since maybe "Fear" could lower their stats.
Ok but still if it is a summon I can't walk through it. Doing what you said still creates an entity that takes up a space. I want for my players and enemies to be able to walk through the barrier. No ranged attacks outside the barrier will hit anything on the inside, but once you walk it you can used a ranged attack to hit players within.
@Rem Rem : Use the "passable" tag on the summoned entities.
@Pharonix : No, there is no such state. I take note.
New question:

How do I add in a state for "Fear"
I want to inflict a state that when an enemy is "Fearful" he will run away from the player (or become ranged)
Is it possible to use states to alter the AI play-style?
like giving them a bunch of skills with a turn modifier that randomly changes their state?
For example. an enemy battle mage starts by using spells, then on turn 5, he switches to melee,
then turn 10 he switches back to normal?

Or is the best way to do this by adding a modification spell, and using enemy_transform to transform into a copy of the enemy, only with melee style?

The above works for specific enemies, but I don't want to use enemy transform for fearful enemies, since it modifies all their stats.
I turn an enemy into a rock with 999 defense, because he's a rock and can't be killed, I don't want to change the stat's of enemies that are fearful, but it would be interesting - Since maybe "Fear" could lower their stats.

For the first example, would it be enough to use the state as an escape_condition? Something like
escape_condition: a.isStateAffected(stateId)

In general I feel like setting up use_conditions around states could get you 90% of what you want, but I'm still just starting out so apologies if I'm missing something.
This is amazing. I can feel the Fire Emblem and Disgaea fangames being made as I write.
What about jump system like ff tactics? :ninja:
Is it possible to summon 3 different entities at once?
For example, I want to set a scope of circle(0)
aoe is left, right and behind. and requires all 3 to be empty.
and summon actor 17 in the left, 18 in the right and 19 in the rear.

EDIT:

Could I just use use_skill: entities, skill_id
and set 3 skills - each to use an aoe summon but give the aoe only the specific cell it is allowed to be in?

can I just add this to a sequence for "Summon Three Things"
"use_skill: user, 17",
"
use_skill: user, 18",
"
use_skill: user, 19"

So skillA targets user, but aoe is to the left only.
So skillB targets user, but aoe is to the back only.
So skillC targets user, but aoe is to the right only.
Nevermind! I figured out what the problem was!

Okay so new problem! When I set battle end conditions with the event command
"◆Comment:<LeTBS> Trigger_Type: battle_end" The battle doesn't end... @.@ It keeps going even after all foes are dead. The comment code is the only thing I can think of that can be the cause of this as if I remove said event, the battle ends like normal. One other piece of info I can provide is that I had 5 foes in this battle, so that may also be a factor.

BUG REPORT:

Your plugin either doesn't like to work with the "autorun" function or it has a problem with Yanfly's common event plugin or SOMETHING! All I know is that if I start a battle via choice it runs fine but if I try to activate it in combination with running an autorun event like this:
c3f5e221ec.png


It flings up this error:

3962493dd9.png


Farther testing reveals that unless it is ran from that map from your demo(which I imported into my game) it will ALWAYS fling up this error.

Or maybe not, I DO NOT FREAKING KNOW! All I know is its throwing this error at me and I just want it to ing stop!>.<


I copied and pasted the event code from the map that had the battles starting right and it suddenly started working yet the code was the exact same that I copied and pasted earlier...
giphy.gif


I hate complex Java code...

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