øA slickproductions.org /forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=printpage;topic=378.0 e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexeb14.html slickproductions.org /forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=378.0 e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexeb14.html.z x /ug^ ÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ °,0 �[ OK text/html ISO-8859-1 gzip 8:Ö �[ ÿÿÿÿÿÿÿÿ Tue, 10 Mar 2020 11:24:54 GMT 0ó° °® 0® P® €§² ð® .ug^ … �[
Print Page - Attack of the SwordRats
Board of Slick
Library of the Ancients => Final Fantasy IV Research & Development => Topic started by: Phoenix on March 07, 2008, 05:51:04 PM
Title: Attack of the SwordRats
Post by: Phoenix on March 07, 2008, 05:51:04 PM
I was trying to create a call spell that would actually "call" a monster (like the enemy attacks Call or Alert). Unfortunately, some of the called monsters turned out to be invincible, and this is what I ended up with . . .
(It says there's only 3, but actually I killed some of them and it looped around to 13. They really just wouldn't stop coming. :laugh:)
Title: Re: Attack of the SwordRats
Post by: Deathlike2 on March 07, 2008, 06:04:17 PM
:tongue:
Have you tried directly modifying an existing Call spell instead? It would be a safe place to start...
Title: Re: Attack of the SwordRats
Post by: Phoenix on March 07, 2008, 06:32:42 PM
The problem is that the battle doesn't seem to have any way to deal with calling extra monsters. I've both created my own Call spell and used the enemy attack Call, and they work the same (which they should since I just copied the data for it). I've tried killing the monsters off then calling them again, and while it seems to work for up to the number of monsters there originally was, it's still buggy (missing graphics, miscounted enemies, etc.). Only ones called beyond the original number are invincible. I think the "Alert" or "Call" enemy attacks only work in the specific battles that they're used in. Or at least, there's only certain situations when that spell/attack works correctly.
Title: Re: Attack of the SwordRats
Post by: Deathlike2 on March 07, 2008, 06:52:34 PM
I've tried killing the monsters off then calling them again, and while it seems to work for up to the number of monsters there originally was, it's still buggy (missing graphics, miscounted enemies, etc.). Only ones called beyond the original number are invincible. I think the "Alert" or "Call" enemy attacks only work in the specific battles that they're used in. Or at least, there's only certain situations when that spell/attack works correctly.
AFAIK, there is a particular behavior that normal enemy summons require. They have a special designated slot (usually Group 3) to be summoned to, even though there is 0 of that monsters slotted in that group. Consider any Searcher grouping and that explains half the deal. Since you do not have an actual group, the creation of the monster becomes unpredictable, slotting them to something that's not defined. Also, you shouldn't be able to summon more monsters than there is slotted, given how the attack scripts for all summoning monsters have them set up. A more complex setup (not sure if it is doable in the game's battle scripting) is to check the number of monsters in "summon group" and continue to summon the monster until it is "full".
Anyways, I'm not entirely surprised at the results.
It sounds more like you are doing the "enemy version" of summoning, which is specific to the enemies involved + monster slottage + number + formuation.. that's what you seem to be tapping in your modification.
Do you know what I mean?
Title: Re: Attack of the SwordRats
Post by: Phoenix on March 07, 2008, 07:03:19 PM
I was doing the enemy version of summoning, sorry if that wasn't clear before.
The designated slot for summoned monsters makes sense, and I can see why it doesn't work in most battles. Oh well, it would have been a neat effect, but I won't waste any more time on it.
Title: Re: Attack of the SwordRats
Post by: Deathlike2 on March 07, 2008, 07:11:17 PM
Well, if you were able to do make the unused slot to something more usable (and the summoned monster not be invincible) , it would be the next best thing to have a summon you could harvest EXP and particularly items from (think of the possibilities).
Title: Re: Attack of the SwordRats
Post by: Phoenix on March 07, 2008, 07:36:09 PM
That was my original idea. I wanted to decrease encounter rates on all maps, and have the optional call spell. That way if you needed experience you wouldn't have to wander around and around looking for monsters. Unfortunately, doesn't seem like it's going to happen . . . but anyone that figures out a solution gets a :cookie:
Title: Re: Attack of the SwordRats
Post by: Deathlike2 on March 07, 2008, 07:44:17 PM
I honestly can't tell how you fix the invinciblity.. but in theory as part of the summoning, you would have to set the last group's formation (for those that have one active showing group like solo Alerts+Searchers, you probably want to set group 2 to be safe) to the monster in question with 1 spot. You will have to set its positioning coordinates as well. You may want to do checks to see if that spot is currently filled (with at one monster) to cause the spell to fail. Once you do that, the summon should work as intended w/o the invinciblity.
The only issue with this is that you will most likely override the enemy's monster summon (assuming they are in group 3), but that might be accounted for though if you modify the battle engine... which is far more complicated.
I wouldn't know the complexity of the issue, but you would need to do some real romhacking to make it happen.
Title: Re: Attack of the SwordRats
Post by: Deathlike2 on March 07, 2008, 08:18:03 PM
Actually, I made a slight error on summon behavior.
According to the game data, group 2 is primarily used for the summoned monster. Whatever is slotted there appears to start with 0 monsters even though internally 1 monster is declared for that slot.
So, whatever you summon automatically goes to that slot, and it only works properly if nothing is there to begin with. A monster also has to be declared for that slot for it to work.
You know what you could do that might be easier is to leave slot 2 with one monster at all time (it won't show up initially) as I described and have a "universal monster summon" as part of the command or spell list. This requires far less romhacking and sounds very doable. You would have to do with/for every enemy formation and limit some of your options, but that's very doable.
Edit: The enemy formation must have some bit defining that that this group has enemy summons (and perhaps is group definable).
Title: Re: Attack of the SwordRats
Post by: Phoenix on March 09, 2008, 06:27:41 AM
That does sound possible, but as you say it would be quite a lot of work. And it still wouldn't solve the problem of if you use the command more than once. Definitely workable, though.
Title: Re: Attack of the SwordRats
Post by: Deathlike2 on March 09, 2008, 06:34:36 AM
That does sound possible, but as you say it would be quite a lot of work.
Well, as a start, you could probably use the "Rydia's Restored Summon" hack as a base to start reworking the command to the enemy summon command.
The other part is to find what bit controls the battle's "enemy summon slot".
Quote
And it still wouldn't solve the problem of if you use the command more than once. Definitely workable, though.
That's your job to add the extra checks.. or perhaps increase the number slotted in that spot (this will require testing for sure). If you are able to summon more in the same position (see 3 Red Dragons formation) and not create any extra bugs, it just might work. (You will have to document the bug, but at least you won't have to worry as much due to user idiocy or accidents.)
Title: Re: Attack of the SwordRats
Post by: Phoenix on March 09, 2008, 06:54:23 AM
Yeah, I'm using the Restored Power hack right now to try and create a Drain command, but it's a bit harder than I thought it would be with my limited ASM skills. I can't seem to find the subroutine that would change it to the Vampire's Fang item rather than the Grimoire item.
In regards to the enemy call command, the way I was doing it (a spell that costs 0 MP) seems a bit easier, that way it wouldn't require any ASM hacking, but it would have the multiple use bug. Like you said, it would have to be documented and avoided by users (that's what I meant when I said "workable"). Anyway, it's far down on my list of priorities right now, but when I get back to it I'll let you know how it goes.
Title: Re: Attack of the SwordRats
Post by: Phoenix on April 20, 2008, 02:28:32 AM
I eventually came back to this idea, and I believe I found a solution. I've learned a lot about ASM since I first tried it, and I now know how to write code to check whether all monster slots are full/alive. However, since the Call/Alert spell effects summon a monster to slot 2, it doesn't work for all the enemy sets that only have one kind of monster. I could change the subroutine for these effects (so that they summon to slot 1), but they're a little complicated, so instead I came up with the idea to do a full revive on a monster that has died. Normally you can't target those enemies (except if you target them right before they die, as FF4 experience-harvesters know), but I know enough ASM to target a full-revive spell (e.g. spell AC, Remedy) at a slot for an enemy that has already died. I plan on incorporating this into my hack, and I'll post here when I write the subroutine and test it fully.
To quote myself:
Quote
. . . but anyone that figures out a solution gets a :cookie:
Don't mind if I do :cookie:
Title: Re: Attack of the SwordRats
Post by: Deathlike2 on April 20, 2008, 09:10:27 AM
I eventually came back to this idea, and I believe I found a solution. I've learned a lot about ASM since I first tried it, and I now know how to write code to check whether all monster slots are full/alive. However, since the Call/Alert spell effects summon a monster to slot 2, it doesn't work for all the enemy sets that only have one kind of monster. I could change the subroutine for these effects (so that they summon to slot 1), but they're a little complicated, so instead I came up with the idea to do a full revive on a monster that has died. Normally you can't target those enemies (except if you target them right before they die, as FF4 experience-harvesters know), but I know enough ASM to target a full-revive spell (e.g. spell AC, Remedy) at a slot for an enemy that has already died. I plan on incorporating this into my hack, and I'll post here when I write the subroutine and test it fully.
To quote myself:
Quote
. . . but anyone that figures out a solution gets a :cookie:
Don't mind if I do :cookie:
AFAIK, The the revive (Recover in FF2US) spell (spell 171) that monsters use has to change its targeting to target every group and the other monsters revive.
This occurs with the following bosses: Magus Sisters, CPU+Defender+Attacker, Baigan+Arms
This spell always succeeds, even when the defined hit rate is 0 (skips that check most likely) and revives those that are dead in said slots. I'm not entirely sure if all groups have to be filled with something though.
Note that the revived monster is considered a new monster, and that will factor into the EXP.
Title: Re: Attack of the SwordRats
Post by: Phoenix on April 20, 2008, 05:10:23 PM
Quote
Note that the revived monster is considered a new monster, and that will factor into the EXP.
This is why I'm adding this in, so that leveling up doesn't take so long. And besides, I think it's fun.
Title: Re: Attack of the SwordRats
Post by: Deathlike2 on October 24, 2009, 01:05:17 AM
I thought about this for a little bit.
There has to be something in the code to force certain formations to have the hidden summon formation. There are also formations like the Trapdoor and Elementals battle where you have hidden formations that are built on sacrifice. Maybe if you look for the code that triggers that behavior, you would be able to create any formation to "summon" the monster of your choice.
Title: Re: Attack of the SwordRats
Post by: Grimoire LD on December 19, 2009, 08:46:11 PM
This thread gives me an interesting idea... (though it would limit things a fair amount...) but with a "Call" command and the same monster summoned in each and every slot (probably exceptions for when the character isn't in your group) isn't it possible to set up a "friendly" Summon? For instance, say someone would hack in Luca and get rid of "Brace" on Yang and in it's place have this "Call" command. Luca in turn could call in Calbrena (though some check to see if it's in play would be preferable), perhaps... something similar to FuSoYa's Spirit Wave? Luca would be in a trance for five (or is it three?) turns and after five turns Calbrena could vanish? From what I understand of enemy AI this... ?should? be possible, of course the hard part would be call. There's unfortunately no command in the game that can only be used once, is there? I thought I read once that Deathlike 2 found that enemies can cover other enemies, can they cover other "allies" in that case? Eh, just a bit of musing, heh.
Title: Re: Attack of the SwordRats
Post by: Grimoire LD on December 22, 2009, 02:57:08 AM
This idea really has me thinking... and I think it might be possible If a command can set a status ailment on the user and using a skill. Something like this... this is my "real' plan, not the Calbrena idea above.
One of the reasons I wanted to try this out is because I imagine that Baigan might have something similar to this, I'm calling it "Spirit Sword" or rather "SpSwd". Each formation would need changed (at least any formation that he would be in your party to encounter) according to Deathlike2, enemies are normally called from Group 2, now thankfully the game doesn't make a big use of this anyhow. The purpose would be to summon another "ally" to help you.
Using F925, (Attack other random monster besides yourself) is key to this. Each battle formation could have a certain monster that Baigan could "call"with his Spirit Sword ability. But then the problem is... what stops the player from calling more and more? This is where that unused Status could come in handy. Let's say... one were to modify Boast (that does cause the "D" status, doesn't it?) and also give it the ability to call monsters (as the Gird proof of concept shows us).
By inflicting D status on Baigan and sealing the Spirit Sword with D, that will be it's purpose. Then I got to thinking... "How would D be removed?" (Since I plan for Baigan to be a Black Magic user, I don't want Boast to wear off, or have its 16+ to Wisdom). Now, if I'm lucky it wears after battle, that's all on the hope that it's boast. If it is not and it persists after battle, I have another solution, the Golden or Silver Apple could heal "D" couldn't it? I wouldn't want the only way to use this command to have to rest up every single time you want to use it. People would save it for bosses and that would be that.
Of course the Simplest way to make sure that the command isn't abused without additional work is to simply set up the enemies script to kill themselves at the end of their turn. But that limits effectiveness by a great deal.
Title: Re: Attack of the SwordRats
Post by: Grimoire LD on December 22, 2009, 03:45:17 AM
Tsted and failure, oh boy... the game seems to have Extremely strict criteria for when enemies can be summoned, it seems that only when enemies have died does the game even try to summon anymore, and that makes sense, probably something to deal with in Ram that keeps track of how many monsters there are. The only exception I can think of for this is Shadow Fang, but the question still remains, how does the game know not to load specific monsters in specific formations until they have been summoned? They're listed as present in the formation sheets, hmm... so I guess Baigan's ability will have to take a backseat for a while, heh.