summaryrefslogtreecommitdiff
path: root/data/scripts/hyruleTown/script_Farore.inc
blob: 5fc0a12b1cda2a9e09d7845f07ebb4d539f438f5 (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
@ Hyrule Town Farore
SCRIPT_START script_Farore
	BeginBlock
	Call Farore_MakeInteractable
	SetAnimationState 0x0004
	DoPostScriptAction 0x0001
	DoPostScriptAction 0x000a
	CheckGlobalFlag GOMAN_RENTED_HOUSE
	JumpIf script_08011E1A
	EndBlock
script_08011DF2:
	EndBlock
	BeginBlock
	CheckEntityInteractType
	JumpIfNot script_08011DF2
	EndBlock
	SetPlayerIdle
	FacePlayer
	DoPostScriptAction 0x0000
	MessageNoOverlap TEXT_HAPPY_HEARTH, 0x14
	WaitUntilTextboxCloses
	EnablePlayerControl
	SetAnimationState 0x0004
	DoPostScriptAction 0x0001
	Jump script_08011DF2
script_08011E1A:
	EndBlock
	BeginBlock
	CheckGlobalFlag RENTED_HOUSE_DIN
	JumpIf script_08011DF2
	CheckGlobalFlag RENTED_HOUSE_NAYRU
	JumpIf script_08011DF2
	CheckEntityInteractType
	JumpIfNot script_08011E1A
	EndBlock
	SetPlayerIdle
	FacePlayer
	DoPostScriptAction 0x0000
	MessageNoOverlap TEXT_GORMAN_ORACLES, 0x04
	WaitUntilTextboxCloses
	CheckTextboxResult
	JumpIf script_08011E66
	EnablePlayerControl
	SetAnimationState 0x0004
	DoPostScriptAction 0x0001
	Jump script_08011E1A
script_08011E58:
	CheckEntityInteractType
	JumpIfNot script_08011E58
	SetPlayerIdle
	FacePlayer
	DoPostScriptAction 0x0000
script_08011E66:
	MessageNoOverlap TEXT_GORMAN_ORACLES, 0x07
	WaitUntilTextboxCloses
	SetGlobalFlag RENTED_HOUSE_FARORE
	EnablePlayerControl
	SetAnimationState 0x0004
	DoPostScriptAction 0x0001
	Jump script_08011E58
	.2byte 0x0000