øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;u=123;area=showposts;start=1320e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexbb8d.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;area=showposts;u=123e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexbb8d.html.zx:òg^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈÀKrVOKtext/htmlISO-8859-1gzip8:ÖrVÿÿÿÿÿÿÿÿTue, 10 Mar 2020 20:18:25 GMT0ó°° ®0®P®€§²ð®9òg^ÿÿÿÿÿÿÿÿQ5rV 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

1321
Final Fantasy IV Research & Development / Re: Changing details of Dark Wave
« on: September 02, 2013, 05:13:20 PM »
Well I have a bit of bad news... Kick uses the same exact formula as Dark Wave (except without the Zombie = 1 damage deal). Therefore they're shared. So if you change Dark Wave's formula you are also changing Kick. Bah.

1322
Final Fantasy IV Research & Development / Re: Changing details of Dark Wave
« on: September 02, 2013, 12:16:25 PM »
Finally after All of This time I have Located the building blocks of Dark Wave's formula!

I found this in a stupidly simple manner, I breakpointed on the Command Used in the character information in battle and followed it until I came across the answer. It turned out to be not very complicated at all. Let's hope Jump and Focus are as simple...


The two stats that are taken into account are the Physical Attack Multiplier - 001B and Physical Attack Base -

The formula appears to be Physical Attack Multiplier x Physical Attack Base - 25%/50%/75% = Dark Wave's Damage

From the Bab-il Docs here's how to change the formula of Dark Wave to use what you please...



I feared at first that I was just changing the ordinary damage calculation formula, but as this picture would attest the damage formula stayed put.




Code: [Select]

An asterisk (*) before a description for the data indicates that only records
for characters have or use that type of data (equipment is a good example of
this). Two asterisks (**) before a description for the data indicate that only
monsters have or use that type of data (creature type data, for example).
Three asterisks (***) after a description of the data indicates that the
reader is requested to refer to the monster data document for a more complete
description (again, the creature type data is a good example).

Offset Meaning
------ -------
00     *character id/handedness
           bits 0-4: character id
           bit 5: unknown
           bit 6: left hand equippable
           bit 7: right hand equippable
01     *sprite/class
           bits 0-3: sprite/class id
           bits 4-6: unknown
           bit 7: in back row
02     level
03-06  current status anomalies
07-08  current hp
09-0A  maximum hp
0B-0C  current mp
0D-0E  maximum mp
0F     *base strength
10     *base agility
11     *base vitality
12     *base wisdom
13     *base willpower
14     *modified strength
15     modified agility
16     *modified vitality
17     black magic power/modified wisdom
18     white magic power/modified willpower
19     attack elemental
1A     *attack strong vs. creature types***
1B     physical attack multiplier
1C     physical attack percent
1D     physical attack base
1E     attack status 1***
1F     attack status 2***
20     elements weak vs***
21     elements very weak vs***
22     magical defense multiplier
23     magical defense percent
24     magical defense base
25     elemental defense (if immunity bit wasn't set)***
26     elemental defense (if immunity bit was set)***
27     *defense strong vs. creature types***
28     physical defense multiplier
29     physical defense percent
2A     physical defense base
2B     status immunity 1***
2C     status immunity 2***
2D-2F  unknown
30     *helmet
31     *armor
32     *gauntlet
33     *right hand-item
34     *right hand-quantity
35     *left hand-item
36     *left hand-quantity
37-39  *experience
3A     unknown
3B     speed modifier. lower = faster. for autobattles, starts at 01;
       otherwise starts at 10. slow adds +08, (upper bound 20) haste adds -3
       (lower bound 0C)
3C     unknown
3D-3F  *experience to level up
40     **creature types***
41-50  unknown
51     next command # (from 00 to 1D)
52     next sub-action (item or spell number)
53     next action monster target(s)
54     next action party target(s)
55-5F  unknown
60-61  relative speed. equal to (Cecil's agi * 32) / (our agi * 0A). if Cecil
       isn't in the batle, an arbitrary character is picked instead. lower
       number = faster speed.
62-6F  unknown
70     **level and boss bit***
71-72  unknown
73     **item byte***
74-7F  unknown

In RAM (LoRom/HiRom) at...

0x03E71B - BD 1B 20 - (LDA 7E201B) - Looks at the value in 201B - Physical Attack Multiplier
0x03E730 - BD 1D 20 - (LDA 7E201D) - Looks at the value in 201D - Physical Attack Base

In ROM at...

0x1E91B - BD 1B 20 - (LDA 7E201B) - Looks at the value in 201B - Physical Attack Multiplier
0x1E930 - BD 1D 20 - (LDA 7E201D) - Looks at the value in 201D - Physical Attack Base


For instance say I wanted to change the Dark Wave into an attack that looked not purely at Physical attributes but instead looked at Wisdom and the Physical Attack Base to deal damage, that way it would remain useful as the Dark Knight continues to increase in level and should they wish for the Paladin to keep it they could allow him to use some Wisdom boosting equipment to keep the attack relevant.

So Chillyfeez looks like you can get your Gil Toss after all! To change and alter the power of Dark Wave is just a matter of knowing the stats and equipment pools of your Dark Wave recipient!

 :edit:Fixed a Glaring issue with my addressing (I left the 7 from the initial LoRom/HiRom location)

1323
Is going to be awesome? It is quite awesome as it stands, haha! Yes, classes start again for me as well. I have been fiddling around with a lot of ideas but I can never settle on an idea to develop enough to preview to the community. From a solo Black Mage mod to an After-After Years mod to trying to make a remake of the first dot hack game in the FFIV system, I think the main thing holding me back is maps for some of these ideas. Good luck in school though!

1324
There are a few weird things about the airships that I don't quite understand how they work (yet?).
  • The Falcon's Drill, which is really just cosmetic, its "function" is all event driven
  • The Highwind's Hovercraft crane
  • The first time the Highwind goes underground
    - there's an automatic event in which you are caught in a crossfire between the Red Wings and the Dwarves' tanks
    - it's unusable until the event in which Cid fixes it

Great work Vehek! That all looks like very malleable parts. It is interesting to see that there are two tops to the Tower of Bab-il which means two of those spaces should be unused.

Now in the Overworld events was there any event for going into the Underground?

The event flag set is 50 after the event completes...

Then when Cid saved the crew with the Airship, Flag 10 is set, but that deals nothing with the Airship, hmm... Can you take the Enterprise (Not Highwind, that's FFVII, heh) into the underground again? I am pretty sure you can't... It may just be that the Enterprise is programmed not to function in the Underworld except in cutscenes where the player has no control.

1325
That is a bit of a shame about the Chocobo in the Underworld. Good work on figuring out how that works. I expected it to be an event flag, but I wasn't sure if it would deal something with the tiles themselves, which it did appear to do, so well done. The Drill I guess works in a similar fashion.

1326
It's likely an invalid version of the game, it's possibly unheadered and may not actually be compatible. Is there not also a patch of the Cosmetic Changes? Why not download that and apply it separately?

1327
Here's something neat. I found how the game decides who can use the Crystal and which item is designated by this ID

RAM: 0x3A127 - C9 C8 (Compare Crystal Item Number)
RAM: 0x3A132 - C9 0B (Only this Unit ID may use the item designated as "Crystal")

ROM...

0x1A327 - C9 C8 (Compare Crystal Item Number)
0x1A332 - C9 0B (Only this Unit ID may use the item designated as "Crystal")


1328
I haven't yet taken a good look at how the behaviors of the scripts are carried out, only that those ID's mean those in that specific event, I'll take a look later on.

As for the second AI script, here is where things get... weird. I changed the values around from one of the Fabul formations to the Final Battle's formations and though I had Cecil and Edward in my party they kept on doing Only FuSoYa's Auto-Battle Script, never Golbez.

This leads me to believe that there is something special to Golbez's actor which tells him and Only him to use the second scripts of Auto-Battle commands.

If I could only figure out how the game calls a character never in the party, I might be able to make more sense of it....

 :edit: Alright, so I figured out how the game decides "Hide" and "Only One". Child Rydia's ID alone have a CMP that is passed through CMP 03. If this CMP is triggered only that character is hidden.

In RAM this is at...

0xE410 - CMP 03 - Rydia's ID
0xE453 - CMP 03 - Rydia's ID

In ROM at....

0x6610 - CMP 03 - Rydia's ID
0x6653 - CMP 03 - Rydia's ID

You may switch these to whatever you please to hide that specific ID during Special Battles, when they're the "unit specially effected".

 :edit: 2: I expected to find Adult Rydia's ID but there might be something else going on there... There is no CMP for 11, Adult Rydia's ID, as far as I can see.

 :edit: 3: Hmm, if I switched instances of Encounters as in Tellah vs. Bard to the slot which should in theory hide Adult Rydia, Golbez vs. Party she's the only one present, I'm not really sure what's going on there.

 :edit: 4: Even if I Force load the Formation of Golbez/Shadow Dragon Rydia still appears to be the only one. (Incidentally the game softlocks at this point. I wonder if this somehow deals with the Paladin CMP's I saw earlier...)

Nope, not one bit... I can't figure out why this is treated so special or how the game actually hides Adult Rydia since by all accounts Adult Rydia should be the only one appearing according to the byte.

 :edit: 5: Stupid repeated, broken battles, grumble, grumble... I was looking at the wrong Golbez/Shadow Dragon formation. No idea though why only Rydia appeared still despite the wrong formation number.

When set correctly it works fine Rydia is not present. But I think there might be something wrong with the Rom I have been using.

 :edit: 6: No, Rom was fine, a clean one did the same thing, hmm... I start the fight and Cecil raises his hand in the air and Golbez doesn't do anything, despite this being his Underground Formation as well. I might just have to use the actual event.

 :edit: 7: Yeah there is something really special about this formation which makes it not function properly outside of its proper place... for some reason, it's strange. In any case forcing the event call to play the Meeting Giott, having Rydia Join works fine.

Oh. I see. That "wrong formation", I was complaining about? That double Golbez/Shadow Dragon one? That's actually the unused one. 01A8 is unused by the game completely and may have been a remnant of earlier plans somehow. Now it just acts as the normal "Only One" battle. It may hint that Rydia was supposed to fight Golbez on her own (which is why Golbez is so terribly weak "dying" with only 3000 HP loss) originally before they added some sort of advanced script that hides her from likely within the battle itself.

So that means you can have one more kind of Special Battle.



1329
Double-Post: Humongous update to the previous posts, with the info. required to have the desired PC's take part in special battles. (Except for the final Zemus fights)

1330
Alright! I think I found the index! I placed a Read breakpoint on the Encounter index (7E1800)  started up my ready-made Zeromus event and when I did it started to CMP the value of the encounter through listings starting from 00E516 in ROM. starting with F700 which is the Dark Knight vs. Paladin battle, then continued down the list...

In RAM at...

(Note to Self: Always add +1 to hex 1B3 = 435 + 1 = Formation 436

E516 - F700 (248) - Fabul Siege Formation (Oh, I see! Rydia is never removed from the party in this event, but these formations are special so she doesn't appear.) (Edward-Yang-Cecil)
E518 - F800 (249) - Fabul Siege Formation (Edward-Yang-Cecil)
E51A - F900 (250) - Fabul Siege Formation (Edward-Yang-Cecil)
E51C - F100 (242) - Cecil vs. Kain (Cecil)
E51E - EE00 (239) - Tellah vs. Edward (Auto-Battle) (Tellah)
E520 - F600 (247) - Paladin vs. Dark Knight (Paladin Cecil)
E522 - EF00 (240) - Edward vs. WaterHag (Edward)
E524 - F000 (241) - Yang vs. 3 Imp Captains (Auto-Battle) (Yang)
E526 - F300 (244) - Tellah vs. Golbez (Auto-Battle) (Tellah)
E528 - FD00 (254) - Edge vs. Rubicant (Auto-Battle) (Edge)
E52A - A801 (425) - Adult Rydia vs. Golbez (Rydia) (UNUSED!)
E52C - 01B3 (436) - Golbez and FuSoYa vs. Zemus (Auto-Battle) (Golbez-Shadow Slot 1)
E52E - 01B4 (437) - Golbez and FuSoYa vs. Zeromus (Auto-Battle) (Golbez-Shadow Slot 1)

In ROM at...


6716 - F700 (248) - Fabul Siege Formation (Oh, I see! Rydia is never removed from the party in this event, but these formations are special so she doesn't appear.) (Edward-Yang-Cecil)
6718 - F800 (249) - Fabul Siege Formation (Edward-Yang-Cecil)
671A - F900 (250) - Fabul Siege Formation (Edward-Yang-Cecil)
671C - F100 (242) - Cecil vs. Kain (Cecil)
671E - EE00 (239) - Tellah vs. Edward (Auto-Battle) (Tellah)
6720 - F600 (247) - Paladin vs. Dark Knight (Paladin Cecil)
6722 - EF00 (240) - Edward vs. WaterHag (Edward)
6724 - F000 (241) - Yang vs. 3 Imp Captains (Auto-Battle) (Yang)
6726 - F300 (244) - Tellah vs. Golbez (Auto-Battle) (Tellah)
6728 - FD00 (254) - Edge vs. Rubicant (Auto-Battle) (Edge)
672A - A801 (425) - Adult Rydia vs. Golbez (Rydia) (UNUSED!)
672C - 01B3 (436) - Golbez and FuSoYa vs. Zemus (Auto-Battle) (Golbez-Shadow Slot 1)
672E - 01B4 (437) - Golbez and FuSoYa vs. Zeromus (Auto-Battle) (Golbez-Shadow Slot 1)

Hopefully I'll be able to find the party make-up and requirements to play the chosen formation.

 :edit: I can confirm that positioning is a large part of this. I switched 01B3 and 00F1 and only Cecil appeared to fight Zemus (normal auto-battle carried out from there) 00F1 is the Cecil vs. Kain fight, which would make sense that Cecil would be alone. This means that the party is set before the formation number is found, hmm...

 :edit: 2: Hmm, so right above these values are values that Must correspond to "treat actor special".

E509 - 03 - Child Rydia - Hide during Fabul Fight
E50A - 03 - Child Rydia - Hide during Fabul Fight
E50B - 03 - Child Rydia - Hide during Fabul Fight
E50C - 01 - Dark Knight Cecil - Only One Present fighting Kain
E50D - 04 - Tellah 1 - Only One Present fighting Edward
E50E - 0B - Paladin Cecil - Only One Present fight Dark Knight
E50F - 05 - Edward - Only One Present fighting WaterHag
E510 - 07 - Yang 1 - Only One Present fighting Imp Captains
E511 - 0C - Tellah 3 - Only One Present fighting Golbez
E512 - 12 - Edge - Only One Present fighting Rubicante
E513 - 11 - Adult Rydia - Hide during Golbez vs. Party fight
E514 - 13 - FuSoYa - One of Two Present fighting Zemus
E515 - 15 - Golbez - One of Two Present fighting Zemus

But I've already seen first hand that it refers to the first Shadow Slot for FuSoYa's Zemus formation in particular so I have to wonder if these are even used...?


 :edit: 3: Phew, my money was right on the mark. They are thankfully the Only One Present or Hide commands for each special party battle, Except for the final battle's special battles. I have No idea where the game draws those, but nulling them or changing them in anyway does absolutely nothing. However the others work as you would expect change the Tellah ID of 04 to 01 to have Dark Knight Cecil beat up on Edward, for instance.

I think it's fairly clear that the normal matters are ignored for the 13 and 15, since one it's not FuSoYa it is grabbing but Shadow Slot 1 and 2, Golbez is not even in your party therefore the game should lock up when trying to access it. There is something very special going on in that particular scene, but I can't quite reason it out.

But that does solve that, looking forward to seeing Auto-battle and Special Battle's incorporated into the editor!

 :edit: 4: Slight addendum due to new information found below in regards to Rydia vs. Golbez.

1331
That was my first guess too but when I looked at them I saw nothing too out of the ordinary. Most other auto-battle event battles have the Mystery Byte set to 0 except for the two auto-battles against Zemus/Zeromus they are set to 1, but changing them to 0 doesn't do anything noticeable.

Now here is where things get interesting... it doesn't appear to load FuSoYa per se but loads what is in the 1st Shadow Slot. If you start the game and go straight for the Zemus fight Golbez will be fighting alone in a cycle of Fire 3, Ice 3, Lit 3, W. Meteo. Say if you add and immediately remove Tellah 1 from your party he will be fighting along Golbez in the Zemus fight because he is the actor currently in the 1st Shadow Slot.

This means that your party is still there... somewhere but this formation specifically calls Shadow Slot 1 and Golbez's actors, despite them not being in your active party. This is admittedly the only instance of this as far as I recall.



This means that Golbez must similarly be loaded from some sort of 5th Shadow Slot, I would imagine.

1332
Hmm, looking back at the Ram Locations in the Bab-il Docs, it seems that there's a separate place of Ram being saved for a second character's auto-battle commands.

388C-3899 Autobattle script for first/only character
389A-???? Autobattle script for second character

I wonder if it's somewhat based on formation. After all the only auto-battle that includes two characters is the final one against Zemus and Zeromus if memory serves me correctly.

Now that is another thing with auto-battles you bring up. There are some slight pieces of information missing when it comes to events and battle events. I saw this when I was trying to fix Vivify's patch and setting the Zeromus event on the Training Guard. If you just go for it, switching the formations out, in the second (what would normally been an auto-battle) battle all of your characters will be dead. There is no instruction I saw that kills the party characters. Only after adding a character before the battle begins will that character not be dead.

In addition with Auto-battles Tellah's not the only one that works like this. Something somewhere removes the party members that are called by a specific formation, at least it seems that way. Cecil is required for the auto-battles on the Airship, Tellah is required for the auto-battle in Damcyan, Edward is required for the 1v1 WaterHag, Yang is required for the Mt. Hobbs Ambush, etc. The events leading up to these battles do nothing unusual though to wipe the party to assure this one character is there. Set any other normal formation and you will get just another battle.


1333
This is an interesting question and one that Yousei regarded in his info a very long time ago.


AC8FA-      (15C6FA-      ) Routine that alters overworld map depending on events

I haven't taken a look at it but this seems like it would be a good place to start.

1334
Rom Definitely looks like you can add more, however when I was going through my Call Orb info I was looking through the spell sets and in RAM there are values written close to the end of the spell sets proper and are strewn about fairly haphazardly, but unfortunately this makes writing new spell sets a heavy risk due to these unknown values.

1335
I've pointed this out elsewhere but the "Mystery Amount" in Formations is how the game sees what enemies to summon using Call or Alert from an enemies attack. 0 means that no monster will be summoned and monster type 2 will be displayed normally. 1 means that 1 will be summoned and monster type 2 will only appear when summoned. 2 means that if there are 2 type 2 monsters both will be summoned, if not 1 will be summoned. And I couldn't find much of a difference with 3, but it does not allow three monsters to be summoned.

I've also pointed this out elsewhere, but the "Underground" option in the Map Info. is actually something which means "Use Ending NPC Indexes"