summaryrefslogtreecommitdiff
path: root/data/scripts/graveyard/script_CutsceneOrchestratorGetKeyBack.inc
blob: 4e3600bda6077888dbfc198c7da04ec729a02901 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@ Graveyard CUTSCENE_ORCHESTRATOR When getting the key back
SCRIPT_START script_CutsceneOrchestratorGetKeyBack
	BeginBlock
	EndBlock
script_080098D8:
	CheckGlobalFlag HAKA_KEY_LOST
	JumpIfNot script_080098D8
script_080098E0:
	CheckInventory1 ITEM_QST_GRAVEYARD_KEY
	JumpIfNot script_080098E0
	CheckLocalFlag HAKA_KEY_GET
	JumpIf script_08009910
	SetLocalFlag HAKA_KEY_GET
	SetPlayerIdle
	Call WaitForPlayerNormal
	Call DisablePauseMenuAndPutAwayItems
	EzloMessage TEXT_DAMPE, 0x0a
	WaitUntilTextboxCloses
	Call EnablePauseMenu
	EnablePlayerControl
script_08009910:
	DoPostScriptAction 0x0006
SCRIPT_END
	.2byte 0x0000