summaryrefslogtreecommitdiff
path: root/data/maps/MtEmber_Summit/scripts.inc
blob: 3de162df20df0b8fec9d3c559429e9dd85a1b57c (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
54
55
56
57
58
59
60
61
62
63
64
65
66
MtEmber_Summit_MapScripts:: @ 8163AFC
	map_script 3, MtEmber_Summit_MapScript1_163B25
	map_script 5, MtEmber_Summit_MapScript2_163B07
	.byte 0

MtEmber_Summit_MapScript2_163B07:: @ 8163B07
	checkflag FLAG_0x807
	call_if 1, EventScript_163B11
	end

EventScript_163B11:: @ 8163B11
	specialvar VAR_RESULT, sub_80CA74C
	compare_var_to_value VAR_RESULT, 7
	goto_if 5, EventScript_1A77A9
	removeobject VAR_LAST_TALKED
	return

MtEmber_Summit_MapScript1_163B25:: @ 8163B25
	checkflag FLAG_0x2BD
	call_if 0, EventScript_163B2F
	end

EventScript_163B2F:: @ 8163B2F
	clearflag FLAG_0x052
	return

MtEmber_Summit_EventScript_163B33:: @ 8163B33
	special sub_8110AB4
	compare_var_to_value VAR_RESULT, 2
	goto_if_eq EventScript_1A7AE0
	special sub_8112364
	lock
	faceplayer
	setwildbattle SPECIES_MOLTRES, 50, ITEM_NONE
	waitse
	playmoncry SPECIES_MOLTRES, 2
	message Text_1A6448
	waitmessage
	waitmoncry
	delay 10
	playbgm BGM_FRLG_LEADER_EYE, 0
	waitbuttonpress
	setflag FLAG_0x807
	special sub_807F9D8
	waitstate
	clearflag FLAG_0x807
	specialvar VAR_RESULT, sub_80CA74C
	compare_var_to_value VAR_RESULT, 1
	goto_if_eq EventScript_163B96
	compare_var_to_value VAR_RESULT, 4
	goto_if_eq EventScript_163B9F
	compare_var_to_value VAR_RESULT, 5
	goto_if_eq EventScript_163B9F
	setflag FLAG_0x2BD
	release
	end

EventScript_163B96:: @ 8163B96
	setflag FLAG_0x2BD
	goto EventScript_1A922D
	end

EventScript_163B9F:: @ 8163B9F
	setvar VAR_0x8004, SPECIES_MOLTRES
	goto EventScript_1A9236
	end