pokeemerald/data/maps/SlateportCity_BattleTentLobby/scripts.inc

311 lines
10 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
SlateportCity_BattleTentLobby_MapScripts:: @ 8208730
2019-02-22 08:28:32 +01:00
map_script MAP_SCRIPT_ON_FRAME_TABLE, SlateportCity_BattleTentLobby_MapScript2_20874F
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, SlateportCity_BattleTentLobby_MapScript2_20873B
2017-11-10 02:21:31 +01:00
.byte 0
SlateportCity_BattleTentLobby_MapScript2_20873B: @ 820873B
2018-05-19 18:02:43 +02:00
map_script_2 VAR_TEMP_1, 0, SlateportCity_BattleTentLobby_EventScript_208745
2017-11-10 02:21:31 +01:00
.2byte 0
SlateportCity_BattleTentLobby_EventScript_208745:: @ 8208745
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 1
2019-09-16 05:47:07 +02:00
turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH
2017-11-10 02:21:31 +01:00
end
SlateportCity_BattleTentLobby_MapScript2_20874F: @ 820874F
2018-05-19 18:02:43 +02:00
map_script_2 VAR_TEMP_0, 0, SlateportCity_BattleTentLobby_EventScript_208779
2019-11-24 22:58:40 +01:00
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_SAVING, SlateportCity_BattleTentLobby_EventScript_208782
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_PAUSED, SlateportCity_BattleTentLobby_EventScript_208871
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_WON, SlateportCity_BattleTentLobby_EventScript_2087B7
map_script_2 VAR_TEMP_0, CHALLENGE_STATUS_LOST, SlateportCity_BattleTentLobby_EventScript_208837
2017-11-10 02:21:31 +01:00
.2byte 0
SlateportCity_BattleTentLobby_EventScript_208779:: @ 8208779
2019-11-24 22:58:40 +01:00
frontier_getstatus
2017-11-10 02:21:31 +01:00
end
SlateportCity_BattleTentLobby_EventScript_208782:: @ 8208782
lockall
msgbox SlateportCity_BattleTentLobby_Text_2C5DFA, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 255
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_LVL_MODE, FRONTIER_LVL_50
2017-11-10 02:21:31 +01:00
releaseall
end
SlateportCity_BattleTentLobby_EventScript_2087B7:: @ 82087B7
lockall
message SlateportCity_BattleTentLobby_Text_2C5C6F
waitmessage
2019-12-02 20:49:22 +01:00
slateporttent_setrandomprize
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_LVL_MODE, FRONTIER_LVL_50
2019-12-02 20:49:22 +01:00
slateporttent_save 0
2017-11-10 02:21:31 +01:00
playse SE_SAVE
waitse
SlateportCity_BattleTentLobby_EventScript_2087E9:: @ 82087E9
msgbox SlateportCity_BattleTentLobby_Text_2C5D14, MSGBOX_DEFAULT
2019-12-02 20:49:22 +01:00
slateporttent_giveprize
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 0, SlateportCity_BattleTentLobby_EventScript_20882A
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0
2017-11-10 02:21:31 +01:00
message SlateportCity_BattleTentLobby_Text_23F68C
waitmessage
2017-12-22 08:46:19 +01:00
playfanfare MUS_FANFA4
2017-11-10 02:21:31 +01:00
waitfanfare
goto SlateportCity_BattleTentLobby_EventScript_208861
SlateportCity_BattleTentLobby_EventScript_20882A:: @ 820882A
msgbox SlateportCity_BattleTentLobby_Text_2C5D52, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto SlateportCity_BattleTentLobby_EventScript_208861
SlateportCity_BattleTentLobby_EventScript_208837:: @ 8208837
lockall
message SlateportCity_BattleTentLobby_Text_2C5BA2
waitmessage
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_LVL_MODE, FRONTIER_LVL_50
2019-12-02 20:49:22 +01:00
slateporttent_save 0
2017-11-10 02:21:31 +01:00
playse SE_SAVE
waitse
SlateportCity_BattleTentLobby_EventScript_208861:: @ 8208861
msgbox SlateportCity_BattleTentLobby_Text_2C5AA5, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 255
2017-11-10 02:21:31 +01:00
releaseall
end
SlateportCity_BattleTentLobby_EventScript_208871:: @ 8208871
lockall
message SlateportCity_BattleTentLobby_Text_2C5DA7
waitmessage
2019-12-02 20:49:22 +01:00
slateporttent_save CHALLENGE_STATUS_SAVING
2017-11-10 02:21:31 +01:00
playse SE_SAVE
waitse
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_PAUSED, FALSE
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 255
2017-11-10 02:21:31 +01:00
setvar VAR_0x8006, 2
goto SlateportCity_BattleTentLobby_EventScript_2089AC
SlateportCity_BattleTentLobby_EventScript_2088AA:: @ 82088AA
lock
faceplayer
2019-12-02 20:49:22 +01:00
slateporttent_getprize
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_ne SlateportCity_BattleTentLobby_EventScript_2087E9
2018-04-29 14:21:59 +02:00
special SavePlayerParty
msgbox SlateportCity_BattleTentLobby_Text_2C5810, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
SlateportCity_BattleTentLobby_EventScript_2088CA:: @ 82088CA
message SlateportCity_BattleTentLobby_Text_2C586A
waitmessage
2019-09-19 06:56:51 +02:00
multichoice 17, 6, MULTI_CHALLENGEINFO, 0
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 0, SlateportCity_BattleTentLobby_EventScript_208906
case 1, SlateportCity_BattleTentLobby_EventScript_208A07
case 2, SlateportCity_BattleTentLobby_EventScript_208A2E
2019-09-19 06:56:51 +02:00
case MULTI_B_PRESSED, SlateportCity_BattleTentLobby_EventScript_208A2E
2017-11-10 02:21:31 +01:00
SlateportCity_BattleTentLobby_EventScript_208906:: @ 8208906
2019-11-24 22:58:40 +01:00
setvar VAR_FRONTIER_FACILITY, FRONTIER_FACILITY_FACTORY
setvar VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
frontier_set FRONTIER_DATA_LVL_MODE, FRONTIER_LVL_TENT
msgbox SlateportCity_BattleTentLobby_Text_2C5B06, MSGBOX_YESNO
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
2019-11-02 17:34:53 +01:00
case NO, SlateportCity_BattleTentLobby_EventScript_208A2B
case YES, SlateportCity_BattleTentLobby_EventScript_208950
case MULTI_B_PRESSED, SlateportCity_BattleTentLobby_EventScript_208A2B
2017-11-10 02:21:31 +01:00
SlateportCity_BattleTentLobby_EventScript_208950:: @ 8208950
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 0
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_SELECTED_MON_ORDER
2019-12-02 20:49:22 +01:00
slateporttent_init
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_SAVING
frontier_set FRONTIER_DATA_PAUSED, FALSE
2017-11-10 02:21:31 +01:00
closemessage
delay 2
call Common_EventScript_SaveGame
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 255
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq SlateportCity_BattleTentLobby_EventScript_208A14
2017-11-10 02:21:31 +01:00
setvar VAR_0x8006, 0
SlateportCity_BattleTentLobby_EventScript_2089AC:: @ 82089AC
msgbox SlateportCity_BattleTentLobby_Text_2C5B8C, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
call SlateportCity_BattleTentLobby_EventScript_2089C9
warp MAP_SLATEPORT_CITY_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
SlateportCity_BattleTentLobby_EventScript_2089C9:: @ 82089C9
applymovement 1, SlateportCity_BattleTentLobby_Movement_2089F8
applymovement EVENT_OBJ_ID_PLAYER, SlateportCity_BattleTentLobby_Movement_2089FF
2017-11-10 02:21:31 +01:00
waitmovement 0
opendoor 6, 1
waitdooranim
applymovement 1, SlateportCity_BattleTentLobby_Movement_2089FC
applymovement EVENT_OBJ_ID_PLAYER, SlateportCity_BattleTentLobby_Movement_208A03
2017-11-10 02:21:31 +01:00
waitmovement 0
closedoor 6, 1
waitdooranim
return
SlateportCity_BattleTentLobby_Movement_2089F8: @ 82089F8
walk_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
SlateportCity_BattleTentLobby_Movement_2089FC: @ 82089FC
walk_up
set_invisible
2017-11-10 02:21:31 +01:00
step_end
SlateportCity_BattleTentLobby_Movement_2089FF: @ 82089FF
walk_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
SlateportCity_BattleTentLobby_Movement_208A03: @ 8208A03
walk_up
walk_up
set_invisible
2017-11-10 02:21:31 +01:00
step_end
SlateportCity_BattleTentLobby_EventScript_208A07:: @ 8208A07
msgbox SlateportCity_BattleTentLobby_Text_2C589C, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto SlateportCity_BattleTentLobby_EventScript_2088CA
SlateportCity_BattleTentLobby_EventScript_208A14:: @ 8208A14
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0
2017-11-10 02:21:31 +01:00
goto SlateportCity_BattleTentLobby_EventScript_208A2E
SlateportCity_BattleTentLobby_EventScript_208A2B:: @ 8208A2B
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
2017-11-10 02:21:31 +01:00
SlateportCity_BattleTentLobby_EventScript_208A2E:: @ 8208A2E
msgbox SlateportCity_BattleTentLobby_Text_2C5AA5, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
SlateportCity_BattleTentLobby_Movement_208A38:: @ 8208A38
walk_up
walk_up
walk_up
set_invisible
step_end
2017-11-10 02:21:31 +01:00
SlateportCity_BattleTentLobby_EventScript_208A3D:: @ 8208A3D
lock
faceplayer
2019-01-02 22:12:43 +01:00
goto_if_set FLAG_RECEIVED_TM41, SlateportCity_BattleTentLobby_EventScript_208A74
msgbox SlateportCity_BattleTentLobby_Text_208B4E, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
giveitem_std ITEM_TM41
compare VAR_RESULT, 0
goto_if_eq Common_EventScript_ShowBagIsFull
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_TM41
msgbox SlateportCity_BattleTentLobby_Text_208C5C, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
SlateportCity_BattleTentLobby_EventScript_208A74:: @ 8208A74
msgbox SlateportCity_BattleTentLobby_Text_208C5C, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
SlateportCity_BattleTentLobby_EventScript_208A7E:: @ 8208A7E
msgbox SlateportCity_BattleTentLobby_Text_208D27, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
SlateportCity_BattleTentLobby_EventScript_208A87:: @ 8208A87
msgbox SlateportCity_BattleTentLobby_Text_208DA6, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
SlateportCity_BattleTentLobby_EventScript_208A90:: @ 8208A90
msgbox SlateportCity_BattleTentLobby_Text_208DF1, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
SlateportCity_BattleTentLobby_EventScript_208A99:: @ 8208A99
lockall
msgbox SlateportCity_BattleTentLobby_Text_259721, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto SlateportCity_BattleTentLobby_EventScript_208AA8
end
SlateportCity_BattleTentLobby_EventScript_208AA8:: @ 8208AA8
message SlateportCity_BattleTentLobby_Text_259743
waitmessage
2019-09-19 06:56:51 +02:00
multichoice 17, 0, MULTI_SLATEPORT_TENT_RULES, 0
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 0, SlateportCity_BattleTentLobby_EventScript_208B06
case 1, SlateportCity_BattleTentLobby_EventScript_208B14
case 2, SlateportCity_BattleTentLobby_EventScript_208B22
case 3, SlateportCity_BattleTentLobby_EventScript_208B30
case 4, SlateportCity_BattleTentLobby_EventScript_208B3E
case 5, SlateportCity_BattleTentLobby_EventScript_208B4C
2019-09-19 06:56:51 +02:00
case MULTI_B_PRESSED, SlateportCity_BattleTentLobby_EventScript_208B4C
2017-11-10 02:21:31 +01:00
end
SlateportCity_BattleTentLobby_EventScript_208B06:: @ 8208B06
msgbox SlateportCity_BattleTentLobby_Text_2C5F08, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto SlateportCity_BattleTentLobby_EventScript_208AA8
end
SlateportCity_BattleTentLobby_EventScript_208B14:: @ 8208B14
msgbox SlateportCity_BattleTentLobby_Text_2C5F9D, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto SlateportCity_BattleTentLobby_EventScript_208AA8
end
SlateportCity_BattleTentLobby_EventScript_208B22:: @ 8208B22
msgbox SlateportCity_BattleTentLobby_Text_2C6020, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto SlateportCity_BattleTentLobby_EventScript_208AA8
end
SlateportCity_BattleTentLobby_EventScript_208B30:: @ 8208B30
msgbox SlateportCity_BattleTentLobby_Text_2C60C0, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto SlateportCity_BattleTentLobby_EventScript_208AA8
end
SlateportCity_BattleTentLobby_EventScript_208B3E:: @ 8208B3E
msgbox SlateportCity_BattleTentLobby_Text_2C61FE, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto SlateportCity_BattleTentLobby_EventScript_208AA8
end
SlateportCity_BattleTentLobby_EventScript_208B4C:: @ 8208B4C
releaseall
end
SlateportCity_BattleTentLobby_Text_208B4E: @ 8208B4E
2018-12-07 16:41:08 +01:00
.string "So, like, I couldn't find myself any\n"
2017-11-10 02:21:31 +01:00
.string "POKéMON that were, like, for me.\p"
.string "So, I figured, like, hey, I should file\n"
.string "a complaint to the guy there?\p"
2018-12-07 16:41:08 +01:00
.string "And he wouldn't hear me out, like, hey!\n"
2017-11-10 02:21:31 +01:00
.string "So, like, total bummer, man!\p"
.string "Hey, like, you! Zip it, you know?\n"
.string "Just, you know, take this!$"
SlateportCity_BattleTentLobby_Text_208C5C: @ 8208C5C
2018-12-07 16:41:08 +01:00
.string "That's, like, TM41, you know?\n"
.string "Hey, it's TORMENT, you hearing me?\p"
.string "Like, it won't let the other guy\n"
2017-11-10 02:21:31 +01:00
.string "use the same move twice in a row, see?\p"
.string "Hey, now, you listen here, like,\n"
2018-12-07 16:41:08 +01:00
.string "I'm not laying a torment on you!$"
2017-11-10 02:21:31 +01:00
SlateportCity_BattleTentLobby_Text_208D27: @ 8208D27
2018-12-07 16:41:08 +01:00
.string "I don't really like BUG POKéMON,\n"
.string "but maybe I'll try using some for\l"
2017-11-10 02:21:31 +01:00
.string "a change of pace.\p"
.string "Who knows, I might even get to like\n"
.string "them!$"
SlateportCity_BattleTentLobby_Text_208DA6: @ 8208DA6
.string "You can battle all you want here even\n"
2018-12-07 16:41:08 +01:00
.string "if you don't have any tough POKéMON.$"
2017-11-10 02:21:31 +01:00
SlateportCity_BattleTentLobby_Text_208DF1: @ 8208DF1
2018-12-07 16:41:08 +01:00
.string "Wouldn't it be nice if they had more of\n"
2017-11-10 02:21:31 +01:00
.string "a selection?$"