summaryrefslogtreecommitdiff
path: root/data/scripts/dhc/script_Object69BallAndChainSoldierRoom.inc
blob: 4bdf7ea5b66bddba9a583eb1e707c6356c4b6097 (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
@ DHC OBJECT_69 Towards Vaati in room with Ball&Chain soldier
SCRIPT_START script_Object69BallAndChainSoldierRoom
	BeginBlock
	Call SetPriorityPlayerEvent
	EndBlock
	CheckLocalFlag 0x007c
	JumpIf script_0800E4FA
script_0800E4B6:
.ifdef JP
	CheckPlayerInRegion 0x0088, 0x0100, 0x0820
.else
.ifdef EU
	CheckPlayerInRegion 0x0088, 0x0100, 0x0820
.else
	CheckPlayerInRegion 0x0088, 0x00f8, 0x0820
.endif
.endif
	JumpIfNot script_0800E4B6
	BeginBlock
	SetPlayerIdle
.ifdef JP
.ifndef DEMO_JP
	Call SetPlayerEventPriority
.endif
.else
.ifdef EU
	Call SetPlayerEventPriority
.endif
.endif
	EndBlock
	Call CreatePlayerExclamationMark
	Wait 0x003c
	MessageFromTarget 0x160c
	WaitUntilTextboxCloses
	Wait 0x001e
	MessageFromTarget 0x160d
	WaitUntilTextboxCloses
	Wait 0x001e
	EzloMessage 0x160e
	Wait 0x003c
	WaitUntilTextboxCloses
	BeginBlock
	PlayBgm BGM_FIGHT_THEME2
	SetLocalFlag 0x007c
.ifdef JP
.ifndef DEMO_JP
	Call ResetPlayerEventPriority
.endif
.else
.ifdef EU
	Call ResetPlayerEventPriority
.endif
.endif
script_0800E4FA:
	EnablePlayerControl
	DoPostScriptAction 0x0006
	EndBlock
SCRIPT_END