mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-21 22:52:15 +13:00
Split up engine/events/hidden_object_functions
This commit is contained in:
parent
6bd86e10c3
commit
e882708b85
29 changed files with 1174 additions and 1173 deletions
65
engine/events/hidden_objects/school_notebooks.asm
Normal file
65
engine/events/hidden_objects/school_notebooks.asm
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
PrintNotebookText:
|
||||
call EnableAutoTextBoxDrawing
|
||||
ld a, $1
|
||||
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
|
||||
ld a, [wHiddenObjectFunctionArgument]
|
||||
jp PrintPredefTextID
|
||||
|
||||
TMNotebook::
|
||||
TX_FAR TMNotebookText
|
||||
TX_WAIT
|
||||
db "@"
|
||||
|
||||
ViridianSchoolNotebook::
|
||||
TX_ASM
|
||||
ld hl, ViridianSchoolNotebookText1
|
||||
call PrintText
|
||||
call TurnPageSchoolNotebook
|
||||
jr nz, .doneReading
|
||||
ld hl, ViridianSchoolNotebookText2
|
||||
call PrintText
|
||||
call TurnPageSchoolNotebook
|
||||
jr nz, .doneReading
|
||||
ld hl, ViridianSchoolNotebookText3
|
||||
call PrintText
|
||||
call TurnPageSchoolNotebook
|
||||
jr nz, .doneReading
|
||||
ld hl, ViridianSchoolNotebookText4
|
||||
call PrintText
|
||||
ld hl, ViridianSchoolNotebookText5
|
||||
call PrintText
|
||||
.doneReading
|
||||
jp TextScriptEnd
|
||||
|
||||
TurnPageSchoolNotebook:
|
||||
ld hl, TurnPageText
|
||||
call PrintText
|
||||
call YesNoChoice
|
||||
ld a, [wCurrentMenuItem]
|
||||
and a
|
||||
ret
|
||||
|
||||
TurnPageText:
|
||||
TX_FAR _TurnPageText
|
||||
db "@"
|
||||
|
||||
ViridianSchoolNotebookText5:
|
||||
TX_FAR _ViridianSchoolNotebookText5
|
||||
TX_WAIT
|
||||
db "@"
|
||||
|
||||
ViridianSchoolNotebookText1:
|
||||
TX_FAR _ViridianSchoolNotebookText1
|
||||
db "@"
|
||||
|
||||
ViridianSchoolNotebookText2:
|
||||
TX_FAR _ViridianSchoolNotebookText2
|
||||
db "@"
|
||||
|
||||
ViridianSchoolNotebookText3:
|
||||
TX_FAR _ViridianSchoolNotebookText3
|
||||
db "@"
|
||||
|
||||
ViridianSchoolNotebookText4:
|
||||
TX_FAR _ViridianSchoolNotebookText4
|
||||
db "@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue