forked from mid-kid/pokecrystal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRoute1.asm
94 lines (71 loc) · 1.99 KB
/
Route1.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
object_const_def ; object_event constants
const ROUTE1_YOUNGSTER
const ROUTE1_COOLTRAINER_F
const ROUTE1_FRUIT_TREE
Route1_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
TrainerSchoolboyDanny:
trainer SCHOOLBOY, DANNY, EVENT_BEAT_SCHOOLBOY_DANNY, SchoolboyDannySeenText, SchoolboyDannyBeatenText, 0, .Script
.Script:
endifjustbattled
opentext
writetext SchoolboyDannyAfterBattleText
waitbutton
closetext
end
TrainerCooltrainerfQuinn:
trainer COOLTRAINERF, QUINN, EVENT_BEAT_COOLTRAINERF_QUINN, CooltrainerfQuinnSeenText, CooltrainerfQuinnBeatenText, 0, .Script
.Script:
endifjustbattled
opentext
writetext CooltrainerfQuinnAfterBattleText
waitbutton
closetext
end
Route1Sign:
jumptext Route1SignText
Route1FruitTree:
fruittree FRUITTREE_ROUTE_1
SchoolboyDannySeenText:
text "If trainers meet,"
line "the first thing to"
cont "do is battle."
done
SchoolboyDannyBeatenText:
text "Awww… I've got a"
line "losing record…"
done
SchoolboyDannyAfterBattleText:
text "For trainers, it's"
line "a given that we'll"
para "battle whenever we"
line "meet."
done
CooltrainerfQuinnSeenText:
text "You there!"
line "Want to battle?"
done
CooltrainerfQuinnBeatenText:
text "Down and out…"
done
CooltrainerfQuinnAfterBattleText:
text "You're strong."
para "You obviously must"
line "have trained hard."
done
Route1SignText:
text "ROUTE 1"
para "PALLET TOWN -"
line "VIRIDIAN CITY"
done
Route1_MapEvents:
db 0, 0 ; filler
db 0 ; warp events
db 0 ; coord events
db 1 ; bg events
bg_event 7, 27, BGEVENT_READ, Route1Sign
db 3 ; object events
object_event 4, 12, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 4, TrainerSchoolboyDanny, -1
object_event 9, 25, SPRITE_COOLTRAINER_F, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 2, TrainerCooltrainerfQuinn, -1
object_event 3, 7, SPRITE_FRUIT_TREE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route1FruitTree, -1