pokered/scripts/CeladonMansion3F.asm
vulcandth d001ced41b
Add macros, constants, and labels for map scripts and text (#367)
This introduces `def_script_pointers`, `def_text_pointers`, and `object_const_def` macros, and applies them to all maps. Most other map labels have also been identified.
2023-07-13 21:27:56 -04:00

70 lines
1.9 KiB
NASM

CeladonMansion3F_Script:
jp EnableAutoTextBoxDrawing
CeladonMansion3F_TextPointers:
def_text_pointers
dw_const CeladonMansion3FProgrammerText, TEXT_CELADONMANSION3F_PROGRAMMER
dw_const CeladonMansion3FGraphicArtistText, TEXT_CELADONMANSION3F_GRAPHIC_ARTIST
dw_const CeladonMansion3FWriterText, TEXT_CELADONMANSION3F_WRITER
dw_const CeladonMansion3FGameDesignerText, TEXT_CELADONMANSION3F_GAME_DESIGNER
dw_const CeladonMansion3FGameProgramPCText, TEXT_CELADONMANSION3F_GAME_PROGRAM_PC
dw_const CeladonMansion3FPlayingGamePCText, TEXT_CELADONMANSION3F_PLAYING_GAME_PC
dw_const CeladonMansion3FGameScriptPCText, TEXT_CELADONMANSION3F_GAME_SCRIPT_PC
dw_const CeladonMansion3FDevRoomSignText, TEXT_CELADONMANSION3F_DEV_ROOM_SIGN
CeladonMansion3FProgrammerText:
text_far _CeladonMansion3FProgrammerText
text_end
CeladonMansion3FGraphicArtistText:
text_far _CeladonMansion3FGraphicArtistText
text_end
CeladonMansion3FWriterText:
text_far _CeladonMansion3FWriterText
text_end
CeladonMansion3FGameDesignerText:
text_asm
ld hl, wPokedexOwned
ld b, wPokedexOwnedEnd - wPokedexOwned
call CountSetBits
ld a, [wNumSetBits]
cp NUM_POKEMON - 1 ; discount Mew
jr nc, .completed_dex
ld hl, .Text
jr .done
.completed_dex
ld hl, .CompletedDexText
.done
call PrintText
jp TextScriptEnd
.Text:
text_far _CeladonMansion3FGameDesignerText
text_end
.CompletedDexText:
text_far _CeladonMansion3FGameDesignerCompletedDexText
text_promptbutton
text_asm
callfar DisplayDiploma
ld a, TRUE
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
jp TextScriptEnd
CeladonMansion3FGameProgramPCText:
text_far _CeladonMansion3FGameProgramPCText
text_end
CeladonMansion3FPlayingGamePCText:
text_far _CeladonMansion3FPlayingGamePCText
text_end
CeladonMansion3FGameScriptPCText:
text_far _CeladonMansion3FGameScriptPCText
text_end
CeladonMansion3FDevRoomSignText:
text_far _CeladonMansion3FDevRoomSignText
text_end