Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pret
GitHub Repository: pret/pokered
Path: blob/master/engine/events/hidden_objects/school_notebooks.asm
1271 views
1
PrintNotebookText:
2
call EnableAutoTextBoxDrawing
3
ld a, $1
4
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
5
ld a, [wHiddenObjectFunctionArgument]
6
jp PrintPredefTextID
7
8
TMNotebook::
9
text_far TMNotebookText
10
text_waitbutton
11
text_end
12
13
ViridianSchoolNotebook::
14
text_asm
15
ld hl, ViridianSchoolNotebookText1
16
call PrintText
17
call TurnPageSchoolNotebook
18
jr nz, .doneReading
19
ld hl, ViridianSchoolNotebookText2
20
call PrintText
21
call TurnPageSchoolNotebook
22
jr nz, .doneReading
23
ld hl, ViridianSchoolNotebookText3
24
call PrintText
25
call TurnPageSchoolNotebook
26
jr nz, .doneReading
27
ld hl, ViridianSchoolNotebookText4
28
call PrintText
29
ld hl, ViridianSchoolNotebookText5
30
call PrintText
31
.doneReading
32
jp TextScriptEnd
33
34
TurnPageSchoolNotebook:
35
ld hl, TurnPageText
36
call PrintText
37
call YesNoChoice
38
ld a, [wCurrentMenuItem]
39
and a
40
ret
41
42
TurnPageText:
43
text_far _TurnPageText
44
text_end
45
46
ViridianSchoolNotebookText5:
47
text_far _ViridianSchoolNotebookText5
48
text_waitbutton
49
text_end
50
51
ViridianSchoolNotebookText1:
52
text_far _ViridianSchoolNotebookText1
53
text_end
54
55
ViridianSchoolNotebookText2:
56
text_far _ViridianSchoolNotebookText2
57
text_end
58
59
ViridianSchoolNotebookText3:
60
text_far _ViridianSchoolNotebookText3
61
text_end
62
63
ViridianSchoolNotebookText4:
64
text_far _ViridianSchoolNotebookText4
65
text_end
66
67