øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;u=123;area=showposts;start=1260e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexb271.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;area=showposts;u=123e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexb271.html.zx8òg^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ P,IeOKtext/htmlISO-8859-1gzip0|ÖIeÿÿÿÿÿÿÿÿTue, 10 Mar 2020 20:18:23 GMT0ó°° ®0®P®€§²ð®7òg^ÿÿÿÿÿÿÿÿàOIe Show Posts - Grimoire LD

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Grimoire LD

1261
I must have missed her, but yes you are absolutely right. She is killed by Life spells and to my knowledge she is the only one to have that happen due to not having any resistance to Death.

My Life Subroutine is finished and other than the true  (which I complained about trying to find in the Life topic) and Zombie killing it is what you would expect. (I still say that data to look and restore the status of any other bytes aside from the first two is a bit misdirected though)

1262
Final Fantasy IV Research & Development / Re: Peep/Study Command
« on: September 11, 2013, 10:57:46 AM »
It's certainly looking that way, originally one could have said it was for Rydia but we now know she was going to retain white magic, leaving her with no empty slots.

Well, I have a cool, crazy ass, and imaginative theory.

This command was supposed to "Mechanize" the monster. When used, the monster gets the Mech attribute. That way, the hammers Cid uses don't look silly.

These bits correlate with the Ogre Axe/Hand Axe, Hammers, and Lit Arrows. These bits would "enable" this command to operate.

The Ogre Axe was probably meant to be found at the Magnetic Cave (or maybe even Cave Eblan).. but was retweaked for whatever the reason.

Your wish is my command!

Peep - Mechanize
New Code...


03E195 - BD 40 27 (LDA 2740 x7E2740) - Load Target's Creature Type'
03E19F - 20 A2 E1 (JSR E1A2) - Jump to rest of routine.
03E1A2 - A9 02 (LDA 02) - Load 02 into A
03E1A4 - 8D 40 27 (STA 2740 x7E2740)- Load 02 into Monster Type, replacing other types with Machine.
03E1A7 - E9 00 (SBC 00) - (Ideally would be a message, but I'm not sure how to do that but this remnant code shouldn't cause an issue.
03E1A9 - 60 RTS (Start the doubling back process early so as not to include now worthless instructions).

And since Peep doesn't work on Bosses in the first place, it shouldn't work here either.

I can't say I know how Weapon Properties Work, but you can make the command only limited to be used with Hammer (in replace of Sing's two-handed necessity preferably) as I showed here.

1263
Final Fantasy IV Research & Development / Re: Dark Wave Command
« on: September 11, 2013, 10:38:21 AM »
Based on what Phoenix's data shows...I think it was intended for him to be able to die (swoon, or become wounded...whatever) as well as based on this translated passage about Dark Swords from the SSH - Settings Guide:

Quote from: 1991 Settings Guide (SSH)
Unlike regular broadswords, dark swords have a dark power embodied within. If a person cannot overcome the dark power and tries to use these swords, he may become controlled by this power and may succumb to it. If this happens he will then become accustomed to killing and destruction without thought. To use the dark power of these swords, the dark knight summons his strength and calls on the dark power of the sword, which then absorbs the knight's vital force and waves of dark energy are released from the blade. The dark wave spreads over a wide area and those in its path are injured by it.

He's meant to succumb to it's power...if he's not careful.

It would have been really cool if there was a Zombie status in FF4, that would have been the ideal status for the Dark Knight to become if he "wounded" himself with the Dark Wave attack...

The more I look at the game, I believe that it was intended for there to be some kind of Zombie status for characters. It's actually still in the game in some strange cases of functionality....

We know that Allies only have their first 40 bytes added when battle begins and the rest comes after, right? Well Allies can have Creature Types as well. If you change the 40th Byte in their data to 80 they will respond like a Zombie and take damage from healing items. So if we really wanted to we could add a "Zombie Status" which acts exactly as it does in FFV.  Healing would damage them and Life spells would kill them. Haha! Talk about a nasty surprise to see an enemy cast "Zombify" on you and then "Life".

Status is nothing but an assign to one of the four status bytes. Changing one instance of it somewhere to another would not be that difficult of a matter.

1264
Life Routine

Code: [Select]
$03/D65B A9 02 LDA #$02 A:0003 X:0014 Y:FFFF P:envMxdizc - Load 02 into A.
$03/D65D 8D E6 38 STA $38E6  [$7E:38E6] A:0002 X:0014 Y:FFFF P:envMxdizc - Store A in 7E38E6.
$03/D660 AD 40 27 LDA $2740  [$7E:2740] A:0002 X:0014 Y:FFFF P:envMxdizc - Load Target's Creature Type
$03/D663 29 80 AND #$80 A:0000 X:0014 Y:FFFF P:envMxdiZc - Is it Zombie? (Wha?)
$03/D665 F0 0B BEQ $0B    [$D672] A:0000 X:0014 Y:FFFF P:envMxdiZc - If not, branch to 7ED672.
---------------------------------------------------------------------------------------------------------------------------------------------
$03/D667 A9 80 LDA #$80 A:0080 X:0014 Y:0000 P:eNvMxdizc - Load 80 into A.
$03/D669 8D A3 28 STA $28A3  [$7E:28A3] A:0080 X:0014 Y:0000 P:eNvMxdizc - Store A in 7E28A3
$03/D66C 9C A4 28 STZ $28A4  [$7E:28A4] A:0080 X:0014 Y:0000 P:eNvMxdizc - Store Zero in 7E28A4
$03/D66F 4C 24 D5 JMP $D524  [$03:D524] A:0080 X:0014 Y:0000 P:eNvMxdizc - Jump to Subroutine. (In the Status Routine)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$03/D524 AD 03 27 LDA $2703  [$7E:2703] A:0080 X:0014 Y:0000 P:eNvMxdizc - Load Target's Status Byte 1.
$03/D527 85 AC STA $AC    [$00:00AC] A:0000 X:0014 Y:0000 P:envMxdiZc - Store A in AC.
$03/D529 85 A9 STA $A9    [$00:00A9] A:0000 X:0014 Y:0000 P:envMxdiZc - Store A in A9.
$03/D52B AD 04 27 LDA $2704  [$7E:2704] A:0000 X:0014 Y:0000 P:envMxdiZc - Load Target's Status Byte 2.
$03/D52E 85 AA STA $AA    [$00:00AA] A:0000 X:0014 Y:0000 P:envMxdiZc - Store A in AA.
$03/D530 29 BF AND #$BF A:0000 X:0014 Y:0000 P:envMxdiZc - ??
$03/D532 85 AB STA $AB    [$00:00AB] A:0000 X:0014 Y:0000 P:envMxdiZc - Store A in AB
$03/D534 AD A3 28 LDA $28A3  [$7E:28A3] A:0000 X:0014 Y:0000 P:envMxdiZc - Load Stored Creature Type.
$03/D537 85 AE STA $AE    [$00:00AE] A:0080 X:0014 Y:0000 P:eNvMxdizc - Store A in AE
$03/D539 AD A4 28 LDA $28A4  [$7E:28A4] A:0080 X:0014 Y:0000 P:eNvMxdizc - Load Stored ??
$03/D53C 85 AD STA $AD    [$00:00AD] A:0000 X:0014 Y:0000 P:envMxdiZc - Store A in AD.
$03/D53E C2 20 REP #$20 A:0000 X:0014 Y:0000 P:envMxdiZc - Reset Processor Status Bits.
$03/D540 A5 AB LDA $AB    [$00:00AB] A:0000 X:0014 Y:0000 P:envmxdiZc - Load A from AB.
$03/D542 C5 AD CMP $AD    [$00:00AD] A:0000 X:0014 Y:0000 P:envmxdiZc - Do AB and AD match?
$03/D544 90 06 BCC $06    [$D54C] A:0000 X:0014 Y:0000 P:eNvmxdizc - If so branch to 03D54C
---------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------
$03/D54C 7B TDC A:0000 X:0014 Y:0000 P:eNvmxdizc - Transfer Direct Page to Accumulator
$03/D54D E2 20 SEP #$20 A:0000 X:0014 Y:0000 P:envmxdiZc - Set Flag
$03/D54F AD 2B 27 LDA $272B  [$7E:272B] A:0000 X:0014 Y:0000 P:envMxdiZc - Load Target's Status Immunity 1.
$03/D552 2D A3 28 AND $28A3  [$7E:28A3] A:00B9 X:0014 Y:0000 P:eNvMxdizc - Check it against Stored Creature Type?
$03/D555 D0 06 BNE $06    [$D55D] A:0080 X:0014 Y:0000 P:eNvMxdizc - If not equal, branch to 03D55D
----------------------------------------------------------------------------------------------------------------------------------------------------------------
$03/D557 AD 2C 27 LDA $272C  [$7E:272C] A:0000 X:0014 Y:0000 P:envMxdiZc - Load Target's Status Immunity 2 .
$03/D55A 2D A4 28 AND $28A4  [$7E:28A4] A:0030 X:0014 Y:0000 P:envMxdizc - Check it against ??
---------------------------------------------------------------------------------------------------------------------------------------------------------------
$03/D55D D0 53 BNE $53    [$D5B2] A:0080 X:0014 Y:0000 P:eNvMxdizc - If not equal, branch to 03D5B2
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
$03/D55F AD 03 27 LDA $2703  [$7E:2703] A:0000 X:0014 Y:0000 P:envMxdiZc - Load Target's Status Byte 1
$03/D562 05 AE ORA $AE    [$00:00AE] A:0000 X:0014 Y:0000 P:envMxdiZc - Add (80?) to Status Byte 1.
$03/D564 8D 03 27 STA $2703  [$7E:2703] A:0080 X:0014 Y:0000 P:eNvMxdizc - Store A in Status Byte 1 (Death).
$03/D567 AD 04 27 LDA $2704  [$7E:2704] A:0080 X:0014 Y:0000 P:eNvMxdizc - Load Target's Status Byte 2
$03/D56A 05 AD ORA $AD    [$00:00AD] A:0000 X:0014 Y:0000 P:envMxdiZc - Load... nothing into A?
$03/D56C 8D 04 27 STA $2704  [$7E:2704] A:0000 X:0014 Y:0000 P:envMxdiZc - Store A in Target's Status Byte 2.
$03/D56F AD A4 28 LDA $28A4  [$7E:28A4] A:0000 X:0014 Y:0000 P:envMxdiZc - Load ??
$03/D572 29 28 AND #$28 A:0000 X:0014 Y:0000 P:envMxdiZc - Is it ?equal? to value in 28?
$03/D574 F0 3A BEQ $3A    [$D5B0] A:0000 X:0014 Y:0000 P:envMxdiZc - If ?so? branch to 03D5B0.
------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------
$03/D5B0 80 03 BRA $03    [$D5B5] A:0000 X:0014 Y:0000 P:envMxdiZc - Branch Alway to 03D5B5.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
$03/D5B2 20 2D E0 JSR $E02D  [$03:E02D] A:0080 X:0014 Y:0000 P:eNvMxdizc - Jump to Subroutine. (Miss/Fail Routine)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
$03/D5B5 60 RTS A:0000 X:0014 Y:0000 P:envMxdiZc - Return
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$03/D672 AD 03 27 LDA $2703  [$7E:2703] A:0000 X:0014 Y:FFFF P:envMxdiZc - Load Target's Status Byte 1
$03/D675 30 01 BMI $01    [$D678] A:0080 X:0014 Y:FFFF P:eNvMxdizc - Break if Minus (Which it will be if the target is dead.) (80).
------------------------------------------------------------------------------------------------------------------------
$03/D677 60 RTS A:0000 X:0014 Y:FFFF P:envMxdiZc - Return
------------------------------------------------------------------------------------------------------------------------
$03/D678 29 7E AND #$7E A:0080 X:0014 Y:FFFF P:eNvMxdizc - Store the value from 7E and place it in A?
$03/D67A 8D 03 27 STA $2703  [$7E:2703] A:0000 X:0014 Y:FFFF P:envMxdiZc - Store A in Target's Status Byte 1.
$03/D67D AD 04 27 LDA $2704  [$7E:2704] A:0000 X:0014 Y:FFFF P:envMxdiZc - Load Target's Status Byte 2.
$03/D680 29 C0 AND #$C0 A:0000 X:0014 Y:FFFF P:envMxdiZc - Store the value from C0 and Place it in A?
$03/D682 8D 04 27 STA $2704  [$7E:2704] A:0000 X:0014 Y:FFFF P:envMxdiZc - Store A in Target's Status Byte 2.
$03/D685 AD 05 27 LDA $2705  [$7E:2705] A:0000 X:0014 Y:FFFF P:envMxdiZc - Load  Target's Status Byte 3.
$03/D688 29 20 AND #$20 A:0000 X:0014 Y:FFFF P:envMxdiZc - Store the Value from 20 and Place it in A?
$03/D68A 8D 05 27 STA $2705  [$7E:2705] A:0000 X:0014 Y:FFFF P:envMxdiZc - Store A in Target's Status Byte 3.
$03/D68D AD 06 27 LDA $2706  [$7E:2706] A:0000 X:0014 Y:FFFF P:envMxdiZc - Load Target's Status Byte 4.
$03/D690 29 80 AND #$80 A:0000 X:0014 Y:FFFF P:envMxdiZc - Store the value from 80 and place it in A?
$03/D692 8D 06 27 STA $2706  [$7E:2706] A:0000 X:0014 Y:FFFF P:envMxdiZc  Store A in Target's Status Byte 4. (Is this all really necessary? The only status that prolongs after death outside of the first byte to my knowledge is Float.)
$03/D695 64 D6 STZ $D6    [$00:00D6] A:0000 X:0014 Y:FFFF P:envMxdiZc Store Zero in D6.
$03/D697 A5 CF LDA $CF    [$00:00CF] A:0000 X:0014 Y:FFFF P:envMxdiZc - Load A from CF.
$03/D699 20 36 9E JSR $9E36  [$03:9E36] A:0001 X:0014 Y:FFFF P:envMxdizc - Jump to Subroutine.
$03/D69C A9 03 LDA #$03 A:0000 X:0006 Y:0006 P:envMxdizc - Load 03 into A.
$03/D69E 20 C8 85 JSR $85C8  [$03:85C8] A:0003 X:0006 Y:0006 P:envMxdizc - Jump to Subroutine.
$03/D6A1 9E 06 2A STZ $2A06,x[$7E:2A1E] A:0000 X:0018 Y:0006 P:envMxdiZc - Store Zero in 7E20A6
$03/D6A4 AD 2F 35 LDA $352F  [$7E:352F] A:0000 X:0018 Y:0006 P:envMxdiZc - Load A from 7E352F.
$03/D6A7 0A ASL A A:0001 X:0018 Y:0006 P:envMxdizc - Multiply A by 2.
$03/D6A8 AA TAX A:0002 X:0018 Y:0006 P:envMxdizc - Transfer A to X.
$03/D6A9 A9 40 LDA #$40 A:0002 X:0002 Y:0006 P:envMxdizc - Load a 40 into A.
$03/D6AB 9D EB 29 STA $29EB,x[$7E:29ED] A:0040 X:0002 Y:0006 P:envMxdizc - Store A in 7E29ED
$03/D6AE A5 CF LDA $CF    [$00:00CF] A:0040 X:0002 Y:0006 P:envMxdizc - Load the value in CF into A.
$03/D6B0 C9 05 CMP #$05 A:0001 X:0002 Y:0006 P:envMxdizc - Is it 5?
$03/D6B2 90 11 BCC $11    [$D6C5] A:0001 X:0002 Y:0006 P:eNvMxdizc - If not, branch to 03D6C5 (Not sure how to trigger this one.)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------
$03/D6C5 AD 2A 35 LDA $352A  [$7E:352A] A:0001 X:0002 Y:0006 P:eNvMxdizc - Load A from 7E352A.
$03/D6C8 D0 0F BNE $0F    [$D6D9] A:0000 X:0002 Y:0006 P:envMxdiZc - Branch if ?equal?  to 7ED6D9.
$03/D6CA AD D2 26 LDA $26D2  [$7E:26D2] A:0000 X:0002 Y:0006 P:envMxdiZc - Load Next Action into A.
$03/D6CD C9 14 CMP #$14 A:0013 X:0002 Y:0006 P:envMxdizc - Is it Life 2?
$03/D6CF F0 1A BEQ $1A    [$D6EB] A:0013 X:0002 Y:0006 P:eNvMxdizc  - If so, branch to 7ED6EB.
$03/D6D1 C9 AB CMP #$AB A:0013 X:0002 Y:0006 P:eNvMxdizc - Is it Recover? (But doesn't Recover use its own Formula?)
$03/D6D3 F0 16 BEQ $16    [$D6EB] A:0013 X:0002 Y:0006 P:envMxdizc - If so, branch to 7ED6EB.
$03/D6D5 C9 AC CMP #$AC A:0013 X:0002 Y:0006 P:envMxdizc - Is it Remedy? (Again, it has its own Formula, no?)
$03/D6D7 F0 12 BEQ $12    [$D6EB] A:0013 X:0002 Y:0006 P:envMxdizc - If so, branch to 7ED6EB.
$03/D6D9 AD 16 27 LDA $2716  [$7E:2716] A:0013 X:0002 Y:0006 P:envMxdizc - Load Target's Modified Vitality.
$03/D6DC 85 DF STA $DF    [$00:00DF] A:0006 X:0002 Y:0006 P:envMxdizc - Store A in DF.
$03/D6DE A9 05 LDA #$05 A:0006 X:0002 Y:0006 P:envMxdizc - Load 05 into A (How did I miss this?!)
$03/D6E0 85 E1 STA $E1    [$00:00E1] A:000F X:0002 Y:0006 P:envMxdizc - Store A in E1
$03/D6E2 20 E0 83 JSR $83E0  [$03:83E0] A:000F X:0002 Y:0006 P:envMxdizc - Jump to Subroutine. (Cleaning Routine)
$03/D6E5 A6 E3 LDX $E3    [$00:00E3] A:0000 X:0000 Y:0006 P:envMxdiZc - Load X from E3 (where the end result of multiplying DF and E1 must have taken place)
$03/D6E7 8E 07 27 STX $2707  [$7E:2707] A:0000 X:005A Y:0006 P:envMxdizc - Store X in Character's HP.
$03/D6EA 60 RTS A:0000 X:005A Y:0006 P:envMxdizc - End of Routine.



Confirmed! Life was Supposed to kill Zombie-type enemies in a Single Blow! But All Zombies in the game are resistant to Instant-KO so this functionality of Life goes Completely unused in every version of the game to my knowledge. You can test this for yourself easily by getting rid of KO immunity on any Zombie and using Life on them.

I will finish this routine up, but I thought to post this as this was something I don't believe was commonly known.

 :edit: 2:
$03/D6DE   A9 05   LDA #$05   A:0006   X:0002   Y:0006   P:envMxdizc - Load 05 into A (What was it I said in the Life topic? Oh right... You fool.

And that's that. Life has been, for the most part, fully explored. Not a single reference to Asura, no wonder that multi-life problem plagued Phoenix... The only comparable effect I've seen to Asura is Salve using Phoenix Downs. It must deal something with selective targeting, which I wouldn't know where to start on that.

1265
You know... not once had I ever seen FFIV use TSB, I only used the original instructions but (and since this is basically how I'm learning SNES ASM...) you could save a Lot of space by condensing the many, Many uses of LDA, ORA, STA sequentially and compound them down to nearly half of their original length. Good call Lenophis!

 :edit: And the Damage, Sap subroutine has been completed (for the most part).

1266
Holy Routine
Code: [Select]
$03/D3C2 20 FD E0 JSR $E0FD  [$03:E0FD] A:0003 X:0002 Y:0000 P:envMxdizc - Jump to Elemental Subroutine.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$03/E0FD AD 26 27 LDA $2726  [$7E:2726] A:0003 X:0002 Y:0000 P:envMxdizc - Load Target's Elemental Immunity Defense into A.
$03/E100 2D A2 28 AND $28A2  [$7E:28A2] A:0000 X:0002 Y:0000 P:envMxdiZc - Test it against stored Elemental Attack.
$03/E103 F0 11 BEQ $11    [$E116] A:0000 X:0002 Y:0000 P:envMxdiZc - If it is not the same, branch to 03E116
------------------------------------------------------------------------------------------------------------------------------------------------------
$03/E105 7B TDC A:0010 X:0002 Y:0000 P:envMxdizc - ?Transfer Direct Page to Accumulator?
$03/E106 8D FE 38 STA $38FE  [$7E:38FE] A:0000 X:0002 Y:0000 P:envMxdiZc - Store A in Attack Altering Field.
$03/E109 AD 26 27 LDA $2726  [$7E:2726] A:0000 X:0002 Y:0000 P:envMxdiZc - Load Target's Elemental Immunity Defense into A.
$03/E10C 29 40 AND #$40 A:00D0 X:0002 Y:0000 P:eNvMxdizc - Is it Drain?
$03/E10E F0 1F BEQ $1F    [$E12F] A:0040 X:0002 Y:0000 P:envMxdizc - If not, branch to 03E12F.
-----------------------------------------------------------------------------------------------------------------------------------------------
$03/E110 A9 84 LDA #$84 A:0040 X:0002 Y:0000 P:envMxdizc - Load 84 into A. (Activating Heal Flag and dealing x2 damage)
$03/E112 8D FE 38 STA $38FE  [$7E:38FE] A:0084 X:0002 Y:0000 P:eNvMxdizc - Store A in Attack Altering Field (x2 Damage)
$03/E115 60 RTS A:0084 X:0002 Y:0000 P:eNvMxdizc - Return
-------------------------------------------------------------------------------------------------------------------------------------------------------
$03/E116 AD 25 27 LDA $2725  [$7E:2725] A:0000 X:0002 Y:0000 P:envMxdiZc  - Load Target's Elemental Defense into A.
$03/E119 2D A2 28 AND $28A2  [$7E:28A2] A:0008 X:0002 Y:0000 P:envMxdizc - Test it against stored Elemental Attack.
$03/E11C F0 11 BEQ $11    [$E12F] A:0000 X:0002 Y:0000 P:envMxdiZc - If it is not the same, branch to 03E12F.
----------------------------------------------------------------------------------------------------------------------------------------------------------
$03/E11E A9 01 LDA #$01 A:0010 X:0002 Y:0000 P:envMxdizc - Load 01 into A.
$03/E120 8D FE 38 STA $38FE  [$7E:38FE] A:0001 X:0002 Y:0000 P:envMxdizc - Store A in Damage Altering Field (x1/2 Power)
$03/E123 AD 25 27 LDA $2725  [$7E:2725] A:0001 X:0002 Y:0000 P:envMxdizc - Load Target's Elemental Defense into A.
$03/E126 29 40 AND #$40 A:0010 X:0002 Y:0000 P:envMxdizc - Is it Drain?
$03/E128 F0 05 BEQ $05    [$E12F] A:0000 X:0002 Y:0000 P:envMxdiZc - If not, branch to 03E12F.
----------------------------------------------------------------------------------------------------------------------------------------------------------
$03/E12A A9 82 LDA #$82 A:0040 X:0002 Y:0000 P:envMxdizc - Load 82 into A (Thereby activating the Heal Flag and dealing normal damage)
$03/E12C 8D FE 38 STA $38FE  [$7E:38FE] A:0082 X:0002 Y:0000 P:eNvMxdizc - Store A in Damage Altering Field (x1 Power)
-----------------------------------------------------------------------------------------------------------------------------------------------------------
$03/E12F 60 RTS A:0000 X:0002 Y:0000 P:envMxdiZc - Return
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$03/D3C5 AD FE 38 LDA $38FE  [$7E:38FE] A:0000 X:0002 Y:0000 P:envMxdiZc - Load A from 7E38FE
$03/D3C8 10 08 BPL $08    [$D3D2] A:0002 X:0002 Y:0000 P:envMxdizc - Branch if Plus (If Heal Tag is included it will become minus.) to 03D3D2.
----------------------------------------------------------------------------------------------------------------------------------------------------------------
$03/D3CA 29 7F AND #$7F A:0084 X:0002 Y:0000 P:eNvMxdizc - ??
$03/D3CC 8D FE 38 STA $38FE  [$7E:38FE] A:0004 X:0002 Y:0000 P:envMxdizc - Store A in Damage Altering Field.
$03/D3CF 4C 1C D4 JMP $D41C  [$03:D41C] A:0004 X:0002 Y:0000 P:envMxdizc - Jump to Subroutine 03D41C.
------------------------------------------------------------------------------------------------------------------------------------------------------------------
$03/D3D2 20 30 E1 JSR $E130  [$03:E130] A:0002 X:0002 Y:0000 P:envMxdizc - Jump to Subroutine 03E130 (Weakness Subroutine).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$03/E130 AD FE 38 LDA $38FE  [$7E:38FE] A:0002 X:0002 Y:0000 P:envMxdizc - Load A into Damage Altering Field.
$03/E133 C9 02 CMP #$02 A:0002 X:0002 Y:0000 P:envMxdizc - Is it Normal Damage?
$03/E135 D0 1B BNE $1B    [$E152] A:0002 X:0002 Y:0000 P:envMxdiZC - If it is not then branch to 03E152.
----------------------------------------------------------------------------------------------------------------------------------------------------
$03/E137 AD 21 27 LDA $2721  [$7E:2721] A:0002 X:0002 Y:0000 P:envMxdiZC - Load Target's Very Weak Element.
$03/E13A 2D A2 28 AND $28A2  [$7E:28A2] A:0000 X:0002 Y:0000 P:envMxdiZC - Check against the stored Element.
$03/E13D F0 06 BEQ $06    [$E145] A:0000 X:0002 Y:0000 P:envMxdiZC - If not, branch to 03E145
--------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------
$03/E145 AD 20 27 LDA $2720  [$7E:2720] A:0000 X:0002 Y:0000 P:envMxdiZC - Load Target's Elemental Weakness.
$03/E148 2D A2 28 AND $28A2  [$7E:28A2] A:0010 X:0002 Y:0000 P:envMxdizC - Check against the stored Element.
$03/E14B F0 05 BEQ $05    [$E152] A:0010 X:0002 Y:0000 P:envMxdizC - If not, branch to 03E152.
$03/E14D A9 04 LDA #$04 A:0010 X:0002 Y:0000 P:envMxdizC - Load 04 into A.
$03/E14F 8D FE 38 STA $38FE  [$7E:38FE] A:0004 X:0002 Y:0000 P:envMxdizC - Store 04 in Damage Altering Fields (x2 Damage)
$03/E152 60 RTS A:0004 X:0002 Y:0000 P:envMxdizC
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$03/D41C AD 40 27 LDA $2740  [$7E:2740] A:0004 X:0002 Y:0000 P:envMxdizc - Load Target's Creature Type.
$03/D41F 29 80 AND #$80 A:0080 X:0002 Y:0000 P:eNvMxdizc - Is it 80? (Zombie)
$03/D421 F0 03 BEQ $03    [$D426] A:0080 X:0002 Y:0000 P:eNvMxdizc - If not, branch to 03D421.
$03/D423 4C BE D3 JMP $D3BE  [$03:D3BE] A:0080 X:0002 Y:0000 P:eNvMxdizc - Jump to Subroutine.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$03/D3BE 20 AF C9 JSR $C9AF  [$03:C9AF] A:0080 X:0002 Y:0000 P:eNvMxdizc - Jump to Subroutine. (Damage Routine)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$03/D3C1 60 RTS A:0000 X:002D Y:0000 P:envMxdizc - Return
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$03/D3D5 20 AF C9 JSR $C9AF  [$03:C9AF] A:0004 X:0002 Y:0000 P:envMxdizC - Jump to Subroutine (Damage Routine)
$03/D3D8 AD 2A 35 LDA $352A  [$7E:352A] A:0000 X:002D Y:0000 P:envMxdizc  - Load 352A into A.
$03/D3DB D0 09 BNE $09    [$D3E6] A:0000 X:002D Y:0000 P:envMxdiZc - ?? (No idea how to pass it)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
$03/D3DD AD D2 26 LDA $26D2  [$7E:26D2] A:0000 X:002D Y:0000 P:envMxdiZc - Load Next Action/Spell taken by Caster.
$03/D3E0 C9 0B CMP #$0B A:000B X:002D Y:0000 P:envMxdizc - Is it Holy/White?
$03/D3E2 D0 10 BNE $10    [$D3F4] A:000B X:002D Y:0000 P:envMxdiZC - If not, branch to 03D3F4
--------------------------------------------------------------------------------------------------------------------------------------------------------------
$03/D3E4 F0 07 BEQ $07    [$D3ED] A:000B X:002D Y:0000 P:envMxdiZC - ?? (No idea how to pass it)
-----------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------
$03/D3ED AD 40 27 LDA $2740  [$7E:2740] A:000B X:002D Y:0000 P:envMxdiZC - Load Target's Type
$03/D3F0 29 80 AND #$80 A:0080 X:002D Y:0000 P:eNvMxdizC - Is it Zombie?
$03/D3F2 F0 27 BEQ $27    [$D41B] A:0080 X:002D Y:0000 P:eNvMxdizC - If not branch to 03D41B.
-----------------------------------------------------------------------------------------------------------------------------------------------
$03/D3F4 AD 06 27 LDA $2706  [$7E:2706] A:0080 X:002D Y:0000 P:eNvMxdizC - Load Target's Status Byte 4 into A.
$03/D3F7 09 40 ORA #$40 A:0040 X:002D Y:0000 P:envMxdizC - Load 40 (HP Leak)into A.
$03/D3F9 8D 06 27 STA $2706  [$7E:2706] A:0040 X:002D Y:0000 P:envMxdizC -  Store HP Leak into Target's Status Byte 4.
$03/D3FC A9 09 LDA #$09 A:0040 X:002D Y:0000 P:envMxdizC - Load 09 into A.
$03/D3FE 85 D6 STA $D6    [$00:00D6] A:0009 X:002D Y:0000 P:envMxdizC - Store A in D6.
$03/D400 A5 CF LDA $CF    [$00:00CF] A:0009 X:002D Y:0000 P:envMxdizC - Load A from CF.
$03/D402 20 36 9E JSR $9E36  [$03:9E36] A:0005 X:002D Y:0000 P:envMxdizC - Jump to Subroutine.
$03/D405 A9 06 LDA #$06 A:0000 X:001E Y:001E P:envMxdizc - Load 06 into A.
$03/D407 20 C8 85 JSR $85C8  [$03:85C8] A:0006 X:001E Y:001E P:envMxdizc - Jump to Subroutine.
$03/D40A A9 40 LDA #$40 A:0000 X:006F Y:001E P:envMxdiZc - Load 40 into A.
$03/D40C 9D 06 2A STA $2A06,x[$7E:2A75] A:0040 X:006F Y:001E P:envMxdizc - Store A in 7E2A06.
$03/D40F A5 CF LDA $CF    [$00:00CF] A:0040 X:006F Y:001E P:envMxdizc - Load xCF into A.
$03/D411 0A ASL A A:0005 X:006F Y:001E P:envMxdizc - Multiply A by 2.
$03/D412 AA TAX A:000A X:006F Y:001E P:envMxdizc - Transfer A to X.
$03/D413 BD EB 29 LDA $29EB,x[$7E:29F5] A:000A X:000A Y:001E P:envMxdizc - Load A from 7E29F5.
$03/D416 09 20 ORA #$20 A:0040 X:000A Y:001E P:envMxdizc - ?Add 20?
$03/D418 9D EB 29 STA $29EB,x[$7E:29F5] A:0060 X:000A Y:001E P:envMxdizc - Store A in 7E29F5.
$03/D41B 60 RTS A:0060 X:000A Y:001E P:envMxdizc - Return

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$03/D3D2 20 30 E1 JSR $E130  [$03:E130] A:0002 X:0002 Y:0000 P:envMxdizc - Jump to 03E130 (Weakness Subroutine)


And that will be all for tonight. I found what I wanted, that being the absolutely worthless HP Leak (which apparently only effects Zombies which can also be changed, not necessarily enemies weak to Holy...) maybe I can change it to something better. Perhaps Berserk? (combined with my Berserk nerf to make it a viable strategy to lower an opponent's defenses)

To do so...

$03/D3F4   AD 04 27   LDA $2704  [$7E:2704]   A:0080   X:002D   Y:0000   P:eNvMxdizC - Load Target's Status Byte 2 into A.
$03/D3F7   09 04   ORA #$04   A:0040   X:002D   Y:0000   P:envMxdizC - Load 04 (Berserk)into A.
$03/D3F9   8D 04 27   STA $2704  [$7E:2704]   A:0040   X:002D   Y:0000   P:envMxdizC -  Store Berserk into Target's Status Byte 2.


It's very late so I'll get back to this tomorrow.

 :edit:  And done! Looking at the Tower of Babil Doc, and taking v1.1 into account I have completely covered Holy's routine. There is a Lot to change here for versatility. I have no idea what the developers were thinking when they gave this spell HP Leak, (-60 HP over a time at Level 45+, yeah, that'll help!). Nor do I understand why it only effects Zombie type foes. It can easily be changed to another portion to check for. Now what gets me the most is how the game Needs to make sure that it is Holy being cast... which is laughable. It is the only spell in the game to use that formula. Why look to see if it is Holy specifically being cast...?

 Oh, it's not the only spell that uses the formula. Bio, and several monster spells do as well. I'd say switch the rest to Poison if you plan on changing the effect of HP Leak into anything more substantial.

1267
Hmm, what do you mean by monster magic causing an issue here? It's a little late so sorry if the meaning is obvious, heh.

1268
You are absolutely right. The WaterBug and Alligator withstood a Thunder (and even resisted one from a Wis. 6 character). The Alligator though the Ice Rod did not always fail to work, it would deal about half of the damage one is used to seeing against it though, but it did fail sometimes. So it's likely random if the Evasion is broken through or not.

This would be great for a Hardtype though. I can kind of understand why it's not implemented for a normal game now however.

Heh, you're quite right DragonsBrethren and I don't think that any version of the game has these enabled, meaning that this became the norm for FFIV releases. But I could be mistaken.

1269
That's a good point, well in any case, both evasions can be re-implemented into the game so that should be that, it really does speak poorly of their Q&A team to not miss it once but twice.

 I would say that I should look for some reference to 2001 to see if the byte is supposed to be decremented with Long Range Check somewhere but is overlooked, but someone already made that patch thankfully so I guess that should cover it. Maybe I should take a look at the Infinite Arrows Bug and see if there's no easy way to fix that...

1270
I... didn't take notice. Let me take a look...

Well like Evasion it is missing...

And yes, same exact measure was taken. Now I'm beginning to wonder if it was by design that they took these out rather than by mistake. Once, alright I can see someone not noticing it but a second time makes it seem deliberate. Alright so they included evasions for Magic and Physical for monsters but never followed through with it.

$03/90E9   9D 22 20   STA $2022,x[$7E:22A2]   A:0001   X:0280   Y:0083   P:envMxdIzC - Store Magic Defense Multiplier into Monster's stats
$03/90EC   AD 1D 29   LDA $291D  [$7E:291D]   A:0001   X:0280   Y:0083   P:envMxdIzC - Load Magical Evasion
$03/90EF   9D 24 20   STA $2024,x[$7E:22A4]   A:0028   X:0280   Y:0083   P:envMxdIzC - Load Magical Evasion into Monster's stats (where Magical Defense Base will be)
$03/90F2   AD 1E 29   LDA $291E  [$7E:291E]   A:0028   X:0280   Y:0083   P:envMxdIzC - Load Magical Defense Base
$03/90F5   9D 24 20   STA $2024,x[$7E:22A4]   A:0009   X:0280   Y:0083   P:envMxdIzC - Store Magical Defense Base over Magical Evasion.

Another single one byte fix.

It really does seem like they were dummying them for whatever reason.

 :edit:With that said I have noticed quite a difference in using Magic, against Zombies, Peep failed, which is supposed to have a 99% chance to hit. The attacks spells didn't really seem to be all that effected though, but that's likely because of their 99% hit.

1271
Due to the odd way accuracy is processed it doesn't make as much of a difference as you may think. It does become a bit more difficult to hit a status proc with weapons though. The game still takes into account attack multipliers so you may see lower damage because some of your attacks aren't going through in the full calculation, but you're still more than likely to land more blows than not.

1272
Alright, this is something that could be quite game changing and of interest to any FFIV players so I thought I would make a thread for it because something like this was clearly intended to be in the game but due to some ridiculous oversight, it was not.

In the normal game enemies in their data at 29/80 bytes are supposed to have an evasion stat, it is part of their defense code that they should have Defense, Evasion, and Defense Multiplier, now what happens normally is that all of their stats (at least I presume all of their stats. I haven't yet taken a closer look to see if Square was on-the-job with the rest of the Monster Data.) are entered in when battle begins Except for Evasion. The reasoning on why this is, is ridiculous and Square should be ashamed of themselves for not noticing such a thing. (Missing it in code is one thing, but to miss it in testing (and presumably looking at the monster's stats in battle) is another.

Here is the fix.

In LoRom/HiRom...

Normal
$03/90D7   9D 2A 20   STA $202A,x[$7E:22AA]   A:0046   X:0280   Y:0083   P:envMxdIzC


Fixed.
0390D7 9D 29 20 - One byte, one off, and yet Square never caught it.

In ROM this is at...

0192D7 9D 29 20 - One byte, one off, and yet Square never caught it.

What normally happens is that Evasion is written into the Defense Base and then is immediately erased for the Defense Base. Maybe it was intentional? But I mostly doubt it.

1273
Wow... Are you serious? Well, fine work Square, truly Fine Work! Oy, you fools...

$03/90CE   AD 1C 29   LDA $291C  [$7E:291C]   A:0002   X:0280   Y:0083   P:envMxdIzC
$03/90D1   9D 28 20   STA $2028,x[$7E:22A8]   A:0001   X:0280   Y:0083   P:envMxdIzC
$03/90D4   AD 1D 29   LDA $291D  [$7E:291D]   A:0001   X:0280   Y:0083   P:envMxdIzC
$03/90D7   9D 2A 20   STA $202A,x[$7E:22AA]   A:0046   X:0280   Y:0083   P:envMxdIzC
$03/90DA   AD 1E 29   LDA $291E  [$7E:291E]   A:0046   X:0280   Y:0083   P:envMxdIzC
$03/90DD   9D 2A 20   STA $202A,x[$7E:22AA]   A:0002   X:0280   Y:0083   P:envMxdIzC


Do you see the Problem?

Having heard from you that Evasion is Supposed to work for monsters but doesn't I decided to do a quick look. Set a breakpoint on the evasion byte, waltzed into battle and... other than a clear, nothing happened. So I thought, "Let me see how the rest of the stats get added in..." I changed the breakpoint to one byte over (2A) and what awaited me?

$03/90D7   9D 2A 20   STA $202A,x[$7E:22AA]   A:0046   X:0280   Y:0083   P:envMxdIzC

The given Evasion of my test Zombie in A. So I set my breakpoint to execute at the start of the line (3090D0) and that's what I was greeted with....

Square Literally Accidentally Wrote Their Evasion To The Physical Defense Base Instead Of Evasion!

That is some Special kind of incompetency there...

So... to fix this... you change this...

$03/90D7   9D 2A 20   STA $202A,x[$7E:22AA]   A:0046   X:0280   Y:0083   P:envMxdIzC
$03/90DA   AD 1E 29   LDA $291E  [$7E:291E]   A:0046   X:0280   Y:0083   P:envMxdIzC
$03/90DD   9D 2A 20   STA $202A,x[$7E:22AA]   A:0002   X:0280   Y:0083   P:envMxdIzC

To this...

$03/90D7   9D 29 20   STA $2029,x[$7E:22AA]   A:0046   X:0280   Y:0083   P:envMxdIzC
$03/90DA   AD 1E 29   LDA $291E  [$7E:291E]   A:0046   X:0280   Y:0083   P:envMxdIzC
$03/90DD   9D 2A 20   STA $202A,x[$7E:22AA]   A:0002   X:0280   Y:0083   P:envMxdIzC

One Byte! Happy Square? I fixed your game yet again...

(Sorry about my tone, this just incenses me greatly for some reason.)

1274
Indeed DragonsBrethren, I can only hope that it will be put to use. This has been the labor of my time the last couple of days before school really begins to pummel me.

Unfortunately when I wrote the disassembly of that last large chunk of code I lost a fair amount of my former post (seemed to be swallowed up by the new addition to the post) It seems there are space limits on posts and much of what I wrote  that could be done with that information was lost, well no matter. I'll try to be more comprehensive here.

Here is what has been found (I don't think there's much else left to find in the normal attack/defense routines...)

 What has been found thus far in the range of normal attacking..
Row Functionality -
Function of Blink -
Jumping/Charging -
Darkness -
Toad/Mini -
Evasion -
Normal Attacks -
Elemental/Very Weak/Immune Elemental Attacks -
Creature Type Attack/Resistances -
Berserk -
Curse -
Front Row/Back Row (while being attacked) -
Defend -
Critical Hit Bonus Damage (may be directly related to Drain Elemental)
Drain Elemental -
Zombie Reverse Drain Elemental -
Status Inflictions -
And that should be it.

Now a note about weapon status inflictions... Status infliction works in a strange and frankly, incomplete manner. If it is intended to be the way it is it is heavily sided with the player over monsters. This is how it works...

$03/C842   AD 9C 26   LDA $269C  [$7E:269C]   A:0000   X:0680   Y:001A   P:envMxdiZC - Load Target's Physical Attack Percentage.
$03/C845   ED 29 27   SBC $2729  [$7E:2729]   A:004D   X:0680   Y:001A   P:envMxdizC - Subtract A by Target's Physical Evasion.

Then it is run through an RNG where it will spit out a number and if it falls in the success zone it will inflict the status (after a Lot of other checks...)

Now I checked the monster stats, they supposedly should have an Evade byte, location 29 Bytes into their stats, but they don't. The game never loads any monster's given Evasion, thereby this check is only really done when the player would be hit by an attack status. Here is where the problem lies... A weapon with 99% Accuracy will Always inflict its status if, the enemy is susceptible to it. This may go a way to explain why most of the Status Weapons have questionable accuracy. It seems like such a waste and in many ways it could unbalance the game. So here is my suggested fix....

$03/C842   AD 9C 26   LDA $269C  [$7E:269C]   A:0000   X:0680   Y:001A   P:envMxdiZC - Load Target's Physical Attack Percentage.
$03/C845   ED 2F 27   SBC $272F  [$7E:272F]   A:004D   X:0680   Y:001A   P:envMxdizC - Subtract A by Target's Run Strength.

Enemies and Allies both have Run Strengths (though you could also attach it to level if you'd like since Run Strength is always a fair bit higher), Allies however never increase their Run Strength, I don't believe and but they all have at least a 0A (Except Paladin Cecil, his is curiously 01) and this in essence would give some marginal amount of worth to Porom's Cry command as it would increase the likelihood of getting through an enemy's chance to block the status.

Jump is a grossly overpowered command and now that I have all of the data in front of me, trumps Focus in every single way. Let us see all that Jump helps and Focus hurts...

$03/C525   AD 81 26   LDA $2681  [$7E:2681]   A:0080   X:0000   Y:0000   P:eNvMxdizc - Load Caster's Class and Row
$03/C528   29 20   AND #$20   A:0080   X:0000   Y:0000   P:eNvMxdizc - Is it Long Ranged?
$03/C52A   D0 0A   BNE $0A    [$C536]   A:0000   X:0000   Y:0000   P:envMxdiZc - Long Range Check - If successful branch to 03C536
$03/C52C   AD 85 26   LDA $2685  [$7E:2685]   A:0000   X:0000   Y:0000   P:envMxdiZc - Load Status Byte 3.
$03/C52F   29 02   AND #$02   A:0000   X:0000   Y:0000   P:envMxdiZc - Is it Jump?
$03/C531   D0 03   BNE $03    [$C536]   A:0000   X:0000   Y:0000   P:envMxdiZc - If so branch to 03C536
$03/C533   4E F8 38   LSR $38F8  [$7E:38F8]   A:0000   X:0000   Y:0000   P:envMxdiZc - Divide Accuracy by 2.

It passes by one Row check...

$03/C55A   AD 81 26   LDA $2681  [$7E:2681]   A:0080   X:0000   Y:0003   P:eNvMxdizc - Load Caster's class/row/Long Range
$03/C55D   29 20   AND #$20   A:0080   X:0000   Y:0003   P:eNvMxdizc  - Is it Long Range?
$03/C55F   D0 0A   BNE $0A    [$C56B]   A:0000   X:0000   Y:0003   P:envMxdiZc - If so branch to 03C56B.
$03/C561   AD 85 26   LDA $2685  [$7E:2685]   A:0000   X:0000   Y:0003   P:envMxdiZc - Load Caster's Status Byte 3.
$03/C564   29 02   AND #$02   A:0000   X:0000   Y:0003   P:envMxdiZc - Is it Jump?
$03/C566   D0 03   BNE $03    [$C56B]   A:0000   X:0000   Y:0003   P:envMxdiZc - If so branch to 03C56B.
$03/C568   4E F8 38   LSR $38F8  [$7E:38F8]   A:0000   X:0000   Y:0003   P:envMxdiZc - Divide Accuracy by 2.

Passes by another Row Check (Target in Back Row I believe).

$03/C6E7   AD 85 26   LDA $2685  [$7E:2685]   A:0000   X:0028   Y:0000   P:envMxdiZC - Load Status Anomalies (Byte 3) from Caster's Data Copy into A.
$03/C6EA   29 0A   AND #$0A   A:0008   X:0028   Y:0000   P:envMxdizC - Is it Jumping or Charging?
$03/C6EC   F0 06   BEQ $06    [$C6F4]   A:0008   X:0028   Y:0000   P:envMxdizC - If not jump to 03C6F4
--------------------------------------------------------------------------------------------------------------------------------
$03/C6EE   0E 02 39   ASL $3902  [$7E:3902]   A:0008   X:0028   Y:0000   P:envMxdizC - Shift the value in 3902 (Attack Base) and make it x2
$03/C6F1   2E 03 39   ROL $3903  [$7E:3903]   A:0008   X:0028   Y:0000   P:envMxdizc -  Do the same here?

Double the Damage.

Whereas this is what Charging does...

$03/C6EA   29 0A   AND #$0A   A:0008   X:0028   Y:0000   P:envMxdizC - Is it Jumping or Charging? (How it gleans this from 0A, I'm unsure. 08+02 does equal 0A though)
$03/C6EC   F0 06   BEQ $06    [$C6F4]   A:0008   X:0028   Y:0000   P:envMxdizC - If not jump to 03C6F4
--------------------------------------------------------------------------------------------------------------------------------
$03/C6EE   0E 02 39   ASL $3902  [$7E:3902]   A:0008   X:0028   Y:0000   P:envMxdizC - Shift the value in 3902 (Attack Base) and make it x2
$03/C6F1   2E 03 39   ROL $3903  [$7E:3903]   A:0008   X:0028   Y:0000   P:envMxdizc -  Do the same here?

Double Damage.

$03/C740   AD 05 27   LDA $2705  [$7E:2705]   A:0000   X:0000   Y:0000   P:envMxdiZC - Load Status Byte 3 from Target's Data.
$03/C743   29 08   AND #$08   A:0010   X:0000   Y:0000   P:envMxdizc - Is the Target Charging?
$03/C745   F0 06   BEQ $06    [$C74D]   A:0000   X:0000   Y:0000   P:envMxdiZc - If not branch to 03C74D
------------------------------------------------------------------------------------------------------------------------------------
$03/C747   4E 05 39   LSR $3905  [$7E:3905]   A:0008   X:0000   Y:0000   P:envMxdizC - Divide Physical Defense by 2
$03/C74A   6E 04 39   ROR $3904  [$7E:3904]   A:0008   X:0000   Y:0000   P:envMxdiZc - Divide 3904 by 2. (Possibly Magic Defense)

Yes, Focus gets both defenses cut in half. We could easily change that to something more reasonable. I had always thought Berserk was a fairly overpowered status so why not attach this detriment to that and to do so is quite simple.

$03/C740   AD 05 27   LDA $2704  [$7E:2704]   A:0000   X:0000   Y:0000   P:envMxdiZC - Load Status Byte 2 from Target's Data.
$03/C743   29 08   AND #$04   A:0010   X:0000   Y:0000   P:envMxdizc - Is the Target Berserk?
$03/C745   F0 06   BEQ $06    [$C74D]   A:0000   X:0000   Y:0000   P:envMxdiZc - If not branch to 03C74D
------------------------------------------------------------------------------------------------------------------------------------
$03/C747   4E 05 39   LSR $3905  [$7E:3905]   A:0008   X:0000   Y:0000   P:envMxdizC - Divide Physical Defense by 2
$03/C74A   6E 04 39   ROR $3904  [$7E:3904]   A:0008   X:0000   Y:0000   P:envMxdiZc - Divide 3904 by 2. (Possibly Magic Defense)


I'll get to more uses later, but for now feel free to post any ideas you would like to see with the available information.

1275
Update now includes... Row Functionality - Long Range Check - Function of Blink - Jumping/Charging - Darkness - Toad/Mini - Evasion - Normal Attacks - Elemental/Very Weak/Immune Elemental Attacks - Creature Type Attack/Resistances - Berserk - Curse - Defend - Critical Hit Bonus Damage (may be directly related to Drain Elemental) Drain Elemental - Zombie Reverse Drain Elemental - The means to nerf or improve much of anything is now within our hands.  Did you ever think Berserk was too strong and now find out Charging slices your Magical Defense AND Physical Defense makes Focus too weak? Why not add a bit of challenge and strategy by making Berserk inherit those faults (thereby making it a plausible attack to use on an enemy to lower their Defenses). Is your mod a Solo Mod and therefore would logically not use Rows? The checks to disable for that are all clearly there. Do you want to nerf the damage Race Weakness does? The means to do so are above, or how about make Drain Weaponry not so powerful that they require massive stat decreases? Did the idea of Race Resistant armor ever strike you as strange and unnecessary? You can change those into Race Weaknesses so say that you have a powerful shield, but it is weak to Giant type enemies. It could add a bit more strategy to your equipment set up. The last thing notable thing (that I can think of...) we are missing now is the Status Infliction routine. All the means to do as you will are listed in the basic Attack/Defense Disassembly above. If you have any questions I'll try my best to answer them.