summaryrefslogtreecommitdiff
path: root/data/scripts/cutscene/introCeremony/script_Npc4EMonsters.inc
blob: e378d0f2acf1af3b655e52b6950cebe5aedb5988 (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
48
49
50
51
52
53
54
55
56
@ Intro Ceremony NPC4E monsters
SCRIPT_START script_Npc4EMonsters
	Wait 0x001e
	PlaySound SFX_125
	CallWithArg sub_0807FB28, 0x00000003
	Wait 0x003c
	PlaySound SFX_125
	CallWithArg sub_0807FB28, 0x00000003
	Wait 0x0004
	PlaySound SFX_125
	CallWithArg sub_0807FB28, 0x00000003
	Wait 0x001e
	PlaySound SFX_12C
	SetSyncFlag 0x00800000
	WaitForSyncFlagAndClear 0x01000000
	SetFadeTime 0x0004
	SetFade7
	WaitForFadeFinish
	Wait 0x003c
	PlaySound SFX_SPIRITS_RELEASE
	PlaySound SFX_1C2
	LoadRoomEntityList gUnk_080F0770
	SetSyncFlag 0x00000010
	WaitForSyncFlagAndClear 0x00000020
	SetFadeTime 0x0002
	SetFade6
	WaitForFadeFinish
	CallWithArg DeleteRepeatedSoundManager, 0x00000002
	_0807F0C8 0x0000, 0x0000
	Call NPC4E_SaveEquippedItems
	Call SetPlayerActionNormal
	CallWithArg EquipItem, ITEM_SHIELD
	CallWithArg SetPlayerMacro, gPlayerMacroProtectWithShield
	SetScrollSpeed 1
	SetEntityPositionRelative 0x01f8, 0x0068
	SetSyncFlag 0x00000004
	Wait 0x001e
	SetSyncFlag 0x00000040
	WaitForSyncFlagAndClear 0x00000008
	WaitForSyncFlagAndClear 0x00000080
	PlaySound SFX_1C3
	SetSyncFlag 0x20000000
	Wait 0x0078
	CallWithArg SetPlayerMacro, 0
	Call NPC4E_RestoreEquippedItems
	SetSyncFlag 0x40000000
	SetSyncFlag 0x00000010
	SetSyncFlag 0x00000100
	WaitForSyncFlagAndClear 0x00000020
	WaitForSyncFlagAndClear 0x00000200
	MessageFromTargetPos TEXT_PROLOGUE, 0x45, 0x000c
	WaitUntilTextboxCloses
	MessageFromTargetPos TEXT_PROLOGUE, 0x46, 0x0000
	WaitUntilTextboxCloses
	CallWithArg CreateRepeatedSoundManager, 0x00000002
	_0807F0C8 0xffff, 0x0000