So, how do I make them work?
I made some research on island 1's pokémon center map script (third pointer in the map header, actually it's some sort of script header) and I got this:
03 SCRIPT-A 05 SCRIPT-B 01 SCRIPT-C 02 STRUCTURE 00
(pairs of byte-pointers, 00 terminated)
script A has the re-spawn command and some movesprites
script B is special 0x182, end
script C is some setmaptiles that depend on var 0x4076
fourth pointer, the structure, looks like this:
0x4076 0 0 SCRIPT-D 0 0
and script D is the stuff with BILL and CELIO, where they give you a meteorite.
What I want in this map is to play a sound and display some text (or just the text and put the sound in it, doesn't matter), so technically in my map the script that does all this stuff is the SCRIPT-D. So, I copied that structure. scripts A, B and C lead to a 0x02 (end) and script D is, currently, this:
When I enter the map, nothing happens (while I was messing with all this, trying the map resulted in a crash, BTW)
I know I may get no answer, but I'm stuck... any ideas?
EDIT: Okay I ****ed something up while copying the stuff manually and it WORKS. Now the problem is that it repeats to insanity, but that's something I've gotta check (I think it has to do with the flag in the weird structure).
When I have the time, I'll write a tutorial for all this.
You may either delete this thread or comment, ask stuff, etc.
what the fudge
Last edited by Teh Baro; September 18th, 2007 at 11:35 AM.