Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2017-05-01 22:56:03

ExodusBlack
New member
Registered: 2017-05-01
Post 1/5

Creating an encounter like Snorlax, Lugia and Ho-oh

So I want to make an encounter in Kanto for each of the legendary birds, and perhaps Mew/Mewtwo, similar to the encounters with Snorlax, Lugia and Ho-oh. Essentially I just want to walk up, hit A and get into a battle with them, and have them disappear afterwards. I know that there is code for these events for the 3 encounters I have already listed, but I am very new to scripting these things and I really have no idea what I'm doing. If you want to post an example that I could look through, perhaps have Articuno appear at the seafom islands or something like that. Thanks!

Offline

#2 2017-05-01 23:37:15

Rangi
Member
Registered: 2016-05-09
Post 639/870

Re: Creating an encounter like Snorlax, Lugia and Ho-oh

This has been asked and answered before, with a guide to how Lugia's encounter works.


Pokémon Polished Crystal (GitHub) — version 2.2.0 released
Pokémon Red★ and Blue★: Space World Edition (GitHub) — updated August 19!
Polished Map: pokered+pokecrystal map, tileset, and palette editor — version 3.5.1 released!

Offline

#3 2017-05-01 23:48:38

ExodusBlack
New member
Registered: 2017-05-01
Post 2/5

Re: Creating an encounter like Snorlax, Lugia and Ho-oh

Thanks for the link Rangi, I was looking over that post, but i was still just a bit confused. The only thing I have to do is copy the Lugia data to a new location, and change the pokemon?

Offline

#4 2017-05-01 23:57:13

Rangi
Member
Registered: 2016-05-09
Post 640/870

Re: Creating an encounter like Snorlax, Lugia and Ho-oh

Basically, yes. It should be clear which lines need to be changed and how.


Pokémon Polished Crystal (GitHub) — version 2.2.0 released
Pokémon Red★ and Blue★: Space World Edition (GitHub) — updated August 19!
Polished Map: pokered+pokecrystal map, tileset, and palette editor — version 3.5.1 released!

Offline

#5 2017-05-02 00:00:58

ExodusBlack
New member
Registered: 2017-05-01
Post 3/5

Re: Creating an encounter like Snorlax, Lugia and Ho-oh

Ok, I'm trying out including mew into the mt. silver exterior, once i finish, could i post a link and have you take a look at it and let me know if i have made any mistakes?

Offline

#6 2017-05-02 00:02:25

ExodusBlack
New member
Registered: 2017-05-01
Post 4/5

Re: Creating an encounter like Snorlax, Lugia and Ho-oh

Also, how do i make it so there is no required item for a pokemon to appear?

Offline

#7 2017-05-02 00:26:00

Rangi
Member
Registered: 2016-05-09
Post 641/870

Re: Creating an encounter like Snorlax, Lugia and Ho-oh

By removing the line that checks for an item.

Have you tried writing the code yet? Do you have any actual errors compiling or running it? You'll make more progress by just trying what you think is correct and thinking about how to fix any issues. Then if it's really unsolvable, ask for help.


Pokémon Polished Crystal (GitHub) — version 2.2.0 released
Pokémon Red★ and Blue★: Space World Edition (GitHub) — updated August 19!
Polished Map: pokered+pokecrystal map, tileset, and palette editor — version 3.5.1 released!

Offline

#8 2017-05-02 00:49:32

ExodusBlack
New member
Registered: 2017-05-01
Post 5/5

Re: Creating an encounter like Snorlax, Lugia and Ho-oh

I've gotten most of it, but I'm running into issues with SPRITE_MEW in the PersonEvent line at the end.
https://pastebin.com/JtiVmvFC

Offline

#9 2017-05-02 02:18:13

Rangi
Member
Registered: 2016-05-09
Post 642/870

Re: Creating an encounter like Snorlax, Lugia and Ho-oh

"Running into issues" doesn't provide information for anyone to help you. However, my psychic debugging skills tell me that you can't compile it because of this error message:

rgblink: error: Unknown symbol 'SPRITE_MEW'

In general, the all-caps constants are defined in the files in the "constants" directory. Since this is a sprite constant, it should be clear which file to define it in, along with the other constants like SPRITE_LUGIA and SPRITE_SUICUNE.

One detail that isn't obvious: you'll also need to update the SpriteMons list in engine/overworld.asm. It's a list of Pokémon species constants that corresponds to the list of Pokémon sprite constants. (Maybe you figured out how to define SPRITE_MEW but missed this part, so your ROM compiles and runs but Mew has the wrong sprite?)

Last edited by Rangi (2017-05-02 02:28:35)


Pokémon Polished Crystal (GitHub) — version 2.2.0 released
Pokémon Red★ and Blue★: Space World Edition (GitHub) — updated August 19!
Polished Map: pokered+pokecrystal map, tileset, and palette editor — version 3.5.1 released!

Offline

Board footer

Powered by FluxBB