mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
f497c1508b
Also move maps/scripts to scripts/maps
440 lines
13 KiB
PHP
440 lines
13 KiB
PHP
VerdanturfTown_BattleTentLobby_MapScripts:: @ 82016D0
|
||
map_script 2, VerdanturfTown_BattleTentLobby_MapScript2_2016EF
|
||
map_script 4, VerdanturfTown_BattleTentLobby_MapScript2_2016DB
|
||
.byte 0
|
||
|
||
VerdanturfTown_BattleTentLobby_MapScript2_2016DB: @ 82016DB
|
||
map_script_2 VAR_0x4001, 0, VerdanturfTown_BattleTentLobby_EventScript_2016E5
|
||
.2byte 0
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_2016E5:: @ 82016E5
|
||
setvar VAR_0x4001, 1
|
||
turnobject 255, 2
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_MapScript2_2016EF: @ 82016EF
|
||
map_script_2 VAR_0x4000, 0, VerdanturfTown_BattleTentLobby_EventScript_201719
|
||
map_script_2 VAR_0x4000, 1, VerdanturfTown_BattleTentLobby_EventScript_201722
|
||
map_script_2 VAR_0x4000, 2, VerdanturfTown_BattleTentLobby_EventScript_201837
|
||
map_script_2 VAR_0x4000, 3, VerdanturfTown_BattleTentLobby_EventScript_201757
|
||
map_script_2 VAR_0x4000, 4, VerdanturfTown_BattleTentLobby_EventScript_2017FD
|
||
.2byte 0
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201719:: @ 8201719
|
||
setvar VAR_0x8004, 0
|
||
special sub_81A1780
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201722:: @ 8201722
|
||
lockall
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_24E636, 4
|
||
closemessage
|
||
setvar VAR_0x8004, 2
|
||
setvar VAR_0x8005, 0
|
||
setvar VAR_0x8006, 0
|
||
special sub_81A1780
|
||
setvar VAR_0x4000, 255
|
||
setvar VAR_0x8004, 2
|
||
setvar VAR_0x8005, 1
|
||
setvar VAR_0x8006, 0
|
||
special sub_81A1780
|
||
releaseall
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201757:: @ 8201757
|
||
lockall
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_2C5731, 4
|
||
message VerdanturfTown_BattleTentLobby_Text_2C5791
|
||
waitmessage
|
||
setvar VAR_0x8004, 6
|
||
special sub_81B99B4
|
||
setvar VAR_0x8004, 2
|
||
setvar VAR_0x8005, 1
|
||
setvar VAR_0x8006, 0
|
||
special sub_81A1780
|
||
setvar VAR_0x8004, 5
|
||
setvar VAR_0x8005, 0
|
||
special sub_81B99B4
|
||
playse SE_SAVE
|
||
waitse
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201791:: @ 8201791
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_2C57CD, 4
|
||
setvar VAR_0x8004, 7
|
||
special sub_81B99B4
|
||
switch VAR_RESULT
|
||
case 0, VerdanturfTown_BattleTentLobby_EventScript_2017DD
|
||
setvar VAR_0x8004, 2
|
||
setvar VAR_0x8005, 0
|
||
setvar VAR_0x8006, 0
|
||
special sub_81A1780
|
||
message VerdanturfTown_BattleTentLobby_Text_24A554
|
||
waitmessage
|
||
playfanfare BGM_FANFA4
|
||
waitfanfare
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_2C539A, 4
|
||
closemessage
|
||
setvar VAR_0x4000, 255
|
||
releaseall
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_2017DD:: @ 82017DD
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_24E57B, 4
|
||
waitmessage
|
||
closemessage
|
||
setvar VAR_0x4000, 255
|
||
releaseall
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_2017EE:: @ 82017EE
|
||
lockall
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_2C5731, 4
|
||
goto VerdanturfTown_BattleTentLobby_EventScript_201791
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_2017FD:: @ 82017FD
|
||
lockall
|
||
message VerdanturfTown_BattleTentLobby_Text_2C56B8
|
||
waitmessage
|
||
setvar VAR_0x8004, 2
|
||
setvar VAR_0x8005, 1
|
||
setvar VAR_0x8006, 0
|
||
special sub_81A1780
|
||
setvar VAR_0x8004, 5
|
||
setvar VAR_0x8005, 0
|
||
special sub_81B99B4
|
||
playse SE_SAVE
|
||
waitse
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_2C539A, 4
|
||
closemessage
|
||
setvar VAR_0x4000, 255
|
||
releaseall
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201837:: @ 8201837
|
||
lockall
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_24E5D8, 4
|
||
message VerdanturfTown_BattleTentLobby_Text_24E5F6
|
||
waitmessage
|
||
setvar VAR_0x8004, 5
|
||
setvar VAR_0x8005, 1
|
||
special sub_81B99B4
|
||
playse SE_SAVE
|
||
waitse
|
||
setvar VAR_0x8004, 2
|
||
setvar VAR_0x8005, 3
|
||
setvar VAR_0x8006, 0
|
||
special sub_81A1780
|
||
setvar VAR_0x4000, 255
|
||
goto VerdanturfTown_BattleTentLobby_EventScript_2019AE
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201873:: @ 8201873
|
||
lock
|
||
faceplayer
|
||
setvar VAR_0x8004, 1
|
||
special sub_81B99B4
|
||
compare_var_to_value VAR_RESULT, 0
|
||
goto_if 5, VerdanturfTown_BattleTentLobby_EventScript_2017EE
|
||
special copy_player_party_to_sav1
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_2C50C3, 4
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201893:: @ 8201893
|
||
message VerdanturfTown_BattleTentLobby_Text_2C5129
|
||
waitmessage
|
||
multichoice 17, 6, 23, 0
|
||
switch VAR_RESULT
|
||
case 0, VerdanturfTown_BattleTentLobby_EventScript_2018CF
|
||
case 1, VerdanturfTown_BattleTentLobby_EventScript_2019DB
|
||
case 2, VerdanturfTown_BattleTentLobby_EventScript_201A37
|
||
case 127, VerdanturfTown_BattleTentLobby_EventScript_201A37
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_2018CF:: @ 82018CF
|
||
setvar VAR_FRONTIER_FACILITY, 2
|
||
setvar VAR_0x40CE, 0
|
||
setvar VAR_RESULT, 2
|
||
setvar VAR_0x8004, 15
|
||
special sub_81A1780
|
||
compare_var_to_value VAR_0x8004, 1
|
||
goto_eq VerdanturfTown_BattleTentLobby_EventScript_2019E8
|
||
setvar VAR_0x8004, 2
|
||
setvar VAR_0x8005, 1
|
||
setvar VAR_0x8006, 2
|
||
special sub_81A1780
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_2C5633, 4
|
||
fadescreen 1
|
||
setvar VAR_0x8004, 1
|
||
setvar VAR_0x8005, 3
|
||
special sub_80F9490
|
||
waitstate
|
||
compare_var_to_value VAR_RESULT, 0
|
||
goto_eq VerdanturfTown_BattleTentLobby_EventScript_201A34
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_2C5662, 5
|
||
switch VAR_RESULT
|
||
case 0, VerdanturfTown_BattleTentLobby_EventScript_201A34
|
||
case 1, VerdanturfTown_BattleTentLobby_EventScript_201954
|
||
case 127, VerdanturfTown_BattleTentLobby_EventScript_201A34
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201954:: @ 8201954
|
||
setvar VAR_0x4000, 0
|
||
setvar VAR_0x8004, 2
|
||
setvar VAR_0x8005, 4
|
||
special sub_81A1780
|
||
setvar VAR_0x8004, 0
|
||
special sub_81B99B4
|
||
setvar VAR_0x8004, 2
|
||
setvar VAR_0x8005, 0
|
||
setvar VAR_0x8006, 1
|
||
special sub_81A1780
|
||
setvar VAR_0x8004, 2
|
||
setvar VAR_0x8005, 3
|
||
setvar VAR_0x8006, 0
|
||
special sub_81A1780
|
||
special copy_player_party_from_sav1
|
||
closemessage
|
||
delay 2
|
||
call VerdanturfTown_BattleTentLobby_EventScript_27134F
|
||
setvar VAR_0x4000, 255
|
||
compare_var_to_value VAR_RESULT, 0
|
||
goto_eq VerdanturfTown_BattleTentLobby_EventScript_201A1D
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_2019AE:: @ 82019AE
|
||
special copy_player_party_to_sav1
|
||
setvar VAR_0x8004, 3
|
||
setvar VAR_0x8005, 3
|
||
special sub_81A1780
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_2C56A2, 4
|
||
closemessage
|
||
call VerdanturfTown_BattleTentLobby_EventScript_201A41
|
||
warp VERDANTURF_TOWN_BATTLE_TENT_CORRIDOR, 255, 2, 7
|
||
setvar VAR_0x4000, 0
|
||
waitstate
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_2019DB:: @ 82019DB
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_2C5163, 4
|
||
goto VerdanturfTown_BattleTentLobby_EventScript_201893
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_2019E8:: @ 82019E8
|
||
switch VAR_RESULT
|
||
case 0, VerdanturfTown_BattleTentLobby_EventScript_201A03
|
||
case 1, VerdanturfTown_BattleTentLobby_EventScript_201A10
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201A03:: @ 8201A03
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_2C543D, 4
|
||
goto VerdanturfTown_BattleTentLobby_EventScript_201A3F
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201A10:: @ 8201A10
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_2C5538, 4
|
||
goto VerdanturfTown_BattleTentLobby_EventScript_201A3F
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201A1D:: @ 8201A1D
|
||
setvar VAR_0x8004, 2
|
||
setvar VAR_0x8005, 0
|
||
setvar VAR_0x8006, 0
|
||
special sub_81A1780
|
||
goto VerdanturfTown_BattleTentLobby_EventScript_201A37
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201A34:: @ 8201A34
|
||
special copy_player_party_from_sav1
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201A37:: @ 8201A37
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_2C539A, 4
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201A3F:: @ 8201A3F
|
||
release
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201A41:: @ 8201A41
|
||
applymovement 1, VerdanturfTown_BattleTentLobby_Movement_201A70
|
||
applymovement 255, VerdanturfTown_BattleTentLobby_Movement_201A70
|
||
waitmovement 0
|
||
opendoor 6, 1
|
||
waitdooranim
|
||
applymovement 1, VerdanturfTown_BattleTentLobby_Movement_201A74
|
||
applymovement 255, VerdanturfTown_BattleTentLobby_Movement_201A77
|
||
waitmovement 0
|
||
closedoor 6, 1
|
||
waitdooranim
|
||
return
|
||
|
||
VerdanturfTown_BattleTentLobby_Movement_201A70: @ 8201A70
|
||
step_up
|
||
step_up
|
||
step_up
|
||
step_end
|
||
|
||
VerdanturfTown_BattleTentLobby_Movement_201A74: @ 8201A74
|
||
step_up
|
||
step_54
|
||
step_end
|
||
|
||
VerdanturfTown_BattleTentLobby_Movement_201A77: @ 8201A77
|
||
step_up
|
||
step_up
|
||
step_54
|
||
step_end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201A7B:: @ 8201A7B
|
||
lock
|
||
faceplayer
|
||
checkflag FLAG_0x0EB
|
||
goto_eq VerdanturfTown_BattleTentLobby_EventScript_201AB2
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_201D9E, 4
|
||
giveitem_std ITEM_TM45
|
||
compare_var_to_value VAR_RESULT, 0
|
||
goto_eq VerdanturfTown_BattleTentLobby_EventScript_272054
|
||
setflag FLAG_0x0EB
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_201E43, 4
|
||
release
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201AB2:: @ 8201AB2
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_201E43, 4
|
||
release
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201ABC:: @ 8201ABC
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_201EB1, 2
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201AC5:: @ 8201AC5
|
||
lock
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_201BD4, 4
|
||
release
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201AD0:: @ 8201AD0
|
||
lock
|
||
faceplayer
|
||
checkflag FLAG_0x1CC
|
||
goto_eq VerdanturfTown_BattleTentLobby_EventScript_201AED
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_201F3F, 4
|
||
addvar VAR_0x40D1, 1
|
||
setflag FLAG_0x1CC
|
||
release
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201AED:: @ 8201AED
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_202025, 4
|
||
release
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201AF7:: @ 8201AF7
|
||
lock
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_201D11, 4
|
||
release
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201B02:: @ 8201B02
|
||
lockall
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_2C6878, 4
|
||
goto VerdanturfTown_BattleTentLobby_EventScript_201B11
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201B11:: @ 8201B11
|
||
message VerdanturfTown_BattleTentLobby_Text_24EF88
|
||
waitmessage
|
||
setvar VAR_0x8004, 12
|
||
special sub_813A128
|
||
waitstate
|
||
switch VAR_RESULT
|
||
case 0, VerdanturfTown_BattleTentLobby_EventScript_201B7E
|
||
case 1, VerdanturfTown_BattleTentLobby_EventScript_201B8C
|
||
case 2, VerdanturfTown_BattleTentLobby_EventScript_201B9A
|
||
case 3, VerdanturfTown_BattleTentLobby_EventScript_201BA8
|
||
case 4, VerdanturfTown_BattleTentLobby_EventScript_201BB6
|
||
case 5, VerdanturfTown_BattleTentLobby_EventScript_201BC4
|
||
case 6, VerdanturfTown_BattleTentLobby_EventScript_201BD2
|
||
case 127, VerdanturfTown_BattleTentLobby_EventScript_201BD2
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201B7E:: @ 8201B7E
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_2C67CD, 4
|
||
goto VerdanturfTown_BattleTentLobby_EventScript_201B11
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201B8C:: @ 8201B8C
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_24EFAB, 4
|
||
goto VerdanturfTown_BattleTentLobby_EventScript_201B11
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201B9A:: @ 8201B9A
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_24F049, 4
|
||
goto VerdanturfTown_BattleTentLobby_EventScript_201B11
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201BA8:: @ 8201BA8
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_24F190, 4
|
||
goto VerdanturfTown_BattleTentLobby_EventScript_201B11
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201BB6:: @ 8201BB6
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_24F2E8, 4
|
||
goto VerdanturfTown_BattleTentLobby_EventScript_201B11
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201BC4:: @ 8201BC4
|
||
msgbox VerdanturfTown_BattleTentLobby_Text_24F3F4, 4
|
||
goto VerdanturfTown_BattleTentLobby_EventScript_201B11
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_EventScript_201BD2:: @ 8201BD2
|
||
releaseall
|
||
end
|
||
|
||
VerdanturfTown_BattleTentLobby_Text_201BD4: @ 8201BD4
|
||
.string "If it doesn’t like a certain move,\n"
|
||
.string "a POKéMON will be reluctant to use it.\p"
|
||
.string "It doesn’t matter how strong it is,\n"
|
||
.string "either.\p"
|
||
.string "For example, a POKéMON with a GENTLE\n"
|
||
.string "nature probably won’t enjoy hurting\l"
|
||
.string "its opponents.\p"
|
||
.string "If it can’t seem to live up to its\n"
|
||
.string "potential, it’s probably failing at\l"
|
||
.string "using a disliked move against its will.$"
|
||
|
||
VerdanturfTown_BattleTentLobby_Text_201D11: @ 8201D11
|
||
.string "My big sister is gentle usually.\n"
|
||
.string "But when she gets angry,\l"
|
||
.string "she’s really, really scary!\p"
|
||
.string "I bet a gentle POKéMON will be scary\n"
|
||
.string "if it gets angry!$"
|
||
|
||
VerdanturfTown_BattleTentLobby_Text_201D9E: @ 8201D9E
|
||
.string "My feelings toward my POKéMON…\n"
|
||
.string "The attraction runs deep…\p"
|
||
.string "Oh, hi, you didn’t see that, did you?\n"
|
||
.string "Well, it doesn’t matter.\p"
|
||
.string "How would you like this TM for\n"
|
||
.string "your POKéMON?$"
|
||
|
||
VerdanturfTown_BattleTentLobby_Text_201E43: @ 8201E43
|
||
.string "My feelings toward my POKéMON…\n"
|
||
.string "I’m sure the attraction is mutual!\p"
|
||
.string "They battle exactly the way I want\n"
|
||
.string "them to!$"
|
||
|
||
VerdanturfTown_BattleTentLobby_Text_201EB1: @ 8201EB1
|
||
.string "What kind of moves have you taught\n"
|
||
.string "your POKéMON?\p"
|
||
.string "I think you would give yourself\n"
|
||
.string "an advantage if they knew how to\l"
|
||
.string "heal or protect themselves.$"
|
||
|
||
VerdanturfTown_BattleTentLobby_Text_201F3F: @ 8201F3F
|
||
.string "SCOTT: Hey there, {PLAYER}{KUN}!\n"
|
||
.string "I thought I might see you here.\p"
|
||
.string "A BATTLE TENT’s a place where\n"
|
||
.string "you can meet tough TRAINERS.\p"
|
||
.string "It doesn’t matter what the rules are,\n"
|
||
.string "or how battles are waged, either.\p"
|
||
.string "{PLAYER}{KUN}, I expect you to do\n"
|
||
.string "the best you can!$"
|
||
|
||
VerdanturfTown_BattleTentLobby_Text_202025: @ 8202025
|
||
.string "SCOTT: I visit here regularly in hopes\n"
|
||
.string "of seeing tough TRAINERS in action\l"
|
||
.string "in whatever the situation.$"
|
||
|