pokeemerald/data/maps/Route114_FossilManiacsTunnel/scripts.inc

94 lines
3.4 KiB
PHP
Raw Normal View History

.set LOCALID_FOSSIL_MANIAC, 1
2021-07-20 21:18:31 +02:00
Route114_FossilManiacsTunnel_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, Route114_FossilManiacsTunnel_OnTransition
map_script MAP_SCRIPT_ON_LOAD, Route114_FossilManiacsTunnel_OnLoad
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
Route114_FossilManiacsTunnel_OnTransition:
call_if_set FLAG_SYS_GAME_CLEAR, Route114_FossilManiacsTunnel_EventScript_MoveFossilManiac
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_FossilManiacsTunnel_EventScript_MoveFossilManiac::
setobjectxyperm LOCALID_FOSSIL_MANIAC, 6, 5
setobjectmovementtype LOCALID_FOSSIL_MANIAC, MOVEMENT_TYPE_FACE_DOWN
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route114_FossilManiacsTunnel_OnLoad:
call_if_unset FLAG_SYS_GAME_CLEAR, Route114_FossilManiacsTunnel_EventScript_CloseDesertUnderpass
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route114_FossilManiacsTunnel_EventScript_CloseDesertUnderpass::
2021-11-16 23:12:16 +01:00
setmetatile 6, 1, METATILE_Fallarbor_RedRockWall, TRUE
setmetatile 6, 2, METATILE_Fallarbor_RedRockWall, TRUE
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route114_FossilManiacsTunnel_EventScript_ManiacMentionCaveIn::
2017-11-10 02:21:31 +01:00
lockall
applymovement LOCALID_FOSSIL_MANIAC, Common_Movement_WalkInPlaceFasterUp
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterDown
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox Route114_FossilManiacsTunnel_Text_NotSafeThatWay, MSGBOX_DEFAULT
setvar VAR_FOSSIL_MANIAC_STATE, 2
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
Route114_FossilManiacsTunnel_EventScript_FossilManiac::
2017-11-10 02:21:31 +01:00
lock
faceplayer
goto_if_set FLAG_RECEIVED_REVIVED_FOSSIL_MON, Route114_FossilManiacsTunnel_EventScript_PlayerRevivedFossil
2021-08-05 18:46:11 +02:00
checkitem ITEM_ROOT_FOSSIL
goto_if_eq VAR_RESULT, TRUE, Route114_FossilManiacsTunnel_EventScript_PlayerHasFossil
2021-08-05 18:46:11 +02:00
checkitem ITEM_CLAW_FOSSIL
goto_if_eq VAR_RESULT, TRUE, Route114_FossilManiacsTunnel_EventScript_PlayerHasFossil
msgbox Route114_FossilManiacsTunnel_Text_LookInDesertForFossils, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route114_FossilManiacsTunnel_EventScript_PlayerHasFossil::
msgbox Route114_FossilManiacsTunnel_Text_DevonCorpRevivingFossils, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route114_FossilManiacsTunnel_EventScript_PlayerRevivedFossil::
msgbox Route114_FossilManiacsTunnel_Text_FossilsAreWonderful, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route114_FossilManiacsTunnel_Text_LookInDesertForFossils:
2018-12-07 16:41:08 +01:00
.string "I'm the FOSSIL MANIAC…\n"
.string "I'm a nice guy who loves FOSSILS…\p"
2017-11-10 02:21:31 +01:00
.string "Do you want a FOSSIL?\p"
.string "But the FOSSILS around these parts all\n"
.string "belong to me… None for you…\p"
2018-12-07 16:41:08 +01:00
.string "If you can't bear to go without\n"
2017-11-10 02:21:31 +01:00
.string "a FOSSIL, look in a desert where there\l"
.string "are boulders and sand that may hide\l"
.string "FOSSILS…$"
2021-07-20 21:18:31 +02:00
Route114_FossilManiacsTunnel_Text_DevonCorpRevivingFossils:
2018-12-07 16:41:08 +01:00
.string "You found a FOSSIL, didn't you?\n"
.string "That's so nice… It's so dreamy…\p"
2017-11-10 02:21:31 +01:00
.string "What are you going to do with that\n"
.string "FOSSIL?\p"
2018-12-07 16:41:08 +01:00
.string "From what I've heard, DEVON is doing\n"
2017-11-10 02:21:31 +01:00
.string "research on reviving POKéMON from\l"
.string "FOSSILS…\p"
.string "I love my FOSSILS, so I would never\n"
.string "do anything like that…$"
2021-07-20 21:18:31 +02:00
Route114_FossilManiacsTunnel_Text_FossilsAreWonderful:
2017-11-10 02:21:31 +01:00
.string "FOSSILS are so… Wonderful…\n"
2018-12-07 16:41:08 +01:00
.string "It's so dreamy…$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route114_FossilManiacsTunnel_Text_NotSafeThatWay:
2017-11-10 02:21:31 +01:00
.string "Oh…\n"
2018-12-07 16:41:08 +01:00
.string "It's not safe that way…\p"
2017-11-10 02:21:31 +01:00
.string "I was digging away, you see…\n"
.string "When the whole wall collapsed…\p"
2018-12-07 16:41:08 +01:00
.string "I think there's a giant cavern\n"
2017-11-10 02:21:31 +01:00
.string "underneath now…\p"
2018-12-07 16:41:08 +01:00
.string "But I've left it alone because I don't\n"
2017-11-10 02:21:31 +01:00
.string "think there are any FOSSILS there…$"