Users browsing this thread: 1 Guest(s)
Out of Battle Sprite Change?

#1
Posts: 315
Threads: 50
Thanks Received: 7
Thanks Given: 25
Joined: Feb 2012
Reputation: 4
Status
None
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?


[Image: 5452812CeqVF.png]
[Image: RoyakenGif_zpsacedef24.gif]
  Find
Quote  

#2
Posts: 3,970
Threads: 279
Thanks Received: 236
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
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.
  Find
Quote  

#3
Posts: 315
Threads: 50
Thanks Received: 7
Thanks Given: 25
Joined: Feb 2012
Reputation: 4
Status
None
Awesome. Thanx as always Madsiur xD


[Image: 5452812CeqVF.png]
[Image: RoyakenGif_zpsacedef24.gif]
  Find
Quote  

#4
Posts: 3,970
Threads: 279
Thanks Received: 236
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
I'm surprise you haven't got your hands on the event commands document...
  Find
Quote  

#5
Posts: 831
Threads: 41
Thanks Received: 16
Thanks Given: 12
Joined: Nov 2009
Reputation: 18
Status
None
(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.
Quote  

#6
Posts: 315
Threads: 50
Thanks Received: 7
Thanks Given: 25
Joined: Feb 2012
Reputation: 4
Status
None
(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.


[Image: 5452812CeqVF.png]
[Image: RoyakenGif_zpsacedef24.gif]
  Find
Quote  

#7
Posts: 315
Threads: 50
Thanks Received: 7
Thanks Given: 25
Joined: Feb 2012
Reputation: 4
Status
None
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


[Image: 5452812CeqVF.png]
[Image: RoyakenGif_zpsacedef24.gif]
  Find
Quote  

#8
Posts: 3,970
Threads: 279
Thanks Received: 236
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(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.
  Find
Quote  

#9
Posts: 315
Threads: 50
Thanks Received: 7
Thanks Given: 25
Joined: Feb 2012
Reputation: 4
Status
None
Awesome! Is there a Bank C3 disasembly doument I can nab somewhere to see the information?


[Image: 5452812CeqVF.png]
[Image: RoyakenGif_zpsacedef24.gif]
  Find
Quote  

#10
Posts: 3,970
Threads: 279
Thanks Received: 236
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(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.
  Find
Quote  



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite