øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;u=123;area=showposts;start=945e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index3a30.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;area=showposts;u=123e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index3a30.html.zx(òg^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ P,ýÚOKtext/htmlISO-8859-1gzip0|ÖýÚÿÿÿÿÿÿÿÿTue, 10 Mar 2020 20:18:06 GMT0ó°° ®0®P®€§²ð®&òg^ÿÿÿÿÿÿÿÿ­XýÚ 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

946
Final Fantasy IV Research & Development / FFII SNES Beta Curiosities
« on: January 05, 2014, 01:26:15 AM »
On a nostalgic surge, I decided to take a look at the old SNES Manual and found a few interesting mentions of things that didn't make it into the final cut of the game.

On Page 17 they introduce Tellah and they say that he has forgotten many of his spells "He might be able to recall some spells by chance". Did they intend to put Recall in FFII SNES, but then take it out at the last minute for some reason? It must have gotten pretty far since every reference to Cecil's Dark Wave is gone in the manual.

On that same page is a reference to receiving "powerful weapons and armor" after falling down the waterfall... but there are no weapons. Was there intended to be at one point?

The most bizarre mention on this page though Has to be in regards to the Staff. "Has Rydia learned Lit? If she hasn't, come back after she has risen in Level, or have her use the Staff. Used as an item, it has the same effect as Lit.

Whoa, whoa, what? That would have been quite powerful and its not as if it would have outshone the Thunder Rod, since that has Wisdom boosting capability.

Haha! "You will obtain a Hovercraft in Damcyan. With the exception of water, this vehicle travels everywhere including through forests and over mountains." This had to be a translation mistake otherwise there would barely be a required Dark Knight stretch of game to go through if you could use the... Hovercraft... to go over mountains.

Hmm... (in regards to Antlion "Two Antannae's emerge from the ground." They show the picture of the claws snapping at Edward right above that sentence...

On Page 23 - "There are two special fields on the mountain." Eh? Isn't there only one save point on Mt. Ordeals? Or is my memory playing tricks on me?
"Milon enters accompanied by his Zombie." Hm? Only one you say? At first I thought it may have been a typo, but the group is continually called "Zombie". Did they originally intend for Milon to have only one Zombie?

I do have to say the "Et Tu Baigan!" caption is actually pretty neat and shows they put a bit of effort into this instruction manual.

The Item List is woefully poorly translated with gems like Paradin, Doragoon, wepon and Ice Bland.

The info. seems mostly right, except they have the accuracy of the Drain sword wrong (thank goodness!) they have it at 30% when it is really 50%

Blizzard Spear is actually two points more powerful than the manual says.

The accuracy for the Dragoon Spear (or they call it the Dragon Spear) is wrong. It is 80 but the manual says 99.

On that same note the Holy Lance (Called Holy in the manual, White in game) has 80 accuracy as well where the manual says 95. What odd changes.

Ogre Axe's hit rate is shown as 69% when it is actually 80% in the SNES version.

The Archer Bow has the wrong accuracy, the manual lists it as 30% (Huh...?) while in-game it is 50%. Also an interesting note is that all bows have "aerial" on them in the manual, but the only spear to even mention Air was the Blizzard Lance. Were lances originally not going to have that effect? It may have been added late since a lot of the "Air, Element" indexes come pretty late.

The Elven Bow is not shown to be effective against Mages.

Iron Arrows are listed at 3 Atk rather than the 5 they actually are.

Mute Arrows are not listed as effective against Mages.

The Whip may have been intended to have 99% accuracy, which would have made it quite useful for a guarantee stun actually! The other whips are shown with the correct accuracy.

The Assassin Knife may have been Ridiculously good! At 99% accuracy it would instant kill any thing that was vulnerable. In the final (still unused) it was dropped to 55% accuracy, but did gain some more Atk.

Shuriken's aren't shown to have aerial properties, oddly enough.

When writing about Shields I think someone mixed up the Paladin and Dark Knight, or maybe the Paladin was just not able to equip many shields? Only being able to equip the Paladin and Crystal Shield originally?

Caps are shown as an evade rate of 3% when they actually have 5%, hmm. I'm noticing a theme with 3 to 5...

The Ribbon is effective against... ribbon, fantastic work guys.

Rune Ring has 3 defense in the manual... 5 in game.

Gaea Gear protects you against "Earth"... does this mean it was intended as an element at one point in production?

Karate... 3 def in book. 5 in game.

This might be going out on a limb but in these descriptions, I don't see Any resistances to Monster Types. Does that mean they weren't included at this point in production?

Fire is listed as having 13 Defense when it has 15 in-game. (3 and 5 again.. .hmm...)

Crystal has 23 Defense when it has 25 in-game (3 and 5 again... HMMM....)

(Goes to Magic Section in manual...)

Interesting...

Heal - Heals Hold, poison... That would be worthless. Thank you for upgrading this in the final game.

They for some reason call "Hold" "White" in the manual. Same effect.

"Sage" is shown as a character who learns "White" but Tellah never learns White.

It seems that Nuke was originally going to cost 99 MP. In the end it costs 50 in-game.

Then it shows Meteo costing only 50 MP... I think someone must have gotten mixed up there.

Stop is listed at only 9 MP, but is 15 in-game.

Judging by this manual, apparently Tellah at one time had every Black/White Magic in the game.

Now Image has an interesting description "Improve defence rate" (evasion) and could apparently be cast on any ally. I wonder if that means they intended for a routine to do such a thing? The description makes it much more inline with the FOG spell of FFI.

And finally it seems that the Mist Dragon may have only attacked one enemy at one point.

Well that's all I could find from the instruction manual. I'll go back through the Reference Book that was made before the game released to see what I can find there of interest.


947
I will keep that in mind. If I'm going to be of any help on this project, I'll need to be on the ball when it comes to certain math equations, especially if I plan on actually programming it into the game.

948
Alright, now this suddenly makes sense to me...

Level. 10 815 is the required Exp. to gain a level. At this point it is working off of TNL and is not using any special coding.
Level. 11 A default reference of 220 is added as the difference between Level 10 and Level 11.
Level. 12 Introduces the 2nd Difference and adds that to the required Level Up from then on, combining that with the Step every level, which continue to goes up by 3 each Level.

And judging by your chart below this matches Almost Identically with the game's sense of progression itself!

This is amazing work! And that you put it in a way that even I could understand it speaks volumes of your talent!

949
Ideally I would love our system to be able to calculate from Level 1-70 for every character. That way we could have characters join whenever the modder would like rather than "when their level fits them".

950
Hey Chillyfeez! Always glad to hear from you. Yes, I am wondering about that myself... It probably runs the number through an area a number of times until it reaches its desired goal, if I had to guess.

Phew, now this... this is complicated to wrap my head around. So... Each level will have a sequence that has to be x4 to gain a Level. So at Level 10 you would need 39x4 = which would be 156+... um... I'm sorry this is extremely complicated to me, computations and differences always throw me for a loop. I re-read it three times, but I'm afraid I just can't grasp what is being said. Nor do the charts help me too much.  39+200+815=2139? But... 815 is the experience needed to level up... and 2139 doesn't appear as a level... Oh! That's starting experience, I see. The experience one will have when they level up... that said I'm not sure what the 200-259 or 39 part plays in all of this...


951
Here's some information on entering battle and levels...

Ally Level Calculations

Code: [Select]
$03/8C99 B9 40 35 LDA $3540,y[$7E:3541] A:0000 X:0080 Y:0001 P:eNvMxdIzc - Load 7E3540 into A.
$03/8C9C D0 10 BNE $10    [$8CAE] A:0000 X:0080 Y:0001 P:envMxdIZc - If not 00 Branch to 038CAE.
$03/8C9E 18 CLC A:0000 X:0080 Y:0001 P:envMxdIZc - Clear Carry Flag.
$03/8C9F BD 02 20 LDA $2002,x[$7E:2082] A:0000 X:0080 Y:0001 P:envMxdIZc - Load Character's Level into A.
$03/8CA2 65 A9 ADC $A9    [$00:00A9] A:000A X:0080 Y:0001 P:envMxdIzc - Add it to A9 (where the other character's levels are added up)
$03/8CA4 85 A9 STA $A9    [$00:00A9] A:0014 X:0080 Y:0001 P:envMxdIzc - Store A in A9.
$03/8CA6 A9 00 LDA #$00 A:0014 X:0080 Y:0001 P:envMxdIzc - Load 00 into A.
$03/8CA8 65 AA ADC $AA    [$00:00AA] A:0000 X:0080 Y:0001 P:envMxdIZc - Add ?00? into AA.
$03/8CAA 85 AA STA $AA    [$00:00AA] A:0000 X:0080 Y:0001 P:envMxdIZc - Store A in AA.
$03/8CAC E6 AD INC $AD    [$00:00AD] A:0000 X:0080 Y:0001 P:envMxdIZc - +1 to AD.
$03/8CAE 20 BC 85 JSR $85BC  [$03:85BC] A:0000 X:0080 Y:0001 P:envMxdIzc - Jump to Subroutine 0385BC
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~```
$03/85BC C2 20 REP #$20 A:0000 X:0080 Y:0001 P:envMxdIzc - Reset Processor Status
$03/85BE 8A TXA A:0000 X:0080 Y:0001 P:envmxdIzc - Transfer X to A.
$03/85BF 18 CLC A:0080 X:0080 Y:0001 P:envmxdIzc - Clear Carry Flag.
$03/85C0 69 80 00 ADC #$0080 A:0080 X:0080 Y:0001 P:envmxdIzc - Add 80 to A.
$03/85C3 AA TAX A:0100 X:0080 Y:0001 P:envmxdIzc - Transfer A to X.
$03/85C4 7B TDC A:0100 X:0100 Y:0001 P:envmxdIzc - Transfer Direct Page.
$03/85C5 E2 20 SEP #$20 A:0000 X:0100 Y:0001 P:envmxdIZc - Set Processor Status to 2 Bytes.
$03/85C7 60 RTS A:0000 X:0100 Y:0001 P:envMxdIZc - Return
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$03/8CB1 C8 INY A:0000 X:0100 Y:0001 P:envMxdIZc - +1 to Y.
$03/8CB2 C0 05 00 CPY #$0005 A:0000 X:0100 Y:0002 P:envMxdIzc - Has it checked all five slots?
$03/8CB5 D0 E2 BNE $E2    [$8C99] A:0000 X:0100 Y:0002 P:eNvMxdIzc - If not loop back to 038C99
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Monster Level Calculation

Code: [Select]
$03/8CB7 B9 40 35 LDA $3540,y[$7E:3545] A:0000 X:0280 Y:0005 P:envMxdIZC - Load 7E3545 into A.
$03/8CBA D0 10 BNE $10    [$8CCC] A:0000 X:0280 Y:0005 P:envMxdIZC - Branch if not 00 to 038CCC.
$03/8CBC 18 CLC A:0000 X:0280 Y:0005 P:envMxdIZC - Clear Carry Flag.
$03/8CBD BD 02 20 LDA $2002,x[$7E:2282] A:0000 X:0280 Y:0005 P:envMxdIZc - Load Monster Level into A.
$03/8CC0 65 AB ADC $AB    [$00:00AB] A:0005 X:0280 Y:0005 P:envMxdIzc - Add this value to AB.
$03/8CC2 85 AB STA $AB    [$00:00AB] A:0005 X:0280 Y:0005 P:envMxdIzc - Store A in AB.
$03/8CC4 A9 00 LDA #$00 A:0005 X:0280 Y:0005 P:envMxdIzc - Load 00 into A.
$03/8CC6 65 AC ADC $AC    [$00:00AC] A:0000 X:0280 Y:0005 P:envMxdIZc - Add this to AC.
$03/8CC8 85 AC STA $AC    [$00:00AC] A:0000 X:0280 Y:0005 P:envMxdIZc - Store A in AC.
$03/8CCA E6 AE INC $AE    [$00:00AE] A:0000 X:0280 Y:0005 P:envMxdIZc - +1 to AE.
$03/8CCC 20 BC 85 JSR $85BC  [$03:85BC] A:0000 X:0280 Y:0005 P:envMxdIzc - Jump to Subroutine (above)
$03/8CCF C8 INY A:0000 X:0300 Y:0005 P:envMxdIZc - +1 to Y.
$03/8CD0 C0 08 00 CPY #$0008 A:0000 X:0300 Y:0006 P:envMxdIzc - Has it looked at all Eight Monster Slots?
$03/8CD3 D0 E2 BNE $E2    [$8CB7] A:0000 X:0300 Y:0006 P:eNvMxdIzc - If not branch back to 038CB7

For some reason Ally Levels are rolled over 10 times...
Code: [Select]
$03/8CD5 A6 A9 LDX $A9    [$00:00A9] A:0000 X:0400 Y:0008 P:envMxdIZC - Load X from Ally's Accumulated Levels.
$03/8CD7 8E 45 39 STX $3945  [$7E:3945] A:0000 X:001E Y:0008 P:envMxdIzC - Store X in 7E3945.
$03/8CDA A5 AD LDA $AD    [$00:00AD] A:0000 X:001E Y:0008 P:envMxdIzC - Load A from Amount of Characters.
$03/8CDC AA TAX A:0003 X:001E Y:0008 P:envMxdIzC - Transfer A to X.
$03/8CDD 8E 47 39 STX $3947  [$7E:3947] A:0003 X:0003 Y:0008 P:envMxdIzC - Store X in 7E3947.
$03/8CE0 20 07 84 JSR $8407  [$03:8407] A:0003 X:0003 Y:0008 P:envMxdIzC - Jump to Subroutine
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$03/8407 C2 20 REP #$20 A:0003 X:0003 Y:0008 P:envMxdIzC - Reset Processor Status
$03/8409 9C 49 39 STZ $3949  [$7E:3949] A:0003 X:0003 Y:0008 P:envmxdIzC - Store Zero in 7E3949.
$03/840C 9C 4B 39 STZ $394B  [$7E:394B] A:0003 X:0003 Y:0008 P:envmxdIzC - Store Zero in 7E394B.
$03/840F AD 45 39 LDA $3945  [$7E:3945] A:0003 X:0003 Y:0008 P:envmxdIzC - Load Accumulated Ally Levels into A.
$03/8412 F0 2B BEQ $2B    [$843F] A:001E X:0003 Y:0008 P:envmxdIzC - Branch if 00 (Wha...?) to 03843F.
$03/8414 AD 47 39 LDA $3947  [$7E:3947] A:001E X:0003 Y:0008 P:envmxdIzC - Load Amount of Allies into A.
$03/8417 F0 26 BEQ $26    [$843F] A:0003 X:0003 Y:0008 P:envmxdIzC - Branch if 00 (Sigh...) to 03843F.
$03/8419 18 CLC A:0003 X:0003 Y:0008 P:envmxdIzC - Clear Carry Flag.
$03/841A A2 10 00 LDX #$0010 A:0003 X:0003 Y:0008 P:envmxdIzc - Load 10 into X.
--------------------------------------------------------------(Looping Point)---------------------------------------------------
$03/841D 2E 45 39 ROL $3945  [$7E:3945] A:0003 X:0010 Y:0008 P:envmxdIzc - x2 Ally Levels.
$03/8420 2E 4B 39 ROL $394B  [$7E:394B] A:0003 X:0010 Y:0008 P:envmxdIzc - x2
$03/8423 38 SEC A:0003 X:0010 Y:0008 P:envmxdIZc - Set Carry Flag.
$03/8424 AD 4B 39 LDA $394B  [$7E:394B] A:0003 X:0010 Y:0008 P:envmxdIZC - Load A from 7E394B.
$03/8427 ED 47 39 SBC $3947  [$7E:3947] A:0000 X:0010 Y:0008 P:envmxdIZC - Subtract Amount of Characters from 7E3947.
$03/842A 8D 4B 39 STA $394B  [$7E:394B] A:FFFD X:0010 Y:0008 P:eNvmxdIzc - Store A in 7E394B.
$03/842D B0 0A BCS $0A    [$8439] A:FFFD X:0010 Y:0008 P:eNvmxdIzc - Branch if More than 00 to 038439.
$03/842F AD 4B 39 LDA $394B  [$7E:394B] A:FFFD X:0010 Y:0008 P:eNvmxdIzc - Load 7E394B into A.
$03/8432 6D 47 39 ADC $3947  [$7E:3947] A:FFFD X:0010 Y:0008 P:eNvmxdIzc - Add the value in 7E3947 onto A.
$03/8435 8D 4B 39 STA $394B  [$7E:394B] A:0000 X:0010 Y:0008 P:envmxdIZC - Store A in 7E394B.
$03/8438 18 CLC A:0000 X:0010 Y:0008 P:envmxdIZC - Clear Carry Flag.
$03/8439 2E 49 39 ROL $3949  [$7E:3949] A:0000 X:0010 Y:0008 P:envmxdIZc - x2 the value in 7E3949 (which is currently 0)
$03/843C CA DEX A:0000 X:0010 Y:0008 P:envmxdIZc - -1 from .
$03/843D D0 DE BNE $DE    [$841D] A:0000 X:000F Y:0008 P:envmxdIzc - Branch if... ?Not 00? (likely using X as a base) to 03841D.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`````
$03/843F 7B TDC A:0000 X:0000 Y:0008 P:envmxdIZc - Transfer Direct Page.
$03/8440 E2 20 SEP #$20 A:0000 X:0000 Y:0008 P:envmxdIZc - Set Processor Status.
$03/8442 60 RTS A:0000 X:0000 Y:0008 P:envMxdIZc - Return
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$03/8CE3 AE 49 39 LDX $3949  [$7E:3949] A:0000 X:0000 Y:0008 P:envMxdIZc - Load Final Value (0A) from Median into X.
$03/8CE6 8A TXA A:0000 X:000A Y:0008 P:envMxdIzc - Transfer X to A.
$03/8CE7 8D D4 38 STA $38D4  [$7E:38D4] A:000A X:000A Y:0008 P:envMxdIzc - Store Median Ally Level in 7E38D4.
$03/8CEA 7B TDC A:000A X:000A Y:0008 P:envMxdIzc - Transfer Direct Page.
$03/8CEB A6 AB LDX $AB    [$00:00AB] A:0000 X:000A Y:0008 P:envMxdIZc - Load Accumulated Enemy Levels.
$03/8CED 8E 45 39 STX $3945  [$7E:3945] A:0000 X:000F Y:0008 P:envMxdIzc - Store X in 7E3945.
$03/8CF0 A5 AE LDA $AE    [$00:00AE] A:0000 X:000F Y:0008 P:envMxdIzc - Load Accumulated amount of enemies.
$03/8CF2 AA TAX A:0003 X:000F Y:0008 P:envMxdIzc - Transfer A to X.
$03/8CF3 8E 47 39 STX $3947  [$7E:3947] A:0003 X:0003 Y:0008 P:envMxdIzc - Store X in 7E3947.
$03/8CF6 20 07 84 JSR $8407  [$03:8407] A:0003 X:0003 Y:0008 P:envMxdIzc - Jump to Subroutine (same one as above.)

Median Ally /Enemy Level vs. RNG
Code: [Select]
$03/8CF9 AE 49 39 LDX $3949  [$7E:3949] A:0000 X:0000 Y:0008 P:envMxdIZc - Load X from Median Enemy Level.
$03/8CFC 8A TXA A:0000 X:0005 Y:0008 P:envMxdIzc - Transfer X to A.
$03/8CFD 8D D5 38 STA $38D5  [$7E:38D5] A:0005 X:0005 Y:0008 P:envMxdIzc - Store Median Enemy Level in 7E38D5,
$03/8D00 7B TDC A:0005 X:0005 Y:0008 P:envMxdIzc - Transfer Direct Page.
$03/8D01 7B TDC A:0000 X:0005 Y:0008 P:envMxdIZc - Transfer Direct Page (Coding Error?)
$03/8D02 AA TAX A:0000 X:0005 Y:0008 P:envMxdIZc - Transfer A to X.
$03/8D03 86 A9 STX $A9    [$00:00A9] A:0000 X:0000 Y:0008 P:envMxdIZc - Store Enemy Median Level into A9.
$03/8D05 E6 A9 INC $A9    [$00:00A9] A:0000 X:0000 Y:0008 P:envMxdIZc - +1 to A9,
$03/8D07 E6 AA INC $AA    [$00:00AA] A:0000 X:0000 Y:0008 P:envMxdIzc - +1 to AA
$03/8D09 A9 63 LDA #$63 A:0000 X:0000 Y:0008 P:envMxdIzc - Load 63 (100) into A.
$03/8D0B 20 79 83 JSR $8379  [$03:8379] A:0063 X:0000 Y:0008 P:envMxdIzc - Load 100 into Random Number Generator.
$03/8D0ECD D4 38 CMP $38D4  [$7E:38D4] A:0014 X:0000 Y:0008 P:envMxdIzc - Compare Random Number to Median Ally Level.
$03/8D11 B0 02 BCS $02    [$8D15] A:0014 X:0000 Y:0008 P:envMxdIzC - If less than Random Number branch to 038D15.
---------------------------------------------------------------------------------------------------------------------------------------------------------------
$03/8D13 E6 A9 INC $A9    [$00:00A9] A:0007 X:0000 Y:0008 P:eNvMxdIzc +1 to A9.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
$03/8D15 20 8B 85 JSR $858B  [$03:858B] A:0014 X:0000 Y:0008 P:envMxdIzC - Jump to a Different Random Number Generator
$03/8D18 CD D5 38 CMP $38D5  [$7E:38D5] A:0057 X:0000 Y:0008 P:envMxdIzc - Compare Random Number to Median Enemy Level.
$03/8D1B B0 02 BCS $02    [$8D1F] A:0057 X:0000 Y:0008 P:envMxdIzC - If less than Random Number branch to 038D1F
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
$03/8D1D E6 AA INC $AA    [$00:00AA] A:0051 X:0000 Y:0008 P:eNvMxdIzc - +1 to AA.
--------------------------------------------------------------------------------------------------------------------------------------------------------------
$03/8D1F A5 A9 LDA $A9    [$00:00A9] A:0057 X:0000 Y:0008 P:envMxdIzC - Load A9 into A. (which it won't be 01 if the Ally RNG check succeeded)
$03/8D21 C5 AA CMP $AA    [$00:00AA] A:0001 X:0000 Y:0008 P:envMxdIzC - Compare it to AA.
$03/8D23 F0 29 BEQ $29    [$8D4E] A:0001 X:0000 Y:0008 P:envMxdIZC - If they equal branch to 038D4E.
---------------------------------------------------------------------------------------------------------------------------------
(Ally Success)
$03/8D25 90 08 BCC $08    [$8D2F] A:0002 X:0000 Y:0008 P:envMxdIzC - If 00 branch to 038D2F (I can't see how it could be 00...)
$03/8D27 EE D7 38 INC $38D7  [$7E:38D7] A:0002 X:0000 Y:0008 P:envMxdIzC - +1 to 7E38D7 (When these two are both 01, they cause First Strikes)
$03/8D2A EE D8 38 INC $38D8  [$7E:38D8] A:0002 X:0000 Y:0008 P:envMxdIzC - +1 to 7E38D8
$03/8D2D 80 1F BRA $1F    [$8D4E] A:0002 X:0000 Y:0008 P:envMxdIzC - Branch always to 038D4E.
------------------------------------------------------------------------------------------------------------------------------------------------
(Monster Success)
$03/8D2F A9 80 LDA #$80 A:0001 X:0000 Y:0008 P:eNvMxdIzc - Load 80 into A
$03/8D31 8D D7 38 STA $38D7  [$7E:38D7] A:0080 X:0000 Y:0008 P:eNvMxdIzc - Store A in 7E38D7. (Causes Ambush)
$03/8D34 8D D8 38 STA $38D8  [$7E:38D8] A:0080 X:0000 Y:0008 P:eNvMxdIzc - Store A in 7E38D8.
$03/8D37 AD D5 38 LDA $38D5  [$7E:38D5] A:0080 X:0000 Y:0008 P:eNvMxdIzc - Load A from 7E38D5.
$03/8D3A 4A LSR A A:0063 X:0000 Y:0008 P:envMxdIzc - Divide it by 2.
$03/8D3B 85 A9 STA $A9    [$00:00A9] A:0031 X:0000 Y:0008 P:envMxdIzC - Store A in A9.
$03/8D3D 7B TDC A:0031 X:0000 Y:0008 P:envMxdIzC - Transfer Direct Page.
$03/8D3E AA TAX A:0000 X:0000 Y:0008 P:envMxdIZC - Transfer A to X.
$03/8D3F AD D4 38 LDA $38D4  [$7E:38D4] A:0000 X:0000 Y:0008 P:envMxdIZC - Load Median Ally Level into A.
$03/8D42 20 79 83 JSR $8379  [$03:8379] A:000A X:0000 Y:0008 P:envMxdIzC - Jump to Random Number Generator. (0-Party Level)
$03/8D45 C5 A9 CMP $A9    [$00:00A9] A:0000 X:0000 Y:0008 P:envMxdIzc - Is it less than Enemy Level/2?
$03/8D47 B0 05 BCS $05    [$8D4E] A:0000 X:0000 Y:0008 P:eNvMxdIzc - If so branch to 038D4E.
$03/8D49 A9 08 LDA #$08 A:0000 X:0000 Y:0008 P:eNvMxdIzc - Load 08 into A.
$03/8D4B 8D 81 35 STA $3581  [$7E:3581] A:0008 X:0000 Y:0008 P:envMxdIzc - Store A in 7E35811 (Back Attack)
---------------------------------------------------------------------------------------------------------------------------------------
$03/8D4E 7B TDC A:0001 X:0000 Y:0008 P:envMxdIZC - Transfer Direct Page
$03/8D4F AA TAX A:0000 X:0000 Y:0008 P:envMxdIZC - Transfer A to X.
$03/8D50 A8 TAY A:0000 X:0000 Y:0008 P:envMxdIZC - Transfer A to Y.
$03/8D51 86 C7 STX $C7    [$00:00C7] A:0000 X:0000 Y:0000 P:envMxdIZC - Store X in C7.
$03/8D53 B9 40 35 LDA $3540,y[$7E:3540] A:0000 X:0000 Y:0000 P:envMxdIZC - Load A from 7E3540.
$03/8D56 D0 11 BNE $11    [$8D69] A:0000 X:0000 Y:0000 P:envMxdIZC - If not 00 branch to 038D69.
$03/8D58 A5 C7 LDA $C7    [$00:00C7] A:0000 X:0000 Y:0000 P:envMxdIZC - Load A from C7.
$03/8D5A D0 28 BNE $28    [$8D84] A:0000 X:0000 Y:0000 P:envMxdIZC - Branch if Not 00 to 038D84.
$03/8D5C BD 00 20 LDA $2000,x[$7E:2000] A:0000 X:0000 Y:0000 P:envMxdIZC - Load Character ID into A.
$03/8D5F 29 1F AND #$1F A:0081 X:0000 Y:0000 P:eNvMxdIzC - Get rid of 80.
$03/8D61 C9 20 CMP #$20 A:0001 X:0000 Y:0000 P:envMxdIzC - Is it 20? (Invalid, Normally Dark Knight Cecil)
$03/8D63 F0 1F BEQ $1F    [$8D84] A:0001 X:0000 Y:0000 P:eNvMxdIzc - If so branch to 038D84.
$03/8D65 C9 01 CMP #$01 A:0001 X:0000 Y:0000 P:eNvMxdIzc - Is it Dark Knight Cecil (Normally Paladin)
$03/8D67 F0 18 BEQ $18    [$8D81] A:0001 X:0000 Y:0000 P:envMxdIZC - If so branch to 038D81.
-------------------------------------------------------------------------------------------------------------------------------------------------
(I have left new areas an am back in the area that makes Cover work that means this is done.)

And there we go! Judging by this data the higher your level is the more likely you are to get a First strike, and vice versa with enemies. The enemy level is never directly confronted by the ally level, but both are put into RNG's of 1-100. If the Player succeeds they get a First Strike. If the Enemy succeeds they get an Ambush, then the Party Level is put as the limit in an RNG vs. the Enemy Level/2 and should the Enemy Level still be higher, a Back Attack occurs.

Now that was quite a fun little trip! And another piece of the puzzle solved!






952
I have a vested interest in Ancient Chinese History, but... that does not a job make. Probably World History, American History is not a subject I have any interest in pursuing in much of the long term.

Ah, still compiling the plan you want to use? In the meantime I can find where the game draws the exp. from (well it's pretty obvious from where) and if this routine can be modified for custom code.

953
Ah, you're a Teacher's Assistant? I plan on trying to become a teacher myself, preferably in the field of History.

Now this is a very ingenious plan you have set up here! It would save So much space to have things compiled in this manner rather than the haphazard experience standards the game sets up for the characters.

 "So Experience Needed @ Level X = a*X^3 + b*X^2 + c*X^1 + d      for a set of constants a,b,c,d determined by modeling the data"

The only part I worry about is that even the smallest change here might throw off someone's experience to astronomical differences between others.

With Rydia for instance...

Level 2 = a*2^3 + b*2^2 + c*2^1 + d      for a set of constants a,b,c,d determined by modeling the data.
a=2
b=3
c=4
d=5

2x2^3= 8
+
3x2^3=216
+
4x2^3=512
+
5
=
741 Exp. for Level 2. But maybe you had a specific idea on how to use the variables.

Now with powers... I don't think 65816 supports those, I see no instructions in regards to them in any case. The closest thing I've seen is something that doubles a value, but that's not exactly powers.

But your second idea of not involving powers (you can get away with squaring it, obviously) is probably the one we'll have to go with.

954
I've put this off for too long...

Heal/Remove All Status Except... Routine

Code: [Select]
$03/D6FB F0 0A BEQ $0A    [$D707] A:0000 X:0016 Y:FFFF P:envMxdiZc - If 00 branch to 03D707
-------------------------------------------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------------------------------------------------
$03/D707 AD D2 26 LDA $26D2  [$7E:26D2] A:0000 X:0016 Y:FFFF P:envMxdiZc - Load Current Action Taken.
$03/D70A C9 12 CMP #$12 A:0012 X:0016 Y:FFFF P:envMxdizc - Is it Heal?
$03/D70C F0 07 BEQ $07    [$D715] A:0012 X:0016 Y:FFFF P:envMxdiZC - If so branch to 03D715.
-----------------------------------------------------------------------------------------------------------------------
$03/D70E C9 86 CMP #$86 A:004B X:0016 Y:0000 P:envMxdizC - Is it (Enemy Spell) Heal?
$03/D710 F0 03 BEQ $03    [$D715] A:004B X:0016 Y:0000 P:eNvMxdizc - If so branch to 03D715.
$03/D712 4C 83 D7 JMP $D783  [$03:D783] A:004B X:0016 Y:0000 P:eNvMxdizc - Jump to 03D783.
----------------------------------------------------------------------------------------------------------------------------
$03/D715 A5 CE LDA $CE    [$00:00CE] A:0012 X:0016 Y:FFFF P:envMxdiZC - Load ?Character ID? into A.
$03/D717 10 03 BPL $03    [$D71C] A:0001 X:0016 Y:FFFF P:envMxdizC - Branch if less than 80 (being used by a PC)
----------------------------------------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------------------------------------------
$03/D71C AA TAX A:0001 X:0016 Y:FFFF P:envMxdizC - Transfer A to X.
$03/D71D 9E 60 35 STZ $3560,x[$7E:3561] A:0001 X:0001 Y:FFFF P:envMxdizC - Store Zero in 7E3560+X.
$03/D720 AD 03 27 LDA $2703  [$7E:2703] A:0001 X:0001 Y:FFFF P:envMxdizC - Load Target's Status Byte 1.
$03/D723 85 A9 STA $A9    [$00:00A9] A:0000 X:0001 Y:FFFF P:envMxdiZC - Store A in A9.
$03/D725 29 80 AND #$80 A:0000 X:0001 Y:FFFF P:envMxdiZC - Add 80 (thus getting rid of all ailments Except Death)
$03/D727 8D 03 27 STA $2703  [$7E:2703] A:0000 X:0001 Y:FFFF P:envMxdiZC - Store A in Target's Status Byte 1.
$03/D72A AD 04 27 LDA $2704  [$7E:2704] A:0000 X:0001 Y:FFFF P:envMxdiZC - Load Target's Status Byte 2.
$03/D72D 85 AA STA $AA    [$00:00AA] A:0008 X:0001 Y:FFFF P:envMxdizC - Store A in AA.
$03/D72F 29 44 AND #$44 A:0008 X:0001 Y:FFFF P:envMxdizC - Get rid of Calcification, Petrify,Charm, Sleep, Paralyze and Curse)
$03/D731 8D 04 27 STA $2704  [$7E:2704] A:0000 X:0001 Y:FFFF P:envMxdiZC -Store A in Target's Status Byte 2.
$03/D734 A9 10 LDA #$10 A:0000 X:0001 Y:FFFF P:envMxdiZC - Load 10 into A.
$03/D736 8D 3B 27 STA $273B  [$7E:273B] A:0010 X:0001 Y:FFFF P:envMxdizC - Store 7E273B into A. (Resets Speed? I had no idea that Heal actually reset speed! It does! That means Heal could actually work against you if you hasted this unit previously. Interesting...)
$03/D739 A5 CF LDA $CF    [$00:00CF] A:0010 X:0001 Y:FFFF P:envMxdizC - Load the value in CF into A.
$03/D73B 0A ASL A A:0001 X:0001 Y:FFFF P:envMxdizC - x2 A.
$03/D73C AA TAX A:0002 X:0001 Y:FFFF P:envMxdizc - Transfer A to X.
$03/D73D BD EB 29 LDA $29EB,x[$7E:29ED] A:0002 X:0002 Y:FFFF P:envMxdizc - Load Bitmask of Status.
$03/D740 29 E6 AND #$E6 A:0040 X:0002 Y:FFFF P:envMxdizc - ??
$03/D742 9D EB 29 STA $29EB,x[$7E:29ED] A:0040 X:0002 Y:FFFF P:envMxdizc - Store A in  Bitmask of Status.
$03/D745 A5 A9 LDA $A9    [$00:00A9] A:0040 X:0002 Y:FFFF P:envMxdizc - Load A from A9.
$03/D747 29 40 AND #$40 A:0000 X:0002 Y:FFFF P:envMxdiZc - Ignore Stop Timer?
$03/D749 D0 08 BNE $08    [$D753] A:0000 X:0002 Y:FFFF P:envMxdiZc - Branch if not 00 to 03D753.
$03/D74B A5 AA LDA $AA    [$00:00AA] A:0000 X:0002 Y:FFFF P:envMxdiZc - Load A from AA.
$03/D74D 29 30 AND #$30 A:0008 X:0002 Y:FFFF P:envMxdizc - ??
$03/D74F F0 1D BEQ $1D    [$D76E] A:0000 X:0002 Y:FFFF P:envMxdiZc - Branch if 00 to 03D76E
-------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------
$03/D76E A5 A9 LDA $A9    [$00:00A9] A:0000 X:0002 Y:FFFF P:envMxdiZc - Load A from A9.
$03/D770 29 08 AND #$08 A:0000 X:0002 Y:FFFF P:envMxdiZc - ??
$03/D772 F0 0E BEQ $0E    [$D782] A:0000 X:0002 Y:FFFF P:envMxdiZc - If 00 branch to 03D782
-----------------------------------------------------------------------------------

---------------------------------------------------------------------------------------
$03/D782 60 RTS A:0000 X:0002 Y:FFFF P:envMxdiZc - Return.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(Accessed only by Status Healing that is not the Heal Spells)
$03/D783 AD 03 27 LDA $2703  [$7E:2703] A:004B X:0016 Y:0000 P:eNvMxdizc - Load Target's Status Byte 1.
$03/D786 85 8A STA $8A    [$00:008A] A:0000 X:0016 Y:0000 P:envMxdiZc - Store A in 8A.
$03/D788 2D A3 28 AND $28A3  [$7E:28A3] A:0000 X:0016 Y:0000 P:envMxdiZc - Add the value from Skill's Status Byte 1 onto A, if applicable.
$03/D78B 8D 03 27 STA $2703  [$7E:2703] A:0000 X:0016 Y:0000 P:envMxdiZc - Store A in Target's Status Byte 1.
$03/D78E AD 04 27 LDA $2704  [$7E:2704] A:0000 X:0016 Y:0000 P:envMxdiZc - Load Target's Status Byte 2 onto A.
$03/D791 85 8B STA $8B    [$00:008B] A:0000 X:0016 Y:0000 P:envMxdiZc - Store A in 8B.
$03/D793 2D A4 28 AND $28A4  [$7E:28A4] A:0000 X:0016 Y:0000 P:envMxdiZc - Add the value from Skill's Status Byte 2 onto A, if applicable.
$03/D796 8D 04 27 STA $2704  [$7E:2704] A:0000 X:0016 Y:0000 P:envMxdiZc - Store A in Target's Status Byte 2.
$03/D799 AD A3 28 LDA $28A3  [$7E:28A3] A:0000 X:0016 Y:0000 P:envMxdiZc - Load value from Skill's Status 1 into A.
$03/D79C 49 FF EOR #$FF A:00FE X:0016 Y:0000 P:eNvMxdizc - Exclusive Or onto A.
$03/D79E 85 8C STA $8C    [$00:008C] A:0001 X:0016 Y:0000 P:envMxdizc - Store A in 8C.
$03/D7A0 AD A4 28 LDA $28A4  [$7E:28A4] A:0001 X:0016 Y:0000 P:envMxdizc - Load A from 7E28A4.
$03/D7A3 49 FF EOR #$FF A:00FF X:0016 Y:0000 P:eNvMxdizc - Exclusive Or onto A.
$03/D7A5 85 8D STA $8D    [$00:008D] A:0000 X:0016 Y:0000 P:envMxdiZc - Store A in 8D
$03/D7A7 A5 8A LDA $8A    [$00:008A] A:0000 X:0016 Y:0000 P:envMxdiZc - Load A from 8A.
$03/D7A9 29 01 AND #$01 A:0000 X:0016 Y:0000 P:envMxdiZc - Erase all but Poison
$03/D7AB F0 12 BEQ $12    [$D7BF] A:0000 X:0016 Y:0000 P:envMxdiZc - If 00 branch to 03D7BF.
--------------------------------------------------------------------------------------------------------------------------
$03/D7AD A5 8C LDA $8C    [$00:008C] A:0001 X:0016 Y:0000 P:envMxdizc - Load A from 8C.
$03/D7AF 29 01 AND #$01 A:0001 X:0016 Y:0000 P:envMxdizc - Erase all but Poison.
$03/D7B1 F0 0C BEQ $0C    [$D7BF] A:0001 X:0016 Y:0000 P:envMxdizc - Branch if 00 to 03D7BF.
$03/D7B3 A5 CF LDA $CF    [$00:00CF] A:0001 X:0016 Y:0000 P:envMxdizc - Load A from CF.
$03/D7B5 0A ASL A A:0000 X:0016 Y:0000 P:envMxdiZc - x2 A.
$03/D7B6 AA TAX A:0000 X:0016 Y:0000 P:envMxdiZc - Transfer A to X.
$03/D7B7 BD EB 29 LDA $29EB,x[$7E:29EB] A:0000 X:0000 Y:0000 P:envMxdiZc - Load A from Bitmask of Status.
$03/D7BA 29 EF AND #$EF A:0050 X:0000 Y:0000 P:envMxdizc - Place-10 to it.
$03/D7BC 9D EB 29 STA $29EB,x[$7E:29EB] A:0040 X:0000 Y:0000 P:envMxdizc - Store A in Bitmask of Status.
----------------------------------------------------------------------------------------------------------------------------
$03/D7BF A5 8A LDA $8A    [$00:008A] A:0000 X:0016 Y:0000 P:envMxdiZc - Load A from 8A.
$03/D7C1 29 40 AND #$40 A:0000 X:0016 Y:0000 P:envMxdiZc - Erase all but Stone.
$03/D7C3 F0 11 BEQ $11    [$D7D6] A:0000 X:0016 Y:0000 P:envMxdiZc - Branch if 00 to 03D7D6.
--------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------
$03/D7D6 A5 8B LDA $8B    [$00:008B] A:0000 X:0016 Y:0000 P:envMxdiZc - Load A from 8B.
$03/D7D8 29 30 AND #$30 A:0000 X:0016 Y:0000 P:envMxdiZc - Erase all but Sleep and Paralyze.
$03/D7DA F0 15 BEQ $15    [$D7F1] A:0000 X:0016 Y:0000 P:envMxdiZc - Branch if 00 to 03D7F1.
------------------------------------------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------------------------------------------
$03/D7F1 A5 8B LDA $8B    [$00:008B] A:0000 X:0016 Y:0000 P:envMxdiZc - Load A from 8B.
$03/D7F3 29 08 AND #$08 A:0000 X:0016 Y:0000 P:envMxdiZc - Erase all but Charm.
$03/D7F5 F0 1A BEQ $1A    [$D811] A:0000 X:0016 Y:0000 P:envMxdiZc - Branch if 00 to 03D811.
--------------------------------------------------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------------------------------------------------
$03/D811 A5 8B LDA $8B    [$00:008B] A:0000 X:0016 Y:0000 P:envMxdiZc - Load A from 8B.
$03/D813 29 03 AND #$03 A:0000 X:0016 Y:0000 P:envMxdiZc - Erase all but Calcify and Petrify.
$03/D815 F0 12 BEQ $12    [$D829] A:0000 X:0016 Y:0000 P:envMxdiZc - Branch if 00 to 03D829.
-----------------------------------------------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------------------------------------------------
$03/D829 60 RTS A:0000 X:0016 Y:0000 P:envMxdiZc





There's a few things I simply don't have the knowledge to access or fathom their purpose. That said this was informative. I at least learned that Heal resets Speed. This means that you could potentially use that against Cagnazzo when he uses Haste.

Come to think of it, I guess it was always a given that Heal was special, considering it has nothing in its information for its actual spell. Well that solves that ?mystery?.

 :edit: Generic healing spells and healing items go through a completely different process as labeled above. The stuff at the end likely relates to timers, I'd imagine.

955
Post above updated with comments on the various links to the Menus.

956
Hmm... how do I say this without sound like a complete idiot...

I can understand 65816 ASM for the most part, this is due to over a decade dabbling in hacking and ASM. Starting with Zelda 64 way back in the day, then Final Fantasy Tactics for several years, then I started to take a serious look at FFIV and with the knowledge I learned from that I went back to Zelda 64 where I cracked open some pretty important findings then came back here where now I can read the ASM as if they were words on a page.

But I am Terrible at Math, to be honest I'm not even sure what is meant by a cubic function for experience data as a function of level. I think it may mean that something is being put to the 4th Power? But when it comes to Math, I am a bit of a dunce...

As for what I used for reference, that would be... http://wiki.superfamicom.org/snes/show/65816+Reference

It really helped (and continues to help me) understand the more obscure commands or things that I wasn't sure of. For nearly ten years I was under the impression that BEQ/BNE/ and all of that was referring to if it was equal to some value and knew nothing about CMP's until I started to work with FFIV. Quite embarassing.

But I will take a look at the data if you'd like me to. Maybe I can make some sense out of it... possibly.

Now that is a quickly rotating byte! But what is this data...? I never gave thought to the functions before the Main Stats, there's quite a bit of specifics here it seems.

Thanks for this lead though. It might just be a catalyst down the line.


957
I love Magic Swordskills in video games and especially in Final Fantasy. With a routine which took me... a minute to cook up, I changed Blast's small routine(could probably even go somewhere smaller) to make this, it's a very simple routine which loads a Weapon Swing before the spell effect to simulate a Magic Sword.

Code: [Select]
$03/DCF0 A9 C0 LDA #$C0 A:0003 X:0046 Y:FFFF P:envMxdizc - Load Weapon Swing into A.
$03/DCF2 8D C4 33 STA $33C4  [$7E:33C4] A:00C0 X:0046 Y:FFFF P:eNvMxdizc - Store A in Audio/visual commands.
$03/DCF5 4C 88 D3 JMP $D388  [$03:D388] A:00C0 X:0046 Y:FFFF P:eNvMxdizc - Jump to Magic Routine.


Now maybe we can turn Cecil into a Paladin that Agrias would be proud of!

When you come down to it, there's a good amount of magic sets available. There is of course, Unused Kain and though possibly controversial, changing Porom's spellset and linking it to Rosa's for cost saving purposes could be done, and then there's FuSoYa's Complete Spell Sets. Hey game, do you know who already Has a nearly complete spell set for Black and White? That's right! Tellah! So use his spell sets for FuSoYa's and you can add in the missing spells through FuSoYa's entrance event.

That gives four extra spell-sets to play around with. Maybe not an ideal number, but it is better than none.


Now in larger news I am very close to figuring out what constitutes a menu opening!

Fight Command Access

Code: [Select]
$02/B9C1 C9 18 CMP #$18 A:0000 X:0000 Y:0006 P:eNvMxdIzc - Is it Ninja?
$02/B9C3 F0 64 BEQ $64    [$BA29] A:0000 X:0000 Y:0006 P:eNvMxdIzc - If so branch to Black Magic Menu.
$02/B9C5 C9 05 CMP #$05 A:0000 X:0000 Y:0006 P:eNvMxdIzc - Is it Dark Wave?
$02/B9C7 90 03 BCC $03    [$B9CC] A:0000 X:0000 Y:0006 P:eNvMxdIzc - If greater than Dark Wave use secondary Access Routine.
$02/B9CC 0A ASL A A:0000 X:0000 Y:0006 P:eNvMxdIzc - x2 A (to reach the proper address.)
$02/B9CD AA TAX A:0000 X:0000 Y:0006 P:envMxdIZc - Transfer A to X.
$02/B9CE BF E6 B9 02 LDA $02B9E6,x[$02:B9E6] A:0000 X:0000 Y:0006 P:envMxdIZc - Load Pointer from 02B9E6.
$02/B9D2 85 0E STA $0E    [$00:000E] A:00F2 X:0000 Y:0006 P:eNvMxdIzc - Store A in 0E.
$02/B9D4 BF E7 B9 02 LDA $02B9E7,x[$02:B9E7] A:00F2 X:0000 Y:0006 P:eNvMxdIzczc - Load A from 02B9E7.
$02/B9D8 85 0F STA $0F    [$00:000F] A:00B9 X:0000 Y:0006 P:eNvMxdIzc - Store A in 0F.
$02/B9DA 6C 0E 00 JMP ($000E)[$02:B9F2] A:00B9 X:0000 Y:0006 P:eNvMxdIzc - Jump to Fight Access Routine.

White Magic Command Access

Code: [Select]
$02/B9C5 C9 05 CMP #$05 A:0002 X:0004 Y:0000 P:eNvMxdIzc - Is it Dark Wave?
$02/B9C7 90 03 BCC $03    [$B9CC] A:0002 X:0004 Y:0000 P:eNvMxdIzc - If greater than Dark Wave, branch to
$02/B9CC 0A ASL A A:0002 X:0004 Y:0000 P:eNvMxdIzc - x2 A.
$02/B9CD AA TAX A:0004 X:0004 Y:0000 P:envMxdIzc - Transfer A to X
$02/B9CE BF E6 B9 02 LDA $02B9E6,x[$02:B9EA] A:0004 X:0004 Y:0000 P:envMxdIzc - Load A from 02B9E6+X.
$02/B9D2 85 0E STA $0E    [$00:000E] A:001C X:0004 Y:0000 P:envMxdIzc - Store A in 0E
$02/B9D4 BF E7 B9 02 LDA $02B9E7,x[$02:B9EB] A:001C X:0004 Y:0000 P:envMxdIzc - Load A from 02B9E7+X
$02/B9D8 85 0F STA $0F    [$00:000F] A:00BA X:0004 Y:0000 P:eNvMxdIzc - Store A in 0F.
$02/B9DA 6C 0E 00 JMP ($000E)[$02:BA1C] A:00BA X:0004 Y:0000 P:eNvMxdIzc - Jump to White Magic Access routine.

This is going to lead to an entirely new area to explore! Though for now I have confirmed that it works in a simple manner.

0000 - Fight
0001(turns to 2) - Item
0002(turns to 4) - White Magic
0003(turns to 6) - Black Magic
0004(turns to 8) - Summon Magic

The trick to All of this is what lays at 02B9E6...

And lo and behold, it is pointers to addresses!


F2 B9 - Fight
05 BA - Item
1C BA - White
29 BA - Black
36 BA - Summon
43 BA - ?? (Fight again?)

Fight Access Call
Code: [Select]
$02/B9F2 A9 80 LDA #$80 A:00B9 X:0000 Y:0004 P:eNvMxdIzc - Load 80 into A.
$02/B9F4 85 D8 STA $D8    [$00:00D8] A:0080 X:0000 Y:0004 P:eNvMxdIzc - Store A in D8.
$02/B9F6 A5 60 LDA $60    [$00:0060] A:0080 X:0000 Y:0004 P:eNvMxdIzc - Load A from 60.
$02/B9F8 85 D9 STA $D9    [$00:00D9] A:0000 X:0000 Y:0004 P:envMxdIZc - Store A in D9.
$02/B9FA A9 01 LDA #$01 A:0000 X:0000 Y:0004 P:envMxdIZc - Load 01 into A.
$02/B9FC 8D 91 EF STA $EF91  [$7E:EF91] A:0001 X:0000 Y:0004 P:envMxdIzc - Store A in 7EEF91.
$02/B9FF A9 04 LDA #$04 A:0001 X:0000 Y:0004 P:envMxdIzc - Load 04 into A.
$02/BA01 8D 23 18 STA $1823  [$7E:1823] A:0004 X:0000 Y:0004 P:envMxdIzc - Load this into Targeting matters.
$02/BA04 60 RTS A:0004 X:0000 Y:0004 P:envMxdIzc - Return.

Item Access Call

Code: [Select]
$02/BA05 9C 9A EF STZ $EF9A  [$7E:EF9A] A:00BA X:0002 Y:0000 P:eNvMxdIzc - Store Zer in 7EEF9A.
$02/BA08 A9 05 LDA #$05 A:00BA X:0002 Y:0000 P:eNvMxdIzc - Load 05 into A.
$02/BA0A 8D 23 18 STA $1823  [$7E:1823] A:0005 X:0002 Y:0000 P:envMxdIzc - Load this into Targeting matters.
$02/BA0D 9C 94 EF STZ $EF94  [$7E:EF94] A:0005 X:0002 Y:0000 P:envMxdIzc - Store Zero into 7EEF94.
$02/BA10 9C 97 EF STZ $EF97  [$7E:EF97] A:0005 X:0002 Y:0000 P:envMxdIzc - Store Zero into 7EEF97.
$02/BA13 9C 98 EF STZ $EF98  [$7E:EF98] A:0005 X:0002 Y:0000 P:envMxdIzc - Store Zero into 7EEF98
$02/BA16 9C 99 EF STZ $EF99  [$7E:EF99] A:0005 X:0002 Y:0000 P:envMxdIzc (as above_
$02/BA19 4C E2 AA JMP $AAE2  [$02:AAE2] A:0005 X:0002 Y:0000 P:envMxdIzc - Jump to 02AAE2.

White Magic Access Call
Code: [Select]
$02/BA1C A9 00 LDA #$00 A:00BA X:0004 Y:0000 P:eNvMxdIzc -  - Load 00 into A (Spell Menu Position)
$02/BA1E 8D 93 EF STA $EF93  [$7E:EF93] A:0000 X:0004 Y:0000 P:envMxdIZc - Store A in 7EEF93.
$02/BA21 A9 09 LDA #$09 A:0000 X:0004 Y:0000 P:envMxdIZc - Load 09 into A
$02/BA23 8D 23 18 STA $1823  [$7E:1823] A:0009 X:0004 Y:0000 P:envMxdIzc - Store A in Targeting Matters.
$02/BA26 4C 57 AB JMP $AB57  [$02:AB57] A:0009 X:0004 Y:0000 P:envMxdIzc - Jump to 02AB57.

Black Magic Access Call

Code: [Select]
$02/BA29 A9 60 LDA #$60 A:00BA X:0006 Y:0000 P:eNvMxdIzc - Load 60 into A (Spell Menu Position)
$02/BA2B 8D 93 EF STA $EF93  [$7E:EF93] A:0060 X:0006 Y:0000 P:envMxdIzc - Store A in 7EEF93.
$02/BA2E A9 09 LDA #$09 A:0060 X:0006 Y:0000 P:envMxdIzc - Load 09 into A.
$02/BA30 8D 23 18 STA $1823  [$7E:1823] A:0009 X:0006 Y:0000 P:envMxdIzc - Store A in Targeting Matters.
$02/BA33 4C 77 AB JMP $AB77  [$02:AB77] A:0009 X:0006 Y:0000 P:envMxdIzc - Jump to 02AB77.

Summon Magic Access Call

Code: [Select]
$02/BA36 A9 C0 LDA #$C0 A:00BA X:0008 Y:0000 P:eNvMxdIzc - Load C0 into A (Spell Menu Position)
$02/BA38 8D 93 EF STA $EF93  [$7E:EF93] A:00C0 X:0008 Y:0000 P:eNvMxdIzc - Store A in 7EEF93.
$02/BA3B A9 09 LDA #$09 A:00C0 X:0008 Y:0000 P:eNvMxdIzc - Load 09 into A.
$02/BA3D 8D 23 18 STA $1823  [$7E:1823] A:0009 X:0008 Y:0000 P:envMxdIzc - Store A in Targeting Matters.
$02/BA40 4C 98 AB JMP $AB98  [$02:AB98] A:0009 X:0008 Y:0000 P:envMxdIzc - Jump to 02AB98.

Most Other Commands Access Call

Code: [Select]
$02/BA43 A9 80 LDA #$80 A:00BA X:000A Y:0004 P:eNvMxdIzc - Load 80 into A.
$02/BA45 85 D8 STA $D8    [$00:00D8] A:0080 X:000A Y:0004 P:eNvMxdIzc - Store A in D8.
$02/BA47 A5 60 LDA $60    [$00:0060] A:0080 X:000A Y:0004 P:eNvMxdIzc - Load 60 into A.
$02/BA49 85 D9 STA $D9    [$00:00D9] A:0000 X:000A Y:0004 P:envMxdIZc - Store A in D9.
$02/BA4B A9 01 LDA #$01 A:0000 X:000A Y:0004 P:envMxdIZc - Load 01 into A.
$02/BA4D 8D 91 EF STA $EF91  [$7E:EF91] A:0001 X:000A Y:0004 P:envMxdIzc - Store A 7EEF91.
$02/BA50 A9 07 LDA #$07 A:0001 X:000A Y:0004 P:envMxdIzc - Load 07  into A.
$02/BA52 8D 23 18 STA $1823  [$7E:1823] A:0007 X:000A Y:0004 P:envMxdIzc - Load A into Targeting Matters.
$02/BA55 60 RTS A:0007 X:000A Y:0004 P:envMxdIzc - Return.

Now Ninja is handled a little differently. Ninja is looked at...
$02/B9C1   C9 18   CMP #$18   A:0000   X:0000   Y:0006   P:eNvMxdIzc -
$02/B9C3   F0 64   BEQ $64    [$BA29]   A:0000   X:0000   Y:0006   P:eNvMxdIzc - Here.

And as we know from above that links Directly to Black Magic. Right before this is a CMP 16 which must look at the Dart Menu.

Now interestingly enough though there is a Special unique formula for Dark Wave... but its never used. The only difference in this data is a 07 instead of a 04. Now modifying this, it seems to be targeting in someway...

00 - Cursor vanishes
01 - Cursor stays on Command
02 - Seems to force the cursor left onto the Parry Command, causing the Parry Command to be shown throughout the fight.
03 - Same as above, except with Change.
04 - Normal Targeting
05 - Targeting as if from Item Menu (with normal command menu still showing, causes graphical anomalies)
06 - Freeze
07 - Normal Targeting as far as I can tell.
08 - Auto-Attack on Self
09 - Magic Menu Targeting
0A - Forces open the Black Magic Menu over the Commands and HP of characters, with the selections still being the commands.


I will fill in the data above tomorrow. It is very late where I am and this information was discovered last minute and I just couldn't leave it hanging, hehe.

 :edit: Bah, I need sleep...

Dark Wave Access

Code: [Select]
(Same as Above)
$02/B9C5 C9 05 CMP #$05 A:0005 X:0004 Y:0004 P:eNvMxdIzc
$02/B9C7 90 03 BCC $03    [$B9CC] A:0005 X:0004 Y:0004 P:envMxdIZC
$02/B9C9 4C 43 BA JMP $BA43  [$02:BA43] A:0005 X:0004 Y:0004 P:envMxdIZC
---------------------------------------------------------------------------------------------------
$02/BA43 A9 80 LDA #$80 A:0005 X:0004 Y:0004 P:envMxdIZC
$02/BA45 85 D8 STA $D8    [$00:00D8] A:0080 X:0004 Y:0004 P:eNvMxdIzC
$02/BA47 A5 60 LDA $60    [$00:0060] A:0080 X:0004 Y:0004 P:eNvMxdIzC
$02/BA49 85 D9 STA $D9    [$00:00D9] A:0001 X:0004 Y:0004 P:envMxdIzC
$02/BA4B A9 01 LDA #$01 A:0001 X:0004 Y:0004 P:envMxdIzC
$02/BA4D 8D 91 EF STA $EF91  [$7E:EF91] A:0001 X:0004 Y:0004 P:envMxdIzC
$02/BA50 A9 07 LDA #$07 A:0001 X:0004 Y:0004 P:envMxdIzC
$02/BA52 8D 23 18 STA $1823  [$7E:1823] A:0007 X:0004 Y:0004 P:envMxdIzC
$02/BA55 60 RTS A:0007 X:0004 Y:0004 P:envMxdIzC

Wait! This is the same exact thing as 05? Why doesn't it just go down the normal line then?! Bah...

Dart Command Access

Code: [Select]
(Same as Item Above)
$02/B9DE A9 08 LDA #$08 A:0016 X:0008 Y:0004 P:envMxdIZC -
$02/B9E0 8D 9A EF STA $EF9A  [$7E:EF9A] A:0008 X:0008 Y:0004 P:envMxdIzC
$02/B9E3 4C 08 BA JMP $BA08  [$02:BA08] A:0008 X:0008 Y:0004 P:envMxdIzC
-----------------------------------------------------------------------------------------------
$02/BA08 A9 05 LDA #$05 A:0008 X:0008 Y:0004 P:envMxdIzC
$02/BA0A 8D 23 18 STA $1823  [$7E:1823] A:0005 X:0008 Y:0004 P:envMxdIzC
$02/BA0D 9C 94 EF STZ $EF94  [$7E:EF94] A:0005 X:0008 Y:0004 P:envMxdIzC
$02/BA10 9C 97 EF STZ $EF97  [$7E:EF97] A:0005 X:0008 Y:0004 P:envMxdIzC
$02/BA13 9C 98 EF STZ $EF98  [$7E:EF98] A:0005 X:0008 Y:0004 P:envMxdIzC
$02/BA16 9C 99 EF STZ $EF99  [$7E:EF99] A:0005 X:0008 Y:0004 P:envMxdIzC
$02/BA19 4C E2 AA JMP $AAE2  [$02:AAE2] A:0005 X:0008 Y:0004 P:envMxdIzC

Same as Item Access, I guess that was to be expected. That felt like a waste of 10 minutes editing that I could have used on sleep, hehe.

958
That is very ambitious! The Level-up system has given me my own kind of headaches, and I would honestly just trade the whole thing for 99 levels of random level ups as FFI did. But I am a lover of the Random (don't get me started how much I absolutely hate FFIV's AI because randomness is not even a possibility, despite it being a large part of FF AI until FFIV.) I still need to think of a way to randomize location and hook together something so the enemy index goes up +1 each map, maybe use that faux random chart from 1900-19FF for my Roguelike project... But I'm digressing...

How long is the code? Chillyfeez found some spare code at "the last ~110 (hex) bytes in the 30000s (LoROM) are free." But... that's battle normally. We don't know how the game would react in certain circumstances when forced to use data from possibly a different bank.

I'm a bit fuzzy on the particulars of where this is all located though, such as where are all these pointers and the like? Perhaps just manually switching the pointers to the Level 70+ data might do what I'm looking to accomplish.

959
Ah, yeah those are all reasonable thoughts. Ah well, looking forward to the release anyhow!

960
Hmm, any more suggestions on what I should look up? Left to my own devices I ordinarily just procrastinate on matters or try to make a new ability or something, but when I have a focused goal I can go a decent way to accomplish it.