This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
celadonmart3.asm
108 lines (91 loc) · 1.72 KB
/
celadonmart3.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
CeladonMart3Script:
jp EnableAutoTextBoxDrawing
CeladonMart3TextPointers:
dw CeladonMart3Text1
dw CeladonMart3Text2
dw CeladonMart3Text3
dw CeladonMart3Text4
dw CeladonMart3Text5
dw CeladonMart3Text6
dw CeladonMart3Text7
dw CeladonMart3Text8
dw CeladonMart3Text9
dw CeladonMart3Text10
dw CeladonMart3Text11
dw CeladonMart3Text12
dw CeladonMart3Text13
dw CeladonMart3Text14
dw CeladonMart3Text15
dw CeladonMart3Text16
dw CeladonMart3Text17
CeladonMart3Text1:
TX_ASM
CheckEvent EVENT_GOT_TM18
jr nz, .asm_a5463
ld hl, TM18PreReceiveText
call PrintText
lb bc, TM_18, 1
call GiveItem
jr nc, .BagFull
SetEvent EVENT_GOT_TM18
ld hl, ReceivedTM18Text
jr .asm_81359
.BagFull
ld hl, TM18NoRoomText
jr .asm_81359
.asm_a5463
ld hl, TM18ExplanationText
.asm_81359
call PrintText
jp TextScriptEnd
TM18PreReceiveText:
TX_FAR _TM18PreReceiveText
db "@"
ReceivedTM18Text:
TX_FAR _ReceivedTM18Text
TX_SFX_ITEM_1
db "@"
TM18ExplanationText:
TX_FAR _TM18ExplanationText
db "@"
TM18NoRoomText:
TX_FAR _TM18NoRoomText
db "@"
CeladonMart3Text2:
TX_FAR _CeladonMart3Text2
db "@"
CeladonMart3Text3:
TX_FAR _CeladonMart3Text3
db "@"
CeladonMart3Text4:
TX_FAR _CeladonMart3Text4
db "@"
CeladonMart3Text5:
TX_FAR _CeladonMart3Text5
db "@"
CeladonMart3Text12
CeladonMart3Text10:
CeladonMart3Text8:
CeladonMart3Text6:
TX_FAR _CeladonMart3Text6
db "@"
CeladonMart3Text7:
TX_FAR _CeladonMart3Text7
db "@"
CeladonMart3Text9:
TX_FAR _CeladonMart3Text9
db "@"
CeladonMart3Text11:
TX_FAR _CeladonMart3Text11
db "@"
CeladonMart3Text13:
TX_FAR _CeladonMart3Text13
db "@"
CeladonMart3Text14:
TX_FAR _CeladonMart3Text14
db "@"
CeladonMart3Text17:
CeladonMart3Text16:
CeladonMart3Text15:
TX_FAR _CeladonMart3Text15
db "@"