The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script What is the script offset for naming a pokemon in emerald (https://www.pokecommunity.com/showthread.php?t=470032)

ProGylgamish2 March 31st, 2022 10:38 AM

What is the script offset for naming a pokemon in emerald
 
I can't find the script offset for naming a pokemon in emerald.
I'm using XSE and I think I am using the wrong script offset for a different game.

#dynamic 0x800000

#org @start
checkflag 0x860
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end

#org @take
givepokemon 0x17 0x5 0x8B 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
setflag 0x860
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 call @name
msgbox @5 0x6
release
end

#org @name
call 0x1A74EB
return

#org @done
msgbox @6 0x6
release
end

#org @1
= Hello.\nSorry to trouble you.\pI can't take care\nof my Ekans.\pCan you take care of\nit for me?

#org @2
= That's okay.\pI'm sure someone else will\ntake it.

#org @3
= [black_fr]You recieved a Ekans!

#org @4
= [black_fr]Would you like to give a\nnickname to Ekans?

#org @5
= Please take care of\nEkans.

#org @6
= Are you taking good care\nof Ekans?

Sorry for not using a link.


All times are GMT -8. The time now is 9:20 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 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 - 2016 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.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.