pokeemerald/data/maps/MirageTower_4F/scripts.inc

81 lines
2.2 KiB
PHP
Raw Normal View History

.set LOCALID_ROOT_FOSSIL, 1
.set LOCALID_CLAW_FOSSIL, 2
2021-07-20 21:18:31 +02:00
MirageTower_4F_MapScripts::
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
MirageTower_4F_EventScript_RootFossil::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-07 02:38:53 +01:00
msgbox MirageTower_4F_Text_TakeRootFossil, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, MirageTower_4F_EventScript_LeaveRootFossil
giveitem ITEM_ROOT_FOSSIL
2017-11-10 02:21:31 +01:00
closemessage
2018-10-18 21:28:59 +02:00
setflag FLAG_HIDE_MIRAGE_TOWER_ROOT_FOSSIL
setflag FLAG_HIDE_MIRAGE_TOWER_CLAW_FOSSIL
removeobject LOCALID_ROOT_FOSSIL
2017-11-10 02:21:31 +01:00
delay 30
setflag FLAG_CHOSE_ROOT_FOSSIL
2019-11-07 02:38:53 +01:00
goto MirageTower_4F_EventScript_CollapseMirageTower
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MirageTower_4F_EventScript_LeaveRootFossil::
2019-11-07 02:38:53 +01:00
msgbox MirageTower_4F_Text_LeftRootFossilAlone, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
MirageTower_4F_EventScript_ClawFossil::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-07 02:38:53 +01:00
msgbox MirageTower_4F_Text_TakeClawFossil, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, MirageTower_4F_EventScript_LeaveClawFossil
giveitem ITEM_CLAW_FOSSIL
2017-11-10 02:21:31 +01:00
closemessage
2018-10-18 21:28:59 +02:00
setflag FLAG_HIDE_MIRAGE_TOWER_CLAW_FOSSIL
setflag FLAG_HIDE_MIRAGE_TOWER_ROOT_FOSSIL
removeobject LOCALID_CLAW_FOSSIL
2017-11-10 02:21:31 +01:00
delay 30
setflag FLAG_CHOSE_CLAW_FOSSIL
2019-11-07 02:38:53 +01:00
goto MirageTower_4F_EventScript_CollapseMirageTower
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MirageTower_4F_EventScript_LeaveClawFossil::
2019-11-07 02:38:53 +01:00
msgbox MirageTower_4F_Text_LeaveClawFossilAlone, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
MirageTower_4F_EventScript_CollapseMirageTower::
2019-09-30 07:42:52 +02:00
setvar VAR_0x8004, 1 @ vertical pan
setvar VAR_0x8005, 1 @ horizontal pan
setvar VAR_0x8006, 32 @ num shakes
setvar VAR_0x8007, 2 @ shake delay
special ShakeCamera
2017-11-10 02:21:31 +01:00
waitstate
special DoMirageTowerCeilingCrumble
2017-11-10 02:21:31 +01:00
waitstate
2019-08-05 17:50:29 +02:00
setvar VAR_MIRAGE_TOWER_STATE, 1
2017-12-27 04:20:29 +01:00
clearflag FLAG_LANDMARK_MIRAGE_TOWER
warp MAP_ROUTE111, 19, 59
2017-11-10 02:21:31 +01:00
waitstate
release
end
2021-07-20 21:18:31 +02:00
MirageTower_4F_Text_TakeRootFossil:
2017-11-10 02:21:31 +01:00
.string "You found the ROOT FOSSIL.\p"
.string "If this FOSSIL is taken, the ground\n"
.string "around it will likely crumble away…\p"
.string "Take the ROOT FOSSIL anyway?$"
2021-07-20 21:18:31 +02:00
MirageTower_4F_Text_LeftRootFossilAlone:
2017-11-10 02:21:31 +01:00
.string "{PLAYER} left the ROOT FOSSIL alone.$"
2021-07-20 21:18:31 +02:00
MirageTower_4F_Text_TakeClawFossil:
2017-11-10 02:21:31 +01:00
.string "You found the CLAW FOSSIL.\p"
.string "If this FOSSIL is taken, the ground\n"
.string "around it will likely crumble away…\p"
.string "Take the CLAW FOSSIL anyway?$"
2021-07-20 21:18:31 +02:00
MirageTower_4F_Text_LeaveClawFossilAlone:
2017-11-10 02:21:31 +01:00
.string "{PLAYER} left the CLAW FOSSIL alone.$"