øA slickproductions.org /forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=printpage;topic=448.0 e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index738c.html slickproductions.org /forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=448.0 e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index738c.html.z x •g^ ÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ °,0 šR OK text/html ISO-8859-1 gzip @øÕ šR ÿÿÿÿÿÿÿÿ Tue, 10 Mar 2020 13:41:09 GMT 0ó° °® 0® P® €§² ð® •g^ e šR
Print Page - HP Damage Algo
Board of Slick
Library of the Ancients => Final Fantasy IV Research & Development => Topic started by: Deathlike2 on March 20, 2008, 11:43:37 AM
Title: HP Damage Algo
Post by: Deathlike2 on March 20, 2008, 11:43:37 AM
Refer to this thread for the start of my idea, but it wasn't fully fleshed out - http://slickproductions.org/forum/index.php?topic=390.0
This thread is an appendix to the magic algo, since the majority of that has an impact depending on resistances...
Onto the algo...
HP Power (HP attack based on caster) = Caster's Current HP HP Power (HP attack based on target) = Target's Max HP
Base HP Spell Power = Whatever is normally listed in the spell power slot Base HP Absorb Spell Power = Whatever is normally listed next to the spell power data (**default: 100/Base HP Spell Power) ****Base HP Spell Hit Rate = Whatever is normally listed in the hit rate slot
**Note: Not sure if that always have to be defined like that, but it is there anyways... ****Note: Make sure to subtract 128 if it uses the boss bit
HP Spell Power Elemental Modifier (HP attack based on target): Target is Weak to Element, HP Spell Power = 2 Target is Resistant to Element, HP Spell Power = 10 **Target is Immune to Element, HP Spell Power = 10 **Target Absorbs Element, HP Spell Power = Base HP Spell Power * -1 Unapplicable, HP Spell Power = Base HP Spell Power
HP Spell Power Elemental Modifier (HP attack based on caster): Target is Weak to Element, HP Spell Power = Base HP Spell Power * 2 Target is Resistant to Element, HP Spell Power = Base HP Spell Power / 2 **Target is Immune to Element, HP Spell Power = Caster's Current HP **Target Absorbs Element, HP Spell Power = Base HP Spell Power * -1 Unapplicable, HP Spell Power = Base HP Spell Power
**Note: In the SNES version, Immunity has precedence over Absorb. In the GBA version, Absorb has precedence over Immunity.
HP Based Damage Bonus: HP attack based on target, HP Damage Bonus = 0 HP attack based on caster, HP Damage Bonus = (Caster's Current HP/ HP Spell Power * rand (100, 150) / 100) % 256
Basic Formula - Includes Weakness, Resistance, and Immunity (SNES and GBA versions):
if (Success) //only applies to SNES version { Damage = Base HP Power / HP Spell Power + HP Damage Bonus }
Absorb Formula (SNES version): Use Base HP Absorb Spell Power and plug that into the general magic algo as the Base Spell Power: http://slickproductions.org/forum/index.php?topic=329.0
Absorb Formula (GBA version):
If the spell is single targeted... HP Absorb Spell Power = Base HP Absorb Spell Power * 3/2 Target's Magic Defense = 0 Target's Magic Evade = 0 Plug in HP Absorb Spell Power into the general magic algo as the Base Spell Power: http://slickproductions.org/forum/index.php?topic=329.0
Note: This isn't really known quite yet...
If the spell is multitargeted... Damage = Base HP Power / HP Spell Power + HP Damage Bonus
Title: Re: HP Damage Algo
Post by: Deathlike2 on March 20, 2008, 12:01:14 PM
Caster based HP attacks have a slight bonus applied to the attack, based on the damage dealt, however that's kinda unknown.. but AFAIK it is capped at 255 like the Mist Dragon summon.
Title: Re: HP Damage Algo
Post by: Deathlike2 on March 20, 2008, 02:40:03 PM
Fixed elemental changes to the HP Spell Power.
Title: Re: HP Damage Algo
Post by: Deathlike2 on March 27, 2008, 07:08:14 PM
Updated algo to factor in damage randomness.
Title: Re: HP Damage Algo
Post by: Deathlike2 on September 27, 2008, 07:29:31 PM
Mega :bump:
Ok, the spell data for absorbing the monster's Blitz seems to make a ton more sense now..
It is simpler than I thought.
Blitz's alternate spell power is 50 (a lot of the HP based data suggests that it's always 100/primary spell power value, in this case, it is 100/2 = 50).
When absorbed, the following formula is used...
Damage = Alternate Spell Power * 3/2 * Spell Multiplier
Damage = 50 * 3/2 * 8 = 600 + some number between 0 and 255
Someone feel free to test this (you want to tweak the spell values or the monster's spell power so I'm not going crazy)... this only applies to the GBA version.
Title: Re: HP Damage Algo
Post by: Deathlike2 on September 27, 2008, 08:10:16 PM
Another worthy :bump:
For the SNES version's Gold Dragon Blitz (absorbing it, that is).. it's actually really really easy (why it didn't dawn on me before is beyond me).
The algo does work against magic defense and magic evasion, so you have to test as a Toad with limited armor... these numbers will corroborate with what I've said... I'll have to get pics anyways...
Title: Re: HP Damage Algo
Post by: Deathlike2 on September 27, 2008, 09:03:12 PM
Also, my GBA analysis is off.. since it seems to be affected by Magic Defense... but the randomization is there.. I've yet to figure out what the base number that is tested against, but it's a good chance it is pretty high...
Title: Re: HP Damage Algo
Post by: Dragonsbrethren on September 27, 2008, 09:22:24 PM
You Cecil min shot for Blaze is missing.
Title: Re: HP Damage Algo
Post by: Deathlike2 on September 27, 2008, 09:28:26 PM
Title: Re: HP Damage Algo
Post by: Deathlike2 on September 29, 2008, 10:32:54 AM
The HP based absorb formula is being applied perfectly to FF2 SNES via the Firebomb vs the Red Dragon. The Red Dragon has 0 magic defense, so the numbers are between 64 and 96.
Title: Re: HP Damage Algo
Post by: Dragonsbrethren on September 29, 2008, 11:07:23 AM
I'm going to have to do a few more tests but it seems to be consistent with what I'm seeing in Easy Type as well.
Title: Re: HP Damage Algo
Post by: Deathlike2 on September 29, 2008, 11:19:21 AM
I don't think the battle engine has changed between the versions (other than the Stop and Sleep/Paralysis bug).
I'm more interested in the GBA tests to see if I'm on target.
Title: Re: HP Damage Algo
Post by: Deathlike2 on September 29, 2008, 12:16:47 PM
Looks like I was wrong a bit on the GBA's HP Absorb formula..
In looking at this, it's really pluging it into the regular spell damage formula...
:edit:
The GBA absorb formula looks very much like current HP damage formula (well, particularly the Blue Dragon's Blizzard/Ice Storm attack), except that ignores Magic Defense.
Title: Re: HP Damage Algo
Post by: Deathlike2 on September 29, 2008, 01:04:45 PM
In testing the SNES Blue Dragon's Blizzard attack...
It seems like the resistance/immunity modifier is applied late..