summaryrefslogtreecommitdiff
path: root/maps/IcePathB1F.asm
blob: 8f09e39b5cf9efa0cc675d4d51cf50a7a40ec982 (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
IcePathB1F_MapScriptHeader: ; 0x7e4b9
	; trigger count
	db 0

	; callback count
	db 1

	; callbacks

	dbw 3, UnknownScript_0x7e4be
; 0x7e4be

UnknownScript_0x7e4be: ; 0x7e4be
	writecmdqueue CmdQueue_0x7e4c2
	return
; 0x7e4c2

CmdQueue_0x7e4c2: ; 0x7e4c2
	dbw 2, StoneTable_0x7e4c7 ; check if any stones are sitting on a warp
	db 0, 0 ; filler
; 0x7e4c7

StoneTable_0x7e4c7: ; 0x7e4c7
	db 3, 2 ; warp, person
	dw UnknownScript_0x7e4d8

	db 4, 3 ; warp, person
	dw UnknownScript_0x7e4e0

	db 5, 4 ; warp, person
	dw UnknownScript_0x7e4e8

	db 6, 5 ; warp, person
	dw UnknownScript_0x7e4f0

	db $ff ; end
; 0x7e4d8

UnknownScript_0x7e4d8: ; 0x7e4d8
	disappear 2
	clearevent EVENT_BOULDER_IN_ICE_PATH_1
	2jump UnknownScript_0x7e4f8
; 0x7e4e0

UnknownScript_0x7e4e0: ; 0x7e4e0
	disappear 3
	clearevent EVENT_BOULDER_IN_ICE_PATH_2
	2jump UnknownScript_0x7e4f8
; 0x7e4e8

UnknownScript_0x7e4e8: ; 0x7e4e8
	disappear 4
	clearevent EVENT_BOULDER_IN_ICE_PATH_3
	2jump UnknownScript_0x7e4f8
; 0x7e4f0

UnknownScript_0x7e4f0: ; 0x7e4f0
	disappear 5
	clearevent EVENT_BOULDER_IN_ICE_PATH_4
	2jump UnknownScript_0x7e4f8
; 0x7e4f8

UnknownScript_0x7e4f8: ; 0x7e4f8
	pause 30
	2call UnknownScript_0x7e504
	loadfont
	2writetext UnknownText_0x7e512
	closetext
	loadmovesprites
	end
; 0x7e504

UnknownScript_0x7e504: ; 0x7e504
	playsound $001b
	earthquake 80
	end
; 0x7e50a


BoulderScript_0x7e50a: ; 0x7e50a
	jumpstd $000e
; 0x7e50d

ItemFragment_0x7e50d: ; 0x7e50d
	db IRON, 1
; 0x7e50f

MapIcePathB1FSignpostItem0: ; 0x7e50f
	dw $0094
	db MAX_POTION
; 0x7e512


UnknownText_0x7e512: ; 0x7e512
	text "The boulder fell"
	line "through."
	done
; 0x7e52d


IcePathB1F_MapEventHeader: ; 0x7e52d
	; filler
	db 0, 0

	; warps
	db 8
	warp_def $f, $3, 3, GROUP_ICE_PATH_1F, MAP_ICE_PATH_1F
	warp_def $3, $11, 1, GROUP_ICE_PATH_B2F_MAHOGANY_SIDE, MAP_ICE_PATH_B2F_MAHOGANY_SIDE
	warp_def $2, $b, 3, GROUP_ICE_PATH_B2F_MAHOGANY_SIDE, MAP_ICE_PATH_B2F_MAHOGANY_SIDE
	warp_def $7, $4, 4, GROUP_ICE_PATH_B2F_MAHOGANY_SIDE, MAP_ICE_PATH_B2F_MAHOGANY_SIDE
	warp_def $c, $5, 5, GROUP_ICE_PATH_B2F_MAHOGANY_SIDE, MAP_ICE_PATH_B2F_MAHOGANY_SIDE
	warp_def $d, $c, 6, GROUP_ICE_PATH_B2F_MAHOGANY_SIDE, MAP_ICE_PATH_B2F_MAHOGANY_SIDE
	warp_def $19, $5, 4, GROUP_ICE_PATH_1F, MAP_ICE_PATH_1F
	warp_def $1b, $b, 1, GROUP_ICE_PATH_B2F_BLACKTHORN_SIDE, MAP_ICE_PATH_B2F_BLACKTHORN_SIDE

	; xy triggers
	db 0

	; signposts
	db 1
	signpost 30, 17, $7, MapIcePathB1FSignpostItem0

	; people-events
	db 5
	person_event SPRITE_BOULDER, 11, 15, $19, $0, 255, 255, $0, 0, BoulderScript_0x7e50a, $0709
	person_event SPRITE_BOULDER, 12, 11, $19, $0, 255, 255, $0, 0, BoulderScript_0x7e50a, $070a
	person_event SPRITE_BOULDER, 13, 12, $19, $0, 255, 255, $0, 0, BoulderScript_0x7e50a, $070b
	person_event SPRITE_BOULDER, 11, 21, $19, $0, 255, 255, $0, 0, BoulderScript_0x7e50a, $070c
	person_event SPRITE_POKE_BALL, 39, 9, $1, $0, 255, 255, $1, 0, ItemFragment_0x7e50d, $068a
; 0x7e5a1