pokeemerald/data/maps/PetalburgWoods/scripts.inc

478 lines
13 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
PetalburgWoods_MapScripts:: @ 822DFD6
.byte 0
PetalburgWoods_EventScript_22DFD7:: @ 822DFD7
lockall
call PetalburgWoods_EventScript_22E124
applymovement 4, PetalburgWoods_Movement_22E1CB
waitmovement 0
msgbox PetalburgWoods_Text_22E34F, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2017-12-22 08:46:19 +01:00
playbgm MUS_AQA_0, 0
2017-11-10 02:21:31 +01:00
applymovement 3, PetalburgWoods_Movement_22E209
waitmovement 0
msgbox PetalburgWoods_Text_22E3AA, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement 3, PetalburgWoods_Movement_22E1F6
waitmovement 0
applymovement 4, PetalburgWoods_Movement_2725A6
waitmovement 0
msgbox PetalburgWoods_Text_22E428, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement 4, PetalburgWoods_Movement_22E1E4
waitmovement 0
msgbox PetalburgWoods_Text_22E457, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement 3, PetalburgWoods_Movement_22E20E
waitmovement 0
msgbox PetalburgWoods_Text_22E4A5, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_GRUNT_8, PetalburgWoods_Text_22E542
2017-11-10 02:21:31 +01:00
applymovement 3, PetalburgWoods_Movement_22E1F9
waitmovement 0
call PetalburgWoods_EventScript_22E138
applymovement EVENT_OBJ_ID_PLAYER, PetalburgWoods_Movement_22E1E0
2017-11-10 02:21:31 +01:00
applymovement 4, PetalburgWoods_Movement_22E1C2
waitmovement 0
goto PetalburgWoods_EventScript_22E1A7
end
PetalburgWoods_EventScript_22E079:: @ 822E079
lockall
call PetalburgWoods_EventScript_22E124
applymovement 4, PetalburgWoods_Movement_22E1D0
waitmovement 0
applymovement EVENT_OBJ_ID_PLAYER, PetalburgWoods_Movement_2725A4
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox PetalburgWoods_Text_22E34F, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2017-12-22 08:46:19 +01:00
playbgm MUS_AQA_0, 0
2017-11-10 02:21:31 +01:00
applymovement 3, PetalburgWoods_Movement_22E209
waitmovement 0
msgbox PetalburgWoods_Text_22E3AA, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement 3, PetalburgWoods_Movement_22E205
waitmovement 0
applymovement 4, PetalburgWoods_Movement_2725A6
waitmovement 0
msgbox PetalburgWoods_Text_22E428, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement 4, PetalburgWoods_Movement_22E1EA
waitmovement 0
msgbox PetalburgWoods_Text_22E457, MSGBOX_DEFAULT
applymovement EVENT_OBJ_ID_PLAYER, PetalburgWoods_Movement_2725A6
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox PetalburgWoods_Text_22E4A5, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_GRUNT_8, PetalburgWoods_Text_22E542
2017-11-10 02:21:31 +01:00
applymovement 3, PetalburgWoods_Movement_22E1F9
waitmovement 0
call PetalburgWoods_EventScript_22E138
applymovement EVENT_OBJ_ID_PLAYER, PetalburgWoods_Movement_22E1E0
2017-11-10 02:21:31 +01:00
applymovement 4, PetalburgWoods_Movement_22E1D7
waitmovement 0
goto PetalburgWoods_EventScript_22E1A7
end
PetalburgWoods_EventScript_22E124:: @ 822E124
applymovement 4, PetalburgWoods_Movement_22E1B1
waitmovement 0
msgbox PetalburgWoods_Text_22E332, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
return
PetalburgWoods_EventScript_22E138:: @ 822E138
msgbox PetalburgWoods_Text_22E563, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement 3, PetalburgWoods_Movement_22E1FD
waitmovement 0
removeobject 3
applymovement EVENT_OBJ_ID_PLAYER, PetalburgWoods_Movement_2725AA
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox PetalburgWoods_Text_22E63D, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
giveitem_std ITEM_GREAT_BALL
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq PetalburgWoods_EventScript_22E17D
2017-11-10 02:21:31 +01:00
goto PetalburgWoods_EventScript_22E18B
end
PetalburgWoods_EventScript_22E17D:: @ 822E17D
msgbox PetalburgWoods_Text_22E741, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto PetalburgWoods_EventScript_22E18B
end
PetalburgWoods_EventScript_22E18B:: @ 822E18B
msgbox PetalburgWoods_Text_22E6C7, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
applymovement 4, PetalburgWoods_Movement_22E1EE
waitmovement 0
msgbox PetalburgWoods_Text_22E712, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
return
PetalburgWoods_EventScript_22E1A7:: @ 822E1A7
removeobject 4
setvar VAR_0x4098, 1
releaseall
end
PetalburgWoods_Movement_22E1B1: @ 822E1B1
face_up
delay_16
delay_4
face_right
delay_16
delay_8
face_left
delay_16
delay_8
face_down
delay_16
face_right
delay_16
delay_8
face_up
delay_16
2017-11-10 02:21:31 +01:00
step_end
PetalburgWoods_Movement_22E1C2: @ 822E1C2
walk_fast_right
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
2017-11-10 02:21:31 +01:00
step_end
PetalburgWoods_Movement_22E1CB: @ 822E1CB
delay_16
face_player
walk_down
walk_down
2017-11-10 02:21:31 +01:00
step_end
PetalburgWoods_Movement_22E1D0: @ 822E1D0
delay_16
face_player
walk_down
walk_down
walk_down
walk_in_place_fastest_right
2017-11-10 02:21:31 +01:00
step_end
PetalburgWoods_Movement_22E1D7: @ 822E1D7
walk_fast_left
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
2017-11-10 02:21:31 +01:00
step_end
PetalburgWoods_Movement_22E1E0: @ 822E1E0
delay_16
delay_16
walk_in_place_fastest_up
2017-11-10 02:21:31 +01:00
step_end
PetalburgWoods_Movement_22E1E4: @ 822E1E4
walk_fast_right
walk_fast_down
walk_fast_down
walk_fast_left
walk_in_place_fastest_up
2017-11-10 02:21:31 +01:00
step_end
PetalburgWoods_Movement_22E1EA: @ 822E1EA
walk_fast_down
walk_fast_right
walk_in_place_fastest_up
2017-11-10 02:21:31 +01:00
step_end
PetalburgWoods_Movement_22E1EE: @ 822E1EE
walk_in_place_fastest_down
delay_16
delay_16
delay_16
delay_16
delay_16
face_up
2017-11-10 02:21:31 +01:00
step_end
PetalburgWoods_Movement_22E1F6: @ 822E1F6
walk_fast_down
walk_fast_down
2017-11-10 02:21:31 +01:00
step_end
PetalburgWoods_Movement_22E1F9: @ 822E1F9
lock_facing_direction
walk_up
unlock_facing_direction
2017-11-10 02:21:31 +01:00
step_end
PetalburgWoods_Movement_22E1FD: @ 822E1FD
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
delay_16
delay_16
2017-11-10 02:21:31 +01:00
step_end
PetalburgWoods_Movement_22E205: @ 822E205
walk_fast_down
walk_fast_down
walk_fast_down
2017-11-10 02:21:31 +01:00
step_end
PetalburgWoods_Movement_22E209: @ 822E209
walk_down
walk_down
delay_16
delay_16
2017-11-10 02:21:31 +01:00
step_end
PetalburgWoods_Movement_22E20E: @ 822E20E
walk_down
2017-11-10 02:21:31 +01:00
step_end
PetalburgWoods_EventScript_22E210:: @ 822E210
msgbox PetalburgWoods_Text_22EA0C, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
PetalburgWoods_EventScript_22E219:: @ 822E219
msgbox PetalburgWoods_Text_22EA8B, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
PetalburgWoods_EventScript_22E222:: @ 822E222
lock
faceplayer
2019-01-02 22:12:43 +01:00
goto_if_set FLAG_RECEIVED_MIRACLE_SEED, PetalburgWoods_EventScript_22E251
msgbox PetalburgWoods_Text_22EAFE, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
giveitem_std ITEM_MIRACLE_SEED
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq PetalburgWoods_EventScript_272054
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_MIRACLE_SEED
2017-11-10 02:21:31 +01:00
release
end
PetalburgWoods_EventScript_22E251:: @ 822E251
msgbox PetalburgWoods_Text_22EB63, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
PetalburgWoods_EventScript_22E25B:: @ 822E25B
msgbox PetalburgWoods_Text_22EC10, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
PetalburgWoods_EventScript_22E264:: @ 822E264
msgbox PetalburgWoods_Text_22ED07, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
PetalburgWoods_EventScript_22E26D:: @ 822E26D
trainerbattle_single TRAINER_LYLE, PetalburgWoods_Text_22E77D, PetalburgWoods_Text_22E7C1
msgbox PetalburgWoods_Text_22E7EF, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
PetalburgWoods_EventScript_22E284:: @ 822E284
trainerbattle_single TRAINER_JAMES_1, PetalburgWoods_Text_22E827, PetalburgWoods_Text_22E86B, PetalburgWoods_EventScript_22E2C5
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq PetalburgWoods_EventScript_22E31B
2017-11-10 02:21:31 +01:00
setvar VAR_0x8004, 621
specialvar VAR_RESULT, sub_813B4E0
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq PetalburgWoods_EventScript_22E2EF
msgbox PetalburgWoods_Text_22E889, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
PetalburgWoods_EventScript_22E2C5:: @ 822E2C5
special sub_80B4808
waitmovement 0
2018-12-22 02:28:24 +01:00
goto_if_set FLAG_HAS_MATCH_CALL, PetalburgWoods_EventScript_22E2D6
2017-11-10 02:21:31 +01:00
release
end
PetalburgWoods_EventScript_22E2D6:: @ 822E2D6
msgbox PetalburgWoods_Text_22E8C3, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_JAMES_1
2017-11-10 02:21:31 +01:00
release
end
PetalburgWoods_EventScript_22E2EF:: @ 822E2EF
2018-12-22 02:28:24 +01:00
goto_if_set FLAG_HAS_MATCH_CALL, PetalburgWoods_EventScript_22E302
msgbox PetalburgWoods_Text_22E889, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
PetalburgWoods_EventScript_22E302:: @ 822E302
msgbox PetalburgWoods_Text_22E914, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_JAMES_1
2017-11-10 02:21:31 +01:00
release
end
PetalburgWoods_EventScript_22E31B:: @ 822E31B
trainerbattle_rematch TRAINER_JAMES_1, PetalburgWoods_Text_22E966, PetalburgWoods_Text_22E998
msgbox PetalburgWoods_Text_22E9B6, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
PetalburgWoods_Text_22E332: @ 822E332
.string "Hmmm…\n"
.string "Not a one to be found…$"
PetalburgWoods_Text_22E34F: @ 822E34F
.string "Hello, have you seen any POKéMON\n"
.string "called SHROOMISH around here?\p"
.string "I really love that POKéMON.$"
PetalburgWoods_Text_22E3AA: @ 822E3AA
.string "I was going to ambush you, but you\n"
.string "had to dawdle in PETALBURG WOODS\l"
2018-12-07 16:41:08 +01:00
.string "forever, didn't you?\p"
2017-11-10 02:21:31 +01:00
.string "I got sick of waiting, so here I am!$"
PetalburgWoods_Text_22E428: @ 822E428
.string "You! DEVON RESEARCHER!\p"
.string "Hand over those papers!$"
PetalburgWoods_Text_22E457: @ 822E457
.string "Aiyeeeh!\p"
2018-12-07 16:41:08 +01:00
.string "You're a POKéMON TRAINER, aren't you?\n"
.string "You've got to help me, please!$"
2017-11-10 02:21:31 +01:00
PetalburgWoods_Text_22E4A5: @ 822E4A5
2018-12-07 16:41:08 +01:00
.string "Hunh? What do you think you're doing?\n"
.string "What, you're going to protect him?\p"
2017-11-10 02:21:31 +01:00
.string "No one who crosses TEAM AQUA\n"
.string "gets any mercy, not even a kid!\p"
.string "Come on and battle me!$"
PetalburgWoods_Text_22E542: @ 822E542
2018-12-07 16:41:08 +01:00
.string "You're kidding me! You're tough!$"
2017-11-10 02:21:31 +01:00
PetalburgWoods_Text_22E563: @ 822E563
2018-12-07 16:41:08 +01:00
.string "Grrr… You've got some nerve\n"
2017-11-10 02:21:31 +01:00
.string "meddling with TEAM AQUA!\l"
.string "Come on and battle me again!\p"
2018-12-07 16:41:08 +01:00
.string "I wish I could say that, but I'm out of\n"
2017-11-10 02:21:31 +01:00
.string "POKéMON…\p"
.string "And, hey, we of TEAM AQUA are also\n"
.string "after something in RUSTBORO.\p"
2018-12-07 16:41:08 +01:00
.string "I'll let you go today!$"
2017-11-10 02:21:31 +01:00
PetalburgWoods_Text_22E63D: @ 822E63D
.string "Whew…\n"
.string "That was awfully close!\p"
2018-12-07 16:41:08 +01:00
.string "Thanks to you, he didn't rob me of\n"
2017-11-10 02:21:31 +01:00
.string "these important papers.\p"
2018-12-07 16:41:08 +01:00
.string "I know, I'll give you a GREAT BALL as\n"
2017-11-10 02:21:31 +01:00
.string "my thanks!$"
PetalburgWoods_Text_22E6C7: @ 822E6C7
2018-12-07 16:41:08 +01:00
.string "Didn't that TEAM AQUA thug say\n"
2017-11-10 02:21:31 +01:00
.string "they were after something in\l"
.string "RUSTBORO, too?$"
PetalburgWoods_Text_22E712: @ 822E712
2018-12-07 16:41:08 +01:00
.string "Uh-oh! It's a crisis!\n"
.string "I can't be wasting time!$"
2017-11-10 02:21:31 +01:00
PetalburgWoods_Text_22E741: @ 822E741
2018-12-07 16:41:08 +01:00
.string "You're loaded with items.\n"
.string "I can't give you this GREAT BALL.$"
2017-11-10 02:21:31 +01:00
PetalburgWoods_Text_22E77D: @ 822E77D
.string "I caught a whole bunch of POKéMON!\p"
.string "Go, go, go!\n"
.string "My BUG POKéMON team!$"
PetalburgWoods_Text_22E7C1: @ 822E7C1
.string "I have all these POKéMON,\n"
2018-12-07 16:41:08 +01:00
.string "but I couldn't win…$"
2017-11-10 02:21:31 +01:00
PetalburgWoods_Text_22E7EF: @ 822E7EF
.string "I caught a bunch of POKéMON.\n"
2018-12-07 16:41:08 +01:00
.string "Now I'm out of POKé BALLS.$"
2017-11-10 02:21:31 +01:00
PetalburgWoods_Text_22E827: @ 822E827
.string "If you take BUG POKéMON to school,\n"
.string "you get to be instantly popular!$"
PetalburgWoods_Text_22E86B: @ 822E86B
2018-12-07 16:41:08 +01:00
.string "I can't be popular if I lose.$"
2017-11-10 02:21:31 +01:00
PetalburgWoods_Text_22E889: @ 822E889
.string "If you have a big BUG POKéMON,\n"
.string "people respect you for it.$"
PetalburgWoods_Text_22E8C3: @ 822E8C3
.string "I want a rematch when my BUG\n"
.string "POKéMON grow up!\p"
2018-12-07 16:41:08 +01:00
.string "I'm registering you in my POKéNAV!$"
2017-11-10 02:21:31 +01:00
PetalburgWoods_Text_22E914: @ 822E914
.string "I want a rematch when my BUG \n"
.string "POKéMON grow up!\p"
2018-12-07 16:41:08 +01:00
.string "I'm registering you in my POKéNAV!$"
2017-11-10 02:21:31 +01:00
PetalburgWoods_Text_22E966: @ 822E966
.string "My BUG POKéMON have grown.\n"
2018-12-07 16:41:08 +01:00
.string "I'll be popular again.$"
2017-11-10 02:21:31 +01:00
PetalburgWoods_Text_22E998: @ 822E998
2018-12-07 16:41:08 +01:00
.string "I can't be popular if I lose.$"
2017-11-10 02:21:31 +01:00
PetalburgWoods_Text_22E9B6: @ 822E9B6
.string "You get to be popular if you have\n"
.string "strong POKéMON, right?\l"
2018-12-07 16:41:08 +01:00
.string "So, I've been training hard.$"
2017-11-10 02:21:31 +01:00
PetalburgWoods_Text_22EA0C: @ 822EA0C
.string "Yo, there!\n"
.string "Your POKéMON doing okay?\p"
.string "If your POKéMON are weak and you want\n"
.string "to avoid battles, you should stay out\l"
.string "of tall grass.$"
PetalburgWoods_Text_22EA8B: @ 822EA8B
.string "Sometimes, there are things on the\n"
2018-12-07 16:41:08 +01:00
.string "ground even if you can't see them.\p"
.string "That's why I always check where I'm\n"
2017-11-10 02:21:31 +01:00
.string "walking.$"
PetalburgWoods_Text_22EAFE: @ 822EAFE
.string "Oh, neat!\n"
2018-12-07 16:41:08 +01:00
.string "That's the BADGE from RUSTBORO GYM!\p"
2017-11-10 02:21:31 +01:00
.string "You must be a TRAINER.\n"
.string "You should try using this item.$"
PetalburgWoods_Text_22EB63: @ 822EB63
2018-12-07 16:41:08 +01:00
.string "It's a MIRACLE SEED.\n"
2017-11-10 02:21:31 +01:00
.string "If a POKéMON holds that item, its\l"
.string "GRASS-type moves become stronger.\p"
.string "Besides MIRACLE SEED, I think there are\n"
.string "other convenient items for POKéMON\l"
.string "to hold.$"
PetalburgWoods_Text_22EC10: @ 822EC10
.string "TRAINER TIPS\p"
.string "Any POKéMON that appears even once\n"
.string "in a battle is awarded EXP Points.\p"
.string "To raise a weak POKéMON, put it at the\n"
.string "left of the team list.\p"
.string "As soon as a battle starts, switch it\n"
.string "out. It will earn EXP Points without\l"
.string "being exposed to any harm.$"
PetalburgWoods_Text_22ED07: @ 822ED07
.string "TRAINER TIPS\p"
.string "In addition to Hit Points (HP), POKéMON\n"
.string "have Power Points (PP) that are used to\l"
.string "make moves during battle.\p"
.string "If a POKéMON runs out of PP, it must be\n"
.string "taken to a POKéMON CENTER.$"