summaryrefslogtreecommitdiff
path: root/data/maps/Route114_LanettesHouse/scripts.inc
blob: e2dd975cbcb967285b655a2d1cb3061a1c46a8f9 (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
Route114_LanettesHouse_MapScripts:: @ 815C258
	map_script MAP_SCRIPT_ON_TRANSITION, Route114_LanettesHouse_MapScript1_15C25E
	.byte 0

Route114_LanettesHouse_MapScript1_15C25E:: @ 815C25E
	setflag FLAG_LANDMARK_LANETTES_HOUSE
	end

Route114_LanettesHouse_EventScript_15C262:: @ 815C262
	lock
	faceplayer
	goto_if_set FLAG_RECEIVED_DOLL_LANETTE, Route114_LanettesHouse_EventScript_15C28F
	setflag FLAG_SYS_PC_LANETTE
	msgbox Route114_LanettesHouse_Text_192A0D, MSGBOX_DEFAULT
	.ifdef SAPPHIRE
	givedecoration DECOR_LOTAD_DOLL
	.else
	givedecoration DECOR_SEEDOT_DOLL
	.endif
	compare VAR_RESULT, 0
	goto_if_eq Common_EventScript_ShowNoRoomForDecor
	setflag FLAG_RECEIVED_DOLL_LANETTE
	release
	end

Route114_LanettesHouse_EventScript_15C28F:: @ 815C28F
	msgbox Route114_LanettesHouse_Text_192ACC, MSGBOX_DEFAULT
	release
	end

Route114_LanettesHouse_EventScript_15C299:: @ 815C299
	lockall
	msgbox Route114_LanettesHouse_Text_192B4A, MSGBOX_YESNO
	compare VAR_RESULT, YES
	goto_if_eq Route114_LanettesHouse_EventScript_15C2B7
	msgbox Route114_LanettesHouse_Text_192DA9, MSGBOX_DEFAULT
	releaseall
	end

Route114_LanettesHouse_EventScript_15C2B7:: @ 815C2B7
	msgbox Route114_LanettesHouse_Text_192C01, MSGBOX_YESNO
	compare VAR_RESULT, YES
	call_if_eq Route114_LanettesHouse_EventScript_15C2CC
	releaseall
	end

Route114_LanettesHouse_EventScript_15C2CC:: @ 815C2CC
	msgbox Route114_LanettesHouse_Text_192CB4, MSGBOX_DEFAULT
	return

Route114_LanettesHouse_EventScript_15C2D5:: @ 815C2D5
	msgbox Route114_LanettesHouse_Text_192DC1, MSGBOX_SIGN
	end