øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=448.msg7979e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexd625.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=448.15e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexd625.html.zxZ•g^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ0P]““OKtext/htmlISO-8859-1gzip@øÕ““ÿÿÿÿÿÿÿÿTue, 10 Mar 2020 13:42:10 GMT0ó°° ®0®P®€§²ð®Z•g^v““ HP Damage Algo

Author Topic: HP Damage Algo  (Read 6319 times)

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: HP Damage Algo
« Reply #15 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.
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: HP Damage Algo
« Reply #16 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.

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: HP Damage Algo
« Reply #17 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.
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: HP Damage Algo
« Reply #18 on: September 29, 2008, 12:16:47 PM »
Looks like I was wrong a bit on the GBA's HP Absorb formula..

It's actually much simpler than that...

Damage = currentHP * maxHP modifier / 25

and then...

Damage = Damage + ((Damage * rand(100,150)/100) % 256) - Target's Magic Defense

To resummarize the SNES's HP Absorb forumla..

Damage = (maxHP modifier * 4 * rand(100,150)/100 - Target's Magic Defense) * Spell Multiplier

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.
« Last Edit: September 29, 2008, 01:16:04 PM by Deathlike2 »
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: HP Damage Algo
« Reply #19 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..

Damage = curHP / curHP modifier

Damage = Damage + ((Damage * rand(100,150)/100) % 256)

Then, based on the elemental resistance...

Resistance:
Damage = Damage * 1/2

Immunity:
Damage = Damage * 0

Absorb seems to follow a different formula...
« Last Edit: September 29, 2008, 02:27:44 PM by Deathlike2 »
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: HP Damage Algo
« Reply #20 on: September 29, 2008, 01:25:27 PM »
Wow, the Absorb formula for SNES Blue Dragon's Blizzard is really really familiar..

Damage = (curHP modifier * 4 * rand(100,150)/100 - Target's Magic Defense)

It's really more like this..

Damage = (curHP modifier * 4 * rand(100,150)/100 - Target's Magic Defense) * Spell Multiplier

Since the Blue Dragon has a 1x spell multiplier...

Ok, that seems to be resolved...
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3