Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- buffer1 = Rival's evolved Pokemon
- buffer2 = Received Pokemon
- Var 0x4023 0x0 = Treecko was the player's starter
- Var 0x4023 0x1 = Torchic was the player's starter
- Var 0x4023 0x2 = Mudkip was the player's starter
- */
- // MAY SPECIFIC SCRIPTS
- #org @tree_may
- call @startercheck
- checkflag 0x245
- if 0x1 goto @tryagain_may
- call @may_firstmeet
- call @givepokemon
- msgbox @takecare_may MSG_KEEPOPEN
- release
- end
- #org @may_firstmeet
- msgbox @may_firstmeet_msg MSG_YESNO
- compare LASTRESULT 0x0
- if 0x1 goto @reject_may
- // maybe i'll put a msgbox here
- return
- #org @tryagain_may
- msgbox @tryagain_may_msg MSG_YESNO
- compare LASTRESULT 0x0
- if 0x1 goto @reject_may
- // maybe i'll put a msgbox here
- return
- #org @reject_may
- msgbox @reject_may_msg MSG_KEEPOPEN
- release
- end
- #org @may_firstmeet_msg
- = MAY: Hello, [player]! I recently hatched an EGG that my [buffer1] had some time ago. I'm going to stay here for a while, so why don't you raise it?
- #org @tryagain_may_msg
- = MAY: How about it, [player]? Will you take care of my [buffer2]?
- #org @reject_may_msg
- = Is that so? Well, let me know if you have a change of heart.
- #org @takecare_may
- = Please take good care of it!
- // BRENDAN SPECIFIC SCRIPTS
- #org @tree_brendan
- call @startercheck
- checkflag 0x245
- if 0x1 goto @tryagain_brendan
- call @brendan_firstmeet
- call @givepokemon
- msgbox @takecare_brendan MSG_KEEPOPEN
- release
- end
- #org @brendan_firstmeet
- msgbox @brendan_firstmeet_msg MSG_YESNO
- compare LASTRESULT 0x0
- if 0x1 goto @reject_brendan
- // brendanbe i'll put a msgbox here
- return
- #org @tryagain_brendan
- msgbox @tryagain_brendan_msg MSG_YESNO
- compare LASTRESULT 0x0
- if 0x1 goto @reject_brendan
- // brendanbe i'll put a msgbox here
- return
- #org @reject_brendan
- msgbox @reject_brendan_msg MSG_KEEPOPEN
- release
- end
- #org @brendan_firstmeet_msg
- = MAY: Hello, [player]! I just hatched an egg that my [buffer1] laid a while back. I'll be in the lab for some time, how about you take it off my hands?
- #org @tryagain_brendan_msg
- = MAY: How about it, [player]? Do you want my [buffer2] or not?
- #org @reject_brendan_msg
- = Oh, all right. Just let me know if you change your mind.
- #org @takecare_brendan_msg
- = I wish you two the best of luck.
- // UNIVERSAL SCRIPTS
- #org @givepokemon
- givepokemon 0x8001 5 0 0 0 0
- fanfare 0x172
- preparemsg @obtained
- waitmsg
- waitfanfare
- setflag 0x255
- return
- #org @startercheck
- copyvar 0x8000 0x4023
- compare 0x8000 0x0
- if 0x1 call @blaziken
- compare 0x8000 0x1
- if 0x1 call @swampert
- compare 0x8000 0x2
- if 0x1 call @sceptile
- return
- #org @blaziken
- bufferpokemon 0x0 PKMN_BLAZIKEN
- setvar 0x8001 PKMN_TORCHIC
- bufferpokemon 0x1 PKMN_MUDKIP
- return
- #org @swampert
- bufferpokemon 0x0 PKMN_SWAMPERT
- setvar 0x8001 PKMN_MUDKIP
- bufferpokemon 0x1 PKMN_MUDKIP
- return
- #org @sceptile
- bufferpokemon 0x0 PKMN_SCEPTILE
- setvar 0x8001 PKMN_TREECKO
- bufferpokemon 0x1 PKMN_MUDKIP
- return
- #org @obtained
- = [player] received a [buffer2]!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement