summaryrefslogtreecommitdiff
path: root/data/scripts/maps/MauvilleCity_House2.inc
blob: a058003bc0b850785242ed87efe4d2c56155e61a (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 FLAG_RECEIVED_COIN_CASE
	goto_if_eq MauvilleCity_House2_EventScript_15733D
	msgbox MauvilleCity_House2_Text_18244E, 4
	checkitem ITEM_HARBOR_MAIL, 1
	compare RESULT, 1
	goto_if_eq MauvilleCity_House2_EventScript_1572E5
	release
	end

MauvilleCity_House2_EventScript_1572E5:: @ 81572E5
	playse 21
	applymovement LAST_TALKED, MauvilleCity_House2_Movement_1A0833
	waitmovement 0
	applymovement LAST_TALKED, MauvilleCity_House2_Movement_1A0835
	waitmovement 0
	msgbox MauvilleCity_House2_Text_1824D8, 5
	compare RESULT, 1
	goto_if_eq MauvilleCity_House2_EventScript_15731B
	compare RESULT, 0
	goto_if_eq MauvilleCity_House2_EventScript_157347
	end

MauvilleCity_House2_EventScript_15731B:: @ 815731B
	msgbox MauvilleCity_House2_Text_182515, 4
	takeitem ITEM_HARBOR_MAIL, 1
	giveitem_std ITEM_COIN_CASE
	setflag FLAG_RECEIVED_COIN_CASE
	goto 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