|
Post by Miksy91 on Aug 21, 2010 8:42:22 GMT -5
There was nothing wrong with the script but supposedly I removed necessary data from it and that's why it got messed up, and it's fixed now.
But now I'd like to make it so that a person would give the hero an item but the code doesn't seem to work.
I tried both 1FXXYY & 55861FXXYY but neither of them worked. The first (1F2E03) didn't do anything (it should have given hero 3 Fresh Waters) and the other one (55861F2E03) showed Vaporeon's picture...
|
|
|
Post by tekcoR on Aug 21, 2010 10:37:47 GMT -5
Actually, 1F2E03 should work, the only thing still to be needed is a pointer for a "X received Y"-Message. Maybe you forgot to control your pack? The fresh water should be there.
55861FXXYY works correct too, 0x55 = Show Pokemon and 0x86 = 134, Vaporeons byte. I don't know what your purpose with 5586 was.
|
|
|
Post by Mateo on Aug 21, 2010 15:03:09 GMT -5
also you can use x9D instead of x1F for it to automatically say what pocket you put it in
|
|
|
Post by Miksy91 on Aug 22, 2010 0:42:14 GMT -5
|
|
|
Post by Mateo on Aug 22, 2010 2:03:43 GMT -5
Wow, that is one inaccurate list of scripting commands (or should I say "commandos"). I'd wager that they were all found by guessing what things did, and several are either off or completely wrong. For example, the yes no code description is wrong. You would do much better to just use the application examples in the compendium without letting that stuff distract you.
|
|
|
Post by Miksy91 on Aug 25, 2010 3:26:11 GMT -5
I found out that the rom loads elsewhere than from the actual script of the person the data that the person who challenges you is a trainer. I made one person point to an offset which is filled with 00 but still a battle started with a lv0 Tileset number 0.
So does anyone know where do the people load that script ?
The point of changing the script is to make one person a mini-boss who would only challenge you if you answer Yes to a certain question. I also tried to make the actual script to point to another script but it didn't work for some reason, it did actually nothing.
|
|
|
Post by Mateo on Aug 25, 2010 16:34:06 GMT -5
Okay, the person data has a byte that determines the colour AND whether it is a normal person, an item ball, or a trainer. If it is a trainer, it points to a different format than a normal script. It's all in the compendium, closer to the bottom where it lists event structures.
|
|
|
Post by Miksy91 on Aug 26, 2010 12:30:35 GMT -5
Okay, that really helped me a lot but now I'm stuck with another problem (if you dare, you could try to check this offset for me too).
I found the person data but what I found in there didn't make any sense. It lacks the Function data, it's just nowhere to be found :S Also, does this happen to have something do with it if I said the person gives you his phone number after he beats you ?
Here is his offset: 1354f6
*Also, that 02 after colour is just his "Range of sight" -byte.
|
|
|
Post by Mateo on Aug 26, 2010 13:13:47 GMT -5
colour and function are determined by the same byte.
|
|
|
Post by Miksy91 on Aug 26, 2010 14:16:31 GMT -5
Okay, now it makes more sense. Anyway, that byte was originally B2 so does it mean that colour is like B0 and it also tells the person is a trainer (02) ?
So, if I change it to 80 instead (80 + 00), does it point to a regular script then ?
|
|
|
Post by Mateo on Aug 26, 2010 14:20:44 GMT -5
I can't remember off the top of my head how it determines this, but that might be right. I'll check when I'm at the house cause i don't have my notes here.
|
|
|
Post by Miksy91 on Aug 26, 2010 14:23:13 GMT -5
It actually does that (not sure why I didn't bother checking it before posting). Function for items is for example 1 (in GoldMap) and for trainers in red colours, 130 (82)
|
|
|
Post by Mateo on Aug 26, 2010 16:10:09 GMT -5
Nice
|
|