Users browsing this thread: 1 Guest(s)
Barubary NPC Sprite Request

#11
Posts: 161
Threads: 14
Thanks Received: 4
Thanks Given: 0
Joined: Sep 2010
Reputation: 5
Status
None
Ah I see what you're going for! This sounds neat but it's going to be a little hard to explain what it is we'll have to decide upon.
The hardest thing is getting the NPC to appear.
If this was a base character like Terra or Locke, it'd be a piece of cake. But because it's an NPC, it's downright hard lol.
But it's NOT impossible!
What you need to do is first find TWO unused event squares. The first one should be very small, not too many bytes. The best way to find an event square is to either watch youtube videos of parts where the characters step on a tile and something "small" executes. The other is looking for "If" statements in the event dump.
If statements are actually what an event square contains. It'll say "If xxxxx is set, branch to xxxx and then what follows is the events for that event square. When it says "If" it's basically checking to see if the character stepped on that tile. An event square ALWAYS ends with $FE. That means "return".
So once you find a small event square, the next one needs to be a little bit bigger, about 15 or 18 bytes at your disposal.
OK! So once the hard part is out of the way, here's the part where you'll have to pay extreme attention.
The game does this alot and from what I can tell, it shouldn't be too hard to manipulate.
The map that is going to contain the exit that takes you to map $0DF will send you to a tile, correct? Whenever you lay out the coordinates for the tile that you want the character to be set to, put the FIRST event square that I mentioned you finding right on top of the tile that the exit is.
So you'll have an exit on an event square.
Then, still in the level editor, find the NPC for Barubary and place him further up in the $0DF map. Make sure he can't be seen once your sent to the $ODF map. Right before his sprite, perhaps down 3 tiles, place the SECOND event square.
OK! Now you're probably wondering where on the earth I'm going with this, don't worry I'll explain.
I'll help you write out all this. For the FIRST event square, we'll be putting this:
42, XX, 45
This will say "Hide Object, XX, Refresh Objects.
So what this does is makes Barubary's sprite, which shouldn't be on screen from this first event square, disappear.
Now as the character walks up, they'll go to the second, bigger event square. This one will contain this:

41, XX, 45, XX, 02, 86, FF, 91, 4B, XX, C0, 92, 4D, XX, 3F, B2, A9, 5E, 00, 96

"XX" is going to be Baraubary's NPC byte. This will read as:

"SHOW Object (XX)," (45) Refresh Objects) (XX) Begin action queue for object XX, ($02) 2 bytes long, go down 2 tiles (86), FF (End Queue). (91) Pause for 15 unites, (4B) Display Text (XX) (Tell me what text you want displayed here and I'll get the byte) (C0) Display that text on the bottom of the screen, with no text box. (92) Pause for 30 unites, (4D) Invoke Battle Enemy Set (XX) Tell me what formation you'll be using for the boss) (3F) (3F sets the battle background to "defualt for this area"; this can be changed in LE. (B2 all the way to $00 is the subroutine that checks to see if the characters have died. If they have, it initiates the "game over" screen. (96) Restore screen from fade.


So that's the bigger event square data! Wink Long huh? Not too bad actually lol.

But yeah, I understand this is a little tough, but we'll pull through with this in the end

EDIT:
Fixed error in second event square script.


[Image: funnysiga.jpg]

MY YOUTUBE CHANNEL Laugh
http://www.youtube.com/user/xJCSx1
  Find
 



Messages In This Thread
Barubary NPC Sprite Request - by Angelo26 - 01-21-2011, 01:41 AM
RE: Barubary NPC Sprite Request - by SSJ Rick - 01-21-2011, 06:00 AM
RE: Barubary NPC Sprite Request - by Angelo26 - 01-21-2011, 10:20 AM
RE: Barubary NPC Sprite Request - by SSJ Rick - 01-21-2011, 04:19 PM
RE: Barubary NPC Sprite Request - by xJCSx - 01-21-2011, 04:39 PM
RE: Barubary NPC Sprite Request - by Gi Nattak - 01-21-2011, 04:43 PM
RE: Barubary NPC Sprite Request - by Angelo26 - 01-21-2011, 07:29 PM
RE: Barubary NPC Sprite Request - by xJCSx - 01-21-2011, 04:52 PM
RE: Barubary NPC Sprite Request - by xJCSx - 01-21-2011, 08:24 PM
RE: Barubary NPC Sprite Request - by Angelo26 - 01-21-2011, 08:46 PM
RE: Barubary NPC Sprite Request - by xJCSx - 01-21-2011, 11:32 PM
RE: Barubary NPC Sprite Request - by Angelo26 - 01-23-2011, 02:09 AM
RE: Barubary NPC Sprite Request - by xJCSx - 01-23-2011, 11:13 AM
RE: Barubary NPC Sprite Request - by Angelo26 - 01-23-2011, 12:02 PM
RE: Barubary NPC Sprite Request - by xJCSx - 01-24-2011, 12:01 AM
RE: Barubary NPC Sprite Request - by Angelo26 - 01-24-2011, 07:33 PM
RE: Barubary NPC Sprite Request - by xJCSx - 01-25-2011, 08:23 PM
RE: Barubary NPC Sprite Request - by Angelo26 - 01-26-2011, 08:59 PM
RE: Barubary NPC Sprite Request - by xJCSx - 01-27-2011, 06:47 PM
RE: Barubary NPC Sprite Request - by Angelo26 - 02-03-2011, 11:19 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite