diff options
Diffstat (limited to 'data/scripts/maps/RustboroCity_DevonCorp_2F.inc')
-rw-r--r-- | data/scripts/maps/RustboroCity_DevonCorp_2F.inc | 407 |
1 files changed, 407 insertions, 0 deletions
diff --git a/data/scripts/maps/RustboroCity_DevonCorp_2F.inc b/data/scripts/maps/RustboroCity_DevonCorp_2F.inc new file mode 100644 index 000000000..5543b297a --- /dev/null +++ b/data/scripts/maps/RustboroCity_DevonCorp_2F.inc @@ -0,0 +1,407 @@ +RustboroCity_DevonCorp_2F_MapScripts:: @ 8211857 + map_script 3, RustboroCity_DevonCorp_2F_MapScript1_21185D + .byte 0 + +RustboroCity_DevonCorp_2F_MapScript1_21185D: @ 821185D + compare VAR_0x40C4, 1 + call_if 1, RustboroCity_DevonCorp_2F_EventScript_211869 + end + +RustboroCity_DevonCorp_2F_EventScript_211869:: @ 8211869 + setvar VAR_0x40C4, 2 + return + +RustboroCity_DevonCorp_2F_EventScript_21186F:: @ 821186F + lock + faceplayer + compare VAR_0x40C4, 1 + call_if 1, RustboroCity_DevonCorp_2F_EventScript_211869 + msgbox RustboroCity_DevonCorp_2F_Text_211BFB, 4 + release + end + +RustboroCity_DevonCorp_2F_EventScript_211886:: @ 8211886 + lock + faceplayer + compare VAR_0x40C4, 1 + call_if 1, RustboroCity_DevonCorp_2F_EventScript_211869 + checkflag FLAG_0x11F + goto_eq RustboroCity_DevonCorp_2F_EventScript_2118A6 + msgbox RustboroCity_DevonCorp_2F_Text_211C50, 4 + release + end + +RustboroCity_DevonCorp_2F_EventScript_2118A6:: @ 82118A6 + msgbox RustboroCity_DevonCorp_2F_Text_211C99, 4 + release + end + +RustboroCity_DevonCorp_2F_EventScript_2118B0:: @ 82118B0 + lock + faceplayer + compare VAR_0x40C4, 1 + call_if 1, RustboroCity_DevonCorp_2F_EventScript_211869 + checkflag FLAG_0x0BC + goto_eq RustboroCity_DevonCorp_2F_EventScript_2118D0 + msgbox RustboroCity_DevonCorp_2F_Text_211D9F, 4 + release + end + +RustboroCity_DevonCorp_2F_EventScript_2118D0:: @ 82118D0 + msgbox RustboroCity_DevonCorp_2F_Text_211DF3, 4 + release + end + +RustboroCity_DevonCorp_2F_EventScript_2118DA:: @ 82118DA + lock + faceplayer + compare VAR_0x40C4, 1 + call_if 1, RustboroCity_DevonCorp_2F_EventScript_211869 + msgbox RustboroCity_DevonCorp_2F_Text_211EE0, 4 + release + end + +RustboroCity_DevonCorp_2F_EventScript_2118F1:: @ 82118F1 + lock + faceplayer + compare VAR_0x40C4, 2 + goto_eq RustboroCity_DevonCorp_2F_EventScript_211A03 + compare VAR_0x40C4, 1 + goto_eq RustboroCity_DevonCorp_2F_EventScript_2119F9 + msgbox RustboroCity_DevonCorp_2F_Text_211F48, 4 + checkitem ITEM_ROOT_FOSSIL, 1 + compare VAR_RESULT, 1 + goto_eq RustboroCity_DevonCorp_2F_EventScript_211933 + checkitem ITEM_CLAW_FOSSIL, 1 + compare VAR_RESULT, 1 + goto_eq RustboroCity_DevonCorp_2F_EventScript_211991 + release + end + +RustboroCity_DevonCorp_2F_EventScript_211933:: @ 8211933 + closemessage + playse SE_PIN + applymovement 5, RustboroCity_DevonCorp_2F_Movement_272598 + waitmovement 0 + applymovement 5, RustboroCity_DevonCorp_2F_Movement_27259A + waitmovement 0 + msgbox RustboroCity_DevonCorp_2F_Text_211FA6, 5 + compare VAR_RESULT, 0 + goto_eq RustboroCity_DevonCorp_2F_EventScript_2119EF + checkitem ITEM_CLAW_FOSSIL, 1 + compare VAR_RESULT, 1 + goto_eq RustboroCity_DevonCorp_2F_EventScript_211B84 + goto RustboroCity_DevonCorp_2F_EventScript_211974 + end + +RustboroCity_DevonCorp_2F_EventScript_211974:: @ 8211974 + bufferitemname 0, ITEM_ROOT_FOSSIL + msgbox RustboroCity_DevonCorp_2F_Text_212153, 4 + takeitem ITEM_ROOT_FOSSIL, 1 + setvar VAR_0x40C4, 1 + setvar VAR_0x40C5, 1 + release + end + +RustboroCity_DevonCorp_2F_EventScript_211991:: @ 8211991 + closemessage + playse SE_PIN + applymovement 5, RustboroCity_DevonCorp_2F_Movement_272598 + waitmovement 0 + applymovement 5, RustboroCity_DevonCorp_2F_Movement_27259A + waitmovement 0 + msgbox RustboroCity_DevonCorp_2F_Text_211FA6, 5 + compare VAR_RESULT, 0 + goto_eq RustboroCity_DevonCorp_2F_EventScript_2119EF + checkitem ITEM_ROOT_FOSSIL, 1 + compare VAR_RESULT, 1 + goto_eq RustboroCity_DevonCorp_2F_EventScript_211B84 + goto RustboroCity_DevonCorp_2F_EventScript_2119D2 + end + +RustboroCity_DevonCorp_2F_EventScript_2119D2:: @ 82119D2 + bufferitemname 0, ITEM_CLAW_FOSSIL + msgbox RustboroCity_DevonCorp_2F_Text_212153, 4 + takeitem ITEM_CLAW_FOSSIL, 1 + setvar VAR_0x40C4, 1 + setvar VAR_0x40C5, 2 + release + end + +RustboroCity_DevonCorp_2F_EventScript_2119EF:: @ 82119EF + msgbox RustboroCity_DevonCorp_2F_Text_212046, 4 + release + end + +RustboroCity_DevonCorp_2F_EventScript_2119F9:: @ 82119F9 + msgbox RustboroCity_DevonCorp_2F_Text_2121A2, 4 + release + end + +RustboroCity_DevonCorp_2F_EventScript_211A03:: @ 8211A03 + compare VAR_0x40C5, 1 + goto_eq RustboroCity_DevonCorp_2F_EventScript_211A1A + compare VAR_0x40C5, 2 + goto_eq RustboroCity_DevonCorp_2F_EventScript_211A2C + end + +RustboroCity_DevonCorp_2F_EventScript_211A1A:: @ 8211A1A + bufferspeciesname 1, SPECIES_LILEEP + msgbox RustboroCity_DevonCorp_2F_Text_212251, 4 + goto RustboroCity_DevonCorp_2F_EventScript_211A3E + end + +RustboroCity_DevonCorp_2F_EventScript_211A2C:: @ 8211A2C + bufferspeciesname 1, SPECIES_ANORITH + msgbox RustboroCity_DevonCorp_2F_Text_212251, 4 + goto RustboroCity_DevonCorp_2F_EventScript_211AE1 + end + +RustboroCity_DevonCorp_2F_EventScript_211A3E:: @ 8211A3E + setvar VAR_0x4001, 388 + givemon SPECIES_LILEEP, 20, ITEM_NONE, 0x0, 0x0, 0 + compare VAR_RESULT, 0 + goto_eq RustboroCity_DevonCorp_2F_EventScript_211A6E + compare VAR_RESULT, 1 + goto_eq RustboroCity_DevonCorp_2F_EventScript_211A96 + goto RustboroCity_DevonCorp_2F_EventScript_273811 + end + +RustboroCity_DevonCorp_2F_EventScript_211A6E:: @ 8211A6E + call RustboroCity_DevonCorp_2F_EventScript_211AC4 + msgbox gUnknown_08273374, 5 + compare VAR_RESULT, 0 + goto_eq RustboroCity_DevonCorp_2F_EventScript_211AD7 + call RustboroCity_DevonCorp_2F_EventScript_27378B + call RustboroCity_DevonCorp_2F_EventScript_2723DD + goto RustboroCity_DevonCorp_2F_EventScript_211AD7 + end + +RustboroCity_DevonCorp_2F_EventScript_211A96:: @ 8211A96 + call RustboroCity_DevonCorp_2F_EventScript_211AC4 + msgbox gUnknown_08273374, 5 + compare VAR_RESULT, 0 + goto_eq RustboroCity_DevonCorp_2F_EventScript_211AB9 + call RustboroCity_DevonCorp_2F_EventScript_273797 + goto RustboroCity_DevonCorp_2F_EventScript_211AB9 + end + +RustboroCity_DevonCorp_2F_EventScript_211AB9:: @ 8211AB9 + call RustboroCity_DevonCorp_2F_EventScript_2737A0 + goto RustboroCity_DevonCorp_2F_EventScript_211AD7 + end + +RustboroCity_DevonCorp_2F_EventScript_211AC4:: @ 8211AC4 + bufferspeciesname 1, SPECIES_LILEEP + playfanfare MUS_FANFA4 + message RustboroCity_DevonCorp_2F_Text_2122CB + waitmessage + waitfanfare + bufferspeciesname 0, SPECIES_LILEEP + return + +RustboroCity_DevonCorp_2F_EventScript_211AD7:: @ 8211AD7 + setvar VAR_0x40C4, 0 + setflag FLAG_0x10B + release + end + +RustboroCity_DevonCorp_2F_EventScript_211AE1:: @ 8211AE1 + setvar VAR_0x4001, 390 + givemon SPECIES_ANORITH, 20, ITEM_NONE, 0x0, 0x0, 0 + compare VAR_RESULT, 0 + goto_eq RustboroCity_DevonCorp_2F_EventScript_211B11 + compare VAR_RESULT, 1 + goto_eq RustboroCity_DevonCorp_2F_EventScript_211B39 + goto RustboroCity_DevonCorp_2F_EventScript_273811 + end + +RustboroCity_DevonCorp_2F_EventScript_211B11:: @ 8211B11 + call RustboroCity_DevonCorp_2F_EventScript_211B67 + msgbox gUnknown_08273374, 5 + compare VAR_RESULT, 0 + goto_eq RustboroCity_DevonCorp_2F_EventScript_211B7A + call RustboroCity_DevonCorp_2F_EventScript_27378B + call RustboroCity_DevonCorp_2F_EventScript_2723DD + goto RustboroCity_DevonCorp_2F_EventScript_211B7A + end + +RustboroCity_DevonCorp_2F_EventScript_211B39:: @ 8211B39 + call RustboroCity_DevonCorp_2F_EventScript_211B67 + msgbox gUnknown_08273374, 5 + compare VAR_RESULT, 0 + goto_eq RustboroCity_DevonCorp_2F_EventScript_211B5C + call RustboroCity_DevonCorp_2F_EventScript_273797 + goto RustboroCity_DevonCorp_2F_EventScript_211B5C + end + +RustboroCity_DevonCorp_2F_EventScript_211B5C:: @ 8211B5C + call RustboroCity_DevonCorp_2F_EventScript_2737A0 + goto RustboroCity_DevonCorp_2F_EventScript_211B7A + end + +RustboroCity_DevonCorp_2F_EventScript_211B67:: @ 8211B67 + bufferspeciesname 1, SPECIES_ANORITH + playfanfare MUS_FANFA4 + message RustboroCity_DevonCorp_2F_Text_2122CB + waitmessage + waitfanfare + bufferspeciesname 0, SPECIES_ANORITH + return + +RustboroCity_DevonCorp_2F_EventScript_211B7A:: @ 8211B7A + setvar VAR_0x40C4, 0 + setflag FLAG_0x10B + release + end + +RustboroCity_DevonCorp_2F_EventScript_211B84:: @ 8211B84 + message RustboroCity_DevonCorp_2F_Text_212092 + waitmessage + multichoice 17, 6, 93, 0 + switch VAR_RESULT + case 0, RustboroCity_DevonCorp_2F_EventScript_211BC1 + case 1, RustboroCity_DevonCorp_2F_EventScript_211BC7 + case 2, RustboroCity_DevonCorp_2F_EventScript_211BCD + case 127, RustboroCity_DevonCorp_2F_EventScript_211BCD + end + +RustboroCity_DevonCorp_2F_EventScript_211BC1:: @ 8211BC1 + goto RustboroCity_DevonCorp_2F_EventScript_2119D2 + end + +RustboroCity_DevonCorp_2F_EventScript_211BC7:: @ 8211BC7 + goto RustboroCity_DevonCorp_2F_EventScript_211974 + end + +RustboroCity_DevonCorp_2F_EventScript_211BCD:: @ 8211BCD + release + end + +RustboroCity_DevonCorp_2F_EventScript_211BCF:: @ 8211BCF + lock + faceplayer + compare VAR_0x40C4, 1 + call_if 1, RustboroCity_DevonCorp_2F_EventScript_211869 + compare VAR_0x405A, 6 + goto_if 4, RustboroCity_DevonCorp_2F_EventScript_211BF1 + msgbox RustboroCity_DevonCorp_2F_Text_212338, 4 + release + end + +RustboroCity_DevonCorp_2F_EventScript_211BF1:: @ 8211BF1 + msgbox RustboroCity_DevonCorp_2F_Text_212386, 4 + release + end + +RustboroCity_DevonCorp_2F_Text_211BFB: @ 8211BFB + .string "We’re developing a device for talking\n" + .string "with POKéMON.\p" + .string "But we haven’t had much success…$" + +RustboroCity_DevonCorp_2F_Text_211C50: @ 8211C50 + .string "I’m developing new kinds of\n" + .string "POKé BALLS…\p" + .string "But I haven’t made much headway…$" + +RustboroCity_DevonCorp_2F_Text_211C99: @ 8211C99 + .string "We finally made new kinds of\n" + .string "POKé BALLS!\p" + .string "The REPEAT BALL makes it easier to\n" + .string "catch POKéMON you’ve caught before.\p" + .string "The TIMER BALL gets better at catching\n" + .string "POKéMON the longer a battle runs.\p" + .string "Both are proudly developed by\n" + .string "the DEVON CORPORATION.\p" + .string "Please give them a try!$" + +RustboroCity_DevonCorp_2F_Text_211D9F: @ 8211D9F + .string "I made the POKéNAV!\p" + .string "As an engineer, I feel blessed to have\n" + .string "made something so great!$" + +RustboroCity_DevonCorp_2F_Text_211DF3: @ 8211DF3 + .string "Oh, wow!\n" + .string "That’s a POKéNAV!\p" + .string "It came about as a result of our\n" + .string "PRESIDENT’s desire to learn about\l" + .string "the feelings of POKéMON.\p" + .string "Would you like me to describe its\n" + .string "features in detail?\p" + .string "No, no. I think you’ll find out just by\n" + .string "trying the POKéNAV out.$" + +RustboroCity_DevonCorp_2F_Text_211EE0: @ 8211EE0 + .string "I’m trying to develop a device that\n" + .string "visually reproduces the dreams of\l" + .string "POKéMON…\p" + .string "But it’s not going well.$" + +RustboroCity_DevonCorp_2F_Text_211F48: @ 8211F48 + .string "I’ve been trying to develop a device\n" + .string "that resurrects POKéMON from fossils…\p" + .string "And, it’s working!$" + +RustboroCity_DevonCorp_2F_Text_211FA6: @ 8211FA6 + .string "Wait! That thing you have there…\n" + .string "Is that a POKéMON fossil?\p" + .string "Would you like to bring that POKéMON\n" + .string "back to life?\p" + .string "I can with my newly developed\n" + .string "FOSSIL REGENERATOR.$" + +RustboroCity_DevonCorp_2F_Text_212046: @ 8212046 + .string "Oh, is that so?\p" + .string "DEVON’s technological expertise\n" + .string "is outstanding, I tell you.$" + +RustboroCity_DevonCorp_2F_Text_212092: @ 8212092 + .string "Oh, now that’s a surprise!\n" + .string "You have not one, but two, fossils?\p" + .string "Unfortunately, my machine can only\n" + .string "regenerate one POKéMON at a time.\p" + .string "Would you like to pick one of your\n" + .string "fossils for regeneration?$" + +RustboroCity_DevonCorp_2F_Text_212153: @ 8212153 + .string "Excellent!\n" + .string "Let’s do this right away.\p" + .string "{PLAYER} handed the {STR_VAR_1} to\n" + .string "the DEVON RESEARCHER.$" + +RustboroCity_DevonCorp_2F_Text_2121A2: @ 82121A2 + .string "The FOSSIL REGENERATOR, which I made,\n" + .string "is incredible.\p" + .string "But it has one drawback--it takes\n" + .string "a long time to work.\p" + .string "So, uh… How about you go for a stroll\n" + .string "and look around for a while?$" + +RustboroCity_DevonCorp_2F_Text_212251: @ 8212251 + .string "Thanks for waiting!\p" + .string "Your fossilized POKéMON has been\n" + .string "brought back to life!\p" + .string "The fossil was an ancient POKéMON.\n" + .string "{STR_VAR_2}, it was!$" + +RustboroCity_DevonCorp_2F_Text_2122CB: @ 82122CB + .string "{PLAYER} received {STR_VAR_2} from\n" + .string "the DEVON RESEARCHER.$" + +RustboroCity_DevonCorp_2F_Text_2122F5: @ 82122F5 + .string "Uh-oh, you’ve got too many POKéMON.\n" + .string "You have no room for this one.$" + +RustboroCity_DevonCorp_2F_Text_212338: @ 8212338 + .string "I’m trying to develop a new feature\n" + .string "for the POKéNAV…\p" + .string "But it’s not going well.$" + +RustboroCity_DevonCorp_2F_Text_212386: @ 8212386 + .string "Well, now what shall I work on\n" + .string "developing next?\p" + .string "Our company allows us to make our\n" + .string "inspirations into reality.\p" + .string "One couldn’t ask for a better\n" + .string "environment as an engineer.$" + |