pokeemerald/data/maps/VerdanturfTown_BattleTentLobby/scripts.inc

440 lines
13 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
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
2018-05-19 18:02:43 +02:00
map_script_2 VAR_TEMP_1, 0, VerdanturfTown_BattleTentLobby_EventScript_2016E5
2017-11-10 02:21:31 +01:00
.2byte 0
VerdanturfTown_BattleTentLobby_EventScript_2016E5:: @ 82016E5
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 1
2017-11-10 02:21:31 +01:00
turnobject 255, 2
end
VerdanturfTown_BattleTentLobby_MapScript2_2016EF: @ 82016EF
2018-05-19 18:02:43 +02:00
map_script_2 VAR_TEMP_0, 0, VerdanturfTown_BattleTentLobby_EventScript_201719
map_script_2 VAR_TEMP_0, 1, VerdanturfTown_BattleTentLobby_EventScript_201722
map_script_2 VAR_TEMP_0, 2, VerdanturfTown_BattleTentLobby_EventScript_201837
map_script_2 VAR_TEMP_0, 3, VerdanturfTown_BattleTentLobby_EventScript_201757
map_script_2 VAR_TEMP_0, 4, VerdanturfTown_BattleTentLobby_EventScript_2017FD
2017-11-10 02:21:31 +01:00
.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
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 255
2017-11-10 02:21:31 +01:00
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
2017-12-22 08:46:19 +01:00
playfanfare MUS_FANFA4
2017-11-10 02:21:31 +01:00
waitfanfare
msgbox VerdanturfTown_BattleTentLobby_Text_2C539A, 4
closemessage
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 255
2017-11-10 02:21:31 +01:00
releaseall
end
VerdanturfTown_BattleTentLobby_EventScript_2017DD:: @ 82017DD
msgbox VerdanturfTown_BattleTentLobby_Text_24E57B, 4
waitmessage
closemessage
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 255
2017-11-10 02:21:31 +01:00
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
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 255
2017-11-10 02:21:31 +01:00
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
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 255
2017-11-10 02:21:31 +01:00
goto VerdanturfTown_BattleTentLobby_EventScript_2019AE
VerdanturfTown_BattleTentLobby_EventScript_201873:: @ 8201873
lock
faceplayer
setvar VAR_0x8004, 1
special sub_81B99B4
compare VAR_RESULT, 0
2017-11-10 02:21:31 +01:00
goto_if 5, VerdanturfTown_BattleTentLobby_EventScript_2017EE
2018-04-29 14:21:59 +02:00
special SavePlayerParty
2017-11-10 02:21:31 +01:00
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
2018-08-25 19:59:47 +02:00
setvar VAR_FRONTIER_BATTLE_MODE, 0
2017-11-10 02:21:31 +01:00
setvar VAR_RESULT, 2
setvar VAR_0x8004, 15
special sub_81A1780
compare VAR_0x8004, 1
2017-11-10 02:21:31 +01:00
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_RESULT, 0
2017-11-10 02:21:31 +01:00
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
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 0
2017-11-10 02:21:31 +01:00
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
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
2017-11-10 02:21:31 +01:00
closemessage
delay 2
call VerdanturfTown_BattleTentLobby_EventScript_27134F
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 255
compare VAR_RESULT, 0
2017-11-10 02:21:31 +01:00
goto_eq VerdanturfTown_BattleTentLobby_EventScript_201A1D
VerdanturfTown_BattleTentLobby_EventScript_2019AE:: @ 82019AE
2018-04-29 14:21:59 +02:00
special SavePlayerParty
2017-11-10 02:21:31 +01:00
setvar VAR_0x8004, 3
setvar VAR_0x8005, 3
special sub_81A1780
msgbox VerdanturfTown_BattleTentLobby_Text_2C56A2, 4
closemessage
call VerdanturfTown_BattleTentLobby_EventScript_201A41
warp MAP_VERDANTURF_TOWN_BATTLE_TENT_CORRIDOR, 255, 2, 7
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 0
2017-11-10 02:21:31 +01:00
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
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
2017-11-10 02:21:31 +01:00
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
walk_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
VerdanturfTown_BattleTentLobby_Movement_201A74: @ 8201A74
walk_up
set_invisible
2017-11-10 02:21:31 +01:00
step_end
VerdanturfTown_BattleTentLobby_Movement_201A77: @ 8201A77
walk_up
walk_up
set_invisible
2017-11-10 02:21:31 +01:00
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_RESULT, 0
2017-11-10 02:21:31 +01:00
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 doesnt like a certain move,\n"
.string "a POKéMON will be reluctant to use it.\p"
.string "It doesnt matter how strong it is,\n"
.string "either.\p"
.string "For example, a POKéMON with a GENTLE\n"
.string "nature probably wont enjoy hurting\l"
.string "its opponents.\p"
.string "If it cant seem to live up to its\n"
.string "potential, its 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 "shes 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 didnt see that, did you?\n"
.string "Well, it doesnt 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 "Im 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 TENTs a place where\n"
.string "you can meet tough TRAINERS.\p"
.string "It doesnt 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.$"