Aslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=2125.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index0999-3.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&board=8.20e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index0999-3.html.zx.$h^ЋOKtext/htmlISO-8859-1gzip8:Tue, 10 Mar 2020 23:51:35 GMT0 0P.$h^x New patch: Item/Magic Counter fix

Author Topic: New patch: Item/Magic Counter fix  (Read 1223 times)

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
New patch: Item/Magic Counter fix
« on: October 08, 2015, 11:11:52 PM »
Hi! I know I just said I wouldn't make any more patches, but I got a request for one that addresses a rare issue with the enemy scripts FC 02 (counter a spell) and FC 03 (counter an item). There's already a patch that fixes a problem with FC 05 whereby an enemy will counter anything. However, under certain circumstances, FC 02 and FC 03 have the same problem. Two notable examples are Flame Eater countering Demi and Quartr with Quartr or Flare and the living SrBehemoth countering Flare and Pearl with Meteo. This patch makes these two scripts work correctly by clearing the "last spell used" variable upon success.

:edit: February 6, 2017
"Dead Hare" was updated and thus this patch had to be updated accordingly.

:edit: January 29, 2018
Added GBA port!
« Last Edit: February 04, 2018, 07:47:59 PM by 13375K31C43R »
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

Tenkarider

  • Guard Leader
  • *
  • Posts: 50
    • View Profile
Re: New patch: Item/Magic Counter fix
« Reply #1 on: October 09, 2015, 09:04:37 AM »
Wait... you said something quite interesting:

Quote
by clearing the "last spell used" variable upon success

What are you talking about? a battle variable you mean? tell me more, please: i'm trying to discover all secrets of battle variables, especially the ones which don't reset their value after the battle...

So if that's the case, i'd like to hear which variable number they involve(if they use single bits, which bits) and in the case you know about other similar uses of battle variables, those var as well... please!  :wink:

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: New patch: Item/Magic Counter fix
« Reply #2 on: October 09, 2015, 09:31:58 AM »
It's not too much, I just used the same strategy that was used for the "FC 05" patch. FC 05 manages its own variable that keeps track of who was the last party member to damage an enemy, but that variable is not cleared upon success, which is what that patch fixes. FC 01, 02 and 03 respond to commands (e.g. Fight), spells (e.g. Flare) or items (e.g. Dried Meat), respectively. They each keep track of two battle variables; one contains the ID of the caster and the other contains the ID of what the caster did. I thought of clearing the "caster" variable, but then I figured that clearing the "what they did" variable would be more reliable. I know that FC 04 does something similar, but it responds to elements being used, so I figure it doesn't have a problem because I believe most physical attacks are branded as non-elemental.

Other than that, I'm not sure. You should check out Assassin's bank C2 disassembly if you want to see for yourself.
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

Tenkarider

  • Guard Leader
  • *
  • Posts: 50
    • View Profile
Re: New patch: Item/Magic Counter fix
« Reply #3 on: October 09, 2015, 10:24:24 AM »
So you say that FC 01 use 2 variables and the same for FC 02 and FC 03, for a total of 6 variables? Or they share those 2 vars?
Anyway i'd apreciate if you tell me their number, please.

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: New patch: Item/Magic Counter fix
« Reply #4 on: October 09, 2015, 02:53:57 PM »
Command | "Who" variable | "What" variable
--------------------------------------------------
FC 01       | $3290              | $3D48
FC 02       | $3291              | $3D49
FC 03       | $32A4              | $3D5C
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

Tenkarider

  • Guard Leader
  • *
  • Posts: 50
    • View Profile
Re: New patch: Item/Magic Counter fix
« Reply #5 on: October 09, 2015, 03:36:04 PM »
Appearently looks like they have nothing to do with the infamous battlevar list... good.
They're just RAM variables.

Thanks anyway :happy:

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: New patch: Item/Magic Counter fix
« Reply #6 on: February 06, 2017, 08:26:51 PM »
:bump: New version to maintain compatibility with "Dead Hare".
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: New patch: Item/Magic Counter fix
« Reply #7 on: February 20, 2018, 10:59:30 PM »
:bump: GBA port.
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings