Final attack

Final attack , also known as a death counter or a death script, is a gameplay term in the Final Fantasy series. It refers to a part of a unit's attack script that has it execute an action upon being killed. In terms of game coding, the final attack can be a specific attack, or the final attack script can initiate a cutscene.
==Appearances==
===Final Fantasy V===
Only a few monsters are capable of using the final attack script, the majority being bosses. Minotaur attempts to cast Holy as a final attack, but will usually fail due to not having enough MP to cast it, unless he is given an Ether. In the Finest Fantasy for Advance version, Neo Shinryu will cast Gigaflare followed by Meteor upon death.
===Final Fantasy VI===
When a monster revives itself using the final attack script, it is treated as if it had never died; monsters with a final attack script to revive themselves typically are not meant to be killed. For example, the player's goal is to defeat Wrexsoul, not the Soul Savers, so simultaneously killing the Soul Savers would hypothetically end the battle with Wrexsoul still "alive," but due to the final attack script, they are not treated as being dead during the time they revive themselves, and so the battle continues. In the same way, the player is intended to defeat the demon form of the Chadarnook, not the goddess form, so the final attack script to revive itself keeps the player from winning by killing the goddess form.
There are ways around this script. Certain Death attacks stall an enemy's final attack script for one turn. They are Banish, Odin, Raiden, Oblivion, Snare, and Banisher. For most normal enemies, disabling their final attack only does that and nothing more, but against certain bosses glitches can arise. Against Wrexsoul and the Soul Savers, if the player kills a Soul Saver with Snare or Banish, their final attack to revive themselves will not execute and they will remain dead. If both Soul Savers are killed this way, and Wrexsoul removes/has removed itself from the battle, the battle will end as the game considers the player to have defeated the enemy party.
If the player kills Deathgaze with the Vanish-Doom bug using Banish in the Super Nintendo version, it prevents the game from recognizing it as beaten. This does not permanently miss the Bahamut magicite; while it will not drop for that battle, Deathgaze's death script never running also means Deathgaze is not flagged as defeated, and continues to appear at random, and so will give the magicite whenever he is beaten "properly".
===Final Fantasy VII===
The player can use the final attack script as part of the Final Attack Materia, won from the Battle Square after winning the Special Battle once. If the player's Materia quota is full, they will permanently lose the Final Attack Materia. For each level the Materia gains, the command from the attached Materia will be used upon death, up to a maximum of five times. This can be further extended if the player equips the same Materia again to another Final Attack Materia on the same character, up to eight times. Final Attack can be paired with a wide variety of Materia, including all Magic and Summon Materia, as well as many Command Materia.
Several enemies execute a final attack when their HP is reduced to 0. Some enemies, such as the Dragon Zombie and Ultimate Weapon, cast a powerful spell. Other enemies that have a final attack script are 2-Faced, Bottomswell, Gargoyle, Hojo, and Helletic Hojo.
Dragon Zombie is special in that it will only use its final attack, Pandora's Box, once per save file due to a global variable coded into the attack. The global variable is also used in the Jenova∙SYNTHESIS battle, meaning that after this battle, fighting another Dragon Zombie would have it use its final attack again. This is normally impossible since the Jenova∙SYNTHESIS battle is past the point of no return.
====Crisis Core -Final Fantasy VII-====
Kactuare's, upon death, will run up to Zack and use 100,000 Needles. If they cannot reach Zack after a period of time, they will dissipate.
Humbaba and Jabberwock will cast Meteorite and Comet 2 respectively upon death.
===Final Fantasy VIII===
Some monsters have final attack scripts, which may depend on their level. If killed via Instant Death, ejection, or Petrification, the final attack script does not play. Monsters with final attacks include Armadodo (Earthquake), Buel (Death), Imp (Holy), and Behemoth (Flare or Meteor).
During the last battle in the Centra Excavation Site while controlling Laguna, the final Esthar Soldier (Terminator) will use Soul Crush on Kiros and Ward if they are conscious, reducing their HP to 1. In the final dungeon, Krysta will use Ultima as its final move. Additionally, the second final boss will use Shockwave Pulsar before perishing if enough damage is dealt to it.
===Final Fantasy IX===
Two bosses use final attacks upon their "death": Beatrix and Kuja. While the player has technically won against these opponents by reducing their HP to 0, they use a powerful attack that reduces the entire party's HP to 1, or ends the battle instantly, respectively. Thus, for storyline purposes, neither opponent can technically be defeated, and they give no battle spoils.
Maliris uses Raining Swords when defeated as a final attempt to defeat the player. If all the characters' HP is depleted by this attack, it is Game Over even if Maliris also dies.
===Final Fantasy X===
The Behemoth King casts Meteor when killed, while the Catoblepas casts Ultima. Individual Splashers can also use Self-Destruct when defeated. If an enemy is defeated by a counterattack or Zanmato, or captured in the PAL/International/HD versions, they will not use their final attack.
====Final Fantasy X-2====
The Humbaba executes Meteor upon being killed. However, the final attack can be negated if Humbaba is ejected, bribed, or defeated when a special dressphere is present.
===Final Fantasy XI===
Some opponents, such as the Behemoth fought in the KS99 BCNM Horns of War, use final attacks upon their death.
===Final Fantasy XIV===
Behemoth will cast Ecliptic Meteor on death during the FATE "He Taketh It with His Eyes". The Ghost of Meracydia will cast Neurolink Burst on death in The Second Coil of Bahamut - Turn 4. In The Bowl of Embers (Extreme), Infernal Nails detonate with Infernal Surge upon destruction, damaging the party and inflicting a brief stack of Vulnerability.
In the old version of the The Aery, Nidhogg Broodlings would use Final Yip upon their defeat, waking any nearby Slumbering Dragons.
Cochma and Binah adds in Containment Bay S1T7 explode upon defeat, damaging the party. Numa-no-shiki and Doro-no-shiki adds in The Wreath of Snakes function similarly.
===Final Fantasy XV===
Defeating Ifrit triggers a special summoning sequence with Shiva.
=== Final Fantasy XVI ===
Behemoth uses Extinction as its final attack. Extinction brings down a large meteorite on the battlefield, following the trend of Behemoth enemies in the series using Meteor for their final attack.
===Final Fantasy Brave Exvius===
===Mobius Final Fantasy===
Category:Recurring enemy abilities
Category:Battle elements