CTB - A Final Fantasy X-like Battle System, Version 3.2
#28
Continuing with the presentation of the battle formulas here are the basic calculations for physical attacks:
Code:
# Calculate basic damage
      if MNK_STATIONARY_WEAPONS.include?(attacker.weapon_id)
        power = attacker.atk * attacker.dex
      else
        power = attacker.atk * attacker.str
      end
      power *= ATTACK_DAMAGE_RANGE_CORRECTION
      defense = self.pdef
      power = [power - defence, 0].max

Here, the result will depend linearly on the attack value of the used weapon, and on one parameter of the user: the strenght for close combat weapons, and the dexterity for ranged weapons.
Reply }


Messages In This Thread
CTB - A Final Fantasy X-like Battle System, version 3.1 (NEW Jul 4 2010) - by Charlie Fleed - 03-13-2009, 08:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   The Wanderers: The Customizable Encounters System DerVVulfman 0 264 08-24-2024, 07:12 PM
Last Post: DerVVulfman
   Battle Item Count kyonides 4 2,167 02-04-2024, 05:49 AM
Last Post: kyonides
   Super Simple Vehicle System - Enhanced DerVVulfman 65 94,819 06-02-2023, 06:16 PM
Last Post: Sujabes467
   Dalissa's Battle Cry DerVVulfman 2 7,437 05-09-2023, 03:07 AM
Last Post: DerVVulfman
   Zenith Tactical Battle System Plus (ZTBS+) DerVVulfman 0 2,851 05-10-2022, 10:42 PM
Last Post: DerVVulfman
   Actor Battle Items DerVVulfman 4 6,094 11-08-2020, 12:36 PM
Last Post: Mel
   Battle Report Raziel 1 6,987 05-29-2020, 02:27 AM
Last Post: Whisper
   Commercial System Package DerVVulfman 11 14,323 01-04-2020, 12:37 AM
Last Post: Pelip
   KItemDesc XP Zilsel Version kyonides 4 7,719 12-01-2019, 06:11 AM
Last Post: kyonides
   ZLSL's Battle Portraits DerVVulfman 4 7,525 11-12-2019, 04:10 AM
Last Post: DerVVulfman



Users browsing this thread: 75 Guest(s)