summaryrefslogtreecommitdiff
path: root/data/scripts/dhc/script_Npc4EAfterDefeatingV2.inc
blob: cadcafdc4f4ca789eda1b5ff25199606fb3a9120 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@ DHC NPC4E At Zelda after defeating V2
SCRIPT_START script_Npc4EAfterDefeatingV2
	BeginBlock
	EndBlock
script_0800DB7C:
	CallWithArg sub_0807F6B4, 0x000000a0
	JumpIf script_0800DB7C
	SetPlayerIdle
	Call WaitForPlayerNormal
	Call DisablePauseMenuAndPutAwayItems
	_0807F0B4 0x0001
	SetEntityPositionRelative 0x0078, 0x0078
	CameraTargetEntity
	Call WaitForCameraTouchRoomBorder
	EzloMessage TEXT_VAATI2, 0x48
	WaitUntilTextboxCloses
	Call sub_0804D7EC
	SetSyncFlag 0x00000001
	WaitForSyncFlagAndClear 0x00000002
	Call EnablePauseMenu
	EnablePlayerControl
script_0800DBCA:
	CheckRoomFlag 0x0000
	JumpIfNot script_0800DBCA
	SetPlayerIdle
	Call WaitForPlayerNormal
	Call DisablePauseMenuAndPutAwayItems
	Call sub_0804D810
	Call CreatePlayerExclamationMark
	Wait 0x003c
	StartPlayerScript script_PlayerRescuedZelda
	WaitForSyncFlagAndClear 0x00000004
	SetSyncFlag 0x00000001
	WaitForSyncFlagAndClear 0x00000002
	SetSyncFlag 0x00000001
	StartPlayerScript script_PlayerAfterDefeatingV2
	WaitForSyncFlagAndClear 0x00000006
	MessageFromTargetPos TEXT_VAATI2, 0x43, 0x0002
	WaitUntilTextboxCloses
	EzloMessage TEXT_VAATI2, 0x45
	WaitUntilTextboxCloses
	Call CreatePlayerExclamationMark
	SetSyncFlag 0x00000001
	StopBgm
	Call sub_08094F98
	CallWithArg CreateRepeatedSoundManager, 0x00000001
	_0807F0C8 0xffff, 0x0000