BATTLE ALGORITHMS

Detailed notes on the engine's hit rates & damage calculations

  • Dyhalto
  • 12/04/2015 05:10 PM
  • 4084 views
~Battle Algorithms for Sim RPGMaker 95~

---Glossary of Terms
Strength, Magic, etc : Blue font refers to the Attacker’s statistic.
Strength, Magic, etc : Red font refers to the Defender’s statistic.
PwrUp : Refers to the effects of Raise Attack spells, as well as the negative effect of Attack Down spells.
DefUp : Refers to the effects of Raise Defense spells or Defense Up medicine-type items, as well as the negative effect of Defense Down spells.
MDefUp : Refers to the effects of Magic Defense Up medicine-type items.
GeoEffect : Refers to the Defense Effect of terrain properties.

--Physical Attack Hit Rate
1. Hit Rate(%) = 70 + Skill x 2 + weapon{Useability}
2. Dodge(%) = Skill x 3 + GeoEffect – armor{Weight}
3. Final Chance to Hit = Hit Rate(%)Dodge(%)

---Physical Attack Damage
1. Attack = Strength + weapon{Attack} + PwrUp
2. If weapon Attribute is strong vs Enemy, Attack = Attack x 1.5
3. Defense = Stamina + armor{Defense} + GeoEffect/10 + DefUp
4. Final Damage = AttackDefense
5. If Critical, Final Damage = Attack x 2.5 – Defense x 2.5

--Probability of a Critical Hit
1. Critical Rate(%) = Skill + weapon{Critical Value}
2. Critical Avoid(%) = Skill/2 + armor{Critical Avoid}
3. Final Critical Rate = Critical Rate(%)Critical Avoid(%)

--Double Attack (if Counter is enabled)
1. Attack Speed = Skill + weapon{Useability}/3 – armor{Weight}
2. Double attack if Attack Speed is 3 points higher than Attack Speed
*Only the attacker can double. Retaliation attacks will not double.

--Magical Attack Hit Rate
1. Hit Rate(%) = Skill x 2 + magic{Accuracy}
2. Dodge(%) = Skill x 3 + GeoEffect – armor{Weight}
3. Final Chance to Hit = Hit Rate(%)Dodge(%)

--Magical Attack Damage
1. Spell Power = Magic + magic{Damage}
2. Magic Defense = Magic + armor{Magic Defense} + MDefUp
3. If magic Attribute is strong vs Enemy, Spell Power = Spell Power x 1.5
4. Final Damage = Spell Power – Magical Defense

--Experience Received
Attack and Damage Experience = 14 + Level - Level
Kill Experience = 38 + Level x 2 – Level x 2

--Raise HP/Attack/Defense and Lower Attack/Defense Spells
Bonus or Penalty = spell{Value} + Magic x ( spell{Relation} x 0.1)
*Magic Defense has no effect against Lower Attack/Defense spells
*Effect will lower by 1 each turn until the Recipient’s innate value is reached.

--Raise Defense/Magic Defense medicine items
DefUp = item{Defense Up}
MDefUp = item{Magic Defense Up}
*Effect will lower by 1 each turn until the Recipient’s innate value is reached.

--Status Effects
Poison Damage per turn = 25% of current HP, round Up
Poison Duration = 3 turns
Sleep Duration = 2 turns (enemy will recover and move on the 3rd turn)