Aslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=1852.msg18809e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index1820.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=1852.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index1820.html.zxMg^ЋOKtext/htmlISO-8859-1gzip8:Tue, 10 Mar 2020 08:36:06 GMT0 0PMg^/ How does the game signal "earth damage"

Author Topic: How does the game signal "earth damage"  (Read 1469 times)

Pinkpuff

  • Flan Princess
  • *
  • Posts: 924
  • Find a Megalixir in Unprecedented Crisis!
    • View Profile
How does the game signal "earth damage"
« 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?
Let's dance!

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: How does the game signal "earth damage"
« Reply #1 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.

chillyfeez

  • FF4 Hacker
  • *
  • Posts: 1,285
  • Gender: Male
  • Go ahead, ask me about Angel Feathers!
    • View Profile
Re: How does the game signal "earth damage"
« Reply #2 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...

Pinkpuff

  • Flan Princess
  • *
  • Posts: 924
  • Find a Megalixir in Unprecedented Crisis!
    • View Profile
Re: How does the game signal "earth damage"
« Reply #3 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?
Let's dance!

chillyfeez

  • FF4 Hacker
  • *
  • Posts: 1,285
  • Gender: Male
  • Go ahead, ask me about Angel Feathers!
    • View Profile
Re: How does the game signal "earth damage"
« Reply #4 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

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: How does the game signal "earth damage"
« Reply #5 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).
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3