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

1081
Wonderful! I'll pick it up now.

Names look to be in perfect working order...

And spell ranges work optimally as well! Now if only Float were before Sight so we could remove that useless spell for good, eh well...

For things like Boast and Cry you should probably refer to the Tower-of-Babil docs explanation for stats.

For example...

Boast (Click on Boast, edit attributes) two options.

One shows Amount to Increase (default 16) second option would be Character Stat that you could probably use a direct copy of the stats from http://rb.thundaga.com/tob/record.txt
(Things to include though is...

2D-2F  unknown

Which are now known as...

2D - Critical Hit chance
2E - Critical Hit Bonus Damage
2F - ?Steal Prevention?

So for default, Boast would read...

Boast - Modified Wisdom - 16

ROM...
0x1ECD0   BD 17 20   LDA $2017,x[$7E:2017]   A:0010   X:0000   Y:0000   P:envMxdiZc - Load User's Modified Wisdom.
0x1ECD3 69 10   ADC #$10   A:0012   X:0000   Y:0000   P:envMxdizc - Add 10 (in hex) to it.


So if someone wants to change Modified Wisdom to Critical Hit Chance for instance...

They would scroll through Edit Attributes until they hit the Critical Hit Chance spot (2D the 20 portion of the address likely should not be touched.) and they change  the amount from 16 to 5.

Cry is a little more special case, there's a reason for that. Instead of having a default number that the game reads to subtract from the monster's Steal Prevention, it instead uses the user's steal prevention and divides it by 2 and effects all monsters through that. So say the player wants to make Cry (sort of, likely not as broken) like it is in FFIV DS (divides enemies Defense by 2)

You could do this...

Default
(Choices)
Cry - Attribute to use /2 - Attribute to effect
         Steal Prevention   -   Steal Prevention
           (202F)                         (202F)

In ROM...

0x1ECF2 BD 2F 20 LDA $202F,x[$7E:202F]   A:0010   X:0000   Y:0000   P:envMxdiZc - Load User's Steal Prevention

0x1ED0B   BD 2F 20   LDA $202F,x[$7E:22AF]   A:0000   X:0280   Y:0000   P:envMxdizC - Load Monster's Steal Prevention.

The reason these are the exact same is because coding in between targets the monster slots explicitly. You could change Cry into another Boast like command or have it effect the entire party, but that would involve some actions  that could not easily be handled by the editor. For now this should suffice.

So I want to change Cry into a form of FFIV DS's version of Cry...

Cry - Attribute to use /2           -      Attribute to Subtract.
         Physical Attack Multiplier  -  Physical Defense Multiplier
           (201B)                                       (2028)


Steal is a bit... trickier to explain, but I see what you mean there. I'll include all of the usable information that could easily be added to the editor.

First, before I got to the easily changeable attributes of it, it is best to go over how Steal is actually formulated...

50 + Level - Target's Steal Prevention = Amount that will be tested against a Random Number (which seems like it can range from 1-255.) - If the end value is over 100 it is an automatic success.

Now from this description we can change... Base Amount to steal, the stat used to determine bonus success and the stat that decreases the amount from success

Now as how this would look in the editor...

Default
(Choices)
Sneak - Edit Formula - Edit Item Slot

Default Hit Rate + Caster Attribute   -    Target's  Attribute
           50                      Level                  Steal Prevention
                                    (2682)                       (272F)
Item Slot
Normal-00

0x1E3F0 - A9 32   LDA #$32   A:0035   X:0000   Y:0000   P:envMxdizc - Load 32 into A (50)
0x1E3F2 - 6D 82 26   ADC $2682  [$7E:2682]   A:0032   X:0000   Y:0000   P:envMxdizc - + Caster's Level.

0x1E3F6 - ED 2F 27   SBC $272F  [$7E:272F]   A:003C   X:0000   Y:0000   P:envMxdizC - - Target's Steal Prevention.

At this point it is worth explaining the difference between Stat Records and Caster/Target records... When mostly any command in FFIV is used, in most cases the stats are copied into...
7E2680 - The Caster's Stats
7E2700 - The Target's Stats.

All this means is that you would need to make a separate index for the stat records that normally start at 00 and make another that starts at 80.

And finally the Item Slot is at...

0x1E456 - BF00 9F0E - Change the 00 to any digit from 00-03 to receive that rank of item when you use Sneak.

Now... say I wanted to make a more Steal-heavy hack and that actual equipment could be earned by stealing and only from stealing...

Sneak - Edit Formula - Edit Item Slot

Default Hit Rate + Caster Attribute   -    Target's  Attribute
           65              Modified  Agility                 Level
                                  (2695)                         (272F)
Item Slot
Mythic-03

And there you go. That's just for a start though. I'm going to stop here for now to see if I'm on the right track for how you want to go about this. If you have any trouble implementing this or understanding the underlying portions of it, please let me know and I will try to fit it to make it easier to work with.

1082
Oh, let me correct myself. I meant Subtract 1FE00 from the initial LoRom readout. Interesting tool Chillyfeez, I'll have to pick that up. There is an exception though and that's more to do with whether the rom has a header.

1083
Ah, that's because these aren't ROM addresses but LoRom addresses.

To find where there are in Rom adding 1FE00 to the result Normally takes you to them.

Which... hmm, header, non-header, that could cause some problems...

I'll grab the sequence of bytes from these spots and find their ROM location from there.


0xB47F-  C9 0E - (CMP with 0E) is actually what spells to highlight and Only what spells to highlight.
0xB483 - C9 1C - CMP 1C - CMP #$1C   A:0219   X:0248   Y:0000   P:envMxdIzC - This is where the index of usable spells end. So if you wanted to change the index of usable spells you would change these two values to whatever was desired. When I saw the value the first time I must have confused the 1C for a 13, I'm not really sure how I did that, but eh...

01B52E - C9 0E - CMP 0E - Start of Index of usable Spells outside of battle.
01B532 - C9 1C - CMP 1C - End of Index of usable Spells (Using spells outside of their intended range tends to have glitchy and game crashing effects)



And here is the actual ranges of spells as well.

0xB73E - C9 0E - CMP 0E - Start of Index of usable Spells outside of battle.
0xB733 - C9 1C - CMP 1C - End of Index of usable Spells (Using spells outside of their intended range tends to have glitchy and game crashing effects)


Sorry about that, I mostly post values from the LoRom for quick modification purposes of my own. Though if you'd like me to also post ROM equivalents to those, let me know and I'll do that as well.

1084
Final Fantasy IV Research & Development / Re: Actor names in battle
« on: November 02, 2013, 09:24:54 AM »
No, no you are definitely right, now let's see... what did I do wrong here...

Wow. I must have really did a number on this test ROM, I've been using, let's see if I can't find its location in a not severely altered rom...

Oh! Header or Headerless, that explains it. In an unmodified rom it falls at 0B7D3F, as the Header is still included

1085
Final Fantasy IV Research & Development / Re: Whose turn is it?
« on: November 01, 2013, 04:07:58 PM »
Wow! Great work there Chillyfeez! I'll have to scrounge around that area a bit and see if I can't help with figuring this out.

1086
Heh, indeed. I have no idea why they set it up like that either. Sometimes I do wish that FFIV had more of a randomness factor to its AI. FFIV DS seemed to do this, but not the original FFIV by much of any stretch. Even Asura is not Random.

1087
Final Fantasy IV Research & Development / AI Index Reference
« on: October 31, 2013, 05:27:45 PM »
As great as FF4kster is, looking through all of the usable indexes can be difficult and demotivating in many ways. Until I started this little project I wasn't aware that so many of the AI indexes are mostly used by one monster, so there is a lot of room to work around and change things without having to worry that you will screw something else down the line.

So here we are, a full recording of all of the AI Indexes in FFIV, including tags like "Unknown", "Moon", and "Reaction. So the modder will know what they are changing.

Code: [Select]

Index Usage of Basic AI

1.
86 - Egg (Nothing)
2 - Charm (Fight)
1 - Basic (Fight)
Imp, Sandman, EvilShel, Zombie, Pike, MadToad, Jelly, Cream, WaterHag, Weeper, DarkImp, Turtle Imp Cap., Slime, Piranha, Ghoul, Revenant, CaveNaga, ElecFish, Guard, Grudger, Naga, Ogre, SwordMan, Centaur, FangShel, Screamer, Warrior, Armadillo, EpeeGirl, BladeMan, HugeNaga, Tortoise, Carapace, Ironback, StoneMan, Mad Ogre, FlameMan, Grenade, Tofu, Pudding, Ironman, MacGiant Jucylote, Horseman, Staleman, Procyote, (Demo) FloatEye, (Demo)Raven, Dummy(2), Egg

2.
2 - Charm (Fight)
1 - Basic (Fight, Explode)
Bomb, GrayBomb, Balloon

3.(Reaction Only)
9 - Fire Magic (Explode)
GrayBomb

4. (Reaction Only)
10 - Ice Magic (Explode)
Balloon

5. (Reaction Only)
11 - Bolt Magic (Reaction)
 9 - Fire Magic (Explode)
Grenade

6.  (Unused Reaction)
 9 - Fire Magic (Reaction)
11 - Bolt Magic (Explode)
NOTE: Likely used for a foe similar to Grenade that they never finished.

7.
2 - Charm (Petrify)
1 - Basic (Fight, Petrify)
Basilisk


8.
86 - Egg (Nothing)
 2 - Charm (Petrify)
 1 - Basic (Fight)
BlackLiz

9. (Reaction Only)
87 - Egg, Damage (Hatch)
 7 - Fight (Petrify)
BlackLiz

10.
 2 - Charm (Ice-2)
 1 - Basic (Fight, Petrify)
Ice Liz

11. (Reaction Only)
 8 - Magic (Ice-2)
Ice Liz

12.
 2 - Charm (Beak)
 1 - Basic (Fight)
Eagle, Roc Baby

13.
 2 - Charm (Beak)
36 - 1 Monster-Magic (Beak)
 1 - Basic (Fight)
Cocktric

14. (Reaction Only)
 8 - Magic (Beak)
Roc Baby

15.
 2 - Charm (Fatal)
 1 - Basic (Fight)
FloatEye

16.
 2 - Charm (Fatal)
 1 - Basic (Fight, Gaze)
Red Eye

17. (Unused)
 2 - Charm (Count on Party, Stop on Self)
 1 - Basic (Count)
NOTE: Likely planned for a late game Ahriman like-foe that they never finished.

18.
 2 - Charm (Fire1)
14 - Ice Magic (Null Turn)
 1 - Basic (Fire 1, Fight)
Spirit, Soul,
 
19.
 2 - Charm (Sleep)
14 - Ice Magic (Null Turn)
 1 - Basic (Fire 2, Fight, Sleep)
Ghost

20.
 2 - Charm (Vampire)
 1 - Basic (Vampire)
Cave Bat, Giant Bat, Were Bat

21.
 2 - Charm (Beak)
 1 - Basic (Fight)
Treant

22.  (Reaction)
33 - 1 Monster Left-Fight (Stop)
Treant

23.
 3 - Charm (Target Random Foe Bersk)
 1 - Basic (Fight)
DarkTree

24. (Reaction)
 8 - Magic (Bersk)
DarkTree

25.
 2 - Charm (Needle)
 1 - Basic (Fight)
SwordRat

26. (Reaction)
 7 - Fight (Needle)
SwordRat, Needler, StingRat

27.
 2 - Charm (Needle)
 3 - 1 Monster (Needle)
 1 - Basic (Fight)
Needler

28.
 2 - Charm (Needle)
 4 - All Same (Needle)
 1 - Basic (Fight)
StingRat


29.
 2 - Charm (Fatal on Party Target)
 1 - Basic (Lit-1, Ice-1, Fire1)
TinyMage

30. (Reaction)
 8 - Magic (Psych)
 7 - Fight (Hold)
TinyMage

31.
 2 - Charm (Fight)
 4 - All Same (Fight, Powder)
 1 - Basic (Fight)
SandMoth, GlomWing

32.
 2 - Charm (Fight)
 1 - Basic (Fight, Powder)
RockMoth

33.
 2 - Charm (Quake)
 3 - 1 Monster (Quake)
 1 - Basic (Fight)
Sandpede


34.
 2 - Charm (Quake)
 1 - Basic (Fight)
Centpede

35. (Reaction)
34 - Damage-1 Monster (Quake)
Centpede

36.
 2 - Charm (Quake)
 1 - Basic (Quake)
Arachne

37. (Reaction)
 8 - Magic (Fight)
Arachne

38.
 2 - Charm (Quake on Party)
 1 - Basic (Fight, Quake)
Talantla

39.
 2 - Charm (Tornado)
 3 - 1 Monster (Tornado)
 1 - Basic (Fight)
SandWorm

40.
 2 - Charm (Fight)
 4 - All Same (Fight)
 1 - Basic (Wave)
AquaWorm


41.
86 - Egg (Nothing)
 2 - Charm (Retreat)
 1 - Basic (Fight)
Red Worm

42. (Reaction)
87 - Egg, Damage (Hatch)
 5 - Damage (Vampire)
Red Worm

43.
 2 - Charm (Weak)
 1 - Basic (Fight, Weak)
Gargoyle

44.
 2 - Charm (Weak)
12 - Magic (Weak, Fight)
 1 - Basic (Fight)
Hooligan
NOTE: A counter in a normal AI Index? Does this even work?


45.
 2 - Charm (Fight)
 3 - 1 Monster (Toad)
 1 - Basic (Fight)
CaveToad

46. (Reaction)
 5 - Damage (Toad)
MadToad

47.
 2 - Charm (Fight)
 4 - All Same (Pollen)
 1 - Basic (Fight)
TrapRose, Cannibal

48.
 2 - Charm (Fight)
 4 - All Same (Fight)
 1 - Basic (Nothing)
Larva

49. (Reaction)
 8 - Magic (Psych)
Larva

50.
 2 - Charm (Drain)
 4 - All Same (Fight)
 1 - Basic (Do Nothing)
Roc Larva, Crawler

51. (Reaction)
 8 - Magic (Psych)
 7 - Fight (Slow)
Crawler

52.
 3 - 1 Monster (Lit-1)
 1 - Basic (Fight)
Skelton, Red Bone

53.
 3 - 1 Monster (Lit-2)
 1 - Basic (Fight)
Skull

54.
 2 - Charm (Fight)
 1 - Basic (Fightx2)
Raven, Roc

55.
 2 - Charm (Retreat)
 1 - Basic (Fight, Retreat)
WaterBug, HugeCell

56. (Reaction)
 8 - Magic (Remedy)
WaterBug

57. (Reaction)
 7 - Fight (Remedy)
HugeCell

58. (Moon)
 2 - Charm (Retreat)
12 - Magic (Fight)
 1 - Basic (Fight, Retreat)
MoonCell

59. (Moon) (Reaction)
 5 - Damage (Remedy)
MoonCell

60.
 2 - Charm (Vampire)
 4 - All Same (Vampire)
 1 - Basic (Fight, Absorb)
VampGirl

61.
 2 - Charm (Vampire)
 4 - All Same (Vampire)
 1 - Basic (Fight, Lit-2, Glance)
VampLady

62. (Moon)
 1 - Basic (Fight)
D. Bone

63. (Moon) (Reaction)
 8 - Fire Magic (Fire)
D. Bone

64. (Reaction)
 8 - Magic (Piggy)
 7 - Fight (Size)
Guard

65. (Reaction)
 8 - Magic (Wall)
 7 - Fight (Virus)
BladeMan

66.
86 - Egg (Nothing)
 2 - Charm (Fight)
 1 - Basic (Fight)
Lamia
NOTE: This is a repeat of Index 2.

67.
 2 - Charm (Charm party target.)
 1 - Basic (Fight)
Lilith

68. (Reaction)
 7 - Fight (Slap)
Lilith

69.
 2 - Charm (Enemy Spell - Charm)
 1 - Basic (Fight)
Q. Lamia

70. (Reaction)
 7 - Fight (Fight)
 8 - Magic (Enemy Spell - Charm)
Q. Lamia

71.
 2 - Charm (Fight)
 1 - Basic (Fight, Entangle)
Hydra, Python

72.
 2 - Charm (Peep on Party Target)
 4 - All Same (Blast, Drain)
 1 - Basic (Fight)
Mage

73. (Reaction)
 8 - Magic (Slow)
CaveNaga

74. (Reaction)
 8 - Magic (Tongue)
Naga

75. (Reaction)
87 - Egg, Damage (Hatch)
 8 - Magic (Mute)
HugeNaga

76.
 2 - Charm (Bluster)
 3 - 1 Monster (Bluster)
 1 - Basic (Fight)
Panther

77.
 2 - Charm (Bluster)
 1 - Basic (Fight)
BlackCat

78. (Reaction)
 5 - Damage (Bluster)
BlackCat

79.
 3 - 1 Monster (Globe199, Recover)
26 - Reflect (Nothing)
 1 - Basic (Wall on Self)
CPU

80. (Reaction)
33 - Fight-1 Monster (Absorb)
36 - Magic-1 Monster (Curse)
SwordMan

81. (Reaction)
 5 - Damage (Fight)
EpeeGirl, D.Machin


82. (Moon)
 2 - Charm (Roulette Hug)
 4 - All Same (Fight, Hug, Retreat)
 1 - Basic (Fight)
Kary

83.
 2 - Charm (Fight)
 3 - 1 Monster (Fight)
 1 - Basic (Ray)
Medusa

84.
 2 - Charm (Fight)
 3 - 1 Monster (Ray)
 1 - Basic (Fight)
Gorgon

85.
 2 - Charm (Spell - Charm)
 1 - Basic (Fight, Charm)
Dummy(1)

86.
 2 - Charm (Spell - Charm)
 1 - Basic (Fight)
Gremlin, Fiend,

87. (Reaction)
 8 - Magic (Spell - Charm)
Gremlin

88. (Reaction)
 5 - Damage (Spell - Charm)
Fiend

89.
 2 - Charm (Fight)
 3 - 1 Monster (Blaze)
 1 - Basic (Fight)
Chimera

90.
 2 - Charm (Blaze on Party)
 1 - Basic (Blaze, Fight, Fight)
Mantcore

91.
 2 - Charm (Fire)
39 - Formation 451 (Fire, Fight)
 3 - 1 Monster (Fire)
 1 - Basic (Fight)
FlameDog


92.
 2 - Charm (Blizzard)
 4 - All Same (Blizzard, Fight)
 1 - Basic (Fight)
IceBeast

93.
 2 - Charm (Toad on Party Target)
 1 - Basic (Do Nothing)
TinyToad

94. (Reaction)
37 - Attack Ordered (Toad)
TinyToad

95.
 2 - Charm (Fatal)
 3 - 1 Monster (Call)
 1 - Basic (Fight)
Marion

96.
 2 - Charm (Drain)
 3 - 1 Monster (Call)
 1 - Basic (Fight)
Sorcerer

97.
 2 - Charm (Cast Warp... interesting.)
 3 - 1 Monster (Call)
 1 - Basic (Fight)
Conjurer

98.
 2 - Charm (Bersk)
 1 - Basic (Fight)
Puppet

99. (Reaction)
 9 - Fire Magic (Fire-1)
10 - Ice Magic (Ice-1)
11 - Lightning Magic (Lit-1)
Puppet

100. (Reaction)
 2 - Charm (Wall)
 1 - Basic (Fight)
EvilDoll

101.
 9 - Fire Magic (Fire-2)
10 - Ice Magic (Ice-2)
11 - Lightning Magic (Lit-2)
EvilDoll

102.
15 - Bolt Magic (Target Enemy - Beam)
 1 - Basic (Beam)
Beamer

103. (Moon)
40 - If All Party has Count (Target Party-Fast)
 1 - Basic (Target Party-Count)
Plague

104.
 2 - Charm (Fast on Enemy)
 4 - All Same (Fight)
 1 - Basic (Slow, Mute)
Witch

105.
 2 - Charm (Size on Party Target)
 3 - 1 Monster (Toad on Party, Toad on Self, Retreat)
 1 - Basic (Order Enemies)
ToadLady

106. (Moon)
 2 - Charm (Stone)
 3 - 1 Monster (Fight, Weak)
 1 - Basic (Fight)
Warlock

107. (Moon)
 1 - Basic (Fight)
RedGiant

108.(Moon) (Reaction)
 82 - Call (Explode)
  8 - Magic (Beam)
RedGiant

109.
 86 - Egg (Nothing)
  2 - Charm (Fightx2)
  1 - Basic (Fight, Thunder)
Green D.

110.
 86 - Egg (Nothing)
  2 - Charm (Fightx2)
  1 - Basic (Fight)
Yellow D.

111.
 87 - Egg, Damage (Hatch)
  5 - Damage (Thunder)
Yellow D.

112.
 1 - Basic (Search. Magnet, Beam)
Last Arm

113.
 3 - 1 Monster (Nothing)
 1 - Basic (Nothing)
Alert, Searcher

114. (Reaction)
 34 - Damage, 1 Monster (Alert)
  5 - Damage (Beam)
Alert, Searcher

115.
  2 - Charm (Fight)
  1 - Basic (Breath, Digest, Fight)
Molbol

116. (Moon)
 2 - Charm (Roulette Entangle, Roulette Fight)
 1 - Basic (Fight, Blaze)
Ging-Ryu

117. (Moon) (Reaction)
 82 - Call (Tornado)
Ging-Ryu

118.
  1 - Basic (Blitz)
Clapper

119.
 15 - Bolt Magic (Target Foe - Fight)
  1 - Basic (Fight)
Machine

120. (Unused?)
 15 - Bolt Magic (Roulette Laser)
  1 - Basic (Laser)
NOTE: This seems like such a familiar sequence, but I could not find the enemy which corresponded to it.

121. (Reaction)
 11 - Bolt Magic (Magnet)
MacGiant

122.
  2 - Charm (Roulette Fight)
  1 - Basic (Fight, Blizzard)
Blue D.
 
123. (Reaction)
  9 - Fire Magic (Blizzard)
Blue D.

124. (Moon)
  1 - Basic (Fight)
D. Fossil

125. (Moon) (Reaction)
 82 - Call (Fire)
D. Fossil

126. (Moon)
 18 - Flag 1 (Dancing, Music, Fight, Charm)
  1 - Basic (Set Flag to 1)
PinkPuff

127.
  2 - Charm (Explode on Party Target)
  1 - Basic (Fire)
D. Machin

128.
  8 - Magic (Petrify)
EvilWall

129.
  3 - 1 Monster (Retreat)
  1 - Basic (Order Monsters)
Officer

130.
  3 - 1 Monster (Retreat)
  1 - Basic (Order Monsters)
General
NOTE: Virtually the same as above except the two use Slightly different messages. A duplicate for all intents and purposes.

131.
 38 - Formation 247 (Fight)
  4 - All Same (Target Foe - Fight)
  1 - Basic (Nothing)
Soldier, Fighter

132.
 37 - Ordered (Fight)
Soldier, Fighter

133.
  2 - Charm (Fight)
  1 - Basic (x2 Fight)
Aligator, Crocdile, 
NOTE: A copy of Index 54.

134. (Moon)
  40 - Party is inflicted with Count (Fast, Bersk, Charm)
   2 - Charm (Fight Party)
   1 - Basic (Count)
FatalEye

135.
  1 - Basic (Fight, InvinOn, Flag1, InvinOff)
D. Mist

136.
 41 - Fight, Flag1 (ColdMist)
D. Mist

137.
  1 - Basic (Call)
Girl

138.
  1 - Basic (Quake, EndBattl)
Titan

139. 
  1 - Basic (Fight)
Octomamm
NOTE: This can be changed to any Index as long as it has normal fight included as Octomamm is a boss it cannot be charmed to begin with so changing it to Index 2 should present no issues.

140. (Reaction)
 42 - Damage, Flag 2 (Speed, Flag to Current Flag (+1?))
 43 - Damage, Flag 4 (Speed, Flag to Current Flag (+1?))
 44 - Damage, Flag 6 (Speed, Flag to Current Flag (+1?))
 45 - Damage, Flag 8 (Speed, Flag to Current Flag)
 46 - Damage, Flag 10 (Speed, Flag to Current Flag)
 47 - Damage, Flag 12 (Speed, Flag to Current Flag)
 48 - Damage, Flag 14 (Speed, Flag to Current Flag)
  5 - Damage (Set Flag to Current Do Nothing.)
Octomamm

141.
  1 - Basic (Nothing)
Bard

142.
 52 - Flag 3, Fight (EndBattl)
 51 - Flag 2, Fight (Set Flag to 3)
 50 - Flag 1, Fight (Set Flag to 2)
  7 - Fight (Set Flag to 1)
Bard

143.
  1 - Basic (Fight)
WaterHag
NOTE: Another waste of an index, can be changed to anything, really.

144. (Reaction)
 54 - Damage, Flag 2 (Vanish)
 53 - Damage, Flag 1 (R-Images, Flag 2, Remove Defense)
  5 - Damage (C-Anna, Flag 1)
WaterHag

145.
 18 - Flag 1 (Explode, TradeOff)
 55 - >10000 HP (Flag 1)
  1 - Basic (Fight)
MomBomb

146.
  3 - 1 Monster (Lit 1, Fight)
  1 - Basic (Order Monsters)
Milon

147. (Reaction)
 56 - >1000 HP (Vanish)
  5 - Damage (Lit-1)
Milon

148.
  4 - All Same (Fight)
  1 - Basic (Nothing)
Ghast

149. (Reaction)
 37 - If Ordered (Drain)
Ghast

150.
 18 - Flag 1 (Fight)
  1 - Basic (Flag 1, Do Nothing)
Milon-Z
NOTE: Does he really just do that? I thought he used more magic... somewhere?

151. (Unused) (Reaction)
  9 - Fire Magic (Show Dummied Message, use DullSong)
NOTE: Message is only being mentioned here to show that it is fully unused. It seems this is likely an unused Reaction for Scarmiglione's second form.

152.
 18 - Flag 1 (Dark, Flag to 0)
  1 - Basic (Dark, Dark, Dark, Dark, Vanish)
D. Knight

153.(Reaction)
  7 - Fight (Flag 1)
D. Knight

154.
 57 - Monster 0 Dead (Explode)
  1 - Basic (Entangle, Fight)
Left Arm

155.
 57 - Monster 0 Dead (Explode)
  1 - Basic (Fight, Vampire)
Right Arm

156.
  3 - 1 Monster (Recover on KO'd)
  1 - Basic (Fight, Fast)
Baigan

157. (Reaction)
  8 - Magic (Wall)
Baigan

158.
 19 - Flag 2 (Remedy, Defense+, Flag 1)
 18 - Flag 1 (Reaction 1, Weak-Bolt, Wait, Wave, Fast)
  1 - Basic (Fight, Flag 1)
Kainazzo

159. (Reaction)
 59 - Reaction 1, Bolt Magic (Weak-Ice, Flag 0)
 58 - >700 HP, Damage (Flag 2, Weak-Ice)
Cagnazzo

160.
 60 - Formation 252 (Fight, Quake)
  1 - Basic (Chain Fire2, Ice-2, Lit-2 (End Chain), Weak, EndBattl)
Dark Elf (1)

161.
  1 - Basic (Fire 2, Chain Lit-2, Ice 2 (End Chain), Weak, Whisper)
Dark Elf (2)

162. (Reaction)
 61 -  >20000 HP, Damage (TradeOff)
Dark Elf (2)

163.
  1 - Basic (Fight, D. Breath)
Dark Elf (3)

164.
 63 - Monster 0 KO'd (Charm, Bersk, Slow, Cure2)
  1 - Basic (Type 2 Foe-Wall)
Sandy

165.
 63 - Monster 0 KO'd (Fire1, Lit-1, Ice-1, Venom)
  1 - Basic (Type 2 Foe-Fire2,Lit-2,Ice-2,Virus)
Mindy

166.
  3 - 1 Monster (Fight, Remedy on Foes)
 62 - Monster 0 KO'd (Fight, Remedy on Foes)
 64 - Monster 0 KO'd (Fight, Remedy on Foes)
  1 - Basic (Fight)
Cindy
NOTE: Monster 0 must be literally "any monster" since it doesn't correspond correctly otherwise. However 62, 63, and 64 are redundant conditionals since they all do the same thing.

167.
 19 - Flag 2 (Fight, Nothing flag 0)
 18 - Flag 1 (Chain-Weak,Ray (End), Fight)
  1 - Basic (Chain-Defense+,M. Defense+ (End), Flag 1)
Valvalis

168. (Reaction)
 65 - Flag 1, Jump (Flag 2, -Defense, -Magic, Fight)
 66 - Flag 1, Fight (Messages)
 67 - Flag 1, Magic (Messages)
Valvalis

169.
  1 - Basic (Target DarkKn, Fight, Kick, Target DarkKn, Fight, Kick, Flag1)
Karate

170.
 68 - Flag 1, Paladin Fight (EndBattl)
Karate

171.
  1 - Basic (Fight, Glance, Hold)
Calbrena

172. (Reaction)
 69 - >100 HP, Damage (TradeOff)
  9 - Fire Magic (Fire)
 10 - Ice Magic (Wave)
 11 - Bolt Magic (Thunder)
Calbrena
NOTE: How interesting. These reactions would mostly not be seen unless someone uses an Attack Item on Calbrena. It strongly suggests that you should have had Rydia back already in the original plans.

173.
  4 - All Same (TradeOff)
  1 - Basic (Fight)
Cal

174. (Reaction)
  7 - Fight (Fight)
Cal
NOTE: A very simple reaction. Could likely be put on anything you'd like to have a basic reaction.

175.
  4 - All Same (TradeOff)
  1 - Basic (Fight)
Brena
NOTE: Same exact as above. One of these sets of indexes can be changed without worry.

176. (Reaction)
  7 - Fight (Fight)
Brena
NOTE: As above.

177. (Reaction)
 87 - Egg, Damage (Hatch)
Green. D

178. (Reaction)
 87 - Egg, Damage (Hatch)
  7 - Fight (Charm)
Lamia

179. (Moon)
 18 - Flag 1 (Target Random Foe-Virus)
  1 - Basic (Fight, Fire, Target Party-Breath)
D. Lunar

180. (Moon) (Reaction)
 82 - Call (Self-Remedy)
 23 - Flag 0, Fight (Target Foes-Wall, Flag1)
  3 - One Monster (Fire)
D. Lunar
 
181.
 70 - Formation 253 (Nothing)
 18 - Flag 1 (Fight, Chain-Fight(End), Flag 0
  1 - Basic (Chain-Resist-None,Very Weak-Ice(End), Glare, Chain-Resist-Ice,Absorb,Weak-Ice,Absorb(End), Fight, (Repeat), Flag 1)
Rubicant

182. (Reaction)
 71 - Formation 253, Fire Magic (Glare)
 73 - >1000 HP, Fight (Messages, Vanish)
  7 - Fight (Target All, Fire2)
 27 - Paladin Defeated, Fire Magic (Life1 All Characters)
 28 - Adult Rydia Defeated, Fire Magic (Life1 All Characters)
 29 - Kain2 Defeated, Fire Magic (Life1 All Characters)
 30 - Rosa2 Defeated, Fire Magic (Life1 All Characters)
 31 - Edge Defeated, Fire Magic (Life1 All Characters)
Rubicant
NOTE: Seems a bit extreme, possibly, it is only using one script for it all at least.

183.
   1 - Basic (Fire2, UNKNOWN, Order Monster, Flag 1, Vanish)
K. Eblan

184.
   3 - 1 Monster (Vanish)
  18 - Flag 1 (Nothing)
   1 - Basic (Fire1)
Q. Eblan

185. (Reaction)
  37 - Ordered (Change Sprite)
Q. Eblan
NOTE: Only noted Sprite change because it is all the reaction does of importance.


186.
  3 - 1 Monster (TradeOff, Flag1)
 19 - Flag2 (Heal)
 18 - Flag1 (Nothing)
  1 - Basic (Flag 1)
Dr. Lugae

187. (Reaction)
 74 - Fight(Any Unit?) (Flag 2)
Dr. Lugae

188.
  3 - 1 Monster (Explode)
 19 - Flag 2 (Fight)
 18 - Flag 1 (Target Type1 Foe, Fight, Flag 2)
  1 - Basic (Nothing)
Balnab

189.
  1 - Basic (Fight, Explode)
Balnab-Z

190.
 18 - Flag 1 (Beam, Laster, Emission, Target Party-Heal)
  1 - Basic (Flag 1, Poison)
Dr. Lugae(2)

191. (Reaction)
  5 - Damage (Gas)

192.
 32 - Flag 16 (Crush)
  1 - Basic (Chain-WallMove-Fight-Flag+1(End))
EvilWall

193.
  1 - (Fight, Odin, Fight, Fight, Odin, Fight, Flag 1, Flag 0, Odin)
Odin

194. (Reaction)
 75 - Flag 1, Bolt Magic (Vanish)
Odin

195.
 18 - Flag 1 (Target Party - Maser)
  1 - Basic (Big Wave, Ice-2, Big Wave, Ice-2)
Leviatan
NOTE: Now this is curious! Flag 1 is never triggered on Leviathan in the first place, and that is an ill-fitting attack if that were the case.

196. (Moon) (Reaction)
 91 - 1 Monster, Holy Magic (Storm)
  5 - Damage (Fight)
  8 - Magic (Fight)
Behemoth

197. (Moon)
  1 - Basic (MegaNuke)
Bahamut

198. (Moon) (Reaction)
 92. Magic, Flag 1 (Self-Wall, Flag1)
Bahamut
NOTE: Now this is odd. According to his AI he can never set Flag 1 so this might go unused. I never recall Bahamut using Wall to my recollection anyhow.

199.
 76 - Cecil Critical (Jump, EndBattl)
 18 - Flag 1 (Jump)
  1 - Basic (Jump, Flag 1)
Dragoon

200.
  1 - Basic (Nothing)
Golbez
NOTE: Copy of 141 and can be replaced.

201. (Reaction)
  9 - Fire Magic (Messages)
 10 - Ice Magic (Messages)
 16 - Holy Magic (Vanish)
Golbez

202.
 19 - Flag 2 (Virus, Lit-3, Fire2)
 77 - Flag 1, 1 Monster (Target Party-Heal, G-Rydia, Flag 2)
 18 - Flag 1 (Nothing)
  1 - Basic (Hold Gas, Flag 1)
Golbez(2)

203. (Reaction)
 78 - >19000 HP, Damage (Vanish)
Golbez(2)

204.
  1 - Basic (Chain-Yang2,Demolish,Kain2,Demolish,Rosa2,Demolish, Chain-InvinOff,G-MistD,G-MD-Spl(End))
Shadow

205.
 19 - Flag 2 (Life1, Flag 0)
 18 - Flag 1 (Cure3, Flag2)
  1 - Basic (Cure4, Flag1)
Asura

206. (Reaction)
 81 - Flag 2, Damage (Fight, Flag1)
 80 - Flag 1, Damage (Fight, Flag0)
 79 - Flag 0, Damage (Fight, Flag2)

207.
 18 - Flag 1 (Fire2, Fire3, Glare)
  1 - Basic (Chain-Resist-Ice-Bolt-Dark,Very weak-Fire, Race-Zombie(End)Fight, Curse)
Elements

208. (Reaction)
 89 - Flag 1, >11000 HP, Damage (TradeOff)
 88 - Flag 0, >40000 HP, Damage (Flag1, Resist-Fire-Bolt-Dark, Very Weak-Ice, Race-Mage)
Elements

209.
 20 - Flag 3 (Fight, Ray, Storm)
  1 - Basic (Chain-Flag2-Resist-Fire-Ice-Dark,Very Weak-Bolt,Race-None(End), Fight, Big Wave)
Elements(2)

210. (Reaction)
 90 - Flag 2, >27000 HP, Damage (Flag 3, Resist-None, Weak-Holy, Race-None)
Elements(2)
NOTE: Hmm... without clearing the Bolt Weakness, does that mean that Barbariccia is then weak to Bolt as well?

211.
  1 - Basic (Target Type 1, Remedy)
Defender

212.
  1 - Basic (Target Party - Maser)
Attacker

213. (Moon)
  1 - Basic (Nothing)
Zemus

214. (Moon) (Reaction)
 83 - ?224? (Twin?), Flag 1 (Vanish)
 16 - Holy Magic (Flag 1)
Zemus

215. (Moon)
  1 - Basic (Nothing)
Zeromus

216. (Moon) (Reaction)
 84 - FuSoYa, Holy Magic (Messages, Nothing)
 96 - Dark Magic (Meteo)
Zeromus

217.
  1 - Basic (Chain-Flag1-Search(End), Chain-Disrupt-Flag0)
TrapDoor

218.
 85 - >700, Damage, Flag 0 (TradeOff)
TrapDoor

219.
  1 - Basic (Self-Peep, Retreat)
Dummy(5)
NOTE: A Programmer's Room Battle AI. Can be replaced.

220.
  1 - Basic (Self-Sleep, EndBattl)
Dummy(4)
NOTE: A Programer's Room Battle AI. Can be replaced.

221.
  1 - Basic (Fight)
Antlion
NOTE:A repeat of another Index. Can be replaced.

222. (Reaction)
  7 - Fight (Counter)
Anlion

223. (Moon)
 19 - Flag 2 (Chain-Disrupt-Z-Shake(End))

 18 - Flag 1 (Chain-C-Cid/Yn-Z-FlHeal-Target Edge-Z-Elixir-Target Kain3-Z-Elixir-R-Images(End), Chain-C-Gol/Fu-Z-FlHeal-Target Party-Z-Elixir-R-Images-Flag2-Z-Shake(End))

  1 - Basic (Chain-C-Pa/Po-ZFlHeal-Target Party-Z-Revive-R-Images(End),  Chain-C-Ed/Tel-ZFlHeal-Target Rosa2-Z-Elixir-Target Adult Rydia-Z-Elixir-R-Images-Flag1(End))
Zeromus(2)
 
224. (Moon) (Reaction)
 95 - Cecil, Dark Magic, Flag 2 (UNKNOWN, TradeOff, UNKNOWN)
  5 - Damage (Vanish2)
Zeromus(2)
Note: Interesting, apparently if you ever found a way to damage Zeromus, he would undo it immediately.

225. (Moon)
 22 - Flag 5 (Chain-Magic-27-Meteo(End))

 21 - Flag 4 (Z-Shake, Magic+1, Big Bang, Blk. Hole, Magic-16, Nuke, Z-Shake, Magic+2, Big Bang)

 20 - Flag 3 (Z-Shake, Magic+1, Big Bang, Blk. Hole, Z-Shake, Magic+2, Big Bang, Magic+6, Target Party-Virus, Blk. Hole, Magic+2, Big Bang, Blk. Hole)

  1 - Basic (InVinOff, Z-Shake, Big Bang, Flag 3)
Zeromus (3)

226. (Moon) (Reaction)
 98 - Flag 4, Damage, >12000 HP (Flag 5)
 25 - Flag 3, Damage, >16000 HP (Flag 4, Vanish2)
 94 - Call, Flag 3, (Magic-16, Nuke)
 82 - Call (Magic+6, Target Party-Virus)
 16 - Holy Magic (Enemy Spell - Weak)
  8 - Magic (Magic-16, Nuke)
Zeromus(3)

227. (Moon)
  2 - Charm (Thunder on Party)
  1 - Basic (Fight, Blitz)
King-Ryu

228. (Moon) (Reaction)
  5 - Damage (Entangle)
King-Ryu

229. (Moon)
  2 - Charm - (Self-Fire3, Self-Fight)
  3 - 1 Monster (Fight, Heat Ray, Fight)
  1 - Basic (Fight, Fightx2)
Red D.

230. (Unused) (Moon) (Reaction)
 82 - Call (Bluster)
NOTE: This seems like it was made for another Couerl-like monster, but there are none on the moon, as I recall in the Normal FFIV. In FFIV:TAY there are Couerl-like foes on the moon. Might it be that they were planned all the way back in 1991?

231. (Moon)
 18 - Flag 1 (Self-White, Self-Nuke, Self-Virus, Self-White, Target Party-Cure3, Target Roulette-Fast, Self-Wall)
  1 - Basic (Wall, Target Party-Wall, Flag 1)
EvilMask

232. (Moon) (Unused)
  1 - Basic (Invalid - Script:256)
NOTE: No idea, but it is another free index in any case.

233. (Moon)
 19 - Flag 2 (Target Party, Lit-3)
  1 - Basic (Self-Peep)
Tricker

234. (Moon) (Reaction)
 11 - Bolt Magic (Fast, Flag 2)
Tricker

235. (Moon)
 26 - Reflect (Magic-18, Nuke, Magic-22, Magic-18, Nuke, Magic-22, Magic-18, Nuke, Magic-22, Magic-18, Nuke, Magic-22)
 18 - Flag 1 (Self-Remedy, Self-Wall)
  1 - Basic (MegaNuke, Flag1, Self-Wall)
Wyvern

236. (Moon) (Reaction)
 82 - Call (Magic-24, MegaNuke)
Wyvern

237. (Moon)
  1 - Basic (Fight, Big Wave)
Ogopogo

238. (Moon) (Reaction)
 11 - Bolt (Enemy Spell - Weak)
 82 - Call (Blaze)
  8 - Magic (Blaze)
Ogopogo

239. (Moon)
  1 - Basic (Fight, many times)
Pale Dim
 
240. (Moon) (Reaction)
 82 - Call (Quake)
  7 - Fight (Slow)
  9 - Fire Magic (Glare)
 10 - Ice Magic (Blizzard)
 11 - Bolt Magic (Blitz) 
Pale Dim

241. (Moon)
  1 - Basic  (Fight, Target Party-Charm)
Mind

242. (Moon) Reaction)
  7 - Fight (Armor)
 16 - Holy Magic (Shell)
Mind

243. (Moon)
  1 - Basic (Peep)
Breath

244. (Moon) (Reaction)
  8 - Magic (Blast)
Breath

245. (Moon)
 98 - Flag 4, Damage >12000 HP ("!" messages, TradeOff)
  1 - Basic (One message that says "It's my turn now!" and the rest are unused, EndBattl)
NOTE: What a strange index, it seems like it may have been intended for a Programmer battle at one point with the emphasis on Messages and EndBattl's.

246. (Moon)
 1 - Basic (Fight)
Behemoth
NOTE: Copy of Index 62 (Also Moon). Can be replaced.

247. (Reaction)
  7 - Fight (Messages, Explode)
NOTE: Programmer's Room Battle, can be replaced.

248.
  1 - Basic (Messages, EndBattl)
Dummy(6)
NOTE: Programmer's Room Battle, can be replaced.

249.
  1 - Basic (Nothing)
Dummy(3)
NOTE: Copy of 141, can be replaced.

250.
  1 - Basic (UNKNOWN, Messages, Vanish)
Dummy(7)
NOTE: Programmer's Room Battle, can be replaced.

251.
  1 - Basic (Messages, EndBattl)
Dummy(8)
NOTE: Programmer's Room Battle, can be replaced.

252. (Reaction)
 24 - >1000 HP, Damage (Fission)
Last Arm
NOTE: Programmer's Room Battle, can be replaced.

253. (Reaction)
  5 - Damage (Message, Slap)
Dummy(7)
NOTE: Programmer's Room Battle, can be replaced.

254.
  1 - Basic (Repeating Message, Fight)
Dummy(9)
NOTE: Programmer's Room Battle, can be replaced.





I will also soon be including Script usage, as that is a bit of a different matter, but half of the work is done for me here. I did not include matters that I considered non-essential so most mentions of messages are left out, as are all sprite changes, and music changes.

1088
I could be wrong here (I don't think I am though), but if you have a script that reacts to a particular elemental, and it happens
that the enemy is also weak vs that elemental, that script doesn't always execute. It's peculiar behavior and may need some
further examination.

Case and Point: Consider the Odin battle. Apparently casting lighting is supposed to cause immediate death to Odin, but it doesn't
quite work... and the success rate of triggering the script as far as I can tell at the moment is pitiful. The doll monsters summoned
by the Marions (FF2US name) react to all basic elemental spells (Fire, Ice, and Lightning). Apparently when their weakness is exposed
(which happens to be Fire), they seem to fail to counterattack with Fire.

It is interesting behavior that is worth pointing out.

Note: This isn't true if the battle was scripted.

Ancient post, but I thought it was worth pointing out... while looking through the AI index routines Odin only sets Flag 1 for a mere instant and that's after two of his special attacks.

193.
  1 - (Fight, Fight, Fight, Odin, Fight, Fight, Odin, Fight, Flag 1, Flag 0, Odin)
Odin

And his Reaction is if he is hit with Lightning while Condition Flag 1 is active, then he dies automatically. There is a very short span of time to take advantage of this.


1089
Hmm... Well let's take a closer look at that Level Up Data (After 70) shall we?

Random Level Up Selection.

Code: [Select]
$03/EF20 C9 46 CMP #$46 A:0046 X:0000 Y:0004 P:envMxdizc - Is the Level 70?
$03/EF22 90 02 BCC $02    [$EF26] A:0046 X:0000 Y:0004 P:envMxdiZC - If less, branch to 03EF26
----------------------------------------------------------------------------------------------------------------------------------------
$03/EF24 A9 45 LDA #$45 A:0046 X:0000 Y:0004 P:envMxdiZC - Load 69 into A.
---------------------------------------------------------------------------------------------------------------------------------------------
$03/EF26 3A DEC A A:0045 X:0000 Y:0004 P:envMxdizC - -1 to A.
$03/EF27 85 DF STA $DF    [$00:00DF] A:0044 X:0000 Y:0004 P:envMxdizC - Store A in DF.
$03/EF29 A9 05 LDA #$05 A:0044 X:0000 Y:0004 P:envMxdizC - Load 05 into A.
$03/EF2B 85 E1 STA $E1    [$00:00E1] A:0005 X:0000 Y:0004 P:envMxdizC - Store A in E1.
$03/EF2D 20 E0 83 JSR $83E0  [$03:83E0] A:0005 X:0000 Y:0004 P:envMxdizC - Jump to Subroutine (??)
$03/EF30 A4 E3 LDY $E3    [$00:00E3] A:0000 X:0000 Y:0004 P:envMxdiZc - Load Y from E3.
$03/EF32 7B TDC A:0000 X:0000 Y:0154 P:envMxdizc - Transfer Direct Page.
$03/EF33 AA TAX A:0000 X:0000 Y:0154 P:envMxdiZc - Transfer A to X.
---------------------------------------------------------(Looping Point)-------------------------------------------------------------
$03/EF34 B7 80 LDA [$80],y[$0F:B78B] A:0000 X:0000 Y:0154 P:envMxdiZc - Load A from Address in 80+Y (0154)
$03/EF36 9D 9C 28 STA $289C,x[$7E:289C] A:00A9 X:0000 Y:0154 P:eNvMxdizc - Store A in 7E289C.
$03/EF39 C8 INY A:00A9 X:0000 Y:0154 P:eNvMxdizc - +1 to Y.
$03/EF3A E8 INX A:00A9 X:0000 Y:0155 P:envMxdizc - +1 to X
$03/EF3B E0 05 00 CPX #$0005 A:00A9 X:0001 Y:0155 P:envMxdizc - Has it looped five times?
$03/EF3E D0 F4 BNE $F4    [$EF34] A:00A9 X:0001 Y:0155 P:eNvMxdizc - If not loop back to 03EF34
--------------------------------------------------------------------------------------------------------------------------------------------
$03/EF42 BD 02 10 LDA $1002,x[$7E:1002] A:00CB X:0000 Y:0159 P:envMxdiZC - Load Character Level into A.
$03/EF45 C9 46 CMP #$46 A:0046 X:0000 Y:0159 P:envMxdizC - Is it 70?
$03/EF47 90 1C BCC $1C    [$EF65] A:0046 X:0000 Y:0159 P:envMxdiZC - If below 70 branch to 03EF65
----------------------------------------------------------------------------------------------------------------------------------------------
$03/EF4A A2 00 00 LDX #$0000 A:0046 X:0000 Y:0159 P:envMxdiZC - Load 00 into X.
$03/EF4D A9 07 LDA #$07 A:0046 X:0000 Y:0159 P:envMxdiZC - Load 07 into A.
$03/EF4F 20 79 83 JSR $8379  [$03:8379] A:0007 X:0000 Y:0159 P:envMxdizC - Put 00-07 into a Random Number Generator (choosing which of the eight selections to take)
$03/EF52 AA TAX A:0003 X:0000 Y:0059 P:eNvMxdizc - Transfer A to X.
$03/EF53 86 AD STX $AD    [$00:00AD] A:0003 X:0003 Y:0059 P:envMxdizc - Store X in AD.
$03/EF55 7A PLY A:0003 X:0003 Y:0059 P:envMxdizc - Pull Y from Stack.
$03/EF56 C2 20 REP #$20 A:0003 X:0003 Y:0159 P:envMxdizc - Reset Processor Status.
$03/EF58 98 TYA A:0003 X:0003 Y:0159 P:envmxdizc - Transfer Y to A.
$03/EF59 18 CLC A:0159 X:0003 Y:0159 P:envmxdizc - Clear Carry Flag.
$03/EF5A 65 AD ADC $AD    [$00:00AD] A:0159 X:0003 Y:0159 P:envmxdizc - Add the value in AD onto A.
$03/EF5C A8 TAY A:015C X:0003 Y:0159 P:envmxdizc - Transfer A to Y.
$03/EF5D 7B TDC A:015C X:0003 Y:015C P:envmxdizc - Transfer Direct Page.
$03/EF5E E2 20 SEP #$20 A:0000 X:0003 Y:015C P:envmxdiZc - Set Processor STatus.
$03/EF60 B7 80 LDA [$80],y[$0F:B793] A:0000 X:0003 Y:015C P:envMxdiZc - Load A from Address in 80 + y (to reach appropriate section of data)
$03/EF62 8D 9C 28 STA $289C  [$7E:289C] A:00F9 X:0003 Y:015C P:eNvMxdizc - Store A in 7E289C.
$03/EF65 AD 9F 28 LDA $289F  [$7E:289F] A:00F9 X:0003 Y:015C P:eNvMxdizc - Load A from 7E289F.
$03/EF68 85 AD STA $AD    [$00:00AD] A:0062 X:0003 Y:015C P:envMxdizc - Store A in AD.
$03/EF6A AD A0 28 LDA $28A0  [$7E:28A0] A:0062 X:0003 Y:015C P:envMxdizc - Load A from 7E28A0.
$03/EF6D 85 AE STA $AE    [$00:00AE] A:00CB X:0003 Y:015C P:eNvMxdizc - Store A in AE.
$03/EF6F AD 9E 28 LDA $289E  [$7E:289E] A:00CB X:0003 Y:015C P:eNvMxdizc - Load A from 7E289E.
$03/EF72 20 83 84 JSR $8483  [$03:8483] A:00BA X:0003 Y:015C P:eNvMxdizc - Jump to Subroutine (Divide the value in A 5 times.)
$03/EF75 85 AF STA $AF    [$00:00AF] A:0005 X:0003 Y:015C P:envMxdizC - Store A in AF.
$03/EF77 A6 A6 LDX $A6    [$00:00A6] A:0005 X:0003 Y:015C P:envMxdizC - Load X from A6 (I swear the random choice above wasn't even used...)
$03/EF79 18 CLC A:0005 X:0000 Y:015C P:envMxdiZC - Clear Carry Flag.
$03/EF7A BD 3D 10 LDA $103D,x[$7E:103D] A:0005 X:0000 Y:015C P:envMxdiZc - Load Experience Byte 1.
(A lot of basic experience computing here for a while, skipping it...)

Yet even with all of this I can't figure it out properly, hmm...






1090
Final Fantasy IV Research & Development / Re: Whose turn is it?
« on: October 30, 2013, 11:33:15 AM »
An interesting idea Chillyfeez, I suspect that it is an invisible ATB gauge that counts up until that person's turn is reached. I'll see if I can't find anything more concrete...

Hmm, well just by simple mathematic I think that Yousei must have been off on his relative speed dealings.

Cecil's Agility x 32 / Character's Agility x 0A if it is Cecil's case it should Always Equal 03, but the value that seems to be consistent is that it is 5 no matter what.

But if it is reading another character, then it might make sense...

A level 1 Rydia with 4 Agility who is in a party with a 99 Agility Cecil has EF01 as her Relative Speed.

99 x 32 = 3168 / 4 x 10 = 40. 3168 /40 should only be 79. But EF+(255x1)01 is 495.

She'll get one turn to Cecil's 20 it seems.

This is definitely worthy of further exploration.


1091


Yeah! I was working on those a while back but got stuck on some details like Golbez etc. so I can't recall off hand how robust or stable that component is at the moment.

As far as I could tell it seemed fully stable to me, I suspect that only that particular formation calls a second AI component. But I might be wrong.


I can't recall off hand what addresses that changes. I'll look into the code sometime in the next couple of days and let you know.

Thanks. Though I can probably just test it and see how it works...

Yeah, I think the hack that Phoenix made only changes the animation for the spells and doesn't touch upon their formulaic basis.

Here's a neat little addition that should be a very simple addition to the editor. How the game decides if the character is Yang and how to process Damage from Fight.

The code surrounding it is in my other thread, quite a bit was revealed within. But for the purposes of the editor this should suffice...

In LoRom/HiRom...

$03/9B0D   C9 00   CMP #$06   A:0000   X:FFFF   Y:0001   P:envMxdiZc - Is it Yang's ID?

This is the check for which character is considered to have special considerations when it comes to weapons.

But you could really link this special behavior to anything...

$03/9B06   A0 01 00   LDY #$0001   A:0001   X:FFFF   Y:0024   P:eNvMxdizc - Load 1 into Y.
$03/9B09   B1 80   LDA ($80),y[$7E:2001]   A:0001   X:FFFF   Y:0001   P:envMxdizc - Load Slot's ID.
$03/9B0B   29 0F   AND #$0F   A:0000   X:FFFF   Y:0001   P:envMxdiZc - Get rid of negatives?
$03/9B0D   C9 06   CMP #$06   A:0000   X:FFFF   Y:0001   P:envMxdiZc - Is it Yang's ID?
$03/9B0F   D0 03   BNE $03    [$9B14]   A:0000   X:FFFF   Y:0001   P:envMxdiZC - If not branch to 039B14.

You could have it look at specific weapons, different armors, etc.

Ok so if I understand correctly, what you're talking about here is "which character has martial arts"? What address do I change in the ROM for that? And how does it relate to specific weapons and armors?

FFIV is a pretty small game and most sequences of bytes that contain relevant information are normally only held once or twice in the coding.  (Granted I screwed up above and instead used my slightly modified code that was there for testing purpose. the C9 00 should be C9 06)

This is located in a 1.1 Rom at 19B06.

Now I've explained this before, but its worth reiterating... a lot of these dealings have very simple to change attributes in this case case it's this...

Code: [Select]
$03/9B06 A0 01 00 LDY #$0001 A:0001 X:FFFF Y:0024 P:eNvMxdizc - Load 1 into Y.
$03/9B09 B1 80 LDA ($80),y[$7E:2001] A:0001 X:FFFF Y:0001 P:envMxdizc - Load Slot's ID.

The 1 loaded into Y loads the data 7E2001 which is Class ID. By changing the 01 to say 30, 31, or 32 (Armor, Helmet, or Gauntlet) and then look for a specific Equipment Piece, freely chosen by the player.

Code: [Select]
$03/9B0B 29 0F AND #$0F A:0000 X:FFFF Y:0001 P:envMxdiZc - Get rid of negatives?
$03/9B0D C9 06 CMP #$06 A:0000 X:FFFF Y:0001 P:envMxdiZc - Is it Yang's ID?
$03/9B0F D0 03 BNE $03    [$9B14] A:0000 X:FFFF Y:0001 P:envMxdiZC - If not branch to 039B14.

C9 06 is pretty blatant but here is where you use the values changed above, you can even make a range of equipment type you want for this.

D0 03 is fully malleable, and can be used as a Lesser/Higher range. By changing it to 90 (BCC) for Below the CMP and B0 for Above the CMP to branch. For example....

Say I wanted to make it look at the Right Hand...

http://rb.thundaga.com/tob/record.txt

Thanks to Yousei's old notes I would just do this then...

Code: [Select]
$03/9B06 A0 33 00 LDY #$0033 A:0001 X:FFFF Y:0024 P:eNvMxdizc - Load 33 into Y (Corresponding to Right Hand Equipment)
$03/9B09 B1 80 LDA ($80),y[$7E:2033] A:0001 X:FFFF Y:0033 P:envMxdizc - Load Right Hand Equipment into A.
$03/9B0B EA NOP A:0016 X:FFFF Y:0033 P:envMxdizc - Null
$03/9B0C EA NOP A:0016 X:FFFF Y:0033 P:envMxdizc - Null (The original "subtract" is detrimental for this.)
$03/9B0D C9 06 CMP #$06 A:0016 X:FFFF Y:0033 P:envMxdizc - Is it CatClaw or Below?
$03/9B0F B0 03 BCS $03    [$9B14] A:0016 X:FFFF Y:0033 P:envMxdizC - If higher than CatClawsbranch to 039B14.
(This would also have the added effect of Kain, if not wearing a shield, to have Martial Arts)

That kind of modification however may be difficult to incorporate into the editor. Though I do believe that there is room for places where the Stat Record can be changed, which I've written at length in my hacking and notes thread.

Boast for one could really use some easy modification in the editor, as can Cry. With the ability to change other stats with them.

Many of the Commands may be edited Freely now. What should power DarkWave's sacrifice? Improving Steal's Hit Rate, Changing what Item Slot (00-03) would Steal take from, Changing the hit rates (and the spell slots themselves) for Comet and Flare for Twin. Sing's Frog Song and what would activate the conditions for Frog Song, and even more. A lot of that isn't too complicated to put into the editor in time, I would imagine, but if you'd like me to find the ROM offsets for many of these, I could do that as well.

1092
Final Fantasy IV Research & Development / Re: Fun with Summons
« on: October 27, 2013, 07:58:52 PM »
Now that last part is very impressive! It is probably the first recorded instance of someone delving into the actual data of possibly sequence/pointers.

Incredible work Chillyfeez!

1093
Final Fantasy IV Research & Development / Re: Fun with Summons
« on: October 25, 2013, 08:47:29 AM »
Deftly explained! Your edit to the previous post also clarifies a few things as well. Though with TileLayer how do you even get a semblance of the graphics to look proper? Embarrassingly I couldn't even manage that much.

1094
Game Modification Station / Re: vivify93's FFIV hacking questions
« on: October 24, 2013, 04:45:29 PM »
That Kaipo bug is still a mystery. I could not figure out why it happens. There is nothing special about the Battle BG, but there may be something special with the battle system which refers Specifically to battles fought in Kaipo Must Be dark. Now that I am much brighter about this sort of thing I will try to take a look on that...

Alright then, let's see...

1800/1801 is Number of Encounter but 1802 is what we should be looking at...

20 Should be the night town. But the game never sets this it self. So that must mean there is something special about Kaipo and I will try to find it...

And I have found it. I'm not sure why it happens in Kaipo but one of the checks is some sort of map dealings Kaipo is 60 for instance. The Mist Cave is 3C.

Somehow your Kaipo is not 60 but 20 and this causes the game to not show the proper background. Do you have Any idea what you may have changed in Kaipo? I'm not sure I can fix this...

The reason it is 60 is because it looks to see if 20+40=60. And if so it will show the Night Battle.

Or apparently I can. Alright somehow along the lines you changed this in Kaipo's Data...

0A9C9E - Change the 20 that was somehow placed there back into a 60.

That will fix your problem. I am still quite confused how this was changed in the first place.



1095
The post above now contains the Attack Building Formulas for...

Normal Weapons, Yang, Bow/Arrows (Arrows/Bow as well), and Dual-Wielding, this is of most value in the special cases as the normal weapon routine only goes through the necessities that these others mostly go through as well.  However changing the special cases is likely difficult since they only reinforce values from the normal routines for the most part.