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

991
Sounds good. Thanks for taking a look at this for me as well. The last thing I want to present is unnecessarily long code.

992
Indeed, 80 is Undead because its used in a bunch of "If Undead..." checks and it doesn't use CMP 80 but BMI or BPL
.

I think at times Yousei may have been mixing himself up. In one document he has...

bit 0 fire
bit 1 ice
bit 2 lightning
bit 3 darkness
bit 4 sacred
bit 5 spears/arrows
bit 6 drain
bit 7 (for armors) immunity to elements for which the bits are set, otherwise
    unknown

And in another he has...

bit 0: immune to elements
        bit 1: absorbs elements
        bit 2: resists elements
        bit 3: sacred
        bit 4: darkness
        bit 5: lightning
        bit 6: ice
        bit 7: fire

When from a technical standpoint we should know that they are reversed.

80 is Undead, 40 is Mage, etc.

993
This seems pretty good! I especially like the looping matters. My only concern towards this is...

How is it starting in reverse? The Natural Order of Monsters goes... Dragon, Robot, Reptile, Spirit, Giant, Slime, Mage, Zombie...

The way your script seems to work would be to go (Less than 20 Wisdom) Dragon, and the A would be multiplied until at 80 Wisdom Undead is added...

Now, what if this is done instead...?


Code: [Select]
$03/D8C6 A9 80       [b]LDA #$80               ;load 80 into A[/b]
$03/D8C8 E0 00 00    CPX #$0000              ;Compare X with 0000
$03/D8CB F0 05       BEQ $05    [$D8D2]      ;if X is 0000 (first time around, this means caster's wisdom is less than 20), then skip ahead to 03/D8D2
$03/D8CD CA          DEX                     ;Decrease X by 1
$03/D8CE 4A         [b] LSR A                   ;Divide A by 2, or more appropriately here, shift the bits in A one spot to the right[/b]
$03/D8CF 1A          INC A                   ;increase A by 1, or more appropriately here, set A's bit 0 to 1 [b](Not sure what to do with this one in this arrangement)[/b]
$03/D8D0 80 F6       BRA $F6    [$D8C8]      ;Loop back up to 03/D8C8
$03/D8D2 0D 1A 27    ORA $271A  [$7E:271A]   ;OR A with Target's "strong against" byte
$03/D8D5 8D 1A 27    STA $271A  [$7E:271A]   ;Store A in target's "strong against" byte
$03/D8D8 60          RTS

Since the original code you have set up seems to go with the normal order 01 to 80 rather than 80 to 01.

994
Uh... wow, how did I write that whole thing and not even realize how Silly that seems? Yes it's supposed be Caster's Wisdom, not Target's Wisdom, haha! Good catch.

995
From an editing standpoint, I find the initial races to be rather silly and underused. I once did a count and roughly 60% of the enemies in the game (not counting bosses) have a race and those that do are few and far between, here's some info. I wrote up about it a while back...

19 Reptile (+0 Bosses)
14 Mage (+4 Bosses)
13 Zombie (+2 Bosses)
6 Slime (+0 Bosses)
5 Spirit (+0 Bosses)
13 Dragon (+1 Bosses)
8 Giant (+0 Bosses)
9 Robots (+2 Robots)

61 Bosses (give or take the Dummy's)

161 Enemies

20/160 = 1/8
15/160 = 1/11
15/160 = 1/11
06/160 = 1/27
05/160 = 1/27
15/160 = 1/11
08/160 = 1/20
09/160 = 1/19

87/160 Enemies have a Creature Type, and they most comprise a pathetic amount of enemies. I think Races need an overhaul all around or more foes need to be labeled as one of the existing races. And this is where races.dat would come in handy indeed.

996
Ah, the reason I put it that way was to keep it useful through the entire game rather than lulls off in usefulness or is a little too overpowered. That's the problem with Slime being a bit early, it could make Flans not very threatening. But perhaps at 70 Wisdom it comes too late... and if you can squeeze the instructions down a bit so that it can occupy another spot and not Dispel, per se that might be for the best as well.

Sure, the natural order might work better from an efficiency stand point.


997
I was looking at FFIII DS's commands and some of them are rather neat. I've tried to port a couple of them into FFIV while keeping the spirit of the original command alive starting with Advance (now renamed Advnc).

In FFIII DS this increases your attack power and lowers your defense dependent on how high your job level is. In FFIV I decided to change it so that it your attack power will increase dependent on your current Strength and will subtract your Strength from your defense. To prevent stacking this, when it is used the command changes (invisibly) to Parry, so it cannot be stacked.

Code: [Select]
$03/E876 A6 A6 LDX $A6    [$00:00A6] A:0003 X:0012 Y:0000 P:envMxdizc - Load User's Position into X.
$03/E878 A9 09 LDA #$09 A:0003 X:0000 Y:0000 P:envMxdiZc - Load 09 into A (Graphic for Berserk)
$03/E87A 8D C4 33 STA $33C4  [$7E:33C4] A:0009 X:0000 Y:0000 P:envMxdizc - Store A in Audiovisual Code.
$03/E87D BD 14 20 LDA $2014,x[$7E:2014] A:0009 X:0000 Y:0000 P:envMxdizc - Load User's Modified Strength into A.
$03/E880 7D 1D 20 ADC $201D,x[$7E:201D] A:000D X:0000 Y:0000 P:envMxdizc - Add User's Attack Base into A.
$03/E883 C9 FF CMP #$FF A:002E X:0000 Y:0000 P:envMxdizc - Is it above 255?
$03/E885 90 02 BCC $02    [$E889] A:002E X:0000 Y:0000 P:envMxdizc - If not branch to 03E889
-------------------------------------------------------------------------------------------------------------------------
(Code here to set Attack to FF) A9 FF
------------------------------------------------------------------------------------------------------------------------
$03/E889 8D 1D 20 STA $201D  [$7E:201D] A:002E X:0000 Y:0000 P:envMxdizc - Store A in User's Attack Base.
$03/E88C BD 2A 20 LDA $202A,x[$7E:202A] A:002E X:0000 Y:0000 P:envMxdizc - Load User's Defense Base into A.
$03/E88F FD 14 20 SBC $2014,x[$7E:2014] A:0011 X:0000 Y:0000 P:envMxdizc - Subtract A from User's Strength.
$03/E892 B0 02 BCS $02    [$E896] A:0003 X:0000 Y:0000 P:envMxdizC - If more than 00 branch to 03E896.
--------------------------------------------------------------------------------------------------------------------------
(Code here to set Defense to 01) A9 01
----------------------------------------------------------------------------------------------------------------------------
$03/E896 8D 2A 20 STA $202A  [$7E:202A] A:0003 X:0000 Y:0000 P:envMxdizC - Store A in User's Defense Base.
$03/E899 A9 1B LDA #$1B A:0003 X:0000 Y:0000 P:envMxdizC - Load 1B (Parry) into A.
$03/E89B 9D 0F 33 STA $330F,x[$7E:330F] A:001B X:0000 Y:0000 P:envMxdizC - Store A in Advnc's current position.
$03/E89E 60 RTS A:001B X:0000 Y:0000 P:envMxdizC - Return.

And this works absolutely flawlessly! It keeps the spirit of the FFIII Command (using Strength instead of Job Level) and goes on from there.

Unfortunately most of the other commands seem a bit beyond me (Barrage seems neat, with 4 random attacks using 4 arrows, but having it target random foes is tricky as is multiple attacks) and Geomancy is a bit silly in a game where 75% of the game is Caves) and while I would Love to include some form of Item Lore, there's really no room in the Magic Formula where it counts. It wouldn't be difficult to combine FFIII DS's version of Scan with FFIV's Command. Maybe next I'll try to tackle some FFIV-TAY abilities. Piercing Sight was always one of my favorite from a thematic basis.


998
Final Fantasy II (The Real Final Fantasy II) was an interesting experiment with some good ideas here and there.

I was looking through their spells and came across a very interesting Black Magic which seems like it would be a neat addition to FFIV.

Aura - Aura is a Black Magic spell that adds elements to physical attacks depending on its level. Any character can learn Aura by the use of Aura Tome (called the Aura Scroll in the Origins release).

Aura adds the following effects per success:

1: Extra damage vs. Magic Beasts
2: Extra damage vs. Aquatic
3: Extra damage vs. Earth
4: Extra damage vs. Giants
5: Extra damage vs. Spellcasters
6: Extra damage vs. Dragon
7: Extra damage vs. Werebeasts

This is a very creative and absolutely fascinating idea! I think it would fit perfectly in FFIV with a bit of a different execution...

Every 10 Wisdom will enable a new addition to the effectiveness of the spell so...

Default - x4 Zombie (Add 80)
20 Wisdom - x4 Mage (Add C0)
30 Wisdom - x4 Spirit (Add C8)
40 Wisdom - x4 Robot (Add CA)
50 Wisdom - x4 Reptile (Add CE)
60 Wisdom - x4 Giant (Add DE)
70 Wisdom - x4 Slime (Add FE)
80 Wisdom - x4 Dragon (Add FF)

Now I've built code but for some reason it doesn't work. It makes the game hang, but not outright crash and I can't figure out why... (Currently replacing Dispel for testing purposes)

Code: [Select]
$03/D8B0 EA NOP A:0003 X:0020 Y:0000 P:envMxdizc - NOP (Not used in the final, just a remnant and has been replaced. Is not the issue)
$03/D8B1 E2 10 SEP #$10 A:0003 X:0020 Y:0000 P:envMxdizc - Set Processor to 8 bit (so X only reads one byte instead f 2)
$03/D8B3 AD 18 27 LDA $2717  [$7E:2717] A:0003 X:0020 Y:0000 P:envMXdizc - Load Target's Wisdom into A.
$03/D8B6 A2 80 LDX #$80 A:0063 X:0020 Y:0000 P:envMXdizc - Load 80 into X (Strong against Zombies)
$03/D8B8 C9 14 CMP #$14 A:0063 X:0080 Y:0000 P:eNvMXdizc - Compare to 20 (20 Wisdom)
$03/D8BA 90 26 BCC $26    [$D8E2] A:0063 X:0080 Y:0000 P:envMXdizC - Branch if less to 03D8E2 (X being placed into Strong vs. Creature Type byte.)
$03/D8BC A2 C0 LDX #$C0 A:0063 X:0080 Y:0000 P:envMXdizC - Load C0 into X.
$03/D8BE C9 1E CMP #$1E A:0063 X:00C0 Y:0000 P:eNvMXdizC - Compare to 30.
$03/D8C0 90 20 BCC $20    [$D8E2] A:0063 X:00C0 Y:0000 P:envMXdizC - Branch if less to 03D8E2.
$03/D8C2 A2 C8 LDX #$C8 A:0063 X:00C0 Y:0000 P:envMXdizC - Load C8 into X.
$03/D8C4 C9 28 CMP #$28 A:0063 X:00C8 Y:0000 P:eNvMXdizC - Compare to 40.
$03/D8C6 90 1A BCC $1A    [$D8E2] A:0063 X:00C8 Y:0000 P:envMXdizC - Branch if less to 03D8E2.
$03/D8C8 A2 CA LDX #$CA A:0063 X:00C8 Y:0000 P:envMXdizC - Load CA into X.
$03/D8CA C9 32 CMP #$32 A:0063 X:00CA Y:0000 P:eNvMXdizC - Compare to 50.
$03/D8CC 90 14 BCC $14    [$D8E2] A:0063 X:00CA Y:0000 P:envMXdizC - Branch if less to 03D8E2.
$03/D8CE A2 CE LDX #$CE A:0063 X:00CA Y:0000 P:envMXdizC - Load CE into X.
$03/D8D0 C9 3C CMP #$3C A:0063 X:00CE Y:0000 P:eNvMXdizC - Compare to 60.
$03/D8D2 90 0E BCC $0E    [$D8E2] A:0063 X:00CE Y:0000 P:envMXdizC - Branch if less to 03D8E2.
$03/D8D4 A2 DE LDX #$DE A:0063 X:00CE Y:0000 P:envMXdizC - Load DE into X.
$03/D8D6 C9 46 CMP #$46 A:0063 X:00DE Y:0000 P:eNvMXdizC - Compare to 70.
$03/D8D8 90 08 BCC $08    [$D8E2] A:0063 X:00DE Y:0000 P:envMXdizC - Branch if less to 03D8E2.
$03/D8DA A2 FE LDX #$FE A:0063 X:00DE Y:0000 P:envMXdizC - Load FE into X.
$03/D8DC C9 50 CMP #$50 A:0063 X:00FE Y:0000 P:eNvMXdizC - Compare to 80
$03/D8DE 90 02 BCC $02    [$D8E2] A:0063 X:00FE Y:0000 P:envMXdizC - Branch if less to 03D8E2.
$03/D8E0 A2 FF LDX #$FF A:0063 X:00FE Y:0000 P:envMXdizC - Load FF into X.
$03/D8E2 8E 1A 27 STX $271A  [$7E:271A] A:0063 X:00FF Y:0000 P:eNvMXdizC - Store X in Strong vs. Creature Type Byte.
$03/D8E5 C2 10 REP #$10 A:0000 X:0080 Y:0000 P:envMXdiZc - Reset Processor Status from 8-Bit
$03/D8E7 60 RTS A:0063 X:00FF Y:0000 P:eNvMXdizC - Return

Now for some reason this doesn't appear to work. I've followed it in code and everything Should work right, it goes through the new formula without a whimper but it is never actually written to 271A and the game hangs from there on. The only thing I can figure is that SEP 10 which is crucial to having this keep the proper amount of space is wrecking the game somehow, despite it being put right back to 20.

Oh... I figured it out. I wanted to Reset the Processor Status of 10, not force a switch.

Alright! Looks like Aura works just as I had hoped!

Well that was fun and I learned a bit more about ASM in the process!



999
Code: [Select]
It's been a while since I delved into the coding, but I decided to take a look at how Auto-Cover works and I think I found Part of the answer.

$03/AFA8 AD 5E 35 LDA $355E  [$7E:355E] A:0081 X:0000 Y:0000 P:eNvMxdizC - Load Paladin Slot
$03/AFAB C5 CE CMP $CE    [$00:00CE] A:0000 X:0000 Y:0000 P:envMxdiZC - Compare it to Current Slot.
$03/AFAD F0 4C BEQ $4C    [$AFFB] A:0000 X:0000 Y:0000 P:eNvMxdizc - If the two are equal branch to 03AFFB (seems to be if it is "not allowed" to Cover.)
$03/AFAF AD 5E 35 LDA $355E  [$7E:355E] A:0000 X:0000 Y:0000 P:eNvMxdizc - Load Paladin Slot
$03/AFB2 20 89 84 JSR $8489  [$03:8489] A:0000 X:0000 Y:0000 P:envMxdiZc - Jump to Subroutine (unimportant for this)
$03/8489 8D 2F 35 STA $352F  [$7E:352F] A:0000 X:0000 Y:0000 P:envMxdiZc - Store A in 7E352F.
$03/848C 85 DF STA $DF    [$00:00DF] A:0000 X:0000 Y:0000 P:envMxdiZc - Store A in DF.
$03/848E A9 80 LDA #$80 A:0000 X:0000 Y:0000 P:envMxdiZc - Load 80 into A.
$03/8490 85 E1 STA $E1    [$00:00E1] A:0080 X:0000 Y:0000 P:eNvMxdizc - Store A in E1.
$03/8492 20 E0 83 JSR $83E0  [$03:83E0] A:0080 X:0000 Y:0000 P:eNvMxdizc - Jump to Subroutine (unimportant for this)
$03/83E0 64 E0 STZ $E0    [$00:00E0] A:0080 X:0000 Y:0000 P:eNvMxdizc - Store Zero in E0.
$03/AFB5 A6 A6 LDX $A6    [$00:00A6] A:0000 X:0000 Y:0000 P:envMxdiZc - Load X from A6 (Character Position)
$03/AFB7 BD 03 20 LDA $2003,x[$7E:2003] A:0000 X:0000 Y:0000 P:envMxdiZc - Load Coverer's Status Byte 1.
$03/AFBA 29 C0 AND #$C0 A:0000 X:0000 Y:0000 P:envMxdiZc - Are they Petrified or Dead?
$03/AFBC D0 38 BNE $38    [$AFF6] A:0000 X:0000 Y:0000 P:envMxdiZc - If so branch to 03AFF6.
$03/AFBE BD 04 20 LDA $2004,x[$7E:2004] A:0000 X:0000 Y:0000 P:envMxdiZc - Load Coverer's Status Byte 2.
$03/AFC1 29 3C AND #$3C A:0000 X:0000 Y:0000 P:envMxdiZc - Are they Berserk, Charm, Sleep, or Paralyzed?
$03/AFC3 D0 31 BNE $31    [$AFF6] A:0000 X:0000 Y:0000 P:envMxdiZc - If so branch to 03AFF6.
$03/AFC5 BD 05 20 LDA $2005,x[$7E:2005] A:0000 X:0000 Y:0000 P:envMxdiZc - Load Coverer's Status Byte 3.
$03/AFC8 29 50 AND #$50 A:0000 X:0000 Y:0000 P:envMxdiZc - Are they ?Defending? or Stopped?
$03/AFCA D0 2A BNE $2A    [$AFF6] A:0000 X:0000 Y:0000 P:envMxdiZc - If so branch to 03AFF6.
$03/AFCC BD 06 20 LDA $2006,x[$7E:2006] A:0000 X:0000 Y:0000 P:envMxdiZc - Load Coverer's Status Byte 4.
$03/AFCF 29 01 AND #$01 A:0000 X:0000 Y:0000 P:envMxdiZc - Are they in Critical?
$03/AFD1 D0 23 BNE $23    [$AFF6] A:0000 X:0000 Y:0000 P:envMxdiZc - If so branch to 03AFF6.

That's the important parts of it, but I might be missing necessary portions that could be used to modify it effectively.


1000
A slight addendum to Chillyfeez's positively ancient "changing the effects of call items" thread.

I said then that Child Rydia was the only one looked at... which after all this time I've realized that makes No sense. Taking another look at the data I found that the check for Adult Rydia is right next to it

Code: [Select]
$01/9010 BF 25 C6 0F LDA $0FC625,x[$0F:C625] A:A800 X:0000 Y:6800 P:envmxdIZc - Load 1000 from ROM.
$01/9014 AA TAX A:1000 X:0000 Y:6800 P:envmxdIzc - Transfer A to X.
$01/9015 E2 20 SEP #$20 A:1000 X:1000 Y:6800 P:envmxdIzc - Set Processor Status.
$01/9017 68 PLA A:1000 X:1000 Y:6800 P:envMxdIzc - Pull A from Stack
$01/9018 60 RTS A:1000 X:1000 Y:6800 P:envMxdIZc - Return
------------------------------------------------------------------------------------------
$01/A8F4 BD 00 00 LDA $0000,x[$7E:1000] A:1000 X:1000 Y:6800 P:envMxdIZc - Load Character 1's ID.
$01/A8F7 29 3F AND #$3F A:1081 X:1000 Y:6800 P:eNvMxdIzc - Get rid of unneccessary bits.
$01/A8F9 60 RTS A:1001 X:1000 Y:6800 P:envMxdIzc - Return.
-------------------------------------------------------------------------------------------------------------------------------------
$01/A876 C9 03 CMP #$03 A:1001 X:1000 Y:6800 P:envMxdIzc - Is it Child Rydia?
$01/A878 F0 11 BEQ $11    [$A88B] A:1001 X:1000 Y:6800 P:eNvMxdIzc - If so branch to 01A88B
$01/A87A C9 11 CMP #$11 A:1001 X:1000 Y:6800 P:eNvMxdIzc - Is it Adult Rydia?
$01/A87C F0 0D BEQ $0D    [$A88B] A:1001 X:1000 Y:6800 P:eNvMxdIzc - If so branch to 01A88B
$01/A87E E6 45 INC $45    [$00:0145] A:1001 X:1000 Y:6800 P:eNvMxdIzc - +1 to x45.
$01/A880 A5 45 LDA $45    [$00:0145] A:1001 X:1000 Y:6800 P:envMxdIzc - Load A from 45.
$01/A882 C9 05 CMP #$05 A:1001 X:1000 Y:6800 P:envMxdIzc - Has it looked at every party member?
$01/A884 D0 EB BNE $EB    [$A871] A:1001 X:1000 Y:6800 P:eNvMxdIzc - If not loop back to 01A871. (Start of Process)
-------------------------------------------------------------------------------------------------------

1001
Ahem... yes, yes, that is what that meant. Not very clear at all, but you got the gist of it, hehe. It should probably read...

When Caster's Status Byte 1 is the same as Status Determination always use Specific Spell rather than a randomized spell.

Pretty much what you have there, yeah.

1002
Indeed your rephrasing of it was spot on. By the way, since we have the other four songs here's the means to change the Frog Song into what you like and how it is activated.

Headered Rom

Sing - Song of Toad
- When Inflicted with Certain Status always use Specific Spell rather than a randomized spell.


    Caster's Status Byte 1 - 1EB01
    Status Determination - 1EB04
    Specific Spell - 1EB0D

    (Reference for the above -
    Status Byte 1 - 8326 (2683)
    Status Determination - 20 (Frog)
    Specific Spell (19) (Toad)[/list]

    1003
    That is an interesting theory and one that makes a good deal of sense.

    While it is not formally documented it is mentioned in all of my ASM notes. I can grab a quick collection of those (that have them) and post their offsets here.

    (In order internally...)

    Headered ROM

      Peep   - 01E3A3   1E - Load Message 1E into A. (Peep's Message)
      Sneak - 01E433   1C - Load 1C into A. (Sneak Fail - Damaged Message)
      Sneak - 01E43A   1B - Load 1B into A. (Sneak Fail Message)
      Sneak - 01E4CA   1D - Load Message 1D (Sneak Successful Message)
      Salve  - 01E4F9    0F - Load 0F into A. (Not Enough Medicine - Salve Message)
      Regen - 01E633   36 - Load 36 into A. (Regen Message)
      Twin   -  01E6DC  11 - Load 11 into A. (Twin Fail Message - In Regards to Status)
      Twin   -  01E787  11    - Load 11 into A. (Twin Fail Message - 1/255 Failure Message)
      Gird    -  01E8A5  3A    - Load 3A into A. (Gird Message)
      Focus -  01EA1E  39    - Load 39 into A (Focus/Boost Message)
      Pray   -  01EA5D  10 - Load 10 into A (Pray Fail Message)
      Sing   -  01EB08  0B - Load 0B into A (Song of Toad Message)
      Sing   -  01EB19  00 - Load 00 into A (Nothing Happened Message)
      Sing   -  01EB25  0E   - Load 0E into A (Song of Mute Message)
      Sing   -  01EB32  0D - Load 0D (Song of Charm Message)
      Sing   -  01EB3B  0C   - Load 0C into A. (Lullaby Message)
      Recall -  01EC62  09 - Load 09 into A. (Recall Fail Message)
      Boast -  01ECDF  12 - Load 12 into A (Boast Message)
      Cry     -  01ED22 13   - Load 13 into A. (Cry Message)

      And that should do it!

      Also would you like me to rewrite the Kick Options again? I wasn't sure if the last iteration of that was enough to go off of for implementation.[/list]

      1004
      That could possibly be for the best, since FF4kster shouldn't have a way to change this completely unrelated value that the programmer wasn't aware of at the time.

      1005
      Hmm, it doesn't seem to be effected by FF4kster, considering that FF4kster wouldn't touch this location as of yet. Are you sure a separate patch didn't effect it in some way?