Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2011-12-23 03:02:16

Kuroko Aizawa
Member
Registered: 2011-12-01
Post 80/494

'DUDE' Script Editing

Okay, so I;ve been messing with a Silver ROM to get some practice for my Crystal hack, and I wanna change what kind of Pokémon the 'Dude' catches when he teaches the player how to catch pokémon.

I was looking into some hex offsets, and noticed rattata had a hex number of 13. So I went in to Transhexlation with a table file, found Dude, changedh is name to 'Aide'. I had no problem with this. But I cannot find where rattata may be located. I searched for '13' and the closest one to the script ended up making the pkmn, bag, and run while in battle turn white so that you cannot see it (not for dude, for everything). And I simply turned it back to 76 or whatever it was before and was afraid to delve any deeper into the ROM. Has anybody done this?

I know for SaR (haven't played it yet) I'm guessing Mateo had to do something to make it a Weedle (if he did) when the Old Man teaches Red how to catch Pokémon.

I know I'm close, I just need a little help.

Thanks,
Pia Carrot

Offline

#2 2011-12-23 03:15:57

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 1,106/3,505

Re: 'DUDE' Script Editing

The code to change what he catches is in his event script. Well, technically, there are 3 scripts you will have to change to make sure it changes right. There is one script each for the triggers, since he can show you how to catch one there, and another in his event script.

If you use Johtomap, you can do this very easily by clicking "decompile script" and changing the 0x13 associated with the Loadpokedata command.
If you want to do it manually, you could just jump to the start offsets and change them there as well. In Silver, the offsets for these scripts are:

0x128D98 - Top trigger
0x128DCE - Bottom trigger
0x128E1C - Dude's person event

In the hex editor, you will look until you see "5C 13 05" which tells it to load the data for a Rattata at Lv5. You could change this to any pokemon at any level. I hope this helped!


EDIT: If you want, there is nothing stopping you from making him catch a different pokemon based on which event causes him to. So the top trigger calls a Rattata battle, bottom trigger loads Pidgey, and if you wait and talk to him directly to do it he loads a Sentret.

Offline

#3 2011-12-23 03:18:04

Kuroko Aizawa
Member
Registered: 2011-12-01
Post 81/494

Re: 'DUDE' Script Editing

Thanks alot, Mateo. I was hoping you'd be the one to answer :D

I will give this a shot and let you know how it goes.

Offline

#4 2011-12-23 03:19:57

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 1,107/3,505

Re: 'DUDE' Script Editing

Any time mate. Hope it works out for ya.

Offline

#5 2011-12-23 04:07:49

Kuroko Aizawa
Member
Registered: 2011-12-01
Post 82/494

Re: 'DUDE' Script Editing

Alright, JohtoMap would not let me save the script for some reason. So I did it the manly way and hex edited it. Works like a friggin' charm. Thank you so much Mateo, you are such a helpful person even if you are busy with school. This really is a great forum. Everyone helps each other out, it's fricken amazing.

Offline

#6 2011-12-23 04:16:01

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 1,108/3,505

Re: 'DUDE' Script Editing

Ah. For Johtomap you would need to hit "compile". Then close pksv. Johtomap will then ask you to reload the rom because it has changed. Then you would repeat for the other scripts. But Yeah, the hex editor was probably faster for a small edit like this anyway, no need to keep reloading the rom and such haha. Glad you got it figured it out, mate! Also, I'm glad you like it here. I'm glad we have a community like we do too!

Offline

#7 2011-12-23 04:17:45

Kuroko Aizawa
Member
Registered: 2011-12-01
Post 83/494

Re: 'DUDE' Script Editing

Even if we do get a horde of spambots from the middle east everyday xD

Offline

Board footer

Powered by FluxBB