FF6 Hacking
Out of Battle Sprite Change? - Printable Version

+- FF6 Hacking (https://www.ff6hacking.com/forums)
+-- Forum: Discussion Forums (https://www.ff6hacking.com/forums/forum-5.html)
+--- Forum: Magitek Research Facility (https://www.ff6hacking.com/forums/forum-9.html)
+--- Thread: Out of Battle Sprite Change? (/thread-2531.html)

Pages: 1 2


Out of Battle Sprite Change? - Royaken - 03-24-2014

So I already have the in battle sprite change down perfectly. What about the sprite changing out of battle like with the merchant and soldier outfits?

How would this be done?


RE: Out of Battle Sprite Change? - madsiur - 03-24-2014

During the fight, it's done via a battle event. Here are both related offsets:

Code:
(D0/A751)   Locke steals clothing from a soldier in South Figaro

(D0/A7D1)   Locke steals clothing from a merchant in South Figaro

But this only change the battle sprite until the battle is over, you need to set the sprite and palette at the end of the NPC event. Event command 37 change the sprite, command 43 the palette.


RE: Out of Battle Sprite Change? - Royaken - 03-24-2014

Awesome. Thanx as always Madsiur xD


RE: Out of Battle Sprite Change? - madsiur - 03-24-2014

I'm surprise you haven't got your hands on the event commands document...


RE: Out of Battle Sprite Change? - Angelo26 - 03-24-2014

(03-24-2014, 07:00 PM)Madsiur Wrote: During the fight, it's done via a battle event. Here are both related offsets:

Code:
(D0/A751)   Locke steals clothing from a soldier in South Figaro

(D0/A7D1)   Locke steals clothing from a merchant in South Figaro

But this only change the battle sprite until the battle is over, you need to set the sprite and palette at the end of the NPC event. Event command 37 change the sprite, command 43 the palette.

Adding my two cents here: that battle event command works only for locke. If you try this in battle for other characters...like cyan, they simply won't change clothes.


RE: Out of Battle Sprite Change? - Royaken - 03-24-2014

(03-24-2014, 11:11 PM)Madsiur Wrote: I'm surprise you haven't got your hands on the event commands document...

I was at work and wanted to ask. I had it at home just hadn't gone through it yet xD.


RE: Out of Battle Sprite Change? - Royaken - 05-05-2014

On this same subject, I have another question. I want an outfit that changes my sprite in battle such as the moogle suit to change it also out of battle. Not after battle event. Like I go into the menu, equip the armor, get out of the menu and I am in that sprite. Go back in, take it off, I'm back to normal. Is this doable or is the only way to do it via battle events? Wasn't sure if I misunderstood the above


RE: Out of Battle Sprite Change? - madsiur - 05-05-2014

(05-05-2014, 01:50 PM)Royaken Wrote: Is this doable or is the only away to do it via battle events? Wasn't sure if I misunderstood the above

It is doable. You would need to code a function or add code to the equip funtion in banck C3. When a certain item is equipped, change the sprite ID in SRAM for the character. You would also need to keep in memory the original sprite ID, for unequipping purpose.

I did something similar a long time ago where giving the imp status on a map would give the character the imp sprite.


RE: Out of Battle Sprite Change? - Royaken - 05-05-2014

Awesome! Is there a Bank C3 disasembly doument I can nab somewhere to see the information?


RE: Out of Battle Sprite Change? - madsiur - 05-05-2014

(05-05-2014, 02:17 PM)Royaken Wrote: Awesome! Is there a Bank C3 disasembly doument I can nab somewhere to see the information?

It is available on Slick Productions site.