Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2017-11-27 04:20:03

RadonUsedMimic
Member
From: Texas
Registered: 2016-11-22
Post 44/127
Website

[PokéRed] More experiments...

I would like to add in roaming Pokémon in my ROM hack after the player beats the Elite Four. One will roam water-specific areas, one will roam land, and one will roam around all of Kanto if you catch both roamers mentioned earlier. (All places EXCEPT the Safari Zone, Seafoam Islands, the Power Plant, Victory Road, Rock Tunnel, and Mt. Moon.)
I know this might be a little too much for Red to handle, but how can I add this in? Any help would be appreciated. Thanks!

I would imagine it go like this:

ShowObjects EVENT_MON_ROAM_1, EVENT_MON_ROAM_2, -

I DONT KNOW HOW TO WORK THE OTHER PART I'M SORRY :(

Last edited by RadonUsedMimic (2017-11-29 22:17:40)


Caramba! I hate it when there’s a lot of hair on the floor! Here, I’ll go clean up!
Woo! Feels good when the floor is clean, doesn’t it? Let’s groove.

Offline

#2 2017-11-29 02:21:28

KeiTaRo
Member
Registered: 2015-12-05
Post 48/56
Website

Re: [PokéRed] More experiments...

I highly recommend studying the code to PokeCrystal and seeing how that game handles it. While the event systems are very different, you'll at least understand the basic premise of how this kind of event is implemented, and may have a clearer idea of how to adapt that to Red's engine. (for example, Crystal stores some value to such and such memory address...is there a memory address in Red that serves a similar purpose? It calls this function, is there a similar function? If not, how can I rewrite this one? And so on...!) If nothing else, it'll expand your knowledge of Z80 a little bit, which is always a plus :)

Offline

#3 2017-11-29 14:36:52

RadonUsedMimic
Member
From: Texas
Registered: 2016-11-22
Post 45/127
Website

Re: [PokéRed] More experiments...

Alright, I'll try what I can. Where is the data for the roamers located?


Caramba! I hate it when there’s a lot of hair on the floor! Here, I’ll go clean up!
Woo! Feels good when the floor is clean, doesn’t it? Let’s groove.

Offline

#4 2017-11-30 06:59:22

KeiTaRo
Member
Registered: 2015-12-05
Post 49/56
Website

Re: [PokéRed] More experiments...

there's a function in wildmons.asm called InitRoamMons, that's probably what you want, I guess. I just searched the word "RAIKOU" in my cloned repository and found that in a few seconds, so :v

actually, looking at this, you'd probably have to rewrite it a bit due to it referencing some stuff pretty specific to Crystal's map format (MapGroups for example) ... but you know, what's most important is you understand what it's doing and then you should be able to figure out how to make it work in your own code.

Last edited by KeiTaRo (2017-11-30 07:01:48)

Offline

Board footer

Powered by FluxBB