VXAce Yet Another TBS Project v0.10a, looking for testers ~

Introduction:
This is my first beta release of a tactical battle system in VX Ace. A Tactical Battle System (TBS) is a battle system like Fire Emblem or Dofus/Wakfu where units have a position on the map, have their own turns and may, during their turn travel on the map (with limited move points) and use abilities (items/skills) on targets in a range.

There are many tactical battle systems that were made in rpg maker, the most complete and popular for VX Ace is Gubid's Tactical Battle System (or GTBS for short).

While GTBS is amazing, it does not do exactly what I wanted, my goal was to use a TBS in my own project with inspiration coming from Baldur's Gate 3 and Wildermyth (check out the latter, it's an amazing game). While patching GTBS (which is not supported by its dev anymore) to fit my own view, I encountered more and more issues related to how poorly I understood the script.

Sooooooooo, I decided to redo a TBS from scratch and provide a versatile tool, close to RPG Maker's eventing and game logic and with as much compatibility as it can with useful scripts (like Yanfly's). Note that this is still a work in progress.

Features:
Spoiler
Introduces a new battle scene call Scene_TBS_Battle to replace Scene_Battle when battling a troop of enemies.
This scene loads a map (which can be the same as the current map), finds places to put battlers (defined by events comments) and then starts tactical battle.

Spoiler: Turn System
The turn system as been changed, now a TurnWheel controls which battlers take turns the turn order may be:
-like Dnd/BG3 with each unit having their own (fixed) initiative (free for all turn system)
-like Fire Emblem/Wildermyth with teams taking their turns and each unit being usable (team turn system)
-like Dofus/Wakfu with evenly-dstributed turns such that the first battler of team1 plays, then the first of team2, then second of team1 etc. (evenly-distributed free for all)
Like BG3, if two units of the same team play next to each others in the turn order, there is an option to play both of them in any order.

The turn of a battler starts now when it is activated through the turnwheel (calling a on_turn_start method) up to the end of its actions (calling the on_turn_end method), the battler's states are updated at the end of its turn, its move points are recovered also at the end of its turn.

Game_Battlers (i will call them units now) have a Game_Character object to track their position and display them

Spoiler: Teams and Win conditions
Units are stored into teams with relationships (allies, neutral, opponents), you may create as many teams as you want.
By default there are three teams: TEAM_ACTORS, TEAM_NEUTRALS and TEAM_ENEMIES, the party members are in TEAM_ACTORS and the troop members are in TEAM_ENEMIES. The game supports obstacles that are units that can be destroyed but that do not take any decision, they are in TEAM_NEUTRALS.
You may add new actors or enemies to specific teams.

The battle is lost if a specific set of teams is defeated (by default only TEAM_ACTORS)
It is won if another specific set of teams is defeated (by default only TEAM_ENEMIES)

The loot,exp and gold rewards are distributed in a vanilla-way to the actors from your party that were in battle, this amount of rewards is based on units of specific teams defeated (by default only TEAM_ENEMIES).

Spoiler: Move Rules
Units may move on the map under specific rules, they have move points that define how far they can go during a turn.
Some units may fly, only swim. Some units may lose more move points on specific tiles (defined by terrain_tags), by default, units may travel as long as they have move points.

Spoiler: Casting abilities
As long as a unit may take a vanilla action, they may cast abilities (skills or items). An ability has a range (can be parametrized in the notetags), a range may be obstructed by other battlers or map tiles. All abilities must target a cell which will affect an area (can be parametrized in the notetags too). Abilities which targets all or none must still target a cell, the ability will affect the units inside the area of the ability. Abilities with 'random' targeting will affect a random target inside the area it was cast upon.
The only difference during TBS between an ability that targets all and one that targets one target is the animation displayed, an all ability will display a single animation while a 'single' ability will display one animation per target.
Except of abilities that target 'none' all abilities must touch at least one unit to be a valid cast.
Abilities may affect the unit, its allies, neutral units or opponents alike, you may specify for specific abiltiies which units it may affect based on teams relationships.
You may force some abilities to target empty cells or occupied cells.

Abilities used outside of TBS (in menus) will have the rpg maker default behavior.

The script provide many parameters, check the source code and the database of the demo.
Spoiler: AI
It comes along with a 'basic' ai close to rpg maker vanilla's logic:
-the ai selects a skill (not an item!) in a random weighted way
-it tests which cells it may target (also considers moving before casting the ability)
-it takes the 'best' cell (avoids harming friends or helping opponents and targets as many other targets)
-it casts the ability, if no good cell exists, it tries another skill until there is no good skill or no remaining actions
At the end of the ai's turn, it tries to get closer to an alive opponent.

Screenshots:
Spoiler: Screenshots
What a battle looks like, the circle is for the team affiliation. A little icon is displayed below units that may act now (icon can be parametrized too)
1742730473110.png

You may select the path to travel
1742730561201.png

You may specify attack ranges (the ranges display of attacks, areas, move, or skills can be changed to other colors or load autotiles)
1742730609874.png

You have information on the selected battler:
1742730707274.png

Known issues/missing features:
Spoiler
Issues:
-test the advanced height calculation [see addon TBS Height]
-vanilla ranges obstacles are not great when using flying units (or units at some obstacles)
-there were in previous tests random crashes/freezes of the game, I did fix them (at least partially) and haven't encountered them again if you still encounter them, please tell me! It will probably mean that there are still issues in my code

Planned addons:
-reaction skills like counter spell or protect
-traps/passive area of effect

Very low priority addons (assume that I will not work on them but you can design them!):
-side-view battles like FE (graphic knowledge plus conflict with reaction skills etc., not something I want to code)
-battle animations (skill animations mainly) (graphic knowledge, huge)
-exp/rewards mid-battle (not something I want to code)
-self inventory and trade system (probably already exists somewhere, would be nice to check this)
-script-controlled custom victory conditions (would have to define a list or something, I prefer using events instead)
-isometric view support (graphic and external script knowledge, not something I want to code)

Term of use:
You may use these scripts and the resources from the demo (if I made them) in both free and commercial games as long as you give credit to me.
You cannot sell the scripts as part of packs or other commercial purpose. You cannot use them in AI training or generation.

Special thanks (I suggest you give them credit too):
-GubiD for GTBS this script takes inspiration from: some part of my code are taken from his original script, I talked with him by email and he said he was fine with it
-Clarabel who provided the notetag system from GTBS that I also use for simpler notetag reading

Installation and compatibility:
Note that this is still in development, there are many missing features and the project might still be unstable, please report any bug here. You can download a demo with the source scripts in the zip file attached to this post. You may alternatively download the demo here:
-download 0.10a
-download 0.10, 0.9, 0.8a, 0.8, 0.7, 0.6a, 0.6, 0.5

The demo contains a main script called [TBS] Core, it requires Victor Engine - Basic Module v1.35 and a script I made provided inside the source called Sprite_Tile as well as my Simple Notetag Config script, in your script list, the load order below materials should be:
-Victor Engine Basic Module
-Sprite_Tile
-Simple Notetag Config
-[TBS] Core

The game should run properly with only those three scripts, I also provide addons (see the demo) that you may put below TBS-Core for more features.
Finally I provide a patch script for TBS with some scripts:
Spoiler: Supported scripts
Without any patch (already handled):
- YEA Ace Save Engine v1.03
With my patch addon:
- YEA Victory Aftermath v1.04
- Zeus Lights & Shadows v1.3
- YEA Core Engine v1.09
- YEA Battle Core v1.22
- YEA Enemy HP Bars v1.10
- YEA System Options v1.00
- YEA Lunatic States v1.02
- dodger451's Threat System v0.1
- Theo Allen's Anti lag v1.1
- YEA - Class System v1.10 (optional patch)
- YES Equipment Learning
- YEA Skill Cost Manager
I wrote a patch for the following scripts that I did not test yet:
- YEA Target Manager v1.03
- YEA Skill Restrictions v1.02
- YEA Cast Animations v1.00

This script is not compatible with GTBS or any battle system overhaul unless specified otherwise.

Update: added demo v0.10a, still looking for testers, this post here is NOT up to date, please look at the post at the end of the thread for latest features.

Spoiler: Changelog
v0.10a
-new flying effect addon with battler floating in the sky
-fixed a few bugs: status window not being updated properly,
-sound effects options added
-window displaying all party members in place phase added (very simple and not great tbh)
-obstacle turn moved at the end of global turn
-stack pending system (no impact to the system but a more robust system)
-targets of abilities can be ordered
v0.10
-many stuff, rewriting and renaming classes, bugfixing, too tired to list them
-reaction skills as an addon!
-stack system!
-improving patches and addons!
-more bugs!
v0.9
*new*
-Enemies sprites are now color-dependant of the sprite battler (see hue) and they have automatic face based on their battler sprite in the database! (you can still put your own faceset that won't follow the battler's sprite coloring)
-cursor now follows battlers when they act, including ais
-cursor now slides on the screen instead of teleporting (can be changed in script options)
-new addon called Positionning adding push and pull effects, push damage when colliding with obstacles, directional damage bonus (front vs back damage), backstabbing feature (when using base attack on the back of someone and in contact will greatly increase damage).
-new addon to add projectiles for your attacks and abilities!
-new addon to handle sprite poses called Animated Poses when attacking, dodging, dying etc., you can set big spritesheets of battlers and set skills and items to call poses, you can link sounds and animations to a pose symbol.
-abilities can add or remove move points to the targets for a turn with notetag <move = x>
-you can enable or disable the default win conditions checks, opening the access to custom win conditions even if mo enemies are left.
*Addons modifications*
-lots of tiny stuff (every addons code is slightly modified)
-patch hub now supports Theo Allen's Anti lag v1.1 (the script will probably not increase TBS performances though)
-event triggers addon now uses labels (old version is called Event Triggers but is deprecated, new is named Event Triggers 2)
-datareading structure exported to Simple Notetag Config script by me (requirement for TBS)
Added animated poses system
*fixes*
-save system fixed and enter/exit tbs battle are cleaner, event calls are now enough to use shops and other menus (just don't mess with Scene_Map)
-improved performances (less checks per frames)
-added beta addon to avoid freeze when AI calculates stuff (still a work in progress, see [TBS] AI speed-up beta)
-code cleaning
-many unlisted stuff

v0.8a (or 0.8.1)
-fixed a crash when ai units could not move
-tgt_empty? now checks blocking events, meaning that summoning a slime or teleporting in the demo may now avoid targeting cells occupied by event obstacles.

v0.8
*new*
-linked the preview damage system to the ais
-you can design tactics for ais like GTBS (tanking units, evading units)
-you can now call naming scene or shop scenes in battles with events calls!
-added save/load addon: you can now save mid battle (this can be parametrized) and load your saves, supports Yanfly Save Engine to load mid-battle as well as my Neo-Save-like display.
-states may now forbid actors from being placed in battles (for instance death states) unless specified otherwise
-battlers under some states may now have a balloon displayed continuously
-added advanced height system calculations (requires tests, see addon TBS Height)
-added patch support with dodger451's Threat System
*bugfixes*
-random targeting and other targeting calculation should now work properly
-autobattling units in vanilla battle should not make the game crash anymore
-abilities may now only affect dead units or alive units, fixing some ais behavior trying to harm dead actors
-forced tbs actions are now properly forced, regardless of the tgt_property conditions, they will however not be cast if user is dead
-ai pathfinding should consider other paths when blocked by other units
-battlers removed on death will now still display an animation and sound (though it remains a bit clunky)

v0.7
-added turnwheel menu to check the turn order
-damage preview and other display features
-added option menu (as addon but highly recommended file): using a similar structure as Yanfly's settings menu, you can config display properties in battle

v0.6a (or 0.6.1)
-fixed a crash when battling the bandit
-battle music will not trigger anymore right before placement music

v0.6
*new*
-Added placement phase
-Added Game_Interpreter methods to create summon systems, reinforcement and basically addition or removal of battlers mid-battle
-Added skill casted data to be used when calling common events (see Teleportations skills and summons)
-Changed the property calculation that nows evaluate a string as Game_Action calls, leading to more personalisation.
*bugfixes*
-Fixed ai actions waiting next battle to trigger
-Fixed patch script bug

v0.5
*new*
-Added Game_Interpreter methods to deal with events on the map during TBS battle
-Added optional script to have event interactions (see Map 2 of the demo)
*bugfixes*
-Fixed a small issue about the line of sight calculation when using the default line of sight system, a range going from land to water should not be blocked anymore
-Cancelling the 'confirm guard' will not crash the game anymore
-The status windows should not be displayed anymore outside of your turn (merged some method calls), avoiding empty windows.
I like it so far. Yes, you could say "yet another...", however, you would be the first person ever releasing a fully bugfree and complete TBS script for VX Ace - in case you get it done. 🙂 Keep up the good work.
Hello again! I'm currently working on version 0.5 with some bugfixes and events interactions (as part of an addon), I'm almost finished for this update: the scripting part works and seems stable.

What remains is to give examples in the demo, basically, you may now run some sub list of event commands when some battle conditions are met:
There are global conditions:
-on turn start: when the turnwheel makes a full cycle, it is similar to calling troop events at the start of turn.
-on battler's turn start: when the turn of a battler starts, if multiple battlers share a turn, this will be called for each of them
-on battler's turn end: at the end of a battler's turn, like battler's turn start, this will run once per battler
-on battler add state: when a battler gets a state,

And local conditions:
-on cursor ok: when pressing the confirm button over an event
-on battler reach: when a battler reaches the position of the event
-on battler leave: when a battler leaves the position of the event
-on skill here: when a specific skill is used on the event
-on item here: when a specific item is used on the event
The events have comments to check what properties triggers them and what happens then, for instance, a chest event might have this in its commands:
1743172603982.png

When skill number 129 is used on the chest, you open it and get rewards, when reaching the comment </tbs> the event stops.

For some triggers, additional parameters are stored (fetchable by script commands) like the battler that used the skill or was targeted or the state that was added etc.

You may then separate an event's page into multiple subcommands:
1743172785706.png

Here, the event will be triggered during battler's turns, end of their turns, when the cursor is pressed or when a skill targets it. If you trigger the event in a vanilla way, only the commands outside of the subcommands will run.

Basically, when loading the map and the event's pages, I remove everything between <tbs_x> and </tbs> if the comments are compatible with what I support.

Notice that some events may give skills to battler's around them, which allows special interactions like "talking" commands or "Open" commands etc.
1743173041396.png

Here, Rick is given skill "Open" by the chest near him, if the skill is used on the chest, it will trigger the sublist of event commands.

The only issue with this, is that this might create code duplication as I remove sublist of commands from the events, so you cannot jump between the commands using labels as the triggers are like their own events. If I want to give the chest reward in multiple ways/triggers, I have to copy all the commands.

Do you think I should instead use the rpg maker label system?
In that case, I would have specific labels that can be read by my system and when I load the event, I jump to the labels. However, this also means that other jump commands should be added by the user to avoid specific conditions:
Instead of having:
Code:
...
comment: "<tbs_x>"
...
comment: "</tbs>"
...
We would have:
Code:
...
jump_to 1
label "<tbs_x>"
...
jump_to "</tbs>"
label 1
...
label "</tbs>"

What do you think, do you have a design preference?

EDIT: For now I went along with the comment solution since it was my original code. I updated the first post with the new verison ~
Small ping to inform you that I've updated the demo to version 0.6, there is now a party placement phase and examples of summons, reinforcement and teleportation skills!
1743687066024.png


played slime battle, won, talked to recruitable guy, flipped switch, then talked to 2nd battle NPC, started battle, crash.

word of advice: your main code is HUGE.
split it into chunks isolating each object or module for ease of handling.
I saw it and was going to say "wow, this so much lighter than Gubi-- oh, it's 8000 lines long, yeah, not."
I made some modifications to Gubid's AND Victor's code, that I sent them, but doesn't seem they'll be using them, mostly AI processors and character movement routines... you want them? they been sitting here for years.
Thank you, the bug can be triggered too when talking with the guy directly, the issue was that when creating a new actor, it calls setup and then adds state death (because hp is at 0) and since I do stuff when battlers are dead it breaks as my objects are not yet initialized.

I updated the demo with the bug fix and another one I wanted to do.

EDIT: Just saw your second part, during the first developments (before 0.1) I was using multiple files (one per class) but having 30 files to navigate inside the RPG Maker script interface is a pain. I find it easier to have (for the rpg maker interface) a big script along with optional files for installation.
But I agree that having multiple files, especially for development is better.
I was planning for version 1 (when I'm satisfied with the Core) to split the main file into 5 subfiles (Setup/Logic/Sprites/Windows/AIs) for easier traveling.

I would be interested to check what you've done to GTBS or Victor's code, for now my AIs are very dumb and their heuristics are not done, my other concern is regarding units animations (moving attacking etc.) which I have not started nor do I know how I would do it.
@Timtrack you want the code? ^^^^
Updated to version 0.7 with some quality of life features ! (link in first post and some examples below)

Spoiler: Screenshots
index.php

The turn order menu, the background is the color of the circle (team-dependant)
config.png

Part of the config menu, you can change the colors of the ranges, the cases when the confirmation window pops and some display features like putting units above the background for easier display or preview damage option etc.
select_preview.png

Speaking of preview damage, now, when selecting a target for your ability, the unselected units will be grayed while selected units will be highlighted based on their team-relationship color to the caster. A preview damage is displayed with the hit chance above and the mean damage/heal in hp or mp below.


EDIT 28/04: 0.8 is under way but I have some things I need to fix first, the positioning of battlers is still messy.
Also note that v0.7 had some bugs that I noticed recently:
-random targeting and multitargeting were not working, it should be fixed in upcoming version.
-starting a vanilla battle with an auto-battle ally will create an error (evaluate of 'true') I don't know yet where this bug comes from. (edit from 01/05: fixed this too!)
Great news, version 0.8 is out! It brings many tiny things (see the first post for a detailed changelog and the links). Version 0.8 is centered around ai calculations but I also brought a save/load system mid battle (thanks to the help I received in my post here) as well as a way to call scenes mid-battle (like shop scenes for instance), the rest is mostly bug fixes and quality of life stuff ~

I will now explain the ais here to help you grasp their behavior:
Spoiler: AI Explanation
Computer-controlled units (that I will call ais for simplification) are confused units, units with the autobattle property or units that are not in human-controlled teams.

Much like previous versions of my system:
- they take decision after human-controlled units if they share their turn
- they follow an individualistic system (see class AI_HandlerBase that makes them take independent decisions), so they will not act based on what their allies could do.
- they have no memory of previous turns
- they follow this algorithm (see method decide_actions in class AI_BattlerBase):
Code:
func decide_actions
  while I can play something
    I choose a good skill to play and a good target with it,
    then I move to see the target and play the skill unless none is available or interesting
  endwhile
  I move towards a good position with my remaining move points
endfunc

One question is how to pick the skill and a good target, I provide two ways (see method pick_action):
-you test all playable skills and test all possible targets and then pick the best pair <skill,target>
-or you pick a skill randomly and you pick the best target with the skill, if no target is good with the skill, then you pick another skill and so on (this is my default behavior)

Picking a skill is based on a weighted probability that follows rpg maker system, the weight defined in the enemy database represents how likely the skill is to be picked. To deal with skills with no weight affiliated (like for actor's ais or for added skills through states to enemies), you can define a weight by putting <ai_rating = w> (with w the weight as a positive integer) in the skill notetags. This rating is by default 5 and will be overridden by the weight put in enemy database for specific enemies.

When a skill is picked, we need to test it on every possible target to estimate its impact on the game. A target will be any cell that the battler can see before or after having moved this turn, once every target is identified, we test them, and pick the best one. To do so, we rate the impact of the skill use on the target which will be something like:
skill_impact_on_targets - skill_cost
The cost will depend of the mp cost, tp cost or some other specificities while the impact will be the sum of the impacts on each affected battler by the skill. But how do we rate and compare such values?

Introducing.... Tactics! Like GTBS, each battler is linked to a Tactic object that helps rating the impacts of skills, some battlers may consider protecting their friends more than harming their opponents, others will harm anyone. The Tactic class is defined like this:
Spoiler: Code
Ruby:
class Tactic
    attr_accessor :harm,
    :summoner_concern, :summon_mul, :obstacle_mul,
    :hp, :mp, :states, :kill_aim,
    :mp_save, :tp_save, :move_save,
    :move_range, :view_range, :safe_distance, :unsafe_distance_rate
    :name
    #Initialize a tactic with the parameters of the default tactic (agressive one here)
    def initialize(name = DEFAULT_TACTIC_NAME)   #name is used to set monster's ai_level
        #multiplier based on team to consider when affecting
        @harm = {
            ENEMY => 1,     #keep at positive
            NEUTRAL => 0,   #if 0, will ignore neutrals, positive will harm them, negative will help them, < 1 makes it less interesting than opponents, >= 1 makes it as inetresting, if not more than opponents
            FRIENDLY => -1, #keep at negative
            SELF => -1,     #keep at negative, multiply each effect valuation applied to self, very low value means very high concern for your safety
        }
        #multiplier based on tbs status (used both for damage and positionning ratings)
        @summoner_concern = 0.1 #additional multiplier to summoners (sums the threat of each summons times this value and add it the threat level)
        @summon_mul = 0.2       #multiply threat level if unit is a summon, 0 < x < 1 means it will be considered less dangerous than non-summons units
        @obstacle_mul = 0.001   #multiply threat level if unit is an obstacle
        #effect inflcting
        @hp = 1        #multiplier to any hp percent change on the target, keep >= 0 !
        @mp = 0.2      #multiplier to any mp percent change on the target, keep >= 0 !
        @states = 1    #multiplier to each states added or removed (times the state ai_rating), keep >= 0 !
        @kill_aim = 1  #bonus multiplier for killing units, keep >= 0 !
        #resources handling
        @mp_save = 1 #multiplier to any mmp% used, see this as how much 1% of my mmp is worth in mhp% loss of an oppponent?
        @tp_save = 0.1  #multiplier to any mtp% used, see this as how much 1% of my mtp is worth in mhp% loss of an oppponent?
        @move_save = 10 #economic move usage (only if can move later on), just keep it positive or at 0
        #positionning, positive likeness means trying to minimize distance to other units
        #negative means fleeing other units
        @move_range = TBS::AI_VIEW_RANGE #the distance (in move points) from which calculating pathfinding is done when no more action is available, allows planning paths over multiple turns (can change mind)
        @view_range = TBS::AI_VIEW_RANGE #the distance (in cells, regardless of obstacles) from which other units are considered for safe/unsafe position (will ignore any unit beyond this distance in cells)
        @safe_distance = { #will score 0 if inside such range from considered units, value is [min,max], please ensure that min >= max
            ENEMY => [1,1],    #stay close if @unsafe_distance_rate[:enemy] != 0
            NEUTRAL => [1,1],  #stay close if @unsafe_distance_rate[:neutral] != 0
            FRIENDLY => [1,1],     #stay close if @unsafe_distance_rate[:ally] != 0
        }
        @unsafe_distance_rate = { #will add this to the score for each 'unsafe' units based on their distance
            ENEMY => -1,  #try to avoid having enemies out of safe_distance
            NEUTRAL => 0, #do not care about neutral units
            FRIENDLY => 0,    #do not care about ally units
        }
        @name = name

        All_AI_Tactics[name] = self
    end
end #Tactic
The tactic of a battler is set in the enemy, actor, class or states notetags with <ai_tactic= tactic_name>
The selected tactic will be chosen based on the state priority, if no state sets a tactic, then the actor tactic is chosen, else the enemy/class tactic is taken and if no tactic was set this way, the default one is used (which is basically go near opponents and try to harm them and help your friends).

When the impact of a skill is estimated on a battler, we use the Preview_DamageData class to judge how likely the battler will take the effects: there is the hp gained or lost, the same for mp and tp, then the touch rate (which is hit_rate * eva_rate), the critical rate and for each state the probability of receiving or loosing the state.

As such, when a battler should take the effects of the skill, they will lose or gain effects based on probabilities. What I do is take the expectancy (probability stuff) of the effects and then sum every expected effect based on this metric: mhp%. When my battler should lose or gain hp, I turn the value into mhp% and compare it to the rest. So we change mp gain or loss to what it represent to us in mhp%, would you rather lose 10% hps or 1% mp? Same problem for tp or states changes. These values are defined by the Tactic object linked to the battler.
Additionally, states should be given a rating in mhp% based on how much impact in mhp% would feel the same as gaining the state. To do so, you can put in the states notetags <ai_rating = x> with x a positive or negative integer (by default 0). For instance, death could have <ai_rating = -100> to represent that dying is like loosing all hps.

Thus, the rating of a skill applied to a battler would be:
rate = sum_of(effect_in_mhp * probability * tactic_weight)
Some battlers are more interesting to harm than others, some are more dangerous and would be more pressing to eliminate. The rate value estimated above is multiplied by how much the caster's tactics considers the battler based on team relationships, this is the @harm value in the Tactic class. It is then multiplied by the threat_from(bat) value, which is by default the battler'stgr. If you change the threat_from(bat) method, you may change how important are some battlers, adding dodger451's Threat System (thanks to gstv87 for this suggestion), you may have the battler's threat increase each time it harms another or heal its friends. Finally, the threat may change if the battler has summons as killing it should discard its summons. The harm rate is stored in method bat_rate_importance.

So the rate of the impact will be the sum for each effects multiplied by the importance of the battlers impacted. We then substract the cost rating which will also depends of the tactic (do we want to preserve mp for instance?). If a skill with area of effect harms too many allies compared to the enemies harmed, then the rating of the target should be negative, showing that using the skill here is a bad choice and should be discarded.

Note that for skills with no affected battlers (skills targeting no one), the rating is biased as it will only count the skill cost. This is an issue as summoning or teleportation skills for instance would be counted only as bad skills if they cost mp or tp. In this special case, the skill cost is ignored and the skill use is counted as positive regardless. You may define in the skill notetags a custom formula:
<ai_cost_rating = formula> to override this behavior. The formula will run with parameters t (the tactic) and s (the skill).
You might also observe that skills that impacts battlers will be hard to compare to skills that cannot target battlers, so an algorithm picking the 'best' skill by testing all possibilities could easily ignore or focus too much on skills with no specific targets, hence why I recommend the random weighted choice algorithm.

Once all targets are rated, we pick the one with the highest rating, if its rating is below 0, then using the skill is a bad idea and we discard it for our current choices.

If a skill and a target are chosen, we check each positions from where the skill could be cast to the target and we compare them with another 'heuristic' called rate_poswhich follows this principle:
try to move with few move points as you may move again this turn and try to stay near or far away from other battlers. For each team, we define a 'safe distance' which is the manathan distance (so x and y difference) between the considered position and the others battler. Each battler in the safe distance will rate positively while each battler outside of it will rate negatively for each distance point above or below the safe distance. Battlers that are too far away (above tactic.view_range) will be ignored from this distance estimation.

Once a position is selected, the battler moves to the position and then cast the skill to the selected target.

Finally, when no more actions are available or none of them is interesting, the ai looks for an interesting position to reach in the next few turns (at distance at most tactic.move_range) and moves towards it, even if it cannot reach it this turn. (I received help here for pathfinding algorithms)




Feel free to ask any questions and report any bug. For the next update, I will work on some basic sprite animation display like displaying weapons icons and moving the sprite when casting abilities. If you have any suggestion about a sprite system or convention that I could use, it would be very helpful (this is similar to my question in the request section. I'm also open to any suggestion regarding the previous systems implemented or even small features.

Once version 0.9 is released, I will do some cleaning and split the code into subfiles, check that the vanilla event calls work and submit version 1 to the RGSS3 section, I wonder if it would then be better to move this thread or create a new one, but there is plenty of time.
Code:
2025-05-09 23:08:35 -0300 >> EXCEPTION CAUGHT <<
NoMethodError: undefined method `[]' for nil:NilClass.
Backtrace:
    [TBS] Core:9602:in `ai_move_best'
    [TBS] Core:9570:in `reach_best_position'
    [TBS] Core:9507:in `decide_actions'
    [TBS] Core:9394:in `block in decide_actions'
    [TBS] Core:9392:in `each'
    [TBS] Core:9392:in `decide_actions'
    [TBS] Core:9319:in `ai_handle_turn'
    [TBS] Core:5263:in `player_group_input_end'
    [TBS] Core:4243:in `command_cursor_select'
    [TBS] Core:4873:in `on_confirm_ok'
    [TBS] Core:4845:in `setup_confirm_window'
    [TBS] Core:4686:in `update_direction_cursor'
    [TBS] Core:3856:in `update_basic'
    Scene_Base:41:in `update'
    [TBS] Core:3845:in `update'
    Scene_Base:14:in `main'
    SceneManager:23:in `run'
    Main:7:in `block in <main>'
    :1:in `block in rgss_main'
    :1:in `loop'
    :1:in `rgss_main'
    Back trace script:243:in `block in rgss_main'
    Back trace script:99:in `with_exception_handling'
    Back trace script:242:in `rgss_main'
    Main:7:in `<main>'
    ruby:in `eval'

TBS Core: 9603, "No method"

battle Confirm options all OFF.
Thank you! I think the issue was that when some battlers could not move (because of obstacles), the crash would occur as I was checking for a min value on an array.
I fixed that in version 0.8a (available in the first post)

I also changed the method tgt_empty? used by some abilities like summoning slime or teleporting, now it also checks if there are blocking events.

If you don't want to redownload the demo, you can alternatively put these fixes in TBS Core:
Spoiler: 0.8 to 0.8a
Line 7000, replace
Ruby:
def tgt_filled?
  return $game_map.occupied_by?(@tgt_pos[0], @tgt_pos[1])
end
with
Ruby:
def tgt_filled?
  return $game_map.occupied_by?(@tgt_pos[0], @tgt_pos[1]) || tgt_blocking_event?
end

#--------------------------------------------------------------------------
# new method: tgt_blocking_event? -> is a blocking event
#--------------------------------------------------------------------------
def tgt_blocking_event?
  mr = MoveRule.new(@subject.move_rule_id)
  return $game_map.battle_events_at(@tgt_pos[0], @tgt_pos[1]).any?{|ev| [email protected]_cross_ev?(mr,5,ev)}
end

Line 9602 in ai_move_best after
Ruby:
cost_data2.keep_if{|p,c| (bat.can_occupy?(p) || (p[0] == bat.pos.x && p[1] == bat.pos.y)) && @cost[p] && @cost[p] <= bat.available_mov}
add this line:
Ruby:
return if cost_data2.empty?

I observed that loading a midbattle save and finishing the battle (by winning or escaping) might not behave as intended in the returned event (it may call the winning case the battle was escaped or vice versa) I don't know yet the origin of the issue, unless the script provided was @Another Fen had this bug.
Alright, TBS 0.9 is out! You can download it here! (no .zip attached to my posts since the file is now considered too big, there is probably a 2MB limit).

You can check the approximate changelog in the script head and in my original post, here is a focus on the big new stuff:

Spoiler: Event Triggers Modifications
TBS Event Triggers now works with labels, no need to use comments anymore to have triggers (the comments are still useful for other stuff that you can check in the demo)

So instead of having this:
1762624113091.png


You can do this:
1762624067266.png


This allows a more engine-friendly system where you can use Exit Event Processing commands to leave your events and can use multiple labels for the same code or even jump freely between your labels whereas the previous system needed to repeat the same instructions sometimes.
This new version also provides a few syntax change in the comments like <tbs_team x> instead of <tbs_team> x.
The new version provides a few more triggers like <tbs_on_astate x> which will trigger each time state x is added to a battler. A small downside of using the labels is that the label names are limited to 20 characters.

Spoiler: Positioning Addon
The Positioning addon adds effects related to the battler's position and direction on the map.

You can set push and pull effects! By setting in the ability (skill or item) notetag:
<push: x>
You can then push the affected battlers from x tiles from the origin of the ability (we'll talk later about the origin).
You can also pull them by setting a negative value.
You may also set push values in the actor, class, enemy, state or equipment notetags to allow the base attack of the unit to push/pull others.

Whenever a battler is pushed by an ability, if they reach an obstacle, they will damage the obstacle and themselves based on the amount of tiles that could not be pushed or pulled, you can set a custom damage formula for this just like with skill damages:
Code:
#Inside the Positionning addon script, look for the constant and set a formula
#n is the remaining cells of the push/pull effect
#a is the user of the ability
#b is the one damaged by the push/pull
#v are the game variables
PUSH_DMG_FORMULA = "100*n + a.atk - b.def"

You can now design teleportation to the targeted cell of the ability with:
<tbs_teleport>
And exchange with the target (if any) with:
<tbs_exchange>
(You may also still use common events to do this)

Push/Pull effects, teleport and exchange effects can be ignored by some battlers by setting an immovable level that will prevent them from being affected, you can set this in the battler or effects notetags:
<immovable x>

Finally, the direction of your battler is now relevant for damage! Battlers taking front damage takes less than battlers taking damage from the back!
You may disable this feature for some abilities. Also, for base attacks, if the attack is on the back of another battler and in contact (1 cell distance), then the result is considered a backstab! Which can increase the damage much more!


Since the position is relative to the ability, you can set the 'origin' of the ability as either the position of the caster, or the position of the target by setting in the ability's notetag:
<tbs_source: target>
<tbs_source: caster> (by default)
1762625629363.png

By setting 'target' as the origin for the base attack, Natalie's attacks might push or pull the affected battlers based on the targeted cell instead of Natalie's position. This will also change how directional damage are handled.

Spoiler: Projectile System
This new version provides a projectile support, you can set in your skill/item notetags:
<projectile = filename>
Which will then look for a sprite with name filename in your Graphics/Pictures/TBS/Projectiles folder:
1762624640478.png

And launch said projectile each time the ability is used, if your ability has multi attacks, then each attack will draw a projectile. The projectile will have to land before the skill animation is displayed on the target.

You can also set a looping animation around your projectile, that way you can design an animated fireball:
1762624775495.png

You can link the animation to a projectile of a skill by putting in the notetag:
<projectile_animation = [id, bool]>
With id the animation id in the database that loops on the projectile and follows it and bool a value to true or false. If bool is true, then the animation will rotate with the projectile's direction, false means the animation will not change its angle.
The bool value is optional, you can simply put:
<projectile_animation = [id]>

The direction of your sprites and animations are thought to be directed to the east, that way, when the system decides the projectile's direction, it will rotate the sprite accordingly.

You can also set a projectile to the weapons or enemy's notetags that will define the weapon projectile.
<projectile = filename>
You can then set this projectile as the one for your skill or item like this:
<weapon_projectile>

That way, if your battler has a projectile, then it will be used for those abilities, if it doesn't, then an animation with no projectile is used (default animations).

Spoiler: Animated Poses
The main focus of version 0.9 is deeper animations for TBS, though this is a very basic version here.
You can make bigger spritesheets that you will store in Graphics/Battlers/TBS, the name of the spritesheet is the same as the name of the charset you would have used for your battler/actor. If you don't set a spritesheet in the folder, then the system will just take the charset with the same name in the Graphics/Characters folder (similar to without this addon).

You can define the number of rows and columns of a spritesheet (for instance the $bard2 in the demo), you can then define poses with keys and a sequence of cells in your spritesheets, each cell lasting a specific amount of frames.
For instance
:attack = [[0,0,5],[0,1,5]]
Will set the attack animation as two cells of your spritesheet, each lasting 5 frames (1 frame is 1/60 second).

A pose will be called by the system when the battler is doing things (moving, damaged, dodging, dying etc.), or by abilities when you cast them or at the end of the casting by setting:
<cast_pose = :symb> (default is :cast)
<end_pose = :symb> (default is nil)
You can link a sound and/or an animation displayed whenever your battler's pose is called by setting:
<pose_sound :pose = [se_name, volume, pitch]> (example: ["Fire1", 100, 100])
<pose_anim_id :pose = id>

Even if your battler does not use a spritesheet, the pose sound and animation can be used.
There is much more that you can check on the addon's header and configuration, you can also check the Battle Arena map to see the bard sprite in display.

And... that's it! Hope you enjoy!
Next big release will provide reaction abilities (like counterspell), clean a lot of stuff and if no bugs are found, then I will move the script to RGSS3 script.


EDIT:
Animated Poses addon introduced a bug when doing a vanilla battle, here is a bug fix to it that you can put right below the script (the next version will integrate the fix):
Ruby:
class Game_Enemy
  def perform_collapse_effect
    return tbs_anim_enemy_perform_collapse_effect unless SceneManager.scene_is?(Scene_TBS_Battle)
    super
  end
end #Game_Enemy
Very interesting! I'm so glad someone's still making big projects on VXA (my favorite maker, even though I buy them right up until the MZ). I played with the script for a couple of hours, and so far everything's working great—I'll keep experimenting.

I don't have any specific bug reports or requests, I just want to say, "Keep going!"
This is great, been looking for a good TSBS script.
TBS 0.10 is here!​

Well, after months of development, I can say that.... there are still many things to handle ahahahah.
I guess I lied when I said 0.9 would the last pre released version, but this one is way closer to something stable and clean (hopefully).

I'm not good at listing stuff with changelogs even if I wrote an incomplete one in the header, so here are the most important changes (appart from me reviewing and rewriting a significative part of the core):

Core changes
Spoiler
Core is separated into 5 parts (+ the header as part 0), each part is split into smaller ones to be more class-focused. So now it looks like this:
1773169037189.png

If it's too annoying to install, you can still get the 14k lines of code from Core as a single file or as 6 subfiles in src folder of the demo :3

One of the most significant changes is the addition of the stack system like Magic the gathering (I gave a few examples in this post): actions and movements are stored and resolved in a stack (see TBS_Stack): the latest effects are resolved before the earliest are finished. Triggered events with the addon Event Triggers are also put on the stack and can be interrupted by other effects.

The stack implies triggers, moments where an effect can be interrupted by others, for actions, the triggers are mostly:
-when the action starts (checking if it's valid)
-when the targets are identified
-when the action starts (with animation and pre effects)
-whenever the action applies to a target (loop on each affected battler)
-when the action applies post effects
-when the action ends

For movements, the triggers are when:
-the movement starts
-the battler leaves a cell (before they actually move out of that cell)
-when they reach another cell
-when they end their movement

Between each trigger, the stack effect may be interrupted and we can even leave the scene or save the game and resume it. Leading to an easy to interrupt scene.

I rewrote most of the code to be more robust to scene changes and rename many classes and methods to be a little bit more consistent (it remains a bit messy tbh)

Game_System now contains a Game_System_TBS to handle the tbs parameters changed during the game, you can access it thought script calls with $game_system.tbs or simply tbsif you are in the interpreter.
Game_Intepreter has a bit more useful commands, from adding and removing battlers to changing their teams in battle.
You may also hide the battle hud (windows, cursor or ranges) for cutscenes in battle, you can also disable battle inputs and make your own common evented menus in battle (the demo has very basic exemples).

There's a bit more parameters in the configuration part of the core, you can resize some windows and choose the commands listed in the actor's menu, the place menu and the battle menu.

For sprites, you can now have an animated paths if you use a full charactersheet:
!$path.png
!path2.png

Single path (non animated) vs full path (animated)

Move points are now stored as [COLOR=rgb(97, 189, 109)]mv [/COLOR]and [COLOR=rgb(97, 189, 109)]mmv [/COLOR](for max move points), [COLOR=rgb(97, 189, 109)]mv [/COLOR]are restored at the start of battle and at the end of each battler's turn, states and equipment may increase or reduce the [COLOR=rgb(97, 189, 109)]mmv [/COLOR]while skills and items may increase or decrease the [COLOR=rgb(97, 189, 109)]mv[/COLOR].

I also changed the notetags syntax for most of TBS and the addons (except the Animated Poses) to be closer to <feature: value> rather than <feature = value>, I updated the demo accordingly.

Addon Changes
Spoiler
TBS Event Triggers
Spoiler
Added new triggers and renamed a few, I also discarded completely the comment version of triggers (triggers pre 2.0), the label version is just more convenient for me, the labels are:

Global Triggers
Triggered by any tbs event (including decoration events):
<tbs_on_turn_start> -> when a global turn starts
<tbs_on_turn_next> -> when a new group of battlers start their turns
<tbs_on_bat_start> -> when any battler starts their turn (can be called multiple times at once if multiple battlers starts together)
<tbs_on_bat_end> -> when any battler ends their turn
<tbs_on_add_state> -> when any state is added to any battler
<tbs_on_astate x> -> when state x is added to any battler
<tbs_on_rm_state> -> when any state is removed from any battler
<tbs_on_rstate x> -> when state x is removed from any battler

Local Triggers
Triggered by tbs battle events (the ones that may block path), local to the event:
<tbs_on_cursor_ok> -> when the player press :C on the event during battle phase
<tbs_on_precursor_ok> -> when the player press :C on the event during place phase
<tbs_on_bat_reach> -> when a battler reaches the event's location
<tbs_on_bat_leave> -> when a battler leaves the event's location
<tbs_on_skill x> -> when skill with id x affects the event (if the event is in the area of the skill)
<tbs_on_item x> -> when item with id x affects the event (if the event is in the area of the item)

The triggers now follow the stack system from the core.
TBS Positioning
Spoiler
Teleport, swap and push effects are now movements elements on the stack, meaning that battle effects may react to the battlers reaching or leaving cells with these effects.
Skills and items may now cancel the movements of the targets if:
<disable_movements> is put in the notetags
Canceled movements can refund the move points spent on them.
TBS Options
Spoiler
The option menu is now its own scene, you can access it from the menu if you want to. Its display is very similar to Yanfly's Option Menu it's based from, you can choose between having all options listed (like Yanfly's), or just the selected ones (like previous version of TBS options):
1773172921828.png
1773173119174.png

The option menu may now have variables with a very specific range of named values instead of a gauge.
You may have custom variables and switches handled by the option menu being set to a defined value on game start and even choose to reset them to that value when you opt to reset the options.

Height and Projectiles addons were essentially code cleaned and bugfixed for some parts.

Patches
Spoiler
PatchHub can now be split into subfiles for each patch, some patches have parameters to allow more options, if you use the header of the PatchHub (like in the demo), all configurations are made in that header.
Yanfly Option Menu: compatibility patch with TBS Option menu improved to allow to integrate the windows colors along with the sounds.
Yanfly Enemy HP Bars: Preview damage can now display the estimation of hp damage/heal on the battler's hp bar:


1773173811482.png


Min damage (red), max damage (orange/pink).
Added support to (but not completely tested):

YEA - Class System v1.10 (optional patch)
YES Equipment Learning
YEA Skill Cost Manager

New addon: TBS Reactions
Spoiler
The new addon of this version is the reaction system. To be fair, the updated demo won't be very representative of the reaction system so I will try t explain them here. Whenever a battler:
-casts an ability
-is targeted by an ability
-reaches a cell
-leaves a cell
Battlers around may react to that battler's actions. Reaction skills cost, in addiiton to their normal cost, reaction points, which can be increase or decreased by effects and equipments, they are refilled at the end of the battler's turn just like move points.
With the stack system, a reaction will resolved BEFORE the end of the ongoing action.
Due to the nature of reactions a few things were decided, but you can change them in the script configuration:
-actions are now paid when the player/computer decides to play them, so before they start, meaning that I can't pay for multiple actions in a row even if they haven't started
-a battler may have at most one battle action (skill or item) on the stack, so a battler can't react to someone reacting to their attack for exemple
-a battler can't react to their allies (but they can react to their allies being targeted)
-if multiple battlers react at the same time, their reactions are ordered based on their action's speed (so yes, action speed becomes useful in TBS now)
When an trigger happens, the game is paused and asks for the player's input:
battle_reactions3.gif

The pause effect is handled with optional addon Freeze Map effect (included in the demo too).
This addon also adds the ability to skills to cancel the battler's action with notetag:
<counter_action>
Reaction skills can have conditions to their activation, in addition to the trigger, the notetag syntax in the skill are:

Code:
#To react to casters using skills with ids:
<react_to source: id1,id2,...>
#To add more restriction:
<react_to source: a,b,... if cond>
With "cond" a code evaluated with parameters:
-a -> the user of the reaction skill
-b -> the active battler
-c -> the target of the active battler (if any)
-skill -> this reactive skill
-action_item -> b's current item/skill used (if any)
-p -> array of extra infos that are context-dependent
-v the game variables
Other reactions are:
Code:
#To react to targets of skills with ids:
<react_to target: id1,id2,...>
<react_to target: a,b,... if cond>

#To react to attacks using specific weapons:
<react_to_wtype source: id1,id2,...>
<react_to_wtype target: id1,id2,...>
<react_to_wtype source: id1,id2,... if cond>
<react_to_wtype target: id1,id2,... if cond>

#to react to skills or items having (at least) a specific skill type:
<react_to_stype source: id1,id2,...>
<react_to_stype target: id1,id2,...>
<react_to_stype source: id1,id2,... if cond>
<react_to_stype target: id1,id2,... if cond>

#react to battlers reaching a cell in the skill's range:
<react_to reach>
<react_to reach if cond>

#react to battlers leaving a cell from the skill's range:
<react_to leave>
<react_to leave if cond>
Reactions can be skills that you could not have cast during battle, they are not concerned by the battle/menu restriction, so you can design skills (like counter spell) that are meant to be used only as reactions.
You can also design some reactions to be automatic (not choice from the user), manual (choice from the user) or inactive (never used) with:
<react_mode: x>
(x being auto, manual or inactive)
Finally, if you have TBS Options, you have an option menu available in battle or from the main menu (if allowed) to choose the reaction mode of each skill:
1773176060343.png
Addition to the demo
Spoiler
The demo was improved to provide, along with some examples of the new addon, a few more maps and events.
The most significant addition is the Battle Test map that allows you to add, remove or change the team of the battlers in it freely along with the ability to force any action with some evented "menus":
1773176318409.png


There is also a mini-boss map! (Battle Path map)

Term of use: same as before, ie free for any game as long as you give credit and don't try to sell the scripts directly or indirectly. Also please do not use AI to read or train on this project, I would be unhappy if you do that (hence why the MIT no-AI license in the project). I added more acknowledgments in the script header, to GubiD but also to Kyonides and Another Fen who helped me in the code of some parts of TBS.

Anyway that's roughly what changed. Please do tell if the project interests you.
I'm now looking for people to test the demo and the script and tell me what improvements could be made (like readability, or missing features) and of course bug report! 😀
If you guys want to try to mess around with it and tell me what breaks I would be very happy!
A random list of things that could help:
Spoiler
-playtesting (modifying database values to create new skills or enemies, testing different battle maps, using events during battle and calling interpreter commands with script calls): any crash report, unclear interface, freezing situation, missing ui, feature suggestion is welcome
-testing the script options to see how it behaves under other circumstances
-enabling or disabling the addons to see if it works correctly
-adding third-party scripts (mostly the supported ones by the patchhub but you can also suggest to me other scripts to write compatibility for)
-criticizing the documentation of the header (confusing or unclear comments I've made or missing explanation)
-for scripters: criticizing the structure of the script, the name of the methods, the code, its adaptativity to third-party scripts

Download the demo here.
When I talk to the switch on the right, it gives me a perpetual "Hello" that I can't close out of.
One of my suggestions would be to maybe play an SE when you change character with Q/W? Or even a confirm sound effect when you place a character on a grid. (I wonder if it'd be possible to see a list of all your characters/roster remaining also or selected, too instead of just a mini menu.)

For some reason also the character's portrait appears on the right side when they're attacking the jellyfish on the enemy turn.
1773179220787.png


Thank you SOOOO much for making this script though. VXA lacked TBS' and it means a lot to me that someone is bringing another system to it.
Oops, I forgot to remove this test...
In the meanwhile you can find the "Hello" in common event 1, sorry :')

For the portrait I will see why, it's supposed to represent where the cursor is, and the cursor follows the active battler, but maybe it's not refreshed properly.

Edit: oh and yes I thought about adding the sounds effects there and there but was unsure if I would set them as the system sounds or as user-chosen sound (in script config).
For the whole list, that's another beast, it's not hard to code but it's how I would represent it that's another matter, maybe as a grid with charsets of each actor?

In nay case, thank you for your suggestions :3
Oops, I forgot to remove this test...
In the meanwhile you can find the "Hello" in common event 1, sorry :')

For the portrait I will see why, it's supposed to represent where the cursor is, and the cursor follows the active battler, but maybe it's not refreshed properly.

Edit: oh and yes I thought about adding the sounds effects there and there but was unsure if I would set them as the system sounds or as user-chosen sound (in script config).
For the whole list, that's another beast, it's not hard to code but it's how I would represent it that's another matter, maybe as a grid with charsets of each actor?

In nay case, thank you for your suggestions :3
Yeah, I think a grid with maybe their sprite sounds good!
I'm also huge fan of any sound customization in my games, so I fully support allowing customizing that. This makes me wonder if like it'd be possible to have like "phase" BGM changes like how other tactics games do it? I don't know how annoying it'd be, but like playing BGM on your turn then changing it on enemy turn, for example, or BGM change if you're losing/winning.

Keep up the good work though!
This makes me wonder if like it'd be possible to have like "phase" BGM changes like how other tactics games do it? I don't know how annoying it'd be, but like playing BGM on your turn then changing it on enemy turn, for example, or BGM change if you're losing/winning.
As a matter of fact, that's precisely why I added the trigger:
<tbs_on_turn_next>

In the demo, if you go see event 25 on the first map (the one right below the upper right corner), you will see that it has this trigger that will call common event 5.
Basically this common event is triggered by this map whenever a group starts their turn (after the end of the previous group turn's) and so you can use it to display a starting turn animation and change the BGM 🙂
1773217112308.png

You can get the id of the current team acting by using script call:
tbs_current_team

I guess for the BGM change depending on the winning or losing situation, this should also be event-controlled, maybe with an event triggering on death of battlers and counting the remaining battlers of a team? I don't really know how I would measure this notion personally.

And thank you for your words of encouragement 🙂
I will try to fix that window and maybe some of the issues that I've listed in the header before updating the demo and removing that common event 1 looping with a message x)
Yeah, I think a grid with maybe their sprite sounds good!
Something like this?
1773333911398.png

I'm quite unsure about which info I should put in there, here I just fully colored actors that are not yet placed and greyed out the others, should I include non-plaçable actors? (like actors that cannot be put in battle without script commands but that are in the party, dead actors etc.)

For the sound design part I found a compromise with myself so next update should allow more sounds while still provided the ability to mute or use system sounds ~

Original thread: https://forums.rpgmakerweb.com/threads/yet-another-tbs-project-v0-10a-looking-for-testers.176492/