øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=2022.msg22807e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexa90c.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=2022.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexa90c.html.zx;+g^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ@>D¡OKtext/htmlISO-8859-1gzip8:ÖD¡ÿÿÿÿÿÿÿÿTue, 10 Mar 2020 06:09:23 GMT0ó°° ®0®P®€§²ð®;+g^ÀD¡ Rydia's transformation (and other actor-specific oddities)

Author Topic: Rydia's transformation (and other actor-specific oddities)  (Read 1501 times)

Pinkpuff

  • Flan Princess
  • *
  • Posts: 924
  • Find a Megalixir in Unprecedented Crisis!
    • View Profile
Rydia's transformation (and other actor-specific oddities)
« on: March 28, 2015, 08:50:54 AM »
Is there some special code somewhere telling the game to age Rydia when she rejoins? What if I want her to still appear as a child when she rejoins?
« Last Edit: March 30, 2015, 12:23:35 PM by Pinkpuff »
Let's dance!

Grimoire LD

  • FF4 Hacker
  • *
  • Posts: 1,684
    • View Profile
Re: Rydia's transformation
« Reply #1 on: March 28, 2015, 06:20:27 PM »
Older post of mine ffrom the Unknown Info topic...


Every other character has their class from start to finish. Rydia's class changes to use her new graphic. An interesting way to go about it. I grew suspicious when I saw there was no automated fashion this is done, at least according to the editor so I took a look around and quickly found the answer.

In LoRom - HiRom....

0x0E5B7 - C9 11 (CMP 11) - Compare Adult Rydia's ID (Somehow) if this is read...
0x0E5BB - A9 0B (LDA 0B) - Load 0B (Adult Rydia's Class) into...
0x0E5BD - 99 01 10 (STA 7E1001) - 7E1001 - Rydia's Information.

In ROM at...

0x067B7 - C9 11 (CMP 11) - Compare Adult Rydia's ID (Somehow) if this is read...
0x067BB - A9 0B (LDA 0B) - Load 0B (Adult Rydia's Class) into...
0x067BD - 99 01 10 (STA 7E1001) - 7E1001 - Rydia's Information.

The uses for this could be interesting, in case you didn't want Rydia to return in an aged fashion or wanted to use the assignment of byte to somewhere else. Or want another character to change their class. But it does solve to me how the game switches a class in the middle of the character's existence.


Pinkpuff

  • Flan Princess
  • *
  • Posts: 924
  • Find a Megalixir in Unprecedented Crisis!
    • View Profile
Re: Rydia's transformation
« Reply #2 on: March 28, 2015, 07:33:47 PM »
Exactly what I was looking for, thanks!
Let's dance!

Pinkpuff

  • Flan Princess
  • *
  • Posts: 924
  • Find a Megalixir in Unprecedented Crisis!
    • View Profile
Re: Rydia's transformation
« Reply #3 on: March 30, 2015, 12:23:00 PM »
Among other actor-specific miscellany, do we know how the Tellah 3 actor loads its equipment? Can we get it to load the equipment of a different person?

 :edit: Huh... after some brief experiementing, it looks like it retains the equipment of the character in question, not Tellah specifially... hmm
« Last Edit: March 30, 2015, 12:43:29 PM by Pinkpuff »
Let's dance!

Grimoire LD

  • FF4 Hacker
  • *
  • Posts: 1,684
    • View Profile
Re: Rydia's transformation
« Reply #4 on: March 30, 2015, 03:15:11 PM »
Among other actor-specific miscellany, do we know how the Tellah 3 actor loads its equipment? Can we get it to load the equipment of a different person?

 :edit: Huh... after some brief experiementing, it looks like it retains the equipment of the character in question, not Tellah specifially... hmm

That is correct. It's just a check for Tellah 3's Actor, if it succeeds than it skips the "new equipment" section of Shadow Slot character building. I wrote down the specifics Long, long ago. I'll see if I still have them.

Wait, I never did write them down, that was information that Phoenix had found.

Thanks!

I forgot to mention one thing. I also found the equipment check for Tellah's third instance (character id 0c). If you want him to receive initial equipment rather than keep what he has, then change the data at 06869 to EAEAEAEAEA. That should work, though I haven't checked it yet.

Right... maybe I should look at the code after all.

Yep, was as simple as I thought...

Code: [Select]
$00/E665 BD D5 09 LDA $09D5,x[$00:09D6] A:0000 X:0001 Y:00C0 P:envMxdizc - Load Character ID from Event.
$00/E668 3A DEC A A:000C X:0001 Y:00C0 P:envMxdizc - -1 to A.
$00/E669 C9 0B CMP #$0B A:000B X:0001 Y:00C0 P:envMxdizc - Is it 0B (0C, Final Tellah -1)
$00/E66B D0 01 BNE $01    [$E66E] A:000B X:0001 Y:00C0 P:envMxdiZC - If not 0B branch to Re-equiping Routine.
$00/E66D 60 RTS A:000B X:0001 Y:00C0 P:envMxdiZC - Return

Very simple coding here. Works well enough, but as always is a bit restrictive. You could change that to any one you want, just remember that it is ID -1. If you would want to get rid of re-equipping all together you would just null D0 01 with two EA's and that would guarantee all characters would not re-equip.

This is located in ROM at...

666A - Actor ID to check.
666B - IF Not correct Actor ID, branch (again to nullify just two EA's at that point)

chillyfeez

  • FF4 Hacker
  • *
  • Posts: 1,285
  • Gender: Male
  • Go ahead, ask me about Angel Feathers!
    • View Profile
Re: Rydia's transformation (and other actor-specific oddities)
« Reply #5 on: March 30, 2015, 03:37:10 PM »
Yeah, that was something I stumbled upon and eventually had to work with and around for the Shadow Party hack.

I see you two have been busy little bees while I was away. I have a lot to catch up on. :)

Pinkpuff

  • Flan Princess
  • *
  • Posts: 924
  • Find a Megalixir in Unprecedented Crisis!
    • View Profile
Re: Rydia's transformation (and other actor-specific oddities)
« Reply #6 on: April 01, 2015, 03:46:56 AM »
That's awesome!

So now I can add a new editor component that has something like "ACTOR NAME keeps old equipment upon return", where the actor can be changed to any individual actor, or none, or all!
Let's dance!