summaryrefslogtreecommitdiff
path: root/data/scripts/cutscene/introBusinessScrub/script_080157AC.inc
blob: c1affdb959808709363fe78a05064e8cfcfb5b38 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
@ Intro Outside Castle CUTSCENE_ORCHESTRATOR 1?
SCRIPT_START script_080157AC
	CheckPlayerInRegion 0x01f8, 0x0310, 0x2020
	JumpIfNot script_080157AC
	SetPlayerIdle
	Call WaitForPlayerNormal
	Call DisablePauseMenuAndPutAwayItems
	SetSyncFlag 0x00000001
	WaitForSyncFlagAndClear 0x00000002
	Call EnablePauseMenu
	EnablePlayerControl
script_080157DA:
	CheckPlayerInRegion 0x0250, 0x0230, 0x3040
	JumpIfNot script_080157DA
	SetPlayerIdle
	Call WaitForPlayerNormal
	Call DisablePauseMenuAndPutAwayItems
	Call CreatePlayerExclamationMark
	Wait 0x003c
	SetSyncFlag 0x00000001
	WaitForSyncFlagAndClear 0x00000002
	StartPlayerScript script_PlayerIntroBusinessScrub1
	SetScrollSpeed 1
	SetEntityPositionRelative 0x0248, 0x0218
	CameraTargetEntity
	Call WaitForCameraTouchRoomBorder
	WaitForSyncFlagAndClear 0x00000010
	SetSyncFlag 0x00000008
	WaitForSyncFlagAndClear 0x00000020
	SetSyncFlag 0x00000001
	WaitForSyncFlagAndClear 0x00000002
	StartPlayerScript script_PlayerIntroBusinessScrub2
	WaitForSyncFlagAndClear 0x00000010
	SetSyncFlag 0x00000001
	WaitForSyncFlagAndClear 0x00000002
	MessageFromTargetPos TEXT_PROLOGUE, 0x66, 0x0002
	WaitUntilTextboxCloses
	SetSyncFlag 0x00000001
	WaitForSyncFlagAndClear 0x00000002
	Call EnablePauseMenu
	EnablePlayerControl
	Call sub_08066F94
	SetSyncFlag 0x00000008
script_08015880:
	CheckRoomFlag 0x0000
	JumpIfNot script_08015880
script_08015888:
	WaitUntilTextboxCloses
	ComparePlayerAction PLAYER_SLEEP
	JumpIf script_08015888
	SetPlayerIdle
	Call DisablePauseMenuAndPutAwayItems
	SetScrollSpeed 2
	SetEntityPositionRelative 0x0248, 0x0208
	CameraTargetEntity
	StartPlayerScript script_PlayerIntroBusinessScrub3
	WaitForSyncFlagAndClear 0x00000010
	MessageFromTargetPos TEXT_PROLOGUE, 0x6a, 0x000c
	WaitUntilTextboxCloses
	SetSyncFlag 0x00000008
	Wait 0x0078
	_0807E8E4_2
	MessageFromTargetPos TEXT_PROLOGUE, 0x68, 0x0002
	WaitUntilTextboxCloses
	SetSyncFlag 0x00000001
	WaitForSyncFlagAndClear 0x00000002
	SetLocalFlag SOUGEN_06_AKINDO
	Call sub_08066FB8
	Call EnablePauseMenu
	EnablePlayerControl
	SetScrollSpeed 4
	CameraTargetPlayer
	DoPostScriptAction 0x0006
SCRIPT_END