• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Create new custom multichoice boxes (without deleting old ones)

Chicken Bones

Hacks 4 fun
18
Posts
14
Years
  • Seen Apr 29, 2010
Hi I only started hacking a few weeks ago but i have learnt quite a bit. I got a lot of help from you guys so I thought I should contribute with some of my knowledge.

1 thing I have noticed a lot is the fact that you can't create new multichoice boxes. So I was hexing around and I found out how to do it. AND BTW Image insertion wouldn't work so no images

You will need:
- A hex editor (that can search for hex), I use HxD free
- VBA
- Advancemap
- XSE or other scripting program
- A Rom (I'm using Emerald)
- Basic Knowlege of HEX

Decoding the Format

So first open up XSE and compile a script exactly like this this

Spoiler:


assign it to a person or sign in advancemap.
open VBA you should get a box like this (if using emerald)

Spoiler:


assuming you are using my converter (attached at the bottom of this post)
in the text box type in PETALBURG\xSLATEPORT
copy the hex below it and search in your hexeditor

You should find it around about 5EAD37 for emerald
get the offset at the start of PETALBURG (5EAD37), reverse the bytes and add 08 so
37 AD 5E 08 now search this hex

you should get something like this
Spoiler:

each 8 bytes is a message pointer followed by 4 bytes of 00

get the offset after the 8bytes of zeros in my case 58ABD8 and reverse ad 08

D8 AB 58 08

search and you'll get something like this

Spoiler:


this is the list of message boxes in the format <pointer><number of options><filler>
so for the first message box it's <D8 AB 58 08 ><03><00 00 00 >
or pointer to the start of the 3 other pointers that say PETALBURG SLATEPORT and EXIT

then 3 options and fillers

finally get the offset at the start and reverse add 08
to get 60 B7 58 08

search and there sould be 2

get the first one or E1FB8 for emerald
and there in those 4 bytes is the pointer to all message boxes.

So now How do I make my own.

First find like 1000 bytes of free space (FF)​

then change the 60 B7 58 08 offset to your new location or E40000 for me (00 00 E4 08)
then go to your list of offsets at 58B760 or whatever​

Spoiler:


yu should notice that every 3rd and 10th byte is 58
copy down until the 3rd and 10th bytes aren't 58 or​
Spoiler:

for emerald and paste a your new offset (E40000 for me)
then add 1 mor at the end like this <pointer for your options><amount of options><00 00 00>
so for me I'm using E40500 with 3 options now so <00 05 E4 08><03><00 00 00> or 00 05 E4 08 03 00 00 00​

at E40500
or where ever put <pointer><00 00 00 00> or 00 05 E4 08 00 00 00 00 times by the amount of options so for me its​

00 05 E4 08 00 00 00 00 00 05 E4 08 00 00 00 00
00 05 E4 08 00 00 00 00​

now for the final part go into converter and type in the box below text <option 1><\x><option 2><\x><option 3><\x>​

so I'll do one two YESS:
one\xtwo\xYESS\x​

get the hex and paste it at E40550 or where ever.​

E3E2D9FFE8EBE3FFD3BFCDCDFF

now finally change to then the offset after each FF


50 05 E4 08 00 00 00 00 54 05 E4 08 00 00 00 00

5C 05 E4 08 00 00 00 00



Done
your new box will be after all the others




I have have to get ready for school now but if there are any questions please post in thread.
 
Last edited by a moderator:

12345

Sky
157
Posts
16
Years
  • Seen Aug 18, 2016
This is useful for me, and your converter I also use it for other things. Thanks.
 

Chicken Bones

Hacks 4 fun
18
Posts
14
Years
  • Seen Apr 29, 2010
Thanks for the feedback guys.

I just hope it isn't too hard to follow (I had to rush the last bit).

And btw for the converter the code sheet tells you a bit of what to type in like for the e in pokemon = [e]
 
5
Posts
9
Years
  • Age 31
  • Seen Apr 9, 2024
I think i successfully created my new multichoice but im still not sure how to locate it or what 'your new multichoice will be after all the others' means
 
Back
Top