Tag Archives: combat sim

Virtual Grid Combat Engine

I’m developing Virtual Grid Combat Engine (VGCE), a plugin for RPG Maker MV. Ideally the party and enemies are placed in grids to allow more strategic combat by enabling attacks such as sweeping a row or blasting a column of enemies. The party in 2×2 grid at the bottom. Enemies are placed in grids ideally 3×3 for difficulty balance. More grids mean more enemies may appear at once if so desired, but may raise the game’s difficulty.

So far, I have placed the party members in a grid, as shown below.

Party members placed in 2x2 grid.
Party members placed in 2×2 grid.
Battle status window centered during action.
Battle status window centered during action.

Conscript: Combat Simulator

Try the Conscript Combat Simulator

I tried my best to reverse engineer Warsong’s combat. Actually it’s really simple, but also very exciting, like Warsong was.

When two units engage in combat, this is the order of sequence.

  1. Get the number of shots for each unit, based on HP and unit type.
  2. If both units are alive and at least one unit still has shots left, go into attack phase for each unit that has shots left.
    1. For each shot, there are 2 sub rounds:
    2. First round, see if defending unit evaded from terrain bonus. If evaded, then round is over.
    3. If terrain had no effect, continue to second round.
      1. Attacker tries to hit defender using this formula: 1% < (unit1.attack - unit2.defense) * 5% + 50% < 99%
      2. If miss, try again using restrike chance formula: Math.random() * 100 < unit1.level * RESTRIKE , where RESTRIKE is set at 5%
      3. Keep trying until the shot hits or restrike chance failed. Higher level units have more chances to get restrike chains.
  3. Combat repeats with Step 2 until both units run out of shots or one or both units die.