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

#14
Posts: 831
Threads: 41
Thanks Received: 16
Thanks Given: 12
Joined: Nov 2009
Reputation: 18
Status
None
(01-23-2011, 11:13 AM)xJCSx Wrote: Ah ok I have several theories, but I think the first one is the issue.
Ok this is something I have kind of forgotten. But as you noted, every event square checks to see if a bit corresponding to it has been set. If it has, it executes the events following. If not, it ignores it.
So what I need to know, is the event sqaure your editing and then I'll find the commands to set the event bit in a hex editor. The main reason I need to look it up is b/c everything (especially numbers) are different in a hex editor than the event dump.
So once you find that, we'll need to find either a live scene in your game or make an NPC that sets that event bit so that whenever you step on the event square, it sees that it has been set, and then executes what comes up next.
What surprises me is that you said it actually did execute the text. Normally, that shouldn't have happened at all, so I'll give my second theory just to tinker with.

Whenever the event square says branch to CA5EB3, it's actually referring to a variable that just tells the event square to "return" at the end. Luckily, you don't have to study the variable. Just know the command for it - $FE.
Now what your saying is it's repeating?
This can be caused by multiple reasons, so we'll have to eliminate a good bit.
Anyways, this is what I propose:
After all the "If" statements in your hex editor, place an $FD all the way to the $FE. Actually, overwrite the $FE with an $FD. Use that last $FD as your flag to know when to not go over.
Anywways, go out and write this:

42, 10, 45, 4B, 00, 00, FE

I made this fairly simple. It says hide object 10 and then display dialogue message $00, and the $00 is the flag that tells the game to make it just a normal text box at the top of the screen. Then an $FE.
Now, depending on the length of the event square, you may have some more $FD's ahead of the FE. Just ignore them :p
Now concerning those Guardian event bits...hmm I'm not too sure if those are linked to that event square. I know that event bits aren't hardcoded to specific event squares but by what your saying, it should work...might need to look into this one myself.
Now test out the game, and if the same problem persists, then the first theory is more than likely the issue.
If all else fails, we can go to SlickProductions and see if Leno has any ideas.
But lets try to eliminate all possible variables.

P.S.
Concerning my last post, I'm just wanting to make sure you understand what I'm going for - like the instant the player enters the $0DF map, that event square right where there teleported to will execute an event square that "hides" the NPC a couple 5 more tiles ahead. Then once they walk up and step on the second event square, he'll appear and attak.
Lol I'm sure you did understand it all, just like to know ha I'm paranoid.

Haha ok just to be clear, I'll make a video of what I got without the use of IF/ELSE statement. I'll post it here in this thread, so don't be paranoid lol.

What I did was erase all the event squares concerning the guardian in vector (there are three or five, that point to the address 28321, or CC/8321). But your first theory sounds like the source of the problem. Probably we can add a NPC that warns about barubary, a demon hidden in a cave, and then have the NPC activate the specific event.

But I don't want you messing around with hacking, or else your parents are going to be mad, you just tell me your ideas and I'll mess around with them.

Since the IF statement I'm using is
Code:
CC/8321: C1    If ($1E80($06B) [$1E8D, bit 3] is clear) or ($1E80($079) [$1E8F, bit 1] is set), branch to $CA5EB3 (simply returns)

Do I need to find the the address $1E80 and set bit 3? OR I also need to go to 1E8F and make sure that bit is clear?
OK Linky's here to what I've done with your help, but there are no IF/ELSE statements here.

http://www.youtube.com/watch?v=M2aA50rzrGk
 



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