-
Notifications
You must be signed in to change notification settings - Fork 817
/
BlackthornGym2F.asm
148 lines (118 loc) · 3.9 KB
/
BlackthornGym2F.asm
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
136
137
138
139
140
141
142
143
144
145
146
147
148
object_const_def
const BLACKTHORNGYM2F_COOLTRAINER_M
const BLACKTHORNGYM2F_COOLTRAINER_F
const BLACKTHORNGYM2F_BOULDER1
const BLACKTHORNGYM2F_BOULDER2
const BLACKTHORNGYM2F_BOULDER3
const BLACKTHORNGYM2F_BOULDER4
const BLACKTHORNGYM2F_BOULDER5
const BLACKTHORNGYM2F_BOULDER6
BlackthornGym2F_MapScripts:
def_scene_scripts
def_callbacks
callback MAPCALLBACK_CMDQUEUE, BlackthornGym2FSetUpStoneTableCallback
BlackthornGym2FSetUpStoneTableCallback:
writecmdqueue .CommandQueue
endcallback
.CommandQueue:
cmdqueue CMDQUEUE_STONETABLE, .StoneTable ; check if any stones are sitting on a warp
.StoneTable:
stonetable 5, BLACKTHORNGYM2F_BOULDER1, .Boulder1
stonetable 3, BLACKTHORNGYM2F_BOULDER2, .Boulder2
stonetable 4, BLACKTHORNGYM2F_BOULDER3, .Boulder3
db -1 ; end
.Boulder1:
disappear BLACKTHORNGYM2F_BOULDER1
sjump .Fall
.Boulder2:
disappear BLACKTHORNGYM2F_BOULDER2
sjump .Fall
.Boulder3:
disappear BLACKTHORNGYM2F_BOULDER3
sjump .Fall
.Fall:
pause 30
scall .FX
opentext
writetext BlackthornGym2FBoulderFellText
waitbutton
closetext
end
.FX:
playsound SFX_STRENGTH
earthquake 80
end
BlackthornGymBoulder:
jumpstd StrengthBoulderScript
TrainerCooltrainermCody:
trainer COOLTRAINERM, CODY, EVENT_BEAT_COOLTRAINERM_CODY, CooltrainermCodySeenText, CooltrainermCodyBeatenText, 0, .Script
.Script:
endifjustbattled
opentext
writetext CooltrainermCodyAfterBattleText
waitbutton
closetext
end
TrainerCooltrainerfFran:
trainer COOLTRAINERF, FRAN, EVENT_BEAT_COOLTRAINERF_FRAN, CooltrainerfFranSeenText, CooltrainerfFranBeatenText, 0, .Script
.Script:
endifjustbattled
opentext
writetext CooltrainerfFranAfterBattleText
waitbutton
closetext
end
CooltrainermCodySeenText:
text "It's not as if we"
line "all use dragon-"
cont "type #MON."
done
CooltrainermCodyBeatenText:
text "Rats! If only I"
line "had a dragon!"
done
CooltrainermCodyAfterBattleText:
text "Members of our"
line "dragon-user clan"
para "can use dragon"
line "#MON only after"
para "our MASTER allows"
line "it."
done
CooltrainerfFranSeenText:
text "I can't allow a"
line "nameless trainer"
cont "past me!"
para "CLAIR would be"
line "livid if I did!"
done
CooltrainerfFranBeatenText:
text "Awww… I lost…"
done
CooltrainerfFranAfterBattleText:
text "Uh-oh… CLAIR is"
line "going to be mad…"
done
BlackthornGym2FBoulderFellText:
text "The boulder fell"
line "through!"
done
BlackthornGym2F_MapEvents:
db 0, 0 ; filler
def_warp_events
warp_event 1, 7, BLACKTHORN_GYM_1F, 3
warp_event 7, 9, BLACKTHORN_GYM_1F, 4
warp_event 2, 5, BLACKTHORN_GYM_1F, 5 ; hole
warp_event 8, 7, BLACKTHORN_GYM_1F, 6 ; hole
warp_event 8, 3, BLACKTHORN_GYM_1F, 7 ; hole
def_coord_events
def_bg_events
def_object_events
object_event 4, 1, SPRITE_COOLTRAINER_M, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 1, TrainerCooltrainermCody, -1
object_event 4, 11, SPRITE_COOLTRAINER_F, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 1, TrainerCooltrainerfFran, -1
object_event 8, 2, SPRITE_BOULDER, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, BlackthornGymBoulder, EVENT_BOULDER_IN_BLACKTHORN_GYM_1
object_event 2, 3, SPRITE_BOULDER, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, BlackthornGymBoulder, EVENT_BOULDER_IN_BLACKTHORN_GYM_2
object_event 6, 16, SPRITE_BOULDER, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, BlackthornGymBoulder, EVENT_BOULDER_IN_BLACKTHORN_GYM_3
object_event 3, 3, SPRITE_BOULDER, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, BlackthornGymBoulder, -1
object_event 6, 1, SPRITE_BOULDER, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, BlackthornGymBoulder, -1
object_event 8, 14, SPRITE_BOULDER, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, BlackthornGymBoulder, -1