forked from Vortyne/pureRGB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPewterMart.asm
58 lines (48 loc) · 1.03 KB
/
PewterMart.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
PewterMart_Script:
jp DisableAutoTextBoxDrawing
PewterMart_TextPointers:
def_text_pointers
dw_const PewterMartClerkText, TEXT_PEWTERMART_CLERK
dw_const PewterMartYoungsterText, TEXT_PEWTERMART_YOUNGSTER
dw_const PewterMartSuperNerdText, TEXT_PEWTERMART_SUPER_NERD
dw_const PewterMartTMKid, TEXT_PEWTERMART_TM_KID
PewterMartYoungsterText:
text_asm
ld hl, .Text
rst _PrintText
rst TextScriptEnd
.Text:
text_far _PewterMartYoungsterText
text_end
PewterMartTMKid: ; PureRGBnote: ADDED: new NPC who will talk about selling TMs
text_asm
CheckEvent EVENT_BEAT_MISTY
jr nz, .afterMisty
ld hl, .Text
rst _PrintText
jr .done
.afterMisty
ld hl, .Text3
rst _PrintText
ld hl, .Text2
rst _PrintText
.done
rst TextScriptEnd
.Text
text_far _PewterMartTMKid
text_end
.Text2
text_far _TMKidStockingUp
text_end
.Text3
text_far _TMKidGreet
text_end
PewterMartSuperNerdText:
text_asm
ld hl, .Text
rst _PrintText
rst TextScriptEnd
.Text:
text_far _PewterMartSuperNerdText
text_end
INCLUDE "data/items/marts/pewter.asm"