Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 1970-01-01 00:33:30

Miksy91
Member
Registered: 2010-10-16
Post 142/2,311

How to make a person react as a trainer ?

So I'm struggling with a script I made and it just doesn't seem to work what ever I try.

The Person Data begins at 18849B and is like this:
41 07 06 09 00 FF FF C2 (person being a trainer byte) 00 B0 8E (points to the trainer script) FF FF

B0 8E --> 188EB0

188EB0:
AB04 3208 0090 7390 0000 BC8E 65 47 4C F390 53 49 90

So, at least for now, I'm trying to make him say text at
189000, 189073 & 1890F3 and battle you but the battle won't start as the game just freezes at the moment when that person is talked to.

Offline

#2 1970-01-01 00:33:30

Tauwasser
Member
Registered: 2010-10-16
Post 41/448

Re: How to make a person react as a trainer ?

0xB0 0x8E doesn't point to anywhere inside the rom bank. It points to 0x8EB0 in VRAM. 0x00 0x90, and 0x73 0x90 also don't point to your text.
Your main problem with everything you do seems to be that you don't understand pointers properly.

cYa,

Tauwasser

Offline

#3 1970-01-01 00:33:30

Miksy91
Member
Registered: 2010-10-16
Post 143/2,311

Re: How to make a person react as a trainer ?

Okay, what should I replace them with then ?
I've checked other person datas as examples and so this is what I came up with.

For example this in 135510;
24 0E 13 08 00 FF FF 82 00 C7 4F...
So this works because 0x4FC7 is between 0x4000 and 0x7FFF, right?

This thing got in my mind before so I tried changing B0 8E to B0 4E but it didn't seem to work much better, it didn't freeze though. But what should I change those bytes into ?

Offline

#4 1970-01-01 00:33:30

~Red
Member
Registered: 2010-10-16
Post 49/276

Re: How to make a person react as a trainer ?

I'm not sure if you have read it or not, but Coolboyman put up a good tutorial on pointers so you can get your head around them.

http://www.zophar.net/fileuploads/2/105 … inters.txt

Offline

Board footer

Powered by FluxBB