øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=995.msg10003e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexc926.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=995.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexc926.html.zx@€g^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ …­PgOKtext/htmlISO-8859-1gzip8:ÖPgÿÿÿÿÿÿÿÿTue, 10 Mar 2020 12:12:08 GMT0ó°° ®0®P®€§²ð®@€g^ªPg Spell Behavior for 49-93

Author Topic: Spell Behavior for 49-93  (Read 1539 times)

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Spell Behavior for 49-93
« on: March 29, 2009, 12:10:51 PM »
This info just dawned on me, and after testing, this makes a lot of sense.

If an enemy uses spells 49 through 93, the spell selected is almost always (number-48) that targets all enemies (the characters) by default. If the spell has an overriding profile, such as Flare (the twin spell), the spell's data is used instead, but the graphics inherits that of Cure4. Cure4's spell index is 17, Flare's index is 65, and the different between them is 48.

This phenomenom is most notable in the Dark Elf's battle script, where it exclusively uses this behavior in its battles script.

I accidentally stumbled on it while trying to make the dolls use Edge's Image spell instead of Blink, but caused the monster to cast Sight instead (which is explained by my findings).
« Last Edit: March 29, 2009, 03:29:27 PM by Deathlike2 »
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Odbarc

  • Hell's Rider
  • *
  • Posts: 424
  • Gender: Male
  • FF6 obsessed
    • View Profile
    • Newage3.com, a text based web game RPG I Admin.
Re: Spell Behavior for 49-93
« Reply #1 on: March 29, 2009, 03:26:21 PM »
This a script bug or just a dumb AI?

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Spell Behavior for 49-93
« Reply #2 on: March 29, 2009, 03:33:30 PM »
This is intentional behavior, since it is used in my notable example. I presume it is put there to reduce script space usage... it would save 2 bytes for the AI script (which is pretty cramped) where it is applicable. However, it is very notable that most of the game scripts don't select multiple targets unless it is natural for that spell (such as Quake or Meteor).
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3