øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;u=123;area=showposts;start=165e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexcaf7-2.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;area=showposts;u=123e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexcaf7-2.html.zxòg^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ…¬š^OKtext/htmlISO-8859-1gzip@øÕš^ÿÿÿÿÿÿÿÿTue, 10 Mar 2020 20:17:34 GMT0ó°° ®0®P®€§²ð®òg^ÿÿÿÿÿÿÿÿç3š^ 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

166
Alright! I've just about cracked this I think. Chillyfeez was right, but the odd thing is I had this in my Kick notes all along and must have just skimming over it. The proper way to deal damage to (just Slot1) is this...

Code: [Select]
$03/E17C A9 F8 LDA #$F8 A:0003 X:002A Y:0000 P:envMxdizc - Load F8 into A.
$03/E17E 8D C6 33 STA $33C6  [$7E:33C6] A:00F8 X:002A Y:0000 P:eNvMxdizc - Store A in AV Code.
$03/E181 A9 04 LDA #$04 A:00F8 X:002A Y:0000 P:eNvMxdizc - Load 04 ino A.
$03/E183 8D C7 33 STA $33C7  [$7E:33C7] A:0004 X:002A Y:0000 P:envMxdizc - Store A in AV Code (These two combine can display Damage)
$03/E186 20 E0 83 JSR $83E0  [$03:83E0] A:0004 X:002A Y:0000 P:envMxdizc - This is Crucial, but I'm still not sure what it is doing...
$03/E189 A9 0A LDA #$0A A:0000 X:0000 Y:0000 P:envMxdiZc - (TEST) - Load 10 Damage into A.
$03/E18B 9D D4 34 STA $34D4,x[$7E:34D4] A:000A X:0000 Y:0000 P:envMxdizc - Store A in Damage Slot.
$03/E18E A9 00 LDA #$00 A:000A X:0000 Y:0000 P:envMxdizc - Load 00 Damage into A.
$03/E190 9D D5 34 STA $34D5,x[$7E:34D5] A:0000 X:0000 Y:0000 P:envMxdiZc - Store A in Damage Slot 2 (255 each number)
$03/E193 20 7E CA JSR $CA7E  [$03:CA7E] A:0000 X:0000 Y:0000 P:envMxdiZc - Jump to Attack Compiling Subroutine.
$03/E196 60 RTS A:0000 X:0680 Y:001A P:envMxdiZC - Return.

With a little more finesse I should be able to get it to target... well the target. But as of now this simple bit of coding hits the character in Slot 1.

167
The old vesion had rollover issues? That would explain why my "Adding Heat Shield to Falcon" event keeps rolling back to the "finding Falcon" event when it reaches the "Which Cecil" check lol.


And yes, it's definitely the one basic command FF4 was missing! If it weren't for this mod, half of my ideas would immediately be dead in the water. I certainly wouldn't be able to use 3 events and 2 event calls to use one map for multiple maps' events (now that I think about it, I could probably do that with just two events hehe). I also wouldn't have realized I could transfer from Overworld maps to Moon maps through eventing only (which is what I had to do to use Lunar Palace Crystal Room as Babil's crystal room, jumping my amount of free space to a nice 1099 bytes).

Though I must ask: How safe is it to patch the updated Conditional Branching to Rom using the original version?


Quote
much of everything else I've done has been rather niche in all honesty.

Whether that's true or false, most of everything else you've done has breathed life into FF4 in ways I didn't think were even possible (the same can said about anyone else who creates  tweaks or modifications and shares thier work with the public).



Hell, just the other night I realiized Imbued Weapons effects can be used by monsters (granted only Sing seems to occur), It's great having a Screamer or a gang of imps that are a serious threat, randomly pulling off Sing's effects (sometimes on one person, sometimes on everyone).

Default FFIV commands are notoriously unreliable when monsters use them, these issues likely derive from lack of targeting. That still doesn't explain why something like Aim doesn't work though. It may eventually be worth going back to seeing what prevents enemies from using more commands than Dark Wave and Kick, even Item would be really nice to see.

Well, while trying to figure out a way to display damage done outside of the established routines (F8 04 being placed in the AV Routine is an important part of it, but there's a bit more than that which goes into it, what that is, I'm still uncertain) I stumbled across an unused functionality in Kick's Routine.

$03/E76D   69 00   ADC #$00   A:0000   X:0000   Y:0000   P:envMxdiZc - Add 00 to A.

What this actually is an Overall multiplier. Changing this to a value will double the final results of the Kick/Dark Wave. It seems at one point they were testing out making Kick/Dark Wave more powerful at the source but then decided against it, leaving the original result as "Add nothing". Knowing this it would be possible to make some special conditional for Kick to deal x3 or x4 it's base power. (x2 is sort of useless as it already does /2 damage compared to Dark Wave due to a flag being set in the Dark Wave routine that is looked for in the Kick routine.

168
I should have been clearer... I meant for it to take a new routine and make it display damage, doesn't seem worth it. As it stands if I tie it into Fight there will be no difficulties in displaying the correct amount of damage and healing done.

169
Ok so the issue is with specific damage amounts. If we use the regular attack routine it's doable?

Maybe it can be a straight up drain attack at half power? Would that work? Are other fractions possible? And can we restrict it to having a spear equipped?

That would not be a difficult scenario. Creating a weapon tied skill shouldn't be difficult just as long as all of the Spears are sequentially placed which they are in Unprecedented Crisis.

It can easily be a drain at 1/2 power (just dividing Attack Power by 2 and applying the Drain Elemental to Kain) and we could also use other fractions such as 2/3, 1/4 etc.

The problem, if I remember right, is that the game sees, "oh, we're using the Peep command" and so it doesn't set the internal flag to display damage to the target and user because, well,  Peep doesn't deal damage (nor does it heal),  so no need to run that subroutine. As we've done in the past with "cheating in" command stances/poses (before we knew how to change them at the source), we just need to find this bit of RAM and make sure that the Lancet command's routine involves turning it on.
I promise I will help with this eventually...
If you're feeling industrious, Grimoire, I think I've seen this stuff before... Run a bunch of commands (ones that show and don't show damage), set a breakpoint to the beginning of the command, then "Step Out" at the break and observe which subroutines run after the command subroutine, and which RAM flags determine whether or not they do run. Somewhere in there is bound to be the determination to run or not run the damage display subroutine.

I believe it deals something with F8 04 when placed in the AV Code, and I have been poring over the Dark Wave/Kick routine and despite everything I tried to do I couldn't get any damage to display, but I am working with limited space and I can't expend too much space on that regard for this or else there won't be room for the actual routine. If it takes 10-16 bytes just to display damage properly it doesn't really seem worth it for this scenario. That said I will take a closer look into Kick and see if I can't pinpoint what matters go into a successful damage generator.

170
Did anything happen with Lancet after? Don't mean to seem greedy or impatient, just want to make sure it didn't get forgotten in all the bomb and tackle conversation.

As per your instructions with the space left to me and Chillyfeez's suggestion I still could not get the game to display the damage done since this is a Command and not a Spell I cannot get it to read matters properly. Every attempt to display damage has failed.

Something I might be able to do is change Kain's temporal stats around. For instance having his Attack Power become his Strength and Will put together and use that for the single power of the Drain Attack. Or if you had any other ideas for what you want done with it because outside of Spells the game doesn't really have that much in place to display damage in an easy manner (Kick and Dark Wave are the only exception)



171
Making progress...
I got the mechanincs all down, now I just have to make the trial actally difficult.

Chocobo Time Trial 1

Believe it or not, there is a sequence that runs when time runs out, but I made four videos and I just kept winning.
So, obviously I have to figure out how to make this more of a challege. I worked in a way that you can get a "power up" speed boost, but as of now it's not needed...

What an intriguing concept! You not only made good use of your timer, but you also hacked in a character graphic that is not of a party member and designated as the party lead and did this all outside of the world map! Not only that but you also threw in some good obstacles, I am looking forward to see what else you accomplish with this fascinating side project here! Will this be connected to the Chocobo Catching mini-quest?

172
Hmm, so the Muramasa casts Drain... and seemed to recover 90 HP, this was against an enemy with strong Magical Defense mind you, but by the time you get the Muramasa that's all there is. Against a foe with very little Magic Defense it recovers about 590 which I assume was the general amount you were going for.

Also what is being mentioned on the Romhacking topic... oh how i would love to be able to display "Strong Against X, Effective Against X Status Protection X,Y,Z but the status menu is abit chock full. Here are the options for the Status Menu that can be gotten rid of...

Class/Handedness/HP/MP (because it's already right there...) and the word Ability (which never made sense really)

The issue would be that we would need new small text graphics for the elements and the statuses.

The easiest option is to do what I did for Combat Boost and what Grond's FFI used, just have a text file with all of the stat boosts, resistances, weapon elements, and racial effectiveness. I'd be willing to cook one up for you after this playthrough actually.

I am finished with everything on the Overworld and am just about to head to the Moon.

 :edit: Well, I did visit Bahamut with Rydia and as you mentioned there is a bit extra there. A cute little reference. I'm not sure what Bahamut is referring to though when he says that Rydia is not the last of the Summoners though.

Also Kain is still nowhere to be found and Bahamut still says "T" when you go to revisit him.

173
Having played a bit more I just got the Triton Dagger back and while it does work... it deals less than 100 damage to all foes. I imagine this is using Big Wave or something and still has a high Spell Power from when it was casting Leviathan.

I did get the Ragnarok now though and I must say that is some impressive power!

174
You have a good point Chillyfeez, but since this is a Command and not a Spell I am out of my element, I couldn't quite figure out how to properly display damage (also the problem I'm having with the prescribed Lancet to display damage and healing) if you know how it is done outside of spells then it would probably be best for you to handle this one.

175
Thanks! I take it then that getting him to visually tackle the monster is out of the question given the lack of space?

Well... Cid has no graphics for tackling, his special stance is now unused though so if you ever wanted to replace it with a new sprite (not my area) I could give that a shot, but I should note that character movement during battle is a large unknown, hence why Chillyfeez said focusing on Kain's Jump would probably be the best idea for us hackers to understand why the characters move as they do. Kain's Jump is unique as it is the only command in FFIV that actually touches the enemy (or character's) sprite. Kick has a preset pattern of movement from one side of the screen to the other. When it has come to figuring out the movement of sprites and graphics Chillyfeez has always been ahead of me in that regard.

If we do get the information ideally, then it would just be a matter of changing the graphic set from Bomb (Summon) (32) to Peep's command number +C0.


176
Well that was a little trickier than I expected and a little more expensive, but there should still be ample room for Lancet...

Peep to 1-HP Bomb

Code: [Select]
$03/E153 A6 A6 LDX $A6    [$00:00A6] A:0003 X:0028 Y:0000 P:envMxdizc - Load Character ID into X.
$03/E155 DA PHX A:0003 X:0000 Y:0000 P:envMxdiZc - Push X (to retrieve later)
$03/E156 A9 A0 LDA #$A0 A:0003 X:0000 Y:0000 P:envMxdiZc - Load Explode into A.
$03/E158 8D D2 26 STA $26D2  [$7E:26D2] A:00A0 X:0000 Y:0000 P:eNvMxdizc - Store A in Next Action to take.
$03/E15B A9 32 LDA #$32 A:00A0 X:0000 Y:0000 P:eNvMxdizc - Load Bomb (Summon) Graphic into A.
$03/E15D 8D C5 33 STA $33C5  [$7E:33C5] A:0032 X:0000 Y:0000 P:envMxdizc - Store A in Audiovisual.
$03/E160 20 44 CD JSR $CD44  [$03:CD44] A:0032 X:0000 Y:0000 P:envMxdizc - Jump to after the Audiovisual check has been looked at in the Spell Routine.
$03/E163 FA PLX A:0080 X:0680 Y:001A P:eNvMxdizC - Pull X.
$03/E164 BD 03 20 LDA $2003,x[$7E:2003] A:0080 X:0000 Y:001A P:envMxdiZC - Load Character's Status Byte 1 into A.
$03/E167 29 7F AND #$7F A:0080 X:0000 Y:001A P:eNvMxdizC - Get rid of 80 (Death)
$03/E169 9D 03 20 STA $2003,x[$7E:2003] A:0000 X:0000 Y:001A P:envMxdiZC - Store Character's Status Byte 1.
$03/E16C C2 20 REP #$20 A:0000 X:0000 Y:001A P:envMxdiZC - Reset Processor Status (Allows for 2 byte dealings for A.)
$03/E16E A9 01 00 LDA #$0001 A:0000 X:0000 Y:001A P:envmxdiZC - Load 0001 into A.
$03/E171 9D 07 20 STA $2007,x[$7E:2007] A:0001 X:0000 Y:001A P:envmxdizC - Store A in Character's HP.
$03/E174 E2 20 SEP #$20 A:0001 X:0000 Y:001A P:envmxdizC - Set Processor Status (Back to 8 bit)
$03/E176 A9 01 LDA #$01 A:0001 X:0000 Y:001A P:envMxdizC - Load 01 into A. (Critical)
$03/E178 9D 06 20 STA $2006,x[$7E:2006] A:0001 X:0000 Y:001A P:envMxdizC - Store Critical in Status Byte 4.
$03/E17B 60 RTS A:0001 X:0000 Y:001A P:envMxdizC - Return

And that's that! it works perfectly! Cid explodes, drops to 1 HP with the Critical Status.

Lancet will be coming a little later today then.

177
Can it use the usual explode routine and then just heal him for 1 after?

...Maybe. The normal Explode routine doesn't actually lower HP but just kills the character outright (Sets Death). It would require just a few more bytes in the new Bomb routine to remove that Dead bit and set the Caster's HP to 0001. It's untested but it is worth a shot.


178
Alright, now we can go about this in one of two ways...

1. Write an Explode routine into the Scan Routine section itself, this could be a bit tricky as damage and effects are being dealt without the ordinary accompanying spell set-up the commands often use.

2. Rewrite the original Explode routine to check if a Character is using it and if so to lower HP to 1 rather than KO the caster. I can replace the unused "Is the Caster over 9999 HP? Then deal 9999 damage." that is put there for safety purposes, but no enemy in this mod self-destructs at above 9999 HP I can change that to "Is the Caster a player? If so Load 0001 into A. Store A in HP. End Routine". This would allow maybe a 12 byte "Bomb" command and the rest of that space can go to making Lancet as exact as possible.

Which would you prefer?

179
I had a feeling Wightslayer was Anti-Spirit, did not know about Anti-Undead, a good way to keep it competitively useful!

Haha, I will have to try those out on the next playthrough then.

Ah yes, has there been any more thought given to a "second" final dungeon to create a "Void" like area to give the chosen party more of a deciding presence? It would also help split out the treasure a little more since they're all pretty crammed together in the Lunar Subterrane and it would give the chosen Cecil a chance to try out their new toys before the game is already over.

180
I've made Lancet for Combat Boost where Kain recovers 1/2 HP to the damage caused, it is a normal attack property though but it costs MP as it counts as a spell (I even gave it the Drain graphic). Chillyfeez should be able to cook something up easily.

Bomb is a much, Much easier set up. You still have Peep and Crash free after all. Peep, I will tell you is the Biggest waste of code in FFIV. It is literally all of the same code that is used for the Scan spell without the graphic. That's it and it is one extensive routine. Changing it to cast a spell (in this case Explode) is a more than simple task. I even have an example of how to change the egregious Peep routine to cast a spell (in that case it was Peep, but that hex number can be easily changed to Explode's own)

You know... since you did away with all of the spirit fade-ins in the Zeromus fight you have freed up a Lot of spell slots. Would you perhaps like a Bomb of varying intensity? Here is what I'm thinking...

1/4 - Explode (Kills caster dealing HP damage to enemy)
1/2 - AirRaid (Deals Strong Fire Elemental Damage to all enemies) (Has to be Really strong considering that Cid has no Wisdom)
1/4 - SleepGas (Puts all enemies to sleep)

I can't see people jumping to use it knowing it will only kill Cid, but the other options of what it can do could be a worthy risk.