øA slickproductions.org /forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=printpage;topic=995.0 e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index35c4.html slickproductions.org /forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=995.0 e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index35c4.html.z x @€g^ ÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ E é OK text/html ISO-8859-1 gzip @øÕ é ÿÿÿÿÿÿÿÿ Tue, 10 Mar 2020 12:12:07 GMT 0ó° °® 0® P® €§² ð® @€g^ 9 é
Print Page - Spell Behavior for 49-93
Board of Slick
Library of the Ancients => Final Fantasy IV Research & Development => Topic started by: Deathlike2 on March 29, 2009, 12:10:51 PM
Title: Spell Behavior for 49-93
Post by: Deathlike2 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).
Title: Re: Spell Behavior for 49-93
Post by: Odbarc on March 29, 2009, 03:26:21 PM
This a script bug or just a dumb AI?
Title: Re: Spell Behavior for 49-93
Post by: Deathlike2 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).