Create new custom multichoice boxes (without deleting old ones)
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
- 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
assign it to a person or sign in advancemap.
open VBA you should get a box like this (if using emerald)
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
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
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
yu should notice that every 3rd and 10th byte is 58
copy down until the 3rd and 10th bytes aren't 58 or
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
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:
get the hex and paste it at E40550 or where ever.
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
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.
This is useful for me, and your converter I also use it for other things. Thanks.
This is very useful. :P Thanks for this. :3
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]
What are the offsets for FireRed?
thanks a lot I've been looking for this for a while
that's a strangely small tutorial.
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
|All times are GMT -8. The time now is 8:40 AM.|
© 2002 - 2015 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2015.