summaryrefslogtreecommitdiff
path: root/data/scripts/sanctuary/script_Npc4EPreventPlayerLeaving.inc
blob: d83db6741546068fbd94d4e9074e758279be3fee (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
@ Sanctuary NPC4E Prevent link from leaving after fusing final sword
SCRIPT_START script_Npc4EPreventPlayerLeaving
	BeginBlock
	DoPostScriptAction 0x0008
script_08013B1E:
	EndBlock
	BeginBlock
	CallWithArg sub_0807F6B4, 0x000001c8
	JumpIfNot script_08013B1E
	CheckInventory1 ITEM_FOURSWORD
	JumpIfNot script_08013B1E
	CheckLocalFlag 0x0078
	JumpIf script_08013B1E
	EndBlock
	SetPlayerIdle
	Call WaitForPlayerNormal
	Call DisablePauseMenuAndPutAwayItems
	EzloMessage TEXT_PANEL_TUTORIAL, 0x07
	WaitUntilTextboxCloses
	StartPlayerScript script_PlayerSanctuary
	WaitForSyncFlagAndClear 0x00000001
	Call EnablePauseMenu
	EnablePlayerControl
	Jump script_08013B1E
	.2byte 0x0000