Fix the Nurse std comments.

This commit is contained in:
yenatch 2015-06-26 23:17:10 -07:00
parent 0f57aefdf2
commit d6f7dc3206
2 changed files with 46 additions and 67 deletions

View File

@ -204,6 +204,7 @@ EVENT_WALL_OPENED_IN_HO_OH_CHAMBER EQU $326
EVENT_WALL_OPENED_IN_KABUTO_CHAMBER EQU $327 EVENT_WALL_OPENED_IN_KABUTO_CHAMBER EQU $327
EVENT_WALL_OPENED_IN_OMANYTE_CHAMBER EQU $328 EVENT_WALL_OPENED_IN_OMANYTE_CHAMBER EQU $328
EVENT_WALL_OPENED_IN_AERODACTYL_CHAMBER EQU $329 EVENT_WALL_OPENED_IN_AERODACTYL_CHAMBER EQU $329
EVENT_WELCOMED_TO_POKECOM_CENTER EQU $32a
EVENT_WADE_HAS_BERRY EQU $32b EVENT_WADE_HAS_BERRY EQU $32b
EVENT_WADE_HAS_PSNCUREBERRY EQU $32c EVENT_WADE_HAS_PSNCUREBERRY EQU $32c
EVENT_WADE_HAS_PRZCUREBERRY EQU $32d EVENT_WADE_HAS_PRZCUREBERRY EQU $32d

View File

@ -1,4 +1,4 @@
StdScripts:: ; bc000 StdScripts::
dbw BANK(PokeCenterNurseScript), PokeCenterNurseScript dbw BANK(PokeCenterNurseScript), PokeCenterNurseScript
dbw BANK(DifficultBookshelfScript), DifficultBookshelfScript dbw BANK(DifficultBookshelfScript), DifficultBookshelfScript
dbw BANK(PictureBookshelfScript), PictureBookshelfScript dbw BANK(PictureBookshelfScript), PictureBookshelfScript
@ -51,138 +51,116 @@ StdScripts:: ; bc000
dbw BANK(PCScript), PCScript dbw BANK(PCScript), PCScript
dbw BANK(UnknownScript_0xbcdcd), UnknownScript_0xbcdcd dbw BANK(UnknownScript_0xbcdcd), UnknownScript_0xbcdcd
dbw BANK(HappinessCheckScript), HappinessCheckScript dbw BANK(HappinessCheckScript), HappinessCheckScript
; bc09c
PokeCenterNurseScript: ; bc09c PokeCenterNurseScript:
; Talking to a nurse in a Pokemon Center ; EVENT_WELCOMED_TO_POKECOM_CENTER is never set
loadfont loadfont
; The nurse has different text for:
; Morn
checkmorn checkmorn
iftrue .morn iftrue .morn
; Day
checkday checkday
iftrue .day iftrue .day
; Nite
checknite checknite
iftrue .nite iftrue .nite
; If somehow it's not a time of day at all, we skip the introduction jump .ok
jump .heal
.morn .morn
; Different text if we're in the com center checkevent EVENT_WELCOMED_TO_POKECOM_CENTER
checkevent $032a
iftrue .morn_comcenter iftrue .morn_comcenter
; Good morning! Welcome to ...
farwritetext UnknownText_0x1b0000 farwritetext UnknownText_0x1b0000
keeptextopen keeptextopen
jump .heal jump .ok
.morn_comcenter .morn_comcenter
; Good morning! This is the ...
farwritetext UnknownText_0x1b008a farwritetext UnknownText_0x1b008a
keeptextopen keeptextopen
jump .heal jump .ok
.day .day
; Different text if we're in the com center checkevent EVENT_WELCOMED_TO_POKECOM_CENTER
checkevent $032a
iftrue .day_comcenter iftrue .day_comcenter
; Hello! Welcome to ...
farwritetext UnknownText_0x1b002b farwritetext UnknownText_0x1b002b
keeptextopen keeptextopen
jump .heal jump .ok
.day_comcenter .day_comcenter
; Hello! This is the ...
farwritetext UnknownText_0x1b00d6 farwritetext UnknownText_0x1b00d6
keeptextopen keeptextopen
jump .heal jump .ok
.nite .nite
; Different text if we're in the com center checkevent EVENT_WELCOMED_TO_POKECOM_CENTER
checkevent $032a
iftrue .nite_comcenter iftrue .nite_comcenter
; Good evening! You're out late. ...
farwritetext UnknownText_0x1b004f farwritetext UnknownText_0x1b004f
keeptextopen keeptextopen
jump .heal jump .ok
.nite_comcenter .nite_comcenter
; Good to see you working so late. ...
farwritetext UnknownText_0x1b011b farwritetext UnknownText_0x1b011b
keeptextopen keeptextopen
jump .heal jump .ok
.ok
; only do this once
clearevent EVENT_WELCOMED_TO_POKECOM_CENTER
.heal
; If we come back, don't welcome us to the com center again
clearevent $032a
; Ask if you want to heal
farwritetext UnknownText_0x1b017a farwritetext UnknownText_0x1b017a
yesorno yesorno
iffalse .end iffalse .done
; Go ahead and heal
farwritetext UnknownText_0x1b01bd farwritetext UnknownText_0x1b01bd
pause 20 pause 20
special Function1060a2 special Function1060a2
; Turn to the machine spriteface $fe, LEFT
spriteface $fe, $2
pause 10 pause 10
special Functionc658 special Functionc658
playmusic MUSIC_NONE playmusic MUSIC_NONE
writebyte $0 writebyte 0
special Function12324 special Function12324
pause 30 pause 30
special RestartMapMusic special RestartMapMusic
spriteface $fe, $0 spriteface $fe, DOWN
pause 10 pause 10
; Has Elm already phoned you about Pokerus?
checkphonecall checkphonecall ; elm already called about pokerus
iftrue .done iftrue .no
; Has Pokerus already been found in the Pokecenter? checkflag ENGINE_POKERUS ; nurse already talked about pokerus
checkflag $000d iftrue .no
iftrue .done special SpecialCheckPokerus
; Check for Pokerus
special SpecialCheckPokerus ; SPECIAL_CHECKPOKERUS
iftrue .pokerus iftrue .pokerus
.done .no
; Thank you for waiting. ...
farwritetext UnknownText_0x1b01d7 farwritetext UnknownText_0x1b01d7
pause 20 pause 20
.end
; We hope to see you again. .done
farwritetext UnknownText_0x1b020b farwritetext UnknownText_0x1b020b
; Curtsy
spriteface $fe, $1 spriteface $fe, UP
pause 10 pause 10
spriteface $fe, $0 spriteface $fe, DOWN
pause 10 pause 10
; And we're out
closetext closetext
loadmovesprites loadmovesprites
end end
.pokerus .pokerus
; Different text for com center (excludes 'in a Pokemon Center') ; already cleared earlier in the script
; Since flag $32a is cleared when healing, checkevent EVENT_WELCOMED_TO_POKECOM_CENTER
; this text is never actually seen
checkevent $032a
iftrue .pokerus_comcenter iftrue .pokerus_comcenter
; Your Pokemon appear to be infected ...
farwritetext UnknownText_0x1b0241 farwritetext UnknownText_0x1b0241
closetext closetext
loadmovesprites loadmovesprites
jump .endpokerus jump .pokerus_done
.pokerus_comcenter .pokerus_comcenter
; Your Pokemon appear to be infected ...
farwritetext UnknownText_0x1b02d6 farwritetext UnknownText_0x1b02d6
closetext closetext
loadmovesprites loadmovesprites
.endpokerus
; Don't tell us about Pokerus again .pokerus_done
setflag $000d setflag ENGINE_POKERUS
; Trigger Elm's Pokerus phone call specialphonecall 1 ; elm calls about pokerus
specialphonecall $0001
end end
; bc162
DifficultBookshelfScript: DifficultBookshelfScript:
farjumptext DifficultBookshelfText farjumptext DifficultBookshelfText