The code for the first one is on the page before this one and all you need to do is change the survive event to an enemy HP less than event for the second one. You'll still need to add the victory condition Defeat All otherwise the system will break though. It honestly takes a few minutes, it's not difficult to implement at all.
Lecode Tactical Battle System 0.77.2B
JS Plugin Releases (RMMV)The code for the first one is on the page before this one and all you need to do is change the survive event to an enemy HP less than event for the second one. You'll still need to add the victory condition Defeat All otherwise the system will break though. It honestly takes a few minutes, it's not difficult to implement at all.
Built an "Initiative System"
Got the Idea from Shadowrun
http://shadowrun-5th-srd.wikia.com/wiki/Initiative_(INI)
Basically I had to revamp the battle system to re-draw the turn order EVERY Turn.
Involves Several things:
1). Added variable to track "Redraw" turn order
2). Added variable to track "Initiative Value"
3). Added function to determine Initiative Turn order
4). Modified Turn end to subtract Initiative Value from entity's battler's initiative
---Adds bonus initiative for every remaining move point, adds 1 to initiative for not making an action
Initiative turn order has 3 steps
1).
Build Turn Order Array
Turns = 0 Set entity initiative equal to move points + agility
Tuns >0: Orders check if remaining initiative>0 and add them.
if it is not >0, don't add
2).
If Turn Order Array is empty, it rebuilds the array as if it were Turn 0, resetting
everyone's available Initiative.
3).
Sort array,
sorts turn order based on remaining Initiative.
versus an enemy troop of 8
What's Next?
[For Later]
Got the Idea from Shadowrun
http://shadowrun-5th-srd.wikia.com/wiki/Initiative_(INI)
Basically I had to revamp the battle system to re-draw the turn order EVERY Turn.
Involves Several things:
1). Added variable to track "Redraw" turn order
2). Added variable to track "Initiative Value"
3). Added function to determine Initiative Turn order
4). Modified Turn end to subtract Initiative Value from entity's battler's initiative
---Adds bonus initiative for every remaining move point, adds 1 to initiative for not making an action
Initiative turn order has 3 steps
1).
Build Turn Order Array
Turns = 0 Set entity initiative equal to move points + agility
Tuns >0: Orders check if remaining initiative>0 and add them.
if it is not >0, don't add
2).
If Turn Order Array is empty, it rebuilds the array as if it were Turn 0, resetting
everyone's available Initiative.
3).
Sort array,
sorts turn order based on remaining Initiative.
versus an enemy troop of 8
After 2 turns
note, 1 ally, 7 enemies
3 turns:
5 turns:
7 turns:
note, 1 ally, 7 enemies
3 turns:
5 turns:
7 turns:
What's Next?
[For Later]
Have a bit of a small issue if someone could please give a quick helping hand.
I assume it's something simple but I could be wrong.
I assume it's something simple but I could be wrong.
It looks like you're missing animations.
Make sure to check the LETBS config file and make sure there's animations for
entity placement
I have mine set to 124
You just saved me from going insane over this. Thank you very much!
I am thinking of using for war battles ala Suikoden II in my game. Just wanted to confirm...
This can be used in addition to the normal battle system.
Any known compatibility issues with Yanfly Plugins?
There is a lot of pages of stuff. I just want to know what I am getting into here! Lol
This can be used in addition to the normal battle system.
Any known compatibility issues with Yanfly Plugins?
There is a lot of pages of stuff. I just want to know what I am getting into here! Lol
It's compatible with some Yanfly plugins and a few are required to make the system work (for example, cooldowns are needed to make sure your enemy doesn't spam the same skills over and over again, if you give them a healing skill without a cooldown they'll use it every turn because healing is above attacking in the AI's order of operations) but it doesn't work with others. I couldn't get absorption barrier to work, for example, so you'll need to do some trial and error most likely. And yeah, you can switch between this and another battle system using LeTBS ON and OFF pligin commands. There's a lot to learn but it's a really robust system with a lot of features once you get into it so best of luck!
Question: Does this system support some variation of confusion? IE, allowing creatures to be taken out of the player's control and attack allies and such?
I had to remove this comment, because i got error by version 0.8
How can I do so if my team dies, or all enemies die ... activate a switch?How can I do so if my team dies, or all enemies die ... activate a switch?
You would have to modify the core code at this point.
May I ask why you need it?
I explain quickly, I downloaded the demo, and at the end of the battle, with all the heroes killed and / or all the enemies killed, nothing happened, I would like to put so that when you defeat them, the fight is removed and X event happens.
now i have this error
Failure to execute the project
TypeError: undefined is not a function
at Function.SceneManager.initAudio (rpg_managers.js:1670)
at Function.SceneManager.initialize (rpg_managers.js:1619)
at Function.SceneManager.run (rpg_managers.js:1608)
at Function.SceneManager.run (/C:/Users/Cristian/Documents/Games/testings/js/plugins/YEP_CoreEngine.js:994)
at window.onload (main.js:8)
---
then each line of the script as it goes up. Put in bold where the error, I did the tutorial that I indicated for the demo, copy and paste the files in a new project.
at Function.SceneManager.initAudio (rpg_managers.js:1670) ----)
SceneManager.initAudio = function() {
var noAudio = Utils.isOptionValid('noaudio');
if (!WebAudio.initialize(noAudio) && !noAudio) {
throw new Error('Your browser does not support Web Audio API.');
}
};
---
at Function.SceneManager.initialize (rpg_managers.js:1619) -)
SceneManager.initialize = function() {
this.initGraphics();
this.checkFileAccess();
this.initAudio();
this.initInput();
this.initNwjs();
this.checkPluginErrors();
this.setupErrorHandlers();
};
----
at Function.SceneManager.initialize (rpg_managers.js:1619) -)
SceneManager.run = function(sceneClass) {
try {
this.initialize();
this.goto(sceneClass);
this.requestUpdate();
} catch (e) {
this.catchException(e);
}
};
----
at Function.SceneManager.run (/C:/Users/Cristian/Documents/Games/testings/js/plugins/YEP_CoreEngine.js:994) ---)
Yanfly.Core.SceneManager_run = SceneManager.run;
SceneManager.run = function(sceneClass) {
Yanfly.Core.SceneManager_run.call(this, sceneClass);
if (!Utils.isNwjs()) return;
Yanfly.updateResolution();
if (Yanfly.Param.OpenConsole) Yanfly.openConsole();
};
-----
at window.onload (main.js:8) ---)
//=============================================================================
// main.js
//=============================================================================
PluginManager.setup($plugins);
window.onload = function() {
SceneManager.run(Scene_Boot);
};
Sorry dude, I'm really not sure what broke there. Looks like some sort of incompatibility or an improper install of plugins.
what is your RMMV version?
I'm running 1.5.2 or whatever that version was. 1.6 broke everything.
What did you change between your first issue (with battle) and your new errors
Question 1: How can the attack range be changed for the battlers and enemies? Since the move range can be changed thru move_points, is there also called attack_points or something similar to that? My goal is to be able to change the default attack range of the battlers and enemies from 1 cell to any number of cells depending on its weapon like sword (1 cell), spear (2 cells), bow (3 cells), gun (4 cells), so on and so forth.
attack range is determined on a skill-by-skill basis using the tag:
scope: type(x)
where type = circle, square, cross, line
and x is the number of squares
so line(4) would let the player select any enemy up to 4 cells away in a straight line.
I haven't had luck with weapon ranges in my version (latest version might)
so I just use the letbs_command tag for skills to add a skill with the weapon's name to the weapon.
so my "bow" adds skill[1202] to the player, which lets them select "Bow Attack" when choosing skills.
This also lets me use a custom damage calculation for every weapon.
Can anyone tell me what this error means please? I get it just before starting a tactical battle.
cannot read property 'fittingHeight' of undefined
EDIT: I found another person with the same problem. They recommended to put Yanfly's stuff above Lecode's, which I did. But I still get errors. Where exactly do I have to put things so as not to get errors?
cannot read property 'fittingHeight' of undefined
EDIT: I found another person with the same problem. They recommended to put Yanfly's stuff above Lecode's, which I did. But I still get errors. Where exactly do I have to put things so as not to get errors?
Quick question, does the system work on android? I'm really hoping to use it to create a mobile-accessible game, and saw that there were some issues brought up early in the thread, but didn't know if it had been fixed.
Original thread: https://forums.rpgmakerweb.com/threads/lecode-tactical-battle-system-0-77-2b.71572/