Final Fantasy Hacktics

Modding => Help! => Topic started by: Heisho on November 03, 2017, 11:48:37 pm

Title: Question about Blood Suck
Post by: Heisho on November 03, 2017, 11:48:37 pm
Hello everyone.
I would like to know if the Blood Suck status calls the Blood Suck ability on C8 (like Counter Tackle calls for Dash) or is it hardcoded on said status.

Thanks in advance
Title: Re: Question about Blood Suck
Post by: Ildon on November 04, 2017, 06:03:57 am
...
Title: Re: Question about Blood Suck
Post by: Nyzer on November 04, 2017, 01:21:50 pm
You mean how, when a unit is set to Blood Suck, they are then forced to use Blood Suck from that ability or skillset slot? Last I heard, no, it didn't work that way.
Title: Re: Question about Blood Suck
Post by: Heisho on November 04, 2017, 04:59:50 pm
So if I change the ability slot, and a unit gets the Blood Suck status it will keep doing the same Blood Suck right?
Is there a way to link the ability to a lost of my desire?

@Ildon: Sorry for not responding. Actually when I asked that question I was working something like that and found that solution sometime ago, I though I marked the topic as solved but it seems I didn't. Thanks for the help anyway, I liked the Sexy Mantle idea.

Title: Re: Question about Blood Suck
Post by: Nyzer on November 04, 2017, 08:12:51 pm
Not through Patcher work as far as I'm aware. Maybe ASM.
Title: Re: Question about Blood Suck
Post by: Xifanie on November 04, 2017, 08:35:52 pm
It's hardcoded and my spreadsheet covers that, but it's not available to the public, so instead you can edit
0x801A0B34 memory address in BATTLE.BIN

http://ffhacktics.com/wiki/Set_chosen_ability/target_for_AI_status (very bottom of the page)
Title: Re: Question about Blood Suck
Post by: Heisho on November 11, 2017, 01:09:55 pm
Quote from: Xifanie on November 04, 2017, 08:35:52 pm
you can edit 0x801A0B34 memory address in BATTLE.BIN

http://ffhacktics.com/wiki/Set_chosen_ability/target_for_AI_status (very bottom of the page)


Ok let me see I got this correctly.
I went to BATTLE.BIN, and subtracted 67000 to that memory address in order to find the corresponding offset. But when I found it (00139B34) all data is zeros. So this means that I must edit with this -->84a700c8<-- and then make changes on Patcher to match this code? Meaning to change the contents of the skillset or the ability slot?

Sorry if I don't make any sense, I'm trying to learn to understand all of this.

Regards.
Title: Re: Question about Blood Suck
Post by: Xifanie on November 11, 2017, 04:27:19 pm
My bad, no, you were doing it correctly.
It's just that for some reason there is ASM that writes to that address...

http://ffhacktics.com/wiki/Store_hardcoded_AI_stuff_(blood_suck,_frog,_berserk_abilities)

00199d74: 340200c8 ori r2,r0,0x00c8
That should be your blood suck ability
Title: Re: Question about Blood Suck
Post by: Heisho on November 11, 2017, 09:31:25 pm
Thanks for the tip, I found it.
Now, I will change C800 with the ability of my desire. Let's say 6B01. Will Blood Suck/Vampire will use that ability instead of the original one?
Or do I need to code a whole new ability (range, effect, etc, etc)?

BTW, thanks a lot for the info that you might share with this hopeless noob.

Regards.
Title: Re: Question about Blood Suck
Post by: Xifanie on November 11, 2017, 11:41:53 pm
I'm honestly not sure if you need to do more than that... you have to take into consideration the Blood Suck AI though. It might not play as you want. It would only work well with a melee attack.
Title: Re: Question about Blood Suck
Post by: Heisho on November 19, 2017, 11:10:32 pm
Well it worked as expected.

The ability must have a target other that the unit that is casting it. You can choose from a different formula that doesn't make damage. In my tests, for instance, I was using the formula 55 with effect 17A (Goo) and it worked well. Just remember to select the flag Ignore Silence and Select Target, from there you can chose if only allies or enemies. The hardcoded AI will handle the rest.

So there you go. You only need to change the offset 132D74 in BATTLE.BIN with whatever ability you want (in reverse, like 01B6 to B601) and you will make a new "Blood Suck" status.

I know many of you are already are aware of this, but there are many new (like me) who wonder how to do it.

I'll post a .xml file with this once I learn how to make one with drop down options like the ones that comes by default on FFTorgASM.

PS: This left me wondering that if you change the original blood suck slot (C8) all of these will not be necessary...I didn't tried.