tumbledemerald-legacy/data/maps/DesertUnderpass/scripts.inc
2022-05-19 17:14:13 +00:00

39 lines
854 B
PHP

.set LOCALID_FOSSIL, 1
DesertUnderpass_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, DesertUnderpass_OnTransition
.byte 0
DesertUnderpass_OnTransition:
setflag FLAG_LANDMARK_DESERT_UNDERPASS
end
DesertUnderpass_EventScript_Fossil::
lock
faceplayer
goto_if_set FLAG_CHOSE_ROOT_FOSSIL, DesertUnderpass_EventScript_GiveClawFossil
goto_if_set FLAG_CHOSE_CLAW_FOSSIL, DesertUnderpass_EventScript_GiveRootFossil
release
end
DesertUnderpass_EventScript_GiveClawFossil::
giveitem ITEM_CLAW_FOSSIL
removeobject LOCALID_FOSSIL
release
end
DesertUnderpass_EventScript_GiveRootFossil::
giveitem ITEM_ROOT_FOSSIL
removeobject LOCALID_FOSSIL
release
end
@ Unused
DesertUnderpass_Text_FoundRootFossil::
.string "{PLAYER} found the ROOT FOSSIL.$"
@ Unused
DesertUnderpass_Text_FoundClawFossil::
.string "{PLAYER} found the CLAW FOSSIL.$"