summaryrefslogtreecommitdiff
path: root/data/maps/OneIsland/scripts.inc
blob: 16830e056a6486708a8c5f7e0ec4328ee8273b41 (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
OneIsland_MapScripts:: @ 8167484
	map_script 3, OneIsland_MapScript1_16748F
	map_script 2, OneIsland_MapScript2_167493
	.byte 0

OneIsland_MapScript1_16748F:: @ 816748F
	setworldmapflag FLAG_WORLD_MAP_ONE_ISLAND
	end

OneIsland_MapScript2_167493:: @ 8167493
	map_script_2 VAR_MAP_SCENE_ONE_ISLAND_HARBOR, 2, EventScript_16749D
	.2byte 0

EventScript_16749D:: @ 816749D
	lockall
	textcolor 0
	applymovement 255, Movement_167505
	waitmovement 0
	msgbox gUnknown_818161B
	closemessage
	applymovement 1, Movement_167507
	applymovement 255, Movement_1674F4
	waitmovement 0
	opendoor 14, 5
	waitdooranim
	applymovement 1, Movement_167514
	applymovement 255, Movement_167501
	waitmovement 0
	closedoor 14, 5
	waitdooranim
	removeobject 1
	setvar VAR_MAP_SCENE_ONE_ISLAND_HARBOR, 3
	warp MAP_ONE_ISLAND_POKEMON_CENTER_1F, 255, 9, 9
	waitstate
	releaseall
	end

Movement_1674F4:: @ 81674F4
	step_11
	step_11
	step_11
	step_11
	step_11
	step_13
	step_13
	step_11
	step_11
	step_11
	step_11
	step_11
	step_end

Movement_167501:: @ 8167501
	step_11
	step_11
	step_60
	step_end

Movement_167505:: @ 8167505
	step_11
	step_end

Movement_167507:: @ 8167507
	step_11
	step_11
	step_11
	step_11
	step_13
	step_13
	step_11
	step_11
	step_11
	step_11
	step_11
	step_11
	step_end

Movement_167514:: @ 8167514
	step_11
	step_60
	step_end

OneIsland_EventScript_167517:: @ 8167517
	lock
	faceplayer
	checkflag FLAG_SYS_CAN_LINK_WITH_RS
	goto_if TRUE, EventScript_16753F
	checkflag FLAG_SEVII_DETOUR_FINISHED
	goto_if TRUE, EventScript_167535
	msgbox gUnknown_818174E
	release
	end

EventScript_167535:: @ 8167535
	msgbox gUnknown_8181858
	release
	end

EventScript_16753F:: @ 816753F
	msgbox gUnknown_8181901
	release
	end

OneIsland_EventScript_167549:: @ 8167549
	msgbox gUnknown_8181A4A, 2
	end

OneIsland_EventScript_167552:: @ 8167552
	msgbox gUnknown_81819E1, 3
	end

OneIsland_EventScript_16755B:: @ 816755B
	msgbox gUnknown_8181A0A, 3
	end