summaryrefslogtreecommitdiff
path: root/data/scripts/maps/SlateportCity_ContestLobby.inc
blob: 2fd62e9afdddd3b3bb25d548d039de288ce15bc5 (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
131
132
133
134
135
SlateportCity_ContestLobby_MapScripts:: @ 8155411
	map_script 3, SlateportCity_ContestLobby_MapScript1_155417
	.byte 0

SlateportCity_ContestLobby_MapScript1_155417:: @ 8155417
	call SlateportCity_ContestLobby_EventScript_1AE188
	end

SlateportCity_ContestLobby_EventScript_15541D:: @ 815541D
	setvar VAR_SPECIAL_B, 7
	setvar CONTEST_RANK, 2
	call SlateportCity_ContestLobby_EventScript_1A4E92
	call SlateportCity_ContestLobby_EventScript_155448
	special SetContestTrainerGfxIds
	call SlateportCity_ContestLobby_EventScript_15FBDB
	setvar VAR_CONTEST_LOCATION, 3
	warp MAP_LINK_CONTEST_ROOM1, 255, 7, 5
	waitstate
	end

SlateportCity_ContestLobby_EventScript_155448:: @ 8155448
	lockall
	applymovement 1, SlateportCity_ContestLobby_Movement_1554CC
	waitmovement 0
	playse 71
	setmetatile 4, 2, 545, 1
	setmetatile 4, 3, 609, 1
	special DrawWholeMapView
	applymovement 1, SlateportCity_ContestLobby_Movement_1554CF
	waitmovement 0
	playse 71
	setmetatile 4, 2, 721, 1
	setmetatile 4, 3, 729, 1
	special DrawWholeMapView
	delay 20
	applymovement 1, SlateportCity_ContestLobby_Movement_1554DC
	waitmovement 0
	applymovement 255, SlateportCity_ContestLobby_Movement_1554CA
	waitmovement 0
	msgbox SlateportCity_ContestLobby_Text_1A6832, 4
	closemessage
	applymovement 1, SlateportCity_ContestLobby_Movement_1554D3
	applymovement 255, SlateportCity_ContestLobby_Movement_1554C0
	waitmovement 0
	releaseall
	return

SlateportCity_ContestLobby_Movement_1554C0:: @ 81554C0
	step_left
	step_left
	step_left
	step_left
	step_up
	step_up
	step_up
	step_13
	step_54
	step_end

SlateportCity_ContestLobby_Movement_1554CA:: @ 81554CA
	step_27
	step_end

SlateportCity_ContestLobby_Movement_1554CC:: @ 81554CC
	step_left
	step_25
	step_end

SlateportCity_ContestLobby_Movement_1554CF:: @ 81554CF
	step_down
	step_down
	step_26
	step_end

SlateportCity_ContestLobby_Movement_1554D3:: @ 81554D3
	step_left
	step_left
	step_left
	step_up
	step_up
	step_up
	step_13
	step_54
	step_end

SlateportCity_ContestLobby_Movement_1554DC:: @ 81554DC
	step_28
	step_end

SlateportCity_ContestLobby_EventScript_1554DE:: @ 81554DE
	msgbox SlateportCity_ContestLobby_Text_17C937, 2
	end

SlateportCity_ContestLobby_EventScript_1554E7:: @ 81554E7
	msgbox SlateportCity_ContestLobby_Text_17C9D5, 2
	end

SlateportCity_ContestLobby_EventScript_1554F0:: @ 81554F0
	msgbox SlateportCity_ContestLobby_Text_17CAEC, 2
	end

SlateportCity_ContestLobby_EventScript_1554F9:: @ 81554F9
	lockall
	checkflag FLAG_RECEIVED_POKEBLOCK_CASE
	goto_if_eq SlateportCity_ContestLobby_EventScript_155526
	applymovement 7, SlateportCity_ContestLobby_Movement_1A0839
	waitmovement 0
	msgbox SlateportCity_ContestLobby_Text_17CA67, 4
	giveitem_std ITEM_POKEBLOCK_CASE
	setflag FLAG_RECEIVED_POKEBLOCK_CASE
	releaseall
	end

SlateportCity_ContestLobby_EventScript_155526:: @ 8155526
	msgbox SlateportCity_ContestLobby_Text_17CA88, 2
	end

SlateportCity_ContestLobby_EventScript_15552F:: @ 815552F
	lockall
	fadescreen 1
	drawcontestwinner 3
	releaseall
	end

SlateportCity_ContestLobby_EventScript_155536:: @ 8155536
	msgbox SlateportCity_ContestLobby_Text_1B7225, 2
	end

@ 815553F
	lockall
	special ShowBerryBlenderRecordWindow
	waitbuttonpress
	erasebox 0, 0, 29, 19
	releaseall
	end