diff options
author | U-Fish-PC\Daniel <corrnondacqb@yahoo.com> | 2014-05-22 18:13:20 -0400 |
---|---|---|
committer | U-Fish-PC\Daniel <corrnondacqb@yahoo.com> | 2014-05-22 18:13:20 -0400 |
commit | 15427f532085846ab6b51719be687951a094cb6c (patch) | |
tree | edea9b189e91641a12dd521756894df84aeeace7 /engine/hidden_object_functions14.asm | |
parent | ea3ba4cde3706b7c77efb705555ec0c86321cbe2 (diff) |
Pull a lot of engine out of main.asm
Diffstat (limited to 'engine/hidden_object_functions14.asm')
-rwxr-xr-x | engine/hidden_object_functions14.asm | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/engine/hidden_object_functions14.asm b/engine/hidden_object_functions14.asm new file mode 100755 index 00000000..b71ffd05 --- /dev/null +++ b/engine/hidden_object_functions14.asm @@ -0,0 +1,104 @@ +PrintNotebookText: ; 52996 (14:6996) + call EnableAutoTextBoxDrawing + ld a, $1 + ld [$cc3c], a + ld a, [wTrainerSpriteOffset] + jp PrintPredefTextID + +TMNotebook: ; 529a4 (14:69a4) + TX_FAR TMNotebookText + db $0d + db "@" + +ViridianSchoolNotebook: ; 529aa (14:69aa) + db $08 ; 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: ; 529db (14:69db) + ld hl, TurnPageText + call PrintText + call YesNoChoice + ld a, [wCurrentMenuItem] + and a + ret + +TurnPageText: ; 529e9 (14:69e9) + TX_FAR _TurnPageText + db "@" + +ViridianSchoolNotebookText5: ; 529ee (14:69ee) + TX_FAR _ViridianSchoolNotebookText5 + db $0d + db "@" + +ViridianSchoolNotebookText1: ; 529f4 (14:69f4) + TX_FAR _ViridianSchoolNotebookText1 + db "@" + +ViridianSchoolNotebookText2: ; 529f9 (14:69f9) + TX_FAR _ViridianSchoolNotebookText2 + db "@" + +ViridianSchoolNotebookText3: ; 529fe (14:69fe) + TX_FAR _ViridianSchoolNotebookText3 + db "@" + +ViridianSchoolNotebookText4: ; 52a03 (14:6a03) + TX_FAR _ViridianSchoolNotebookText4 + db "@" + +PrintFightingDojoText2: ; 52a08 (14:6a08) + call EnableAutoTextBoxDrawing + ld a, $37 + jp PrintPredefTextID + +FightingDojoText_52a10: ; 52a10 (14:6a10) + TX_FAR _FightingDojoText_52a10 + db "@" + +PrintFightingDojoText3: ; 52a15 (14:6a15) + call EnableAutoTextBoxDrawing + ld a, $38 + jp PrintPredefTextID + +FightingDojoText_52a1d: ; 52a1d (14:6a1d) + TX_FAR _FightingDojoText_52a1d + db "@" + +PrintFightingDojoText: ; 52a22 (14:6a22) + call EnableAutoTextBoxDrawing + ld a, $36 + jp PrintPredefTextID + +FightingDojoText: ; 52a2a (14:6a2a) + TX_FAR _FightingDojoText + db "@" + +PrintIndigoPlateauHQText: ; 52a2f (14:6a2f) + ld a, [$c109] + cp $4 + ret nz + call EnableAutoTextBoxDrawing + ld a, $27 + jp PrintPredefTextID + +IndigoPlateauHQText: ; 52a3d (14:6a3d) + TX_FAR _IndigoPlateauHQText + db "@" |