It's not a huge battle system, simple in fact, but knowing everything that happens in the DBS requires you to look in quite a bit of classes : Game_Battler / Enemy / Actor, Game_BattleAction, Game_Troop, Interpreter, Scene_Battle and Spriteset_Battle mostly.
Wow that makes a lot of things.
If you want to know more about my CBS, take a look at
this.
I actually have a little script used to setup battle troops using event id and monster id.
How it works:
I have a class, IABS, and this class is updated in $scene_map using $iabs.update
In an event, i start a battle using $iabs.setup_battle(enemy) where enemy is an array.
For exemple:
enemy = []
enemy[0] = [6,10]
$iabs.start_battle(enemy)
It means that the first enemy would be event 6 and monster 10 from the database.
$iabs.start_battle(enemy) will transfer [6,10] to $game_map.event[6] abd $data_enemies[10]
So event 6 will be enemy 10.[/CODE]
After setting up the troop, i display Window_BattleStatus on the screen.
It all works fine but now i have to make the meat of the battle system. Commands, actions, ATB ect.