summaryrefslogtreecommitdiff
path: root/data/scripts/hyruleTown/script_DinMovedIn.inc
blob: e4b269a15aef17f2c0d6f589cac350ac3d522c68 (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
@ Hyrule Town Din moved in
SCRIPT_START script_DinMovedIn
	BeginBlock
	Call Din_MakeInteractable
	SetAnimationState 0x0004
	DoPostScriptAction 0x0001
	DoPostScriptAction 0x000a
	EndBlock
script_0801203A:
	CheckEntityInteractType
	JumpIfNot script_0801203A
	SetPlayerIdle
	FacePlayer
	DoPostScriptAction 0x0000
	CheckLocalFlag MHOUSE_DIN_TALK
	JumpIf script_0801205E
	MessageNoOverlap TEXT_GORMAN_ORACLES, 0x22
	WaitUntilTextboxCloses
	SetLocalFlag MHOUSE_DIN_TALK
	Jump script_0801209E
script_0801205E:
	CheckBottleContaining BOTTLE_CHARM_DIN
	JumpIfNot script_08012070
	MessageNoOverlap TEXT_GORMAN_ORACLES, 0x23
	WaitUntilTextboxCloses
	Jump script_0801209E
script_08012070:
	MessageNoOverlap TEXT_GORMAN_ORACLES, 0x24
	WaitUntilTextboxCloses
	CheckTextboxResult
	JumpIfNot script_0801209E
	CheckBottleContaining ITEM_BOTTLE_EMPTY
	JumpIfNot script_0801209A
	MessageNoOverlap TEXT_GORMAN_ORACLES, 0x25
	WaitUntilTextboxCloses
	GivePlayerItem BOTTLE_CHARM_DIN
	WaitPlayerGetItem
.ifdef USA
	Call sub_0807FC24
.else
.ifdef DEMO_USA
	Call sub_0807FC24
.else
.ifdef DEMO_JP
	Call sub_0807FC24
.endif
.endif
.endif
	Jump script_0801209E
script_0801209A:
	MessageNoOverlap TEXT_GORMAN_ORACLES, 0x27
script_0801209E:
	WaitUntilTextboxCloses
	EnablePlayerControl
	SetAnimationState 0x0004
	DoPostScriptAction 0x0001
	Jump script_0801203A
	.align 2, 0