summaryrefslogtreecommitdiff
path: root/data/scripts/maps/VictoryRoad_1F.inc
blob: f64ca20abdb22b2526e5f7a8518108f3590b7066 (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
VictoryRoad_1F_MapScripts:: @ 815DE83
	map_script 3, VictoryRoad_1F_MapScript1_15DE89
	.byte 0

VictoryRoad_1F_MapScript1_15DE89:: @ 815DE89
	checkflag 126
	callif 1, VictoryRoad_1F_EventScript_15DE93
	end

VictoryRoad_1F_EventScript_15DE93:: @ 815DE93
	setflag 858
	return

VictoryRoad_1F_EventScript_15DE97:: @ 815DE97
	lockall
	reappear 4
	move 4, VictoryRoad_1F_Movement_15DF07
	waitmove 0
	jump VictoryRoad_1F_EventScript_15DED3
	end

VictoryRoad_1F_EventScript_15DEAB:: @ 815DEAB
	lockall
	reappear 4
	move 4, VictoryRoad_1F_Movement_15DF13
	waitmove 0
	jump VictoryRoad_1F_EventScript_15DED3
	end

VictoryRoad_1F_EventScript_15DEBF:: @ 815DEBF
	lockall
	reappear 4
	move 4, VictoryRoad_1F_Movement_15DF1E
	waitmove 0
	jump VictoryRoad_1F_EventScript_15DED3
	end

VictoryRoad_1F_EventScript_15DED3:: @ 815DED3
	move 255, VictoryRoad_1F_Movement_1A083F
	waitmove 0
	msgbox VictoryRoad_1F_Text_19782B, 4
	trainerbattle 3, OPPONENT_WALLY_1, 0, VictoryRoad_1F_Text_197943
	msgbox VictoryRoad_1F_Text_197967, 4
	clearflag 858
	moveoffscreen 4
	setflag 126
	setvar 0x40c3, 1
	releaseall
	end

VictoryRoad_1F_Movement_15DF07:: @ 815DF07
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_right
	step_right
	step_end

VictoryRoad_1F_Movement_15DF13:: @ 815DF13
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_right
	step_right
	step_end

VictoryRoad_1F_Movement_15DF1E:: @ 815DF1E
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_up
	step_right
	step_right
	step_end

VictoryRoad_1F_EventScript_15DF28:: @ 815DF28
	msgbox VictoryRoad_1F_Text_197967, 2
	end

VictoryRoad_1F_EventScript_15DF31:: @ 815DF31
	trainerbattle 0, OPPONENT_WALLY_3, 0, VictoryRoad_1F_Text_1979BA, VictoryRoad_1F_Text_197A23
	specialval RESULT, sub_8082C68
	compare RESULT, 1
	jumpeq VictoryRoad_1F_EventScript_15DF58
	msgbox VictoryRoad_1F_Text_197A47, 6
	end

VictoryRoad_1F_EventScript_15DF58:: @ 815DF58
	trainerbattle 5, OPPONENT_WALLY_3, 0, VictoryRoad_1F_Text_1979BA, VictoryRoad_1F_Text_197A23
	msgbox VictoryRoad_1F_Text_197A47, 6
	end

VictoryRoad_1F_EventScript_15DF6F:: @ 815DF6F
	trainerbattle 0, OPPONENT_EDGAR, 0, VictoryRoad_1F_Text_197AD1, VictoryRoad_1F_Text_197B1A
	msgbox VictoryRoad_1F_Text_197B36, 6
	end

VictoryRoad_1F_EventScript_15DF86:: @ 815DF86
	trainerbattle 0, OPPONENT_ALBERT, 0, VictoryRoad_1F_Text_197B99, VictoryRoad_1F_Text_197BE1
	msgbox VictoryRoad_1F_Text_197BF7, 6
	end

VictoryRoad_1F_EventScript_15DF9D:: @ 815DF9D
	trainerbattle 0, OPPONENT_HOPE, 0, VictoryRoad_1F_Text_197C45, VictoryRoad_1F_Text_197C8D
	msgbox VictoryRoad_1F_Text_197CAF, 6
	end