Out of Battle Sprite Change?
03-24-2014, 06:16 PM
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?
How would this be done?
03-24-2014, 07:00 PM
During the fight, it's done via a battle event. Here are both related offsets:
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.
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.
03-24-2014, 08:27 PM
Awesome. Thanx as always Madsiur xD
03-24-2014, 11:11 PM
I'm surprise you haven't got your hands on the event commands document...
03-24-2014, 11:18 PM
(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.
03-24-2014, 11:31 PM
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
(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.
05-05-2014, 02:17 PM
Awesome! Is there a Bank C3 disasembly doument I can nab somewhere to see the information?
05-05-2014, 02:32 PM
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)