Advertisement
Guest User

Untitled

a guest
Nov 1st, 2022
727
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. LittlerootTown_ArchieInGameTradeSequence::
  2.  
  3. // Check a flag to see if the trade has already happened
  4. lock
  5. faceplayer
  6. goto_if_set FLAG_INGAME_ARCHIE_TRADE, LittlerootTown_EventScript_TradeCompleted
  7.  
  8. // Buffer the trade and requested mon names and ask if you want to trade
  9. setvar VAR_0x8008, INGAME_TRADE_KYOGRE
  10. copyvar VAR_0x8004, VAR_0x8008
  11. specialvar VAR_0x8009, GetInGameTradeSpeciesInfo
  12. msgbox LittlerootTown_Text_WillingToTradeIt, MSGBOX_YESNO
  13. goto_if_eq VAR_RESULT, NO, LittlerootTown_DeclineTrade
  14.  
  15. // Handle the selection of the requested mon from the player
  16. special ChoosePartyMon
  17. waitstate
  18. goto_if_eq VAR_0x8004, PARTY_NOTHING_CHOSEN, LittlerootTown_DeclineTrade
  19. copyvar VAR_0x8005, VAR_0x8004
  20. specialvar VAR_RESULT, GetTradeSpecies
  21. goto_if_ne VAR_RESULT, VAR_0x8009, LittlerootTown_EventScript_NotRequestedMon
  22.  
  23. // Perform the actual trade
  24. copyvar VAR_0x8004, VAR_0x8008
  25. special CreateInGameTradePokemon
  26. special DoInGameTradeScene
  27. waitstate
  28.  
  29. msgbox LittlerootTown_TradeThanks, MSGBOX_DEFAULT
  30. setflag FLAG_INGAME_ARCHIE_TRADE
  31. release
  32. end
  33.  
  34. LittlerootTown_DeclineTrade::
  35. msgbox LittlerootTown_DeclineTrade_Text, MSGBOX_DEFAULT
  36. release
  37. end
  38.  
  39. LittlerootTown_EventScript_NotRequestedMon::
  40. bufferspeciesname STR_VAR_1, VAR_0x8009
  41. msgbox LittlerootTown_WrongMon_Text, MSGBOX_DEFAULT
  42. release
  43. end
  44.  
  45. LittlerootTown_EventScript_TradeCompleted::
  46. msgbox LittlerootTown_EventScript_TradeCompleted_Text, MSGBOX_DEFAULT
  47. release
  48. end
  49.  
  50. LittlerootTown_EventScript_TradeCompleted_Text::
  51. .string "Thanks for trading with me!$"
  52.  
  53. LittlerootTown_Text_WillingToTradeIt::
  54. .string "Check out this {STR_VAR_2}!\n"
  55. .string "Oh, I can see that you want it!\p"
  56. .string "I'll tell you what. I might be willing\n"
  57. .string "to trade it for a {STR_VAR_1}.$"
  58.  
  59. LittlerootTown_DeclineTrade_Text::
  60. .string "Thats too bad, maybe next time.$"
  61.  
  62. LittlerootTown_WrongMon_Text::
  63. .string "I'm sorry but that is not\n"
  64. .string "a {STR_VAR_1}, I cannot trade with you.$"
  65.  
  66. LittlerootTown_TradeThanks::
  67. .string "NOW THIS IS REAL POWER!$"
  68.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement