summaryrefslogtreecommitdiff
path: root/data/scripts/sanctuary/script_NPC4EPreventPlayerLeave.inc
blob: a39258b4019428fe1fbe0d31cdf75e038f71969e (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
25
26
27
28
29
30
31
32
33
@ Sanctuary NPC4E Link has to try his new ability before leaving
SCRIPT_START script_NPC4EPreventPlayerLeave
	BeginBlock
	DoPostScriptAction 0x0008
	EndBlock
script_08013FF0:
	EndBlock
	BeginBlock
	CheckLocalFlag 0x007d
	JumpIf script_0801404C
	CheckLocalFlag 0x007a
	JumpIfNot script_08013FF0
	CheckInventory1 ITEM_RED_SWORD
	JumpIfNot script_08013FF0
	CallWithArg sub_0807F6B4, 0x000000d0
	JumpIfNot script_08013FF0
	EndBlock
	Call WaitForPlayerNormal
	BeginBlock
	SetPlayerIdle
	Call DisablePauseMenuAndPutAwayItems
	EndBlock
	EzloMessage TEXT_PANEL_TUTORIAL, 0x08
	WaitUntilTextboxCloses
	StartPlayerScript script_PlayerSanctuary
	WaitForSyncFlagAndClear 0x00000001
	Call EnablePauseMenu
	EnablePlayerControl
	Jump script_08013FF0
script_0801404C:
	DoPostScriptAction 0x0006
SCRIPT_END
	.2byte 0x0000