Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2011-05-21 08:28:39

Cartho
New member
Registered: 2011-05-14
Post 5/6

Adding overworld Pokemon

Basically what I'm planning to do is to create overworld Pokemon who you can fight with (just like Ho-oh, Shiny Gyarados, ...) but as it's the first time I'm trying to do this I encountered some issues.

First of all I'm well aware that I'll need a script to make this happen, but how can I make any random npc load that specific script? Here's an example: http://www.youtube.com/watch?v=V8PtuBQrHkw

I'm using Crystal version, so that Entei event will not appear to me in the hex editor (but in Gold obviously yes), so I copied all the Entei event and here it is:

47 4c 63 54 83 f4 00 53 49 5c f4 28 5e 06 02 3d 54 6d 04 5f 90 5f 6d 04 90 1a 01 d3 01 0c 0e 00 81 00 02 82 00 0a 83 00 24 39 37 13 37 13 38 47 39 34 34 34 38 47 39 36 12 38 47 00 84 8d 93 84 88 9c 7f 81 b4 a5 b4 b4 e7 57

And here is what it does decompiled with PKSV:
#org 0x109428
'-----------------------------------
loadfont
2writetext 0x5463 ' 0x109463
cry 0xF4
closetext
loadmovesprites
loadpokedata 0xF4 0x28
startbattle
if == 0x2 0x543D ' 0x10943D
disappear 0x4
returnafterbattle
end

#org 0x10943D
'-----------------------------------
returnafterbattle
disappear 0x4
end

#org 0x109463
= ENTEI: Bufuu!\e

Would it work if I paste this in some empty space of the Crystal ROM? And if so can I paste more copies of this script in the ROM? As I want different overworld pokemon to appear I will need to have the same script but for different pokemon.

It is possible to make it like that? I'm somewhat confused right now...

Offline

#2 2011-05-21 10:34:43

tekcoR
Member
From: Celadon City
Registered: 2010-10-16
Post 50/165

Re: Adding overworld Pokemon

Afaik, they were only some small changes in Crystal. It should work if you adjust the pointers. For different Pokemon, you have to change the pokedata and cry so that it fits.


Cya

Offline

#3 2011-05-22 03:32:18

Cartho
New member
Registered: 2011-05-14
Post 6/6

Re: Adding overworld Pokemon

Indeed tekcoR, I figured it out and now I have the script working on crystal! Needed to make some minor changes though. The only issue I still have regarding the overworld pokemon is that I cannot use the sprite I want while editing the people event of the pokemon, I want to use the bird overworld sprite which is 9E in hex, but when I run the game instead of using that sprite is using my character's sprite (and changes to lapras if I'm surfing). The only way the npc wont use my character's sprite is if I use sprites from npcs that are already in the map (this happened to me in a Cerulean city map), so how can I load the 9E npc sprite?

Offline

#4 2011-05-22 05:26:30

Miksy91
Member
Registered: 2010-10-16
Post 371/2,306

Re: Adding overworld Pokemon

Cartho wrote:

Indeed tekcoR, I figured it out and now I have the script working on crystal! Needed to make some minor changes though. The only issue I still have regarding the overworld pokemon is that I cannot use the sprite I want while editing the people event of the pokemon, I want to use the bird overworld sprite which is 9E in hex, but when I run the game instead of using that sprite is using my character's sprite (and changes to lapras if I'm surfing). The only way the npc wont use my character's sprite is if I use sprites from npcs that are already in the map (this happened to me in a Cerulean city map), so how can I load the 9E npc sprite?

That's because of something called as sprite sheets.
Check this thread how to edit sprites shown in different banks: http://hax.iimarck.us/topic/173/

By the way, this is far more difficult thing to do it but if you don't want to remove any of the sprites used in that bank, you can also create a script of second part of the map's script header in which you'd write code [6C][xx][Sprite no]

Last edited by Miksy91 (2011-05-22 05:28:51)

Offline

Board footer

Powered by FluxBB