summaryrefslogtreecommitdiff
path: root/data/maps/NavelRock_Summit/scripts.inc
blob: d359d4d257dc917a61b54758410a1e53e6f93cf0 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
NavelRock_Summit_MapScripts:: @ 8164F9F
	map_script 3, NavelRock_Summit_MapScript1_164FAA
	map_script 5, NavelRock_Summit_MapScript2_164FDD
	.byte 0

NavelRock_Summit_MapScript1_164FAA:: @ 8164FAA
	checkflag FLAG_0x2F3
	call_if 1, EventScript_164FBD
	checkflag FLAG_0x2F3
	call_if 0, EventScript_164FC6
	end

EventScript_164FBD:: @ 8164FBD
	setvar VAR_0x4001, 1
	setflag FLAG_0x09C
	return

EventScript_164FC6:: @ 8164FC6
	setvar VAR_0x4001, 1
	checkflag FLAG_0x2F6
	goto_if_eq EventScript_1A77A9
	setvar VAR_0x4001, 0
	clearflag FLAG_0x09C
	return

NavelRock_Summit_MapScript2_164FDD:: @ 8164FDD
	checkflag FLAG_0x807
	call_if 1, EventScript_164FE7
	end

EventScript_164FE7:: @ 8164FE7
	specialvar VAR_RESULT, sub_80CA74C
	compare_var_to_value VAR_RESULT, 7
	goto_if 5, EventScript_1A77A9
	removeobject 1
	return

NavelRock_Summit_EventScript_164FFB:: @ 8164FFB
	special sub_8110AB4
	compare_var_to_value VAR_RESULT, 2
	goto_if_eq EventScript_1A7AE0
	special sub_8112364
	lockall
	setvar VAR_0x4001, 1
	special SpawnScriptFieldObject
	setvar VAR_0x8004, 3
	setvar VAR_0x8005, 35
	special sub_80CD1B4
	applymovement 1, Movement_1650E0
	applymovement 127, Movement_1650CD
	waitmovement 0
	delay 50
	setweather 0
	doweather
	waitse
	playmoncry SPECIES_HO_OH, 2
	delay 30
	waitmoncry
	delay 60
	setvar VAR_0x8004, 3
	setvar VAR_0x8005, 35
	special sub_80CD1B4
	applymovement 127, Movement_1650D1
	applymovement 1, Movement_1650D7
	waitmovement 0
	special RemoveScriptFieldObject
	setvar VAR_0x8004, SPECIES_HO_OH
	setvar VAR_0x8005, 70
	setvar VAR_0x8006, 0
	special CreateObedientEnemyMon
	setflag FLAG_0x807
	special sub_807F9D8
	waitstate
	clearflag FLAG_0x807
	setvar VAR_LAST_TALKED, 1
	specialvar VAR_RESULT, sub_80CA74C
	compare_var_to_value VAR_RESULT, 1
	goto_if_eq EventScript_1650B4
	compare_var_to_value VAR_RESULT, 4
	goto_if_eq EventScript_1650C2
	compare_var_to_value VAR_RESULT, 5
	goto_if_eq EventScript_1650C2
	setflag FLAG_0x2F3
	releaseall
	end

EventScript_1650B4:: @ 81650B4
	setflag FLAG_0x2F6
	setvar VAR_0x8004, SPECIES_HO_OH
	goto EventScript_1A9236
	end

EventScript_1650C2:: @ 81650C2
	setvar VAR_0x8004, SPECIES_HO_OH
	goto EventScript_1A9236
	end

Movement_1650CD:: @ 81650CD
	step_11
	step_11
	step_11
	step_end

Movement_1650D1:: @ 81650D1
	step_1c
	step_1c
	step_10
	step_10
	step_10
	step_end

Movement_1650D7:: @ 81650D7
	step_10
	step_10
	step_10
	step_10
	step_10
	step_25
	step_1c
	step_1c
	step_end

Movement_1650E0:: @ 81650E0
	step_1c
	step_1c
	step_25
	step_25
	step_25
	step_25
	step_end