Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include stdpoke.rbh
- #freespace 0xFF
- #dynamic 0xF00000
- #org 0x1FA490
- checkgender
- compare LASTRESULT 0x0
- if 0x1 call @may
- compare LASTRESULT 0x1
- if 0x1 call @brendan
- release
- end
- #org @may
- bufferstring 0x1 @maybuffer
- checkflag 0x255
- if 0x0 goto @firstline
- checkflag 0x245
- if 0x1 goto @tryagain
- msgbox 0x81FB528 MSG_KEEPOPEN '"MAY: I think I'll take a short bre..."
- return
- #org @brendan
- bufferstring 0x1 @brendanbuffer
- checkflag 0x255
- if 0x0 goto @firstline
- checkflag 0x245
- if 0x1 goto @tryagain
- msgbox 0x81FB58A MSG_KEEPOPEN '"BRENDAN: For the time being,\nI'm ..."
- return
- #org @firstline
- checkflag 0x245
- if 0x1 goto @tryagain
- lock
- faceplayer
- call @startercheck
- msgbox @askmsg MSG_YESNO
- compare LASTRESULT 0x0
- if 0x1 goto @nothanks
- goto @givepokemon
- #org @tryagain
- lock
- faceplayer
- call @startercheck
- msgbox @tryagainmsg MSG_YESNO
- compare LASTRESULT 0x0
- if 0x1 goto @nothanks
- goto @givepokemon
- #org @givepokemon
- givepokemon 0x8001 5 0 0 0 0
- fanfare 0x172
- preparemsg @obtained
- waitmsg
- waitfanfare
- msgbox @takecare MSG_KEEPOPEN
- setflag 0x255
- clearflag 0x245
- release
- end
- #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 0x2 PKMN_MUDKIP
- return
- #org @swampert
- bufferpokemon 0x0 PKMN_SWAMPERT
- setvar 0x8001 PKMN_MUDKIP
- bufferpokemon 0x2 PKMN_MUDKIP
- return
- #org @sceptile
- bufferpokemon 0x0 PKMN_SCEPTILE
- setvar 0x8001 PKMN_TREECKO
- bufferpokemon 0x2 PKMN_MUDKIP
- return
- #org @nothanks
- setflag 0x245
- msgbox @okthen MSG_KEEPOPEN
- release
- end
- #org @okthen
- = Is that so? Well, let me know if you\nchange your mind.
- #org @tryagainmsg
- = How about it, [player]?\nWill you take care of my [buffer3]?
- #org @askmsg
- = [buffer2]: Hey, [player]!\pI just hatched an EGG that my [buffer1]\nlaid a while ago.\pI'm going to stay at the lab for a while,\nso why don't you raise the POKéMON on\lyour journey?
- #org @takecare
- = Please look out for it!
- #org @obtained
- = [player] obtained a [buffer3].
- #org @maybuffer
- = MAY
- #org @brendanbuffer
- = BRENDAN
- /*
- buffer1 = Rival's evolved Pokemon
- buffer2 = Rival's name
- buffer3 = Received Pokemon
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement