øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=printpage;topic=1852.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexabb9.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=1852.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexabb9.html.zxžMg^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ@°k6OKtext/htmlISO-8859-1gzip@øÕ6ÿÿÿÿÿÿÿÿTue, 10 Mar 2020 08:36:06 GMT0ó°° ®0®P®€§²ð®žMg^d6 Print Page - How does the game signal "earth damage"

Board of Slick

Library of the Ancients => Final Fantasy IV Research & Development => Topic started by: Pinkpuff on August 16, 2013, 11:29:04 AM

Title: How does the game signal "earth damage"
Post by: Pinkpuff on August 16, 2013, 11:29:04 AM
Spells such as Quake and Titan will miss floating/airborne enemies. However, as far as I can tell from the spell data, there is nothing signalling that. Can you change, say, Fire 2 to miss floating enemies? How?

I'm assuming there is a check somewhere that says "spells with this index / these indexes miss floaters", but where are these checks?
Title: Re: How does the game signal "earth damage"
Post by: Dragonsbrethren on August 16, 2013, 11:40:27 AM
If an enemy is weak against the aerial/projectile element, they're immune to Quake. I don't think anyone's looked into it any farther than that yet.
Title: Re: How does the game signal "earth damage"
Post by: chillyfeez on August 16, 2013, 11:44:20 AM
I think I remember reading about a check in the damage subroutine for flying monsters that is associated specifically with earth spells...
Title: Re: How does the game signal "earth damage"
Post by: Pinkpuff on August 16, 2013, 11:50:22 AM
If an enemy is weak against the aerial/projectile element, they're immune to Quake. I don't think anyone's looked into it any farther than that yet.

I get that much. My question is more like, how does the game know what spells to make them immune to. Like, suppose I want to make the spell that used to be Fire 2 into an earthquake spell. How do I signal that now I want air-weak enemies to be immune to it?

I think I remember reading about a check in the damage subroutine for flying monsters that is associated specifically with earth spells...

Awesome! Does it reference them by particular index? Or is there some kind of property of the spell that it looks for?
Title: Re: How does the game signal "earth damage"
Post by: chillyfeez on August 16, 2013, 05:57:45 PM
It checks for the specific spells. It's in the bab-il doc for spell subroutines:
http://rb.thundaga.com/tob/spellcode.txt
Title: Re: How does the game signal "earth damage"
Post by: Deathlike2 on September 05, 2013, 05:57:16 PM
IIRC, there was a bug associated with summoned creatures that have that bit set to have Quake immunity.

It's something to look into while you're at it (I forget if it was a bug in the original or the GBA ports).