summaryrefslogtreecommitdiff
path: root/data/scripts/maps/MauvilleCity_House2.inc
blob: 8a73af034fc4cc8885888839273107f15eb09ff3 (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
MauvilleCity_House2_MapScripts:: @ 81572BF
	.byte 0

MauvilleCity_House2_EventScript_1572C0:: @ 81572C0
	lock
	faceplayer
	checkflag 258
	jumpeq MauvilleCity_House2_EventScript_15733D
	msgbox MauvilleCity_House2_Text_18244E, 4
	checkitem ITEM_HARBOR_MAIL, 1
	compare RESULT, 1
	jumpeq MauvilleCity_House2_EventScript_1572E5
	release
	end

MauvilleCity_House2_EventScript_1572E5:: @ 81572E5
	playsfx 21
	move LAST_TALKED, MauvilleCity_House2_Movement_1A0833
	waitmove 0
	move LAST_TALKED, MauvilleCity_House2_Movement_1A0835
	waitmove 0
	msgbox MauvilleCity_House2_Text_1824D8, 5
	compare RESULT, 1
	jumpeq MauvilleCity_House2_EventScript_15731B
	compare RESULT, 0
	jumpeq MauvilleCity_House2_EventScript_157347
	end

MauvilleCity_House2_EventScript_15731B:: @ 815731B
	msgbox MauvilleCity_House2_Text_182515, 4
	removeitem ITEM_HARBOR_MAIL, 1
	giveitem ITEM_COIN_CASE
	setflag 258
	jump MauvilleCity_House2_EventScript_15733D
	end

MauvilleCity_House2_EventScript_15733D:: @ 815733D
	msgbox MauvilleCity_House2_Text_182549, 4
	release
	end

MauvilleCity_House2_EventScript_157347:: @ 8157347
	msgbox MauvilleCity_House2_Text_182578, 4
	release
	end