Chaosicaa// no no. What I'm saying... I want to run a common event when I defeat all enemy.
Lecode Tactical Battle System 0.77.2B
JS Plugin Releases (RMMV)Chaosicaa// no no. What I'm saying... I want to run a common event when I defeat all enemy.
Been exploring the demo, and this is looking like an excellent and flexible system - excited to explore more of it.
Two issues I noticed:
1)After a character runs out of action points, or after you select Pass for the character, you still have to click again, anywhere on the screen, for the system to move on to the next character/enemy's turn. This feels funky and unintuitive. I'd like to either see the 'turn' automatically pass to the next entity in the queue when a battler has run out of actions or the user has selected Pass, or, if it's necessary for user input to continue to the next entity in the battle queue, let this be done by clicking on a window or button that has the text 'Next' in it. Just clicking randomly anywhere on the screen to make things continue feels odd and breaks the game flow. (EDIT: nevermind, I didn't realize that you're selecting what direction they're facing at that point, before it moves to the next entity - doh!)
2) If a character's info-box window covers any of the colored tiles of the character's movement-range circle, effects range scope, etc, any of those tiles that are covered by the info window are not selectable by the mouse. They can still be selected as targets/destinations using the keyboard, but they are not selectable by the mouse.
Thanks of the work on this!
Two issues I noticed:
1)
2) If a character's info-box window covers any of the colored tiles of the character's movement-range circle, effects range scope, etc, any of those tiles that are covered by the info window are not selectable by the mouse. They can still be selected as targets/destinations using the keyboard, but they are not selectable by the mouse.
Thanks of the work on this!
Little 0.61 update. Fixed the lag caused by large maps when trying to move.
# - 0.61 : Optimized cells locating
# Added a trigger type for battle end
@angelregion: I added a trigger type for battle end. Use <LeTBS> Trigger_Type: battle_end.
# - 0.61 : Optimized cells locating
# Added a trigger type for battle end
@angelregion: I added a trigger type for battle end. Use <LeTBS> Trigger_Type: battle_end.
Minor Concern:
I was just designing skills and I came up with a "Rolling Strike" skill, a simple skill where you roll one square diagonal and then attack. However, it occurred to me that if an opponent occupied multiple squares then you would move into your opponent, and since two actors cannot occupy the same space there might be a problem. My question is, will you be able to set it up in such a way so that you are automatically shuttled to the next applicable square -- or simply set it up so that if the square cannot be moved into that does not show up as an option? (probably the better option).
For Example:
I was just designing skills and I came up with a "Rolling Strike" skill, a simple skill where you roll one square diagonal and then attack. However, it occurred to me that if an opponent occupied multiple squares then you would move into your opponent, and since two actors cannot occupy the same space there might be a problem. My question is, will you be able to set it up in such a way so that you are automatically shuttled to the next applicable square -- or simply set it up so that if the square cannot be moved into that does not show up as an option? (probably the better option).
For Example:
I know you use terrain tags for disabling walking but, there should be some more kind of blockers and some way to go past these. Taking some TRPGs' example: Pegasus Knights in Fire emblem saga or Airplanes in Nintendo Wars saga, they go past mountains.
If you make this, you could also add tags for skills to hit (or not) units in the region.
If you make this, you could also add tags for skills to hit (or not) units in the region.
Nice to see this project evolving 🙂
The skill creation is really nice and constantly upgraded, this would be so sick for an ARPG.
Do you think it would be compatible ? With some modifications ofc.
The skill creation is really nice and constantly upgraded, this would be so sick for an ARPG.
Do you think it would be compatible ? With some modifications ofc.
Hello retroboy, actually this looks like a Masqueraider class skill in the game dofus : )
This skill needs a free cell and it is locked to 1 cell in diagonal so I don't think your second picture will ever work (it would require extra programming and it is less logical if your character can jump farther if your enemy is bigger), it would work if you go under the enemy
Like this:
Red(enemy/block) NOT OK,
Green OK,
Blue BATTLER.

Hello Myenemy,
Actually, that is a really good idea, the system need a "flying" tag for flying creatures or machines!
Hello Luth,
Maybe I do not understand very well but an A-RPG is real time battle and a TBS is turn based battle so I do not understand how it would be compatible. Or maybe you mean, you want an A-RPG style of game but for some battles you want a TBS style? If that's the case you can turn off and on the tbs with a plugin command midgame :
Plugin command : LeTBS ON
and
Plugin command : LeTBS OFF
This skill needs a free cell and it is locked to 1 cell in diagonal so I don't think your second picture will ever work (it would require extra programming and it is less logical if your character can jump farther if your enemy is bigger), it would work if you go under the enemy
Like this:
Red(enemy/block) NOT OK,
Green OK,
Blue BATTLER.

Hello Myenemy,
Actually, that is a really good idea, the system need a "flying" tag for flying creatures or machines!
Hello Luth,
Maybe I do not understand very well but an A-RPG is real time battle and a TBS is turn based battle so I do not understand how it would be compatible. Or maybe you mean, you want an A-RPG style of game but for some battles you want a TBS style? If that's the case you can turn off and on the tbs with a plugin command midgame :
Plugin command : LeTBS ON
and
Plugin command : LeTBS OFF
Hello guys, this time I will explain how to set up an « ultimate » skill for one of your character with a custom animation made with common events (No plugin, just basic animations concepts) (But you can use a video instead)
I will make a skill named “healmax” but it can be “angel cry” or whatever you want!
The purpose of this skill is to revive a dead ally and make his HP full, so it is a very powerful skill that you won’t be able to always use (lot of mp consumption) so it would be nice to give it a special animation for it.
You will need a common event for it and a special sequence made just for it!
(Actually I just made a copy of heal sequence, called it healmax and add the line before :
“Wait: 170”,
For waiting 170 frames (A little less than 3 seconds).
During the wait time, the first part of the animation will be played (The custom one) and after this, the second part of the animation will be like a normal heal spell!
It will be voiced, and the first part of the animation will last 3 seconds (approx. 180 frames in a fluid game) since 60 frames = 1 second
(Be careful, you can’t use copyrighted elements if you plan to release your game, so this time it will be just for fair use utilization) make your own voices if you do not want any problem!
I will use this video from demon’s souls and the quote from sec 22 to sec 25 (May you be unharmed):
So after getting it, I will edit this part with Audacity, a free software to keep only the good sequence and then export it to the Audio folder in your game (In SE subfolder) with .ogg format
Now we will make an angel talking to the dead hero for the revive skill and for that we will use those 2 pictures:
(Actually, those are 1280-pixel width for 720-pixel height)
For proper working, you either have to set up your game in 1280 * 720 (with yanfly core for example) or reduce (or make them bigger) these images to your game settings
Pic1
Pic2
(With proper configuration and alternating the pictures, the lips will move like a talking person)
Now here the common event :
First, Play the sound effect (May you be unharmed), then set up a loop
If you try to erase a non-existing picture, the game will crash so we will need to check if picture 2 is already activated (if will help further in the loop) so in the first run of the loop, if won’t erase the non-existing picture so Check if you switch is ON:
If yes, it erase the picture number 2 and turn the switch OFF, if not the code will continue.
After this, we will load the first picture, then wait 25 frames (less than half a second) you can adjust these settings to your likings if you want to speak faster, just lower the value.
Then put the second picture with the open mouth (it will be in the upper layer so you won’t be able to see the first picture anymore) then activate a switch to tell the game the picture number 2 is now on, then now wait 9 frames and erase the picture 1.
Why waiting? In a perfect world, you wouldn’t need that but in fact it will take few milliseconds to load the picture so if you don’t wait, you will see the battle area in the middle of your animation and destroy player immersion.
Then you can delete the picture 1 and wait 25 frames (adjust this value to your liking)
Then create a variable (you can name it whatever you like) and add the number of seconds or frames like you want it takes to make 1 run of the loop.
Then check the Variable number, if it is equal or more than 3 seconds (or 180 frames whatever you set it up), IF YES, it will erase the 2 pictures and then break the loop, if not, then you will play the loop again until the variable number is high enough to break it.
Then the first part of the animation is played and the second part of it will be played as you set it up un your TBS config healmax sequence!
May you be unharmed !
I will make a skill named “healmax” but it can be “angel cry” or whatever you want!
The purpose of this skill is to revive a dead ally and make his HP full, so it is a very powerful skill that you won’t be able to always use (lot of mp consumption) so it would be nice to give it a special animation for it.
You will need a common event for it and a special sequence made just for it!
(Actually I just made a copy of heal sequence, called it healmax and add the line before :
“Wait: 170”,
For waiting 170 frames (A little less than 3 seconds).
During the wait time, the first part of the animation will be played (The custom one) and after this, the second part of the animation will be like a normal heal spell!
It will be voiced, and the first part of the animation will last 3 seconds (approx. 180 frames in a fluid game) since 60 frames = 1 second
(Be careful, you can’t use copyrighted elements if you plan to release your game, so this time it will be just for fair use utilization) make your own voices if you do not want any problem!
I will use this video from demon’s souls and the quote from sec 22 to sec 25 (May you be unharmed):
So after getting it, I will edit this part with Audacity, a free software to keep only the good sequence and then export it to the Audio folder in your game (In SE subfolder) with .ogg format
Now we will make an angel talking to the dead hero for the revive skill and for that we will use those 2 pictures:
(Actually, those are 1280-pixel width for 720-pixel height)
For proper working, you either have to set up your game in 1280 * 720 (with yanfly core for example) or reduce (or make them bigger) these images to your game settings
Pic1
Pic2
(With proper configuration and alternating the pictures, the lips will move like a talking person)
Now here the common event :
First, Play the sound effect (May you be unharmed), then set up a loop
If you try to erase a non-existing picture, the game will crash so we will need to check if picture 2 is already activated (if will help further in the loop) so in the first run of the loop, if won’t erase the non-existing picture so Check if you switch is ON:
If yes, it erase the picture number 2 and turn the switch OFF, if not the code will continue.
After this, we will load the first picture, then wait 25 frames (less than half a second) you can adjust these settings to your likings if you want to speak faster, just lower the value.
Then put the second picture with the open mouth (it will be in the upper layer so you won’t be able to see the first picture anymore) then activate a switch to tell the game the picture number 2 is now on, then now wait 9 frames and erase the picture 1.
Why waiting? In a perfect world, you wouldn’t need that but in fact it will take few milliseconds to load the picture so if you don’t wait, you will see the battle area in the middle of your animation and destroy player immersion.
Then you can delete the picture 1 and wait 25 frames (adjust this value to your liking)
Then create a variable (you can name it whatever you like) and add the number of seconds or frames like you want it takes to make 1 run of the loop.
Then check the Variable number, if it is equal or more than 3 seconds (or 180 frames whatever you set it up), IF YES, it will erase the 2 pictures and then break the loop, if not, then you will play the loop again until the variable number is high enough to break it.
Then the first part of the animation is played and the second part of it will be played as you set it up un your TBS config healmax sequence!
May you be unharmed !
I was knocking around Evil Statue with the skill Repulse Blow and when it was his turn I got this error :
I also get the same errors for my characters when its their turn to move:
It seems when I use a teleport or leap skill, or when moving around the treasure chest but not opening it, seems to generate this move error.
Other bugs:
1. If you leap to or teleport to a treasure box or event, the event won't trigger. I would like to suggest instead of having to face the treasure box to open it why not use that "Examine" command to open it when nearby.
2. The skill Repulse Blow will knock the enemy back even if you miss him.
3. If an enemy lands on Magic Trap and is blinded, the enemy will not finish his action and the game will not continue.
I also get the same errors for my characters when its their turn to move:
It seems when I use a teleport or leap skill, or when moving around the treasure chest but not opening it, seems to generate this move error.
Other bugs:
1. If you leap to or teleport to a treasure box or event, the event won't trigger. I would like to suggest instead of having to face the treasure box to open it why not use that "Examine" command to open it when nearby.
2. The skill Repulse Blow will knock the enemy back even if you miss him.
3. If an enemy lands on Magic Trap and is blinded, the enemy will not finish his action and the game will not continue.
First of all I want to thank you for this wonderful plugin, I love tactical battle systems specially from disgaea series, and I'm really going to use it in my next project xD...
I was wandering if there is any way to summon a new ally during the battle. because one of my characters is a beast master and I want it to be able to call some wild animals during the battle. or even a necromancer to summon minions.
thanks Lecode xD
I was wandering if there is any way to summon a new ally during the battle. because one of my characters is a beast master and I want it to be able to call some wild animals during the battle. or even a necromancer to summon minions.
thanks Lecode xD
@Chaosicaa
What I meant is that the Skill editor would be awesome for an A-RPG. I was wondering if it could be exported and modified to fit such battle system. 🙂
What I meant is that the Skill editor would be awesome for an A-RPG. I was wondering if it could be exported and modified to fit such battle system. 🙂
When I export this game to android, I cant start a battle, after placing my actors and seeing the "battle start" I get a crash saying TypeError undefined is not a function. any help?
You can set up an enemy summoner by triggering battle events after a condition and tell it add more events and they will go the the appropriate allocated slots.
Element Drawing:
I was wondering if we'd be able to get an ability that draws attacks of a certain element to a target within range?
For Example:
Actor casts "Furnace Field" on a a nearby ally. Furnace Field has a radius of 5 squares. If at any point someone throws a Fire Bolt spell within that 5 square radius, it strikes the ally with the Furnace Field ability active instead of the intended target.
This could have a bunch of useful tactical applications, both as an offensive and defensive ability. Especially when you include Yanfly's Elements Plugin, with "Reflect Element" and "Absorb Element" as a factor.
I was wondering if we'd be able to get an ability that draws attacks of a certain element to a target within range?
For Example:
Actor casts "Furnace Field" on a a nearby ally. Furnace Field has a radius of 5 squares. If at any point someone throws a Fire Bolt spell within that 5 square radius, it strikes the ally with the Furnace Field ability active instead of the intended target.
This could have a bunch of useful tactical applications, both as an offensive and defensive ability. Especially when you include Yanfly's Elements Plugin, with "Reflect Element" and "Absorb Element" as a factor.
I came up with several gameplay ideas :
-Terrain's heights (+Isometric maps ?)
-Damage/skill effectiveness based on target direction
-Reaction commands
-Command combination/Several commands per turn
====================
Terrain's Heights
Do you think the plugin would support terrain's height ?
So some characters wouldn't be able to reach certain heights, while some abilities could help reaching it. Maybe pushing an ennemy off a cliff could damage or stun him or whatever.
I don't know JS but I feel like the process would be the following :
-Create Terrain's tags which would define the height (0 to 10. 10 being the highest)
-Create Z variable, relative to the Terrain's tag the character stands on before the pushing effect.
-Push effect + animation
-Create Z' variable, relative to the Terrain's tag the character stands on after the pushing effect.
-If Z-Z' > 4 (so the character has fall by 4 terrain units ) -> damage
If Z-Z' > 5 -> damage + stun
Not sure if it helps but I think it would be the easiest way to make it. It might even be possible with Event calling but i'm not sure.
Creating a "jump" trait (for weapons/armos, class/hero/enemy and states) would be interesting. The "jump" value would define the character's reaching ability.
Big Sword (Weapon)
This sword is too heavy. [Jump -2]
Mercury's Treads (Accessory)
Light as a feather ! [Jump +3]
Bellyache (State)
Don't even try to raise your legs. [Jump =0]
You got the idea, right 😛 ? By the way, this terrain system is way less derpy looking with isometric maps. Do you think Isometric maps for this battle system could be a thing in the future ?
====================
Dmg/Skill effectiveness on character direction
Also is it possible to change the incoming damage based on the character's direction ?
-Side : 100% dmg
-Front : 75% dmg
-Back : 125% dmg
Creating a trait for this would be cool aswell.
Backstabber (Passive skill)
There is nothing wrong being sneaky. [OutgoingBackDmg = 150%]
Vigilant (Passive skill)
Good nature without prudence is foolishness. [IncomingBackDmg = 100%]
Sturdy (Skill)
Diamond-solid. [IncomingFrontDmg = 0]
====================
Reaction commands
Basically passive skills that allow a character to react to a certain command :
Baitmaster (Passive Skill)
Dodge simple attacks from behind, then turn over and counterattack
Bulletproof (Passive Skill)
Dodge projectiles attacks and skills
Arcanic Drain (Passive Skill)
When the enemy uses a magic ability on you, recover half the AP used by the enemy.
====================
Several commands per turn/Skill combination
Make the abilities/movement cost an Action ressource, so several actions could be done in 1 character turn.
Let's say every characters starts the fight with 5 base Action Points (AP). Turn ends for the character once the AP = 0 or if the character ends manually his turn. Using an item, attacking or walking decrease the character's AP.
AP could be regenerated at the beginning of a new turn by 5 points, but can't exceed 10 points.
Heal (Skill)
Have some HP. [AP cost : -2]
Apocalypse (Skill)
Cheater. [AP cost : -10]
Hyperactive (Passive Skill)
Gotta do what you gotta do ! [AP per turn +1]
Omnipotent (Skill)
Become godlike. Once per battle. [Grants maximum AP for one turn, only usable once per battle]
Transfer (Skill)
Sharing is caring. [AP cost : -3] [Grants 3 AP to an ally]
This system would allow the player to use combos : For exemple, a mage could spread water with a spell (1 action), then use a thunder skill (another action), to create a shockwave (which doesn't cost any action by itself).
==================
What do you think about it 🙂 ?
-Terrain's heights (+Isometric maps ?)
-Damage/skill effectiveness based on target direction
-Reaction commands
-Command combination/Several commands per turn
====================
Terrain's Heights
Do you think the plugin would support terrain's height ?
So some characters wouldn't be able to reach certain heights, while some abilities could help reaching it. Maybe pushing an ennemy off a cliff could damage or stun him or whatever.
I don't know JS but I feel like the process would be the following :
-Create Terrain's tags which would define the height (0 to 10. 10 being the highest)
-Create Z variable, relative to the Terrain's tag the character stands on before the pushing effect.
-Push effect + animation
-Create Z' variable, relative to the Terrain's tag the character stands on after the pushing effect.
-If Z-Z' > 4 (so the character has fall by 4 terrain units ) -> damage
If Z-Z' > 5 -> damage + stun
Not sure if it helps but I think it would be the easiest way to make it. It might even be possible with Event calling but i'm not sure.
Creating a "jump" trait (for weapons/armos, class/hero/enemy and states) would be interesting. The "jump" value would define the character's reaching ability.
Big Sword (Weapon)
This sword is too heavy. [Jump -2]
Mercury's Treads (Accessory)
Light as a feather ! [Jump +3]
Bellyache (State)
Don't even try to raise your legs. [Jump =0]
You got the idea, right 😛 ? By the way, this terrain system is way less derpy looking with isometric maps. Do you think Isometric maps for this battle system could be a thing in the future ?
====================
Dmg/Skill effectiveness on character direction
Also is it possible to change the incoming damage based on the character's direction ?
-Side : 100% dmg
-Front : 75% dmg
-Back : 125% dmg
Creating a trait for this would be cool aswell.
Backstabber (Passive skill)
There is nothing wrong being sneaky. [OutgoingBackDmg = 150%]
Vigilant (Passive skill)
Good nature without prudence is foolishness. [IncomingBackDmg = 100%]
Sturdy (Skill)
Diamond-solid. [IncomingFrontDmg = 0]
====================
Reaction commands
Basically passive skills that allow a character to react to a certain command :
Baitmaster (Passive Skill)
Dodge simple attacks from behind, then turn over and counterattack
Bulletproof (Passive Skill)
Dodge projectiles attacks and skills
Arcanic Drain (Passive Skill)
When the enemy uses a magic ability on you, recover half the AP used by the enemy.
====================
Several commands per turn/Skill combination
Make the abilities/movement cost an Action ressource, so several actions could be done in 1 character turn.
Let's say every characters starts the fight with 5 base Action Points (AP). Turn ends for the character once the AP = 0 or if the character ends manually his turn. Using an item, attacking or walking decrease the character's AP.
AP could be regenerated at the beginning of a new turn by 5 points, but can't exceed 10 points.
Heal (Skill)
Have some HP. [AP cost : -2]
Apocalypse (Skill)
Cheater. [AP cost : -10]
Hyperactive (Passive Skill)
Gotta do what you gotta do ! [AP per turn +1]
Omnipotent (Skill)
Become godlike. Once per battle. [Grants maximum AP for one turn, only usable once per battle]
Transfer (Skill)
Sharing is caring. [AP cost : -3] [Grants 3 AP to an ally]
This system would allow the player to use combos : For exemple, a mage could spread water with a spell (1 action), then use a thunder skill (another action), to create a shockwave (which doesn't cost any action by itself).
==================
What do you think about it 🙂 ?
Hello Luth,
You have really good ideas here ! The AP skills will probably appear around 0.8 or 0.9 update (so you would use a lot of skills per turn) (more information on lecode patreon blog) !
For the back damages, front damages etc, it is already available in Letbs damage script : directional damage:

But the real problem is implementing isometric map feature, it would require extra programming (not easy one) and might be implementing later when the script is good enough.
It probably would take a lot of time (few months) but that would be a good idea !
You have really good ideas here ! The AP skills will probably appear around 0.8 or 0.9 update (so you would use a lot of skills per turn) (more information on lecode patreon blog) !
For the back damages, front damages etc, it is already available in Letbs damage script : directional damage:

But the real problem is implementing isometric map feature, it would require extra programming (not easy one) and might be implementing later when the script is good enough.
It probably would take a lot of time (few months) but that would be a good idea !
about the bulletproof passive, I believe it's simple to make, just create a new element called projectiles and add to a state the resistance of that element. and it's done ^^
@brunovisk2 I thought about it already but it won't display any animation 🙁
Question:
Is there a way to set up a state that reduces Movement Points by a Percentage value (for instance 50%).
Follow Up Question:
Can you set up a state that reduces Movement Points to a set number?
Final Question:
Can you set a state that reduces Movement Points by a Percentage Value (50%) but reduces someone's Movement Points to 1 if they are afflicted by another state?
FOR EXAMPLE:
BUFFET: The target is opposed by debilitating winds. Reduce the Target's Movement by Half; if the Target is Flying reduce their Movement to 1 instead.
Is there a way to set up a state that reduces Movement Points by a Percentage value (for instance 50%).
Follow Up Question:
Can you set up a state that reduces Movement Points to a set number?
Final Question:
Can you set a state that reduces Movement Points by a Percentage Value (50%) but reduces someone's Movement Points to 1 if they are afflicted by another state?
FOR EXAMPLE:
BUFFET: The target is opposed by debilitating winds. Reduce the Target's Movement by Half; if the Target is Flying reduce their Movement to 1 instead.
Hello retroboy, there is many ways to achieve what you are trying!
There is one stat that can increase or decrease movement point number :
Look the state for "light steps" there is a notetag in the state :
<letbs>
move_points_plus: 1
</letbs>
(This increase the movement point by 1)
If you want to decrease movement point by 1, do this :
<letbs>
move_points_plus: -1
</letbs>
So now, how to set up a skill that halves enemy movement?
Let's create a skill (halfstep) wich inflict the original state halfstep (this state actually is void and do nothing)
Then let's create few halfstep with -1, -2, -3 and so on
Then in your troop event, for each enemies (it can be tedious) tells the game every turn to check if an enemy have the original halfstep on him;
If yes, then if your enemy have 6 movement points, inflict him the state halfstep-3 and remove the original halfstep (and do that for every enemy in the game)
Ok, that's one way to do : )
Now if you don't use humm... Luck stat in your game by example, you can rename it "movement" and set every enemy and actor the same movement point as luck stat (it can be anything but try to avoid using agility since it is leadership stat (the player with the higher agi will start, and if 2 characters have the same agi stat, the last one placed in the positioning phase will be the first to play)
( you will probably need the script from yanfly : http://yanfly.moe/2016/03/25/yep-86-base-parameter-control/ ) base parameter control to have more control over it (be able to set it to 0, set custom caps the ability to tag these stats to have unlimited control over them like :
<stat Plus: +x>
<stat Plus: -x>
Then you can use a variable that stock enemy luck stat
And then do maths with it ( var number / 2 ) and then inflict the good state once you got the result, this way it should be easier.
Edit :
Actually, what I am doing is dirty, there is a much much better way to do it (just realized now)
if you use an already existing stat like luk for your movement point you can add a state depending of the enemy luk stat with a formulae condition :
Check this topic :
http://www.rpgmakercentral.com/topic/36290-damage-formulas-101-mv-edition/
That's how you set up the formulae :
If b (enemy) luk stat = 6 or 5, then inflict state number x ( this state is -3 movement point) if not, then check if enemy luck stat = 4 or 3 and so on and inflict an other states each time !
There is one stat that can increase or decrease movement point number :
Look the state for "light steps" there is a notetag in the state :
<letbs>
move_points_plus: 1
</letbs>
(This increase the movement point by 1)
If you want to decrease movement point by 1, do this :
<letbs>
move_points_plus: -1
</letbs>
So now, how to set up a skill that halves enemy movement?
Let's create a skill (halfstep) wich inflict the original state halfstep (this state actually is void and do nothing)
Then let's create few halfstep with -1, -2, -3 and so on
Then in your troop event, for each enemies (it can be tedious) tells the game every turn to check if an enemy have the original halfstep on him;
If yes, then if your enemy have 6 movement points, inflict him the state halfstep-3 and remove the original halfstep (and do that for every enemy in the game)
Ok, that's one way to do : )
Now if you don't use humm... Luck stat in your game by example, you can rename it "movement" and set every enemy and actor the same movement point as luck stat (it can be anything but try to avoid using agility since it is leadership stat (the player with the higher agi will start, and if 2 characters have the same agi stat, the last one placed in the positioning phase will be the first to play)
( you will probably need the script from yanfly : http://yanfly.moe/2016/03/25/yep-86-base-parameter-control/ ) base parameter control to have more control over it (be able to set it to 0, set custom caps the ability to tag these stats to have unlimited control over them like :
<stat Plus: +x>
<stat Plus: -x>
Then you can use a variable that stock enemy luck stat
And then do maths with it ( var number / 2 ) and then inflict the good state once you got the result, this way it should be easier.
Edit :
Actually, what I am doing is dirty, there is a much much better way to do it (just realized now)
if you use an already existing stat like luk for your movement point you can add a state depending of the enemy luk stat with a formulae condition :
Check this topic :
http://www.rpgmakercentral.com/topic/36290-damage-formulas-101-mv-edition/
That's how you set up the formulae :
If b (enemy) luk stat = 6 or 5, then inflict state number x ( this state is -3 movement point) if not, then check if enemy luck stat = 4 or 3 and so on and inflict an other states each time !
Original thread: https://forums.rpgmakerweb.com/threads/lecode-tactical-battle-system-0-77-2b.71572/