summaryrefslogtreecommitdiff
path: root/data/scripts/hyruleTown/script_Marcy.inc
blob: 4ee17abff3c456322748cfa91401f118c9a76b67 (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
@ Hyrule Town Marcy selling the newsletter
SCRIPT_START script_Marcy
	BeginBlock
	DoPostScriptAction 0x0007
	_0807E9D4
	DoPostScriptAction 0x000a
	SetAnimation 0x0000
	EndBlock
script_08010746:
	CheckEntityInteractType
	JumpIfNot script_08010746
	SetPlayerIdle
	SetAnimation 0x0004
	BeginBlock
	Call sub_08062D18
	JumpIfNot script_08010786
	EndBlock
	WaitUntilTextboxCloses
	CheckTextboxResult
	JumpIfNot script_08010786
	HasRupees 200
	JumpIf script_08010778
	MessageNoOverlap TEXT_POST, 0x08
	Jump script_08010786
script_08010778:
	ModRupees -200
	Call sub_08062E14
	MessageNoOverlap TEXT_POST, 0x07
script_08010786:
	EndBlock
	WaitUntilTextboxCloses
	EnablePlayerControl
	SetAnimation 0x0008
	Jump script_08010746