timesynk/docs/rolls.txt

65 lines
2.0 KiB
Plaintext

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Xibalba Combat Roll Syntax
````````````````````````````````
Any attack in Xibalba is broken down into two steps:
1. To Hit Calculation
2. Damage Calculations
To hit calculation uses the Attacker's(A) Finesse(f) and Luck(l) against the Defender's(D) Finesse(f) and Luck(l). The resulting value(h) determines if and how well the attacker hits.
Ah = (Af + Al) - (Df + Dl)
The Damage Calculations(d) are broken into two key groups - Kinetic calculation(K) and Elemental/Other(O). The first is distinct due to it using the Attacker's(A) Kinetic stat(k), weapon skill(s), and the positive remainder of the To Hit Calculation(h). The Elemental/Other calculations are far simpler, as they act as a separate bonus damage.
d[K] = (Ak + As + Ah)
For each of the Attacker's(A) damage types(d), the Defender(D) negates the value by their armors' resistance(r[t]) to that particular damage type.d[..] = d[..] - r[..]
The resulting amount is subtracted from the Defender's health.
dH -= d[..]
Or, broken down into psuedo-code:
to hit value = (attacker's finesse + attacker's luck) - (defender's finesse + defender's luck)
if (to hit >= 1) then
physical damage = (attacker's kinetic stat + weapon's physical damage + attacker's weapon skill) - (defender's physical resistance)
for each non-physical damage type do
damage = (weapon's type damage - defender's type resistance)
done
else do nothing
Example
''''''''''''''''''''''''''''''''
Warrior:
Stats:
Finesse 3
Kinetic 4
Luck 2
Skills:
Swords 1
sword of fire:
4 physical damage
1 fire damage
Nupi:
HP 9
Stats:
Finesse 2
Kinetic 1
Luck 1
Armor:
2 physical resist
Warrior's attack roll is: 3 + (0-2), so 4
Nupi's defense roll is: 2 + (0-1), so 2.5(3)
4 - 3 = finesse bonus of 1
Warrior's physical damage is: 4(kinetic) + 1(skill) + 1(bonus) = 6
Nupi's defense is: 2
6 - 2 = damage of 4
Additional fire damage is: 1
Nupi's fire defense is: 0
1 - 0 = fire damage of 1
Nupi loses 5 HP total