summaryrefslogtreecommitdiff
path: root/data/scripts/hyruleTown/script_StockwellDogFood.inc
blob: 8d72f4594a6d25b2435b74d4fcbef7379b7306ac (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
@ Stockwell pick up dog food
SCRIPT_START script_StockwellDogFood
	EndBlock
	SetPlayerIdle
	Call DisablePauseMenuAndPutAwayItems
	Call sub_080654FC
	SetAnimation 0x0001
	Call sub_080654EC
	Wait 0x003c
	MessageNoOverlap TEXT_STOCKWELL, 0x16
	WaitUntilTextboxCloses
	CheckTextboxResult
	JumpIf script_080143FA
	SetIntVariable 0x00000002
	Call sub_08065528
	Jump script_0801443E
script_080143FA:
	Call sub_080654EC
	Wait 0x001e
	MessageNoOverlap TEXT_STOCKWELL, 0x18
	WaitUntilTextboxCloses
	Wait 0x000a
	SetIntVariable 0x00000000
	Call sub_08065528
	GivePlayerItem ITEM_QST_DOGFOOD
	WaitPlayerGetItem 
	MessageNoOverlap TEXT_STOCKWELL, 0x19
	WaitUntilTextboxCloses
	SetIntVariable 0x00000303
	Call LoadMenu
.ifndef EU
	Wait 0x001e
	FaceAwayFromPlayer
	MessageNoOverlap TEXT_STOCKWELL, 0x22
	WaitUntilTextboxCloses
.endif
script_0801443E:
	SetAnimation 0x0004
	SetAction 0x0001
	Call EnablePauseMenu
	EnablePlayerControl
SCRIPT_END