Lecode Tactical Battle System 0.77.2B

Sorry if this has already been asked before, but is there a way to have a skill sequence move the user as close as possible to the target of the skill? Jump to cell/move to cell don't really do what I want, since I want it to be on the closest available cell, not on top of the enemy.
Hi guys... I just wonder why every time I download the demo from dropbox, I can't get full file. It's even the project file isn't there

Which link are you using.
I think theres one out there with just the javascript.


Sorry if this has already been asked before, but is there a way to have a skill sequence move the user as close as possible to the target of the skill? Jump to cell/move to cell don't really do what I want, since I want it to be on the closest available cell, not on top of the enemy.

Your best option is Reach_Target right now, but it teleports.

reach_target: user, entity, type, end_if_imposible
Teleport the user near the entity. if end_if_imposible is true, the sequence is ended if the caster can’t reach the target.
  • type can be:
    • back : The user will be teleported at the back of the target
    • front : The user will be teleported toward the target
    • side : The user will be teleported at one the sides of the target
    • random : The user will be teleported randomly at the back, side or front
@Pharonix it's the demo in the first page of this thread... with "This demo" as the link
Which link are you using.
I think theres one out there with just the javascript.




Your best option is Reach_Target right now, but it teleports.

reach_target: user, entity, type, end_if_imposible
Teleport the user near the entity. if end_if_imposible is true, the sequence is ended if the caster can’t reach the target.
  • type can be:
    • back : The user will be teleported at the back of the target
    • front : The user will be teleported toward the target
    • side : The user will be teleported at one the sides of the target
    • random : The user will be teleported randomly at the back, side or front

Yeah, unfortunately that's not exactly what I'm hoping for, but thanks - I'll just have to go without for the time being.
Yeah, unfortunately that's not exactly what I'm hoping for, but thanks - I'll just have to go without for the time being.

It might take some time, but I can see if I can write some code to combine the two a-la, move to random space near enemy
any way to make terrain height here?
Jump stat will make my game a lot more realistic
If it's impossible, I'll just skip it altogether
any way to make terrain height here?
Jump stat will make my game a lot more realistic
If it's impossible, I'll just skip it altogether

Would require significant code changes, to pathfinding and visuals in particular. Most importantly, MV's standard perspective isn't very good at showing height, as compared to something like an isometric perspective.
Would require significant code changes, to pathfinding and visuals in particular. Most importantly, MV's standard perspective isn't very good at showing height, as compared to something like an isometric perspective.

I actually started a very barbaric way of doing this, but i doubt it'll amount to much., as I am not sure if I can pull terrain tags (the 0-9 values in tileset manager) through LeTBS.
If I can then giving actors a "Jump" height will allow me to do this.
Thinking this through some more, maybe regions would work (region id, would be the same as the height.

Then on certain skills I can implement <height difference: 2> which would mean if the actor is on
height 3, he can only target heights 1-5 with this skill

LIke I said, barbaric, but it may or may not work.

Can keep you updated but I don't know if I'll be successful.
I have a quick question on this plugin, wondering if anybody else has a solution for it.

In my game, it's army battles (and space ship battles as well). When the characters die, they leave a blood/guts splatter on the ground (their dead body), but I want to make it so that the characters can walk on their dead body, rather than their body being an unpassable wall.

CantWalkOverBloodSplatters.png
I have a quick question on this plugin, wondering if anybody else has a solution for it.

In my game, it's army battles (and space ship battles as well). When the characters die, they leave a blood/guts splatter on the ground (their dead body), but I want to make it so that the characters can walk on their dead body, rather than their body being an unpassable wall.

View attachment 107387

Try using
passable_on_death
Thank you, where would I put it? Is it under sprite config or the normal <letbs> note section? How would I write it in that section?
Thank you, where would I put it? Is it under sprite config or the normal <letbs> note section? How would I write it in that section?

Between the <letbs> tags in the actor notetags
This is what it looks like in my note section for the specific enemy. Maybe I missed something.

Screenshot_6.png
This is what it looks like in my note section for the specific enemy. Maybe I missed something.

View attachment 107409
Thats correct
And it doesnt work?
Thats strange.
It's that time again! Another one of Pharonix' crazy features.
Today I thought I'd drop an update on my previous post about Height differences.

I decided to go with regions.
Even though obstacles use 249/250 for nonLOS and LOS blocking obstacles, I went with the following logic

I get the player's cell's region, and the target cell region.
if the the absolute value of playerR-cellR is less than or equal to 1, then it is walkable, otherwise it is not.

The way it currently works, is it ignores pathing (as in, it will not check if the cell is surrounded by 1 height lower). see picture and explanation.
I plan to patch this later.

This is merely stage 1.

Next I will be implementing the tags
<Float>
<Jump: x>

as well as the passive skills
Float
Jump + x (Jump +1, Jump +2, Jump +3
(if jump 3 is

Float will completely ignore the height difference, as well as granting earth resistance (and increasing electric damage)

Jump will only count the Highest value
so if jump 2 and 3 are equipped, only jump 3 counts.



Test map:
upload_2019-1-18_11-52-58.png
upload_2019-1-18_11-53-11.png


Currently because it doesn't use pathing,
The player selects MOVE
then only the regions of 1 and 2 are selectable.

upload_2019-1-18_11-57-11.png

Lets move here, and see what happens.

Hey now, we can access that second level now!
upload_2019-1-18_11-57-45.png


Once More:
upload_2019-1-18_11-58-5.png


Let's end our turn here:
upload_2019-1-18_11-58-40.png


Next Turn:
upload_2019-1-18_11-59-7.png

Now the Level Below, as well as the entire Top are available to us!


Wonderful! Stage One Complete!!


[Notes to self]
Enemies will not be able to do this multi-step movement.
This will require a path-checking patch.

I Will Keep You All Updated.
I don't normally make 2 posts like this but the last post is too long to keep playing with.

I have no clue how to begin with the pathing. It may actually be impossible for me at this point.
One way would probably be to use the pathresult variable.
Then, since it is an array, go step by step, and instead of checking outright if it has an elevation that's too high, compare each cell in the best "path" to the cell.
This could cause a problem however if the best path ends up being through an elevation that can't be traversed normally (ie. going from 1 to 5 to 2). I suppose I would have to greatly modify the easystar plugin, which I am not looking forward to.

So what I'm going to do is just work with what I have, and add in <FLOAT> and <JUMP> and get that out of the way first.

Basically it'll be this.
[PSEUDOCODE WARNING]

//player's current cell and the regionId
playerCell = this.getCellAt(center.x,center.y);
playerRegion = playerCell._regionId;

//Target cell regionId
cRegion = cell._regionId;

if(playerRegion <=0)
{playerRegion = 0;}

//use absolute value for the initial difference
diff = Math.abs(playerRegion - cRegion);

if(Player Floats) {diff = 0;}
else if (Player Jump 3){diff = diff-3;}
else if (Player Jump 2){diff = diff-2;}
else if (Player Jump 1){diff = diff-1;}


if(diff <= 1)
return true; // Region difference is 1, and thus walkable
else
return false; // Region difference is greater than 1, and not walkable

So if my height is 1 and I want to move to height 5

diff = |1-5| = 4
abs(1-5) = abs(-4) = 4

Normally I can't move here because it is "too high"

Changes with Jump and FLoat

Float : diff = 0 = Can Move
Jump 3 : diff = 4-3 = 1 = Can Move
Jump 2 : diff = 4-2 = 2 = Cannot Move
Jump 1 : diff = 4-1 = 3 = Cannot Move


If anyone has any suggestions on improving this, or making it more efficient, please let me know.
Thats correct
And it doesnt work?
Thats strange.

Thank you, I did dig around a bit more, and it seems that it does work, but it doesn't let the player chill on the one square where the body is dead, but that's not a big deal.

ALSO one other small issue, if a unit (tank/human/whatever) tries to step over the dead body, they slide underneath the dead body (rather than going over the blood pile, they go under). Just wondering if there's a quick fix for that.
Thank you, I did dig around a bit more, and it seems that it does work, but it doesn't let the player chill on the one square where the body is dead, but that's not a big deal.

ALSO one other small issue, if a unit (tank/human/whatever) tries to step over the dead body, they slide underneath the dead body (rather than going over the blood pile, they go under). Just wondering if there's a quick fix for that.

To have the player stay there you need to use
entities_can_stay_on_me_on_death

But theres an issue with this, and the live entity wont be selected for attack properly

Both these issues are related to layering problems

But might be fixed in .8
I am having an issue again, but i cannot figure out how to specify a enemy, i cannot figure it out. like the enemy cells
I am having an issue again, but i cannot figure out how to specify a enemy, i cannot figure it out. like the enemy cells

<enemy cell>
Put it on the notetag for the event

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