Combat
A project fights one of three ways, set by two lines in game.vdc. The New Project window picks one. Change it on Project Settings > Project, under COMBAT: Combat is Real-time, Dice (d20) or Turn menu (JRPG). The change takes hold at once, and a fight still open when it changes ends undecided.
- combat realtime
- Blows are traded in the world as you play.
- combat turn + battlestyle d20
- Fights happen on the map in turns, with visible dice.
- combat turn + battlestyle jrpg
- Walking into an enemy cuts to a separate battle screen.
Real time
The attack key (F, or X on a pad) swings the weapon in hand; a gun fires along the aim. The roll (Q, or B on a pad) tumbles the way you push, else the way you face. With mouseaim on the mouse aims; with clickmove on a click walks there.
Villagers are never hit by accident. A Killable villager is struck by any swing, shot or damage spell that reaches them. What a calm villager does when struck is a choice: see Calm Characters.
A wall between stops a melee blow. In a 3D project the blow is tested at chest height, so the floor the fighters stand on does not stop it, and neither does a prop lower than the chest.
Hits throw up the hit_spark effect and a fallen foe the death_puff effect, when your particles.vfa has them (see Effects and Particles).
Turns on the map (d20)
A fight starts where you stand, when you walk into a living enemy or one spots you. Every living foe close by joins, up to eight. A foe that notices you mid-fight takes a seat at the start of the next round.
- Initiative is rolled once, by the rules' Initiative roll: a d20 plus a third of the speed attribute unless you change it. Sneak up on an enemy that has not seen you, from behind, and you may get the first swing; get caught from behind and they may.
- A strip across the top shows everyone in turn order, the active one lit, their action points as pips and their walk as a bar.
- Your turn has a walk and four action points (AP). A swing costs 2 AP; a spell costs 2 AP and its mana; using an item is free. Walking costs AP too: the first step pays 1 AP for up to half your walk, and going past half pays 1 AP more.
- Point at the ground and the path is drawn before you take it, coloured by what it costs: already paid, one more AP, two more AP, or out of reach. Click to walk it, or walk with the keys.
- Point at a foe, or press Tab, to pick your target. A marker sits on it with your chance to hit.
- Every attack rolls a d20 plus a bonus against the target's armour class. The roll is shown as it happens. A natural 20 doubles the damage.
- Enter ends your turn. Enemies and companions then take theirs. Enemies with weapons and skills use them in their turn too.
- The fight ends when one side is finished, or when every enemy is left far behind.
- When an action is refused (no AP, no mana, out of range) the reason is shown.
- A game saved mid-round loads back into the same turn.
The d20 rules
The numbers above are the defaults. With Dice (d20) chosen, the D20 RULES rows on Project Settings > Project change them, each picked from a list and written to assets/data/rules.vfa at once.
- Action economy
- ap, one pool of action points, or actions: an Action, a Bonus Action and Movement each turn.
- AP each turn, Walk AP, Attack AP, Spell AP, Item AP
- The pool, and what walking, a swing or shot, a spell and an item cost from it.
- Walk, Reach
- Pixels walked in a turn (400), and how far a foe or a companion swings from (96).
- Armor class, Foe armor class
- Yours and your companions', and the foes'. In yours
modis a third of the speed attribute; in a foe's it is the foe's tier, 0 for regular up to 4 for a boss. - Attack roll, Foe attack roll, Initiative
- The dice each one rolls.
- Crits on, Crit damage
- The lowest natural roll that crits, and what it multiplies the damage by.
- Target marker
- ring, bracket or off.
- Grid, Cell size, Diagonals
- free, squares or hexes. On a grid you walk cell to cell and the cells in reach are drawn. Diagonals on squares cost 5-10-5 or 5-5-5.
- Cover
- off, or graded: half cover adds 2 to the target's armour class, three-quarters adds 5, and full cover blocks the attack.
- High ground
- Standing half a body or more above your target gives advantage.
- Flanking
- A melee attack has advantage when an ally stands within reach on the far side of the target.
- Natural 1 misses
- A natural 1 always misses.
- Death saves
- You or a companion at 0 health is dying, not dead, and rolls a d20 against 10 each turn. Three successes and they are stable; three failures and they die. A natural 20 brings them back up and a natural 1 is two failures. Each blow they take while down is a failure, two for a critical hit.
- Reactions, Disengage AP
- See below.
- Party control
- Who plays your companions' turns: ai or player.
In a fight, a condition also bends rolls: armour conditions change armour class, to-hit conditions change attacks, speed conditions change initiative, a stun loses the turn and gives attacks against it advantage, and a silence stops spells. condition <kind> rows in rules.vfa change what each kind does.
Reactions
With Reactions on, everyone gets one reaction a round, shown as a diamond on the strip. Walk out of a foe's reach and it takes a swing at you. When a foe walks out of yours, a window asks: Attack (F), Let pass (Enter), or a reaction spell if you know one. Press V to Disengage: it costs the Disengage AP (an Action under the actions economy), and you leave reach this turn without being swung at.
Action, Bonus Action and Movement
With the actions economy, each turn has one Action (a square on the strip), one Bonus Action (a triangle) and your walk. A swing takes the Action. A spell or an item takes whichever its row's actcost names (action, bonus action, reaction or free). Press Q to Dash: it spends the Action and gives you your walk again.
Spell areas
An area spell (a sphere, cone, line or cube, see Magic) opens an aim on your turn. The shape is drawn on the ground, with a ring under everyone it would catch. Click to cast; right-click to put it away.
Playing a companion
When Party control says player, or a companion's own Party control on the Companions page does, you play that companion's turns. The skill bar shows their attack and spells, and you walk and target with them the same way you do with your own character.
The combat log
Place a Combat Log widget on the HUD in the UI Editor and it lists the fight as it happens: every roll with its breakdown, damage, conditions gained and lost, deaths, turns, rounds and reactions. Its wording is on Project Settings > Words, so you can change it. The log is kept for the session and never saved.
The skill bar
Place a Skill Bar widget on the HUD in the UI Editor. Its style picks 8, 10 or 12 slots. Your hotbar's item slots come first, when your game has them; then the attack; then learned spells in the order they were learned. Each slot shows its key (the number row), its cost and its mana cost, and dims when it cannot be used. Keys 1 to 9 and 0, or a click, use a slot. Outside a fight the bar still works and spells cost only mana. LOOK > Game Screens > ACTION BAR turns the bar off, reshapes it, moves it and resizes it for the whole project: see The Action Bar.
The battle screen (jRPG)
Walking into an enemy opens the battle screen, and every enemy nearby joins.

- Every fighter has a time gauge that fills by speed. When yours fills, the command window opens and the gauges wait for you.
- Commands: Attack, Magic, Defend (halves the next hit), Item (a list of what you can use), Run.
- How the enemy came at you sets the formation: seen from the front, a chance of a pre-emptive strike; from behind, a back attack; surrounded, a pincer.
- Winning pays the same loot, experience and {renown} as a kill on the map.
Enemies on the battle screen swing only; their weapons and skills are used in real time and in d20 turns.
For the battle screen, the COMBAT rows also pick the Battle screen layout (Classic, Wide band, Front view, Side column or Staggered), the Battle place, and where the ground line sits and how the two sides stand. Project Settings > Battle Places makes the places: a floor and wall picture, or the map itself, with a tint and the fight's own music. A fight takes the first place named by its foe, the foe's spawn zone, the zone you stand in, the map, then the project.
Numbers
Damage, health, speed, critical hits, learning and prices each come from an attribute you choose (see Attributes and Leveling). Difficulty and New Game+ scale enemy health and damage (see Endings and Difficulty).
When the player falls
What death costs is set in Project Settings > Consequences. See Consequences.