The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Fire red in-game Pokémon trade

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old December 7th, 2016 (12:30 PM). Edited December 9th, 2016 by PokemonValor.
PokemonValor's Avatar
PokemonValor PokemonValor is offline
 
Join Date: Oct 2015
Location: Celadon City, Kanto
Gender: Male
Nature: Lax
Posts: 98
So can someone help me out with the simplest way to script in-game npcs to trade with you? If there's an easy way to edit existing traders, and maybe just change the Pokémon numbers that they want/trade? Hopefully someone can help out, thanks.
__________________
Check out our hack, POKEMON VALOR in the Progressing Hacks page!
Always looking for feedback and suggestions.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old December 9th, 2016 (6:35 AM).
PokemonValor's Avatar
PokemonValor PokemonValor is offline
 
Join Date: Oct 2015
Location: Celadon City, Kanto
Gender: Male
Nature: Lax
Posts: 98
Anyone got anything? Please?
__________________
Check out our hack, POKEMON VALOR in the Progressing Hacks page!
Always looking for feedback and suggestions.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old December 9th, 2016 (11:21 AM).
MonopolyRubix's Avatar
MonopolyRubix MonopolyRubix is offline
 
Join Date: Jul 2015
Gender: Female
Nature: Adamant
Posts: 81
I'm definitely not a pro at this, but I got it to work once. I sort of forget how, but this is the script I used (I use PKSV-UI, not XSE for scripting):

Spoiler:

#dyn 0x740000
#org @main
lock
faceplayer
setvar 0x8008 0x1
copyvar 0x8004 0x8008
special2 LASTRESULT 0xFC
copyvar 0x8009 LASTRESULT
checkflag 0xABCD
if == jump @alreadydone
message @ask
callstd MSG_YESNO
compare LASTRESULT NO
if == jump @endscript
special 0x9F
waitspecial
lock
faceplayer
copyvar 0x800A 0x8004
compare 0x8004 0x6
if >= jump @playerclickedB
copyvar 0x8005 0x800A
special2 LASTRESULT 0xFF
copyvar 0x800B LASTRESULT
comparevars2 LASTRESULT 0x8009
if != jump @notrightpokemon
copyvar 0x8004 0x8008
copyvar 0x8005 0x800A
special 0xFD
special 0xFE
waitspecial
lock
faceplayer
message @thankyou
callstd MSG_NORMAL
setflag 0xABCD
release
end

#org @ask
= You know what?\pI'm thinking I'd like to\nbecome a PSYCHIC.\pBut I don't have any PSYCHIC\ntype POK\eMON.\pSay[.]\nDo you have a \v\h02?\pI'll trade you my \v\h03\nfor it.

#org @thankyou
= Sweet!\nHey, thanks a lot!

#org @alreadydone
message @howisit
callstd MSG_NORMAL
release
end

#org @howisit
= Hey!\nHow's \v\h03 treating you?\pI love my \v\h02!\nThanks a lot!

#org @endscript
message @notrade
callstd MSG_NORMAL
release
end

#org @notrade
= Really?\nAww, man[.]\pWell, if you ever get a\n\v\h02, let me know, okay?

#org @playerclickedB
message @nevermind
callstd MSG_NORMAL
release
end

#org @nevermind
= Really?\nAww, man[.]\pWell, if you ever change\nyour mind, I'll be here.

#org @notrightpokemon
storepokemon 0x0 0x8009
message @notit
callstd MSG_NORMAL
release
end

#org @notit
= Huh?\nThat's not a \v\h02.\pIf you ever get a \v\h02,\nlet me know, okay?


So when you talk to this guy ingame, \h\02 turns into the name of what you're trading him and \h\03 turns into the name of what he trades you.

This script uses the Poliwhirl for Jynx trade, so I edited that trade using Trader Advanced (https://www.pokecommunity.com/showthread.php?t=132530).

I think the Trader Advanced readme comes with a guide for doing it in XSE.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old December 9th, 2016 (7:02 PM).
PokemonValor's Avatar
PokemonValor PokemonValor is offline
 
Join Date: Oct 2015
Location: Celadon City, Kanto
Gender: Male
Nature: Lax
Posts: 98
Wow, totally perfect. Worked 100% for me. I've been stuck on this problem for a loooong time so thank you!
__________________
Check out our hack, POKEMON VALOR in the Progressing Hacks page!
Always looking for feedback and suggestions.
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old December 10th, 2016 (12:54 PM).
MonopolyRubix's Avatar
MonopolyRubix MonopolyRubix is offline
 
Join Date: Jul 2015
Gender: Female
Nature: Adamant
Posts: 81
No prob!
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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