81 lines
2.2 KiB
PHP
81 lines
2.2 KiB
PHP
.set LOCALID_ROOT_FOSSIL, 1
|
|
.set LOCALID_CLAW_FOSSIL, 2
|
|
|
|
MirageTower_4F_MapScripts::
|
|
.byte 0
|
|
|
|
MirageTower_4F_EventScript_RootFossil::
|
|
lock
|
|
faceplayer
|
|
msgbox MirageTower_4F_Text_TakeRootFossil, MSGBOX_YESNO
|
|
goto_if_eq VAR_RESULT, NO, MirageTower_4F_EventScript_LeaveRootFossil
|
|
giveitem ITEM_ROOT_FOSSIL
|
|
closemessage
|
|
setflag FLAG_HIDE_MIRAGE_TOWER_ROOT_FOSSIL
|
|
setflag FLAG_HIDE_MIRAGE_TOWER_CLAW_FOSSIL
|
|
removeobject LOCALID_ROOT_FOSSIL
|
|
delay 30
|
|
setflag FLAG_CHOSE_ROOT_FOSSIL
|
|
goto MirageTower_4F_EventScript_CollapseMirageTower
|
|
end
|
|
|
|
MirageTower_4F_EventScript_LeaveRootFossil::
|
|
msgbox MirageTower_4F_Text_LeftRootFossilAlone, MSGBOX_DEFAULT
|
|
release
|
|
end
|
|
|
|
MirageTower_4F_EventScript_ClawFossil::
|
|
lock
|
|
faceplayer
|
|
msgbox MirageTower_4F_Text_TakeClawFossil, MSGBOX_YESNO
|
|
goto_if_eq VAR_RESULT, NO, MirageTower_4F_EventScript_LeaveClawFossil
|
|
giveitem ITEM_CLAW_FOSSIL
|
|
closemessage
|
|
setflag FLAG_HIDE_MIRAGE_TOWER_CLAW_FOSSIL
|
|
setflag FLAG_HIDE_MIRAGE_TOWER_ROOT_FOSSIL
|
|
removeobject LOCALID_CLAW_FOSSIL
|
|
delay 30
|
|
setflag FLAG_CHOSE_CLAW_FOSSIL
|
|
goto MirageTower_4F_EventScript_CollapseMirageTower
|
|
end
|
|
|
|
MirageTower_4F_EventScript_LeaveClawFossil::
|
|
msgbox MirageTower_4F_Text_LeaveClawFossilAlone, MSGBOX_DEFAULT
|
|
release
|
|
end
|
|
|
|
MirageTower_4F_EventScript_CollapseMirageTower::
|
|
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
|
|
waitstate
|
|
special DoMirageTowerCeilingCrumble
|
|
waitstate
|
|
setvar VAR_MIRAGE_TOWER_STATE, 1
|
|
clearflag FLAG_LANDMARK_MIRAGE_TOWER
|
|
warp MAP_ROUTE111, 19, 59
|
|
waitstate
|
|
release
|
|
end
|
|
|
|
MirageTower_4F_Text_TakeRootFossil:
|
|
.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?$"
|
|
|
|
MirageTower_4F_Text_LeftRootFossilAlone:
|
|
.string "{PLAYER} left the Root Fossil alone.$"
|
|
|
|
MirageTower_4F_Text_TakeClawFossil:
|
|
.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?$"
|
|
|
|
MirageTower_4F_Text_LeaveClawFossilAlone:
|
|
.string "{PLAYER} left the Claw Fossil alone.$"
|
|
|