Mr Pokemons House

This commit is contained in:
PikalaxALT
2016-01-06 16:59:56 -05:00
parent ce019e6347
commit 69af99da5e
10 changed files with 94 additions and 94 deletions

View File

@@ -15,7 +15,7 @@ const_value SET $f1
const_value SET 1 const_value SET 1
const MAPCALLBACK_TILES const MAPCALLBACK_TILES
const MAPCALLBACK_OBJECTS const MAPCALLBACK_OBJECTS
const MAPCALLBACK_PALETTES const MAPCALLBACK_CMDQUEUE
const MAPCALLBACK_SPRITES const MAPCALLBACK_SPRITES
const MAPCALLBACK_NEWMAP const MAPCALLBACK_NEWMAP

View File

@@ -577,15 +577,15 @@ Jumptable_40405: ; 40405 (10:4405)
; 4040d ; 4040d
Function4040d: ; 4040d (10:440d) Function4040d: ; 4040d (10:440d)
ld b, $0 ld b, DEXMODE_NEW
jr Function40417 jr Function40417
Function40411: ; 40411 (10:4411) Function40411: ; 40411 (10:4411)
ld b, $1 ld b, DEXMODE_OLD
jr Function40417 jr Function40417
Function40415: ; 40415 (10:4415) Function40415: ; 40415 (10:4415)
ld b, $2 ld b, DEXMODE_ABC
Function40417: ; 40417 (10:4417) Function40417: ; 40417 (10:4417)
ld a, [wCurrentDexMode] ld a, [wCurrentDexMode]
cp b cp b

View File

@@ -141,7 +141,7 @@ ScriptCommandTable: ; 96cb1
dw Script_stringtotext ; 44 dw Script_stringtotext ; 44
dw Script_itemnotify ; 45 dw Script_itemnotify ; 45
dw Script_pocketisfull ; 46 dw Script_pocketisfull ; 46
dw Script_textbox ; 47 dw Script_textbox ; 47
dw Script_refreshscreen ; 48 dw Script_refreshscreen ; 48
dw Script_closetext ; 49 dw Script_closetext ; 49
dw Script_loadbytec2cf ; 4a dw Script_loadbytec2cf ; 4a
@@ -160,15 +160,15 @@ ENDC
dw Script_buttonsound ; 55 dw Script_buttonsound ; 55
dw Script_pokepic ; 56 dw Script_pokepic ; 56
dw Script_closepokepic ; 57 dw Script_closepokepic ; 57
dw Script__2dmenu ; 58 dw Script__2dmenu ; 58
dw Script_verticalmenu ; 59 dw Script_verticalmenu ; 59
dw Script_loadpikachudata ; 5a dw Script_loadpikachudata ; 5a
dw Script_randomwildmon ; 5b dw Script_randomwildmon ; 5b
dw Script_loadmemtrainer ; 5c dw Script_loadmemtrainer ; 5c
dw Script_loadwildmon ; 5d dw Script_loadwildmon ; 5d
dw Script_loadtrainer ; 5e dw Script_loadtrainer ; 5e
dw Script_startbattle ; 5f dw Script_startbattle ; 5f
dw Script_reloadmapafterbattle ; 60 dw Script_reloadmapafterbattle ; 60
dw Script_catchtutorial ; 61 dw Script_catchtutorial ; 61
dw Script_trainertext ; 62 dw Script_trainertext ; 62
dw Script_trainerflagaction ; 63 dw Script_trainerflagaction ; 63
@@ -203,7 +203,7 @@ ENDC
dw Script_encountermusic ; 80 dw Script_encountermusic ; 80
dw Script_musicfadeout ; 81 dw Script_musicfadeout ; 81
dw Script_playmapmusic ; 82 dw Script_playmapmusic ; 82
dw Script_dontrestartmapmusic ; 83 dw Script_dontrestartmapmusic ; 83
dw Script_cry ; 84 dw Script_cry ; 84
dw Script_playsound ; 85 dw Script_playsound ; 85
dw Script_waitsfx ; 86 dw Script_waitsfx ; 86

View File

@@ -9,7 +9,7 @@ RunCallback_05_03: ; 1045b0
call RunMapCallback call RunMapCallback
RunCallback_03: ; 1045c4 RunCallback_03: ; 1045c4
callba ClearCmdQueue callba ClearCmdQueue
ld a, MAPCALLBACK_PALETTES ld a, MAPCALLBACK_CMDQUEUE
call RunMapCallback call RunMapCallback
call GetMapHeaderTimeOfDayNybble call GetMapHeaderTimeOfDayNybble
ld [wMapTimeOfDay], a ld [wMapTimeOfDay], a

View File

@@ -383,7 +383,7 @@ endr
StepHappiness:: ; 725a StepHappiness:: ; 725a
; Raise the party's happiness by 1 point every other step cycle. ; Raise the party's happiness by 1 point every other step cycle.
ld hl, wdc77 ld hl, wHappinessStepCount
ld a, [hl] ld a, [hl]
inc a inc a
and 1 and 1

View File

@@ -16,7 +16,7 @@ BlackthornGym2F_MapScriptHeader:
db 1 db 1
; callbacks ; callbacks
dbw MAPCALLBACK_PALETTES, .Boulders dbw MAPCALLBACK_CMDQUEUE, .Boulders
.Boulders .Boulders
writecmdqueue .BoulderCmdQueue writecmdqueue .BoulderCmdQueue

View File

@@ -6,32 +6,32 @@ BrunosRoom_MapScriptHeader:
db 2 db 2
; triggers ; triggers
dw UnknownScript_0x180993, 0 dw .Trigger0, 0
dw UnknownScript_0x180997, 0 dw .Trigger1, 0
.MapCallbacks: .MapCallbacks:
db 1 db 1
; callbacks ; callbacks
dbw MAPCALLBACK_TILES, UnknownScript_0x180998 dbw MAPCALLBACK_TILES, .BrunosRoomDoors
UnknownScript_0x180993: .Trigger0
priorityjump UnknownScript_0x1809ad priorityjump UnknownScript_0x1809ad
end end
UnknownScript_0x180997: .Trigger1
end end
UnknownScript_0x180998: .BrunosRoomDoors:
checkevent EVENT_BRUNOS_ROOM_ENTRANCE_CLOSED checkevent EVENT_BRUNOS_ROOM_ENTRANCE_CLOSED
iffalse UnknownScript_0x1809a2 iffalse .KeepDoorClosed
changeblock $4, $e, $2a changeblock $4, $e, $2a
UnknownScript_0x1809a2: .KeepDoorClosed
checkevent EVENT_BRUNOS_ROOM_EXIT_OPEN checkevent EVENT_BRUNOS_ROOM_EXIT_OPEN
iffalse UnknownScript_0x1809ac iffalse .OpenDoor
changeblock $4, $2, $16 changeblock $4, $2, $16
UnknownScript_0x1809ac: .OpenDoor
return return
UnknownScript_0x1809ad: UnknownScript_0x1809ad:

View File

@@ -14,7 +14,7 @@ IcePathB1F_MapScriptHeader:
; callbacks ; callbacks
dbw MAPCALLBACK_PALETTES, .SetUpStoneTable dbw MAPCALLBACK_CMDQUEUE, .SetUpStoneTable
.SetUpStoneTable: .SetUpStoneTable:
writecmdqueue .CommandQueue writecmdqueue .CommandQueue

View File

@@ -3,105 +3,105 @@ const_value set 2
const MRPOKEMONSHOUSE_OAK const MRPOKEMONSHOUSE_OAK
MrPokemonsHouse_MapScriptHeader: MrPokemonsHouse_MapScriptHeader:
.MapTriggers: .MapTriggers
db 2 db 2
; triggers ; triggers
dw UnknownScript_0x196e51, 0 maptrigger .Trigger0
dw UnknownScript_0x196e55, 0 maptrigger .Trigger1
.MapCallbacks: .MapCallbacks
db 0 db 0
UnknownScript_0x196e51: .Trigger0
priorityjump UnknownScript_0x196e56 priorityjump .MrPokemonEvent
end end
UnknownScript_0x196e55: .Trigger1
end end
UnknownScript_0x196e56: .MrPokemonEvent
showemote EMOTE_SHOCK, MRPOKEMONSHOUSE_GENTLEMAN, 15 showemote EMOTE_SHOCK, MRPOKEMONSHOUSE_GENTLEMAN, 15
spriteface MRPOKEMONSHOUSE_GENTLEMAN, DOWN spriteface MRPOKEMONSHOUSE_GENTLEMAN, DOWN
opentext opentext
writetext UnknownText_0x196f66 writetext MrPokemonIntroText1
waitbutton waitbutton
closetext closetext
applymovement PLAYER, MovementData_0x196f5a applymovement PLAYER, MrPokemonsHouse_PlayerWalksToMrPokemon
opentext opentext
writetext UnknownText_0x196fa8 writetext MrPokemonIntroText2
buttonsound buttonsound
waitsfx waitsfx
giveitem MYSTERY_EGG giveitem MYSTERY_EGG
writetext UnknownText_0x196fd2 writetext MrPokemonsHouse_GotEggText
playsound SFX_KEY_ITEM playsound SFX_KEY_ITEM
waitsfx waitsfx
itemnotify itemnotify
setevent EVENT_GOT_MYSTERY_EGG_FROM_MR_POKEMON setevent EVENT_GOT_MYSTERY_EGG_FROM_MR_POKEMON
blackoutmod CHERRYGROVE_CITY blackoutmod CHERRYGROVE_CITY
writetext UnknownText_0x196feb writetext MrPokemonIntroText3
buttonsound buttonsound
spriteface MRPOKEMONSHOUSE_GENTLEMAN, RIGHT spriteface MRPOKEMONSHOUSE_GENTLEMAN, RIGHT
writetext UnknownText_0x197092 writetext MrPokemonIntroText4
buttonsound buttonsound
spriteface MRPOKEMONSHOUSE_GENTLEMAN, DOWN spriteface MRPOKEMONSHOUSE_GENTLEMAN, DOWN
spriteface MRPOKEMONSHOUSE_OAK, LEFT spriteface MRPOKEMONSHOUSE_OAK, LEFT
writetext UnknownText_0x1970b7 writetext MrPokemonIntroText5
waitbutton waitbutton
closetext closetext
jump UnknownScript_0x196ec9 jump MrPokemonsHouse_OakScript
GentlemanScript_0x196e97: MrPokemonsHouse_MrPokemonScript:
faceplayer faceplayer
opentext opentext
checkitem RED_SCALE checkitem RED_SCALE
iftrue UnknownScript_0x196eb0 iftrue .RedScale
checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
iftrue UnknownScript_0x196eaa iftrue .AlwaysNewDiscoveries
writetext UnknownText_0x197134 writetext MrPokemonText_ImDependingOnYou
waitbutton waitbutton
closetext closetext
end end
UnknownScript_0x196eaa: .AlwaysNewDiscoveries
writetext UnknownText_0x19714a writetext MrPokemonText_AlwaysNewDiscoveries
waitbutton waitbutton
closetext closetext
end end
UnknownScript_0x196eb0: .RedScale
writetext UnknownText_0x197476 writetext MrPokemonText_GimmeTheScale
yesorno yesorno
iffalse UnknownScript_0x196ec3 iffalse .refused
verbosegiveitem EXP_SHARE verbosegiveitem EXP_SHARE
iffalse UnknownScript_0x196ec7 iffalse .full
takeitem RED_SCALE takeitem RED_SCALE
jump UnknownScript_0x196eaa jump .AlwaysNewDiscoveries
UnknownScript_0x196ec3: .refused
writetext UnknownText_0x19750d writetext MrPokemonText_Disappointed
waitbutton waitbutton
UnknownScript_0x196ec7: .full
closetext closetext
end end
UnknownScript_0x196ec9: MrPokemonsHouse_OakScript:
playmusic MUSIC_PROF_OAK playmusic MUSIC_PROF_OAK
applymovement MRPOKEMONSHOUSE_OAK, MovementData_0x196f5d applymovement MRPOKEMONSHOUSE_OAK, MrPokemonsHouse_OakWalksToPlayer
spriteface PLAYER, RIGHT spriteface PLAYER, RIGHT
opentext opentext
writetext UnknownText_0x197185 writetext MrPokemonsHouse_OakText1
buttonsound buttonsound
waitsfx waitsfx
writetext UnknownText_0x1973cc writetext MrPokemonsHouse_GetDexText
playsound SFX_ITEM playsound SFX_ITEM
waitsfx waitsfx
setflag ENGINE_POKEDEX setflag ENGINE_POKEDEX
writetext UnknownText_0x1973de writetext MrPokemonsHouse_OakText2
waitbutton waitbutton
closetext closetext
spriteface PLAYER, DOWN spriteface PLAYER, DOWN
applymovement MRPOKEMONSHOUSE_OAK, MovementData_0x196f61 applymovement MRPOKEMONSHOUSE_OAK, MrPokemonsHouse_OakExits
playsound SFX_EXIT_BUILDING playsound SFX_EXIT_BUILDING
disappear MRPOKEMONSHOUSE_OAK disappear MRPOKEMONSHOUSE_OAK
waitsfx waitsfx
@@ -109,7 +109,7 @@ UnknownScript_0x196ec9:
pause 15 pause 15
spriteface PLAYER, UP spriteface PLAYER, UP
opentext opentext
writetext UnknownText_0x1970ed writetext MrPokemonsHouse_MrPokemonHealText
waitbutton waitbutton
closetext closetext
special Special_FadeBlackQuickly special Special_FadeBlackQuickly
@@ -121,7 +121,7 @@ UnknownScript_0x196ec9:
special Special_FadeInQuickly special Special_FadeInQuickly
special RestartMapMusic special RestartMapMusic
opentext opentext
writetext UnknownText_0x197134 writetext MrPokemonText_ImDependingOnYou
waitbutton waitbutton
closetext closetext
setevent EVENT_RIVAL_NEW_BARK_TOWN setevent EVENT_RIVAL_NEW_BARK_TOWN
@@ -133,48 +133,48 @@ UnknownScript_0x196ec9:
specialphonecall SPECIALCALL_ROBBED specialphonecall SPECIALCALL_ROBBED
clearevent EVENT_COP_IN_ELMS_LAB clearevent EVENT_COP_IN_ELMS_LAB
checkevent EVENT_GOT_TOTODILE_FROM_ELM checkevent EVENT_GOT_TOTODILE_FROM_ELM
iftrue UnknownScript_0x196f49 iftrue .RivalTakesChikorita
checkevent EVENT_GOT_CHIKORITA_FROM_ELM checkevent EVENT_GOT_CHIKORITA_FROM_ELM
iftrue UnknownScript_0x196f4d iftrue .RivalTakesCyndaquil
setevent EVENT_TOTODILE_POKEBALL_IN_ELMS_LAB setevent EVENT_TOTODILE_POKEBALL_IN_ELMS_LAB
end end
UnknownScript_0x196f49: .RivalTakesChikorita
setevent EVENT_CHIKORITA_POKEBALL_IN_ELMS_LAB setevent EVENT_CHIKORITA_POKEBALL_IN_ELMS_LAB
end end
UnknownScript_0x196f4d: .RivalTakesCyndaquil
setevent EVENT_CYNDAQUIL_POKEBALL_IN_ELMS_LAB setevent EVENT_CYNDAQUIL_POKEBALL_IN_ELMS_LAB
end end
MapMrPokemonsHouseSignpost1Script: MapMrPokemonsHouseSignpost1Script:
jumptext UnknownText_0x197543 jumptext MrPokemonsHouse_ForeignMagazinesText
MapMrPokemonsHouseSignpost3Script: MapMrPokemonsHouseSignpost3Script:
jumptext UnknownText_0x197584 jumptext MrPokemonsHouse_BrokenComputerText
MapMrPokemonsHouseSignpost4Script: MapMrPokemonsHouseSignpost4Script:
jumptext UnknownText_0x1975ac jumptext MrPokemonsHouse_StrangeCoinsText
MovementData_0x196f5a: MrPokemonsHouse_PlayerWalksToMrPokemon:
step_right step_right
step_up step_up
step_end step_end
MovementData_0x196f5d: MrPokemonsHouse_OakWalksToPlayer:
step_down step_down
step_left step_left
step_left step_left
step_end step_end
MovementData_0x196f61: MrPokemonsHouse_OakExits:
step_down step_down
step_left step_left
turn_head_down turn_head_down
db $3f ; movement db $3f ; movement
step_end step_end
UnknownText_0x196f66: MrPokemonIntroText1:
text "Hello, hello! You" text "Hello, hello! You"
line "must be <PLAY_G>." line "must be <PLAY_G>."
@@ -182,18 +182,18 @@ UnknownText_0x196f66:
line "you would visit." line "you would visit."
done done
UnknownText_0x196fa8: MrPokemonIntroText2:
text "This is what I" text "This is what I"
line "want PROF.ELM to" line "want PROF.ELM to"
cont "examine." cont "examine."
done done
UnknownText_0x196fd2: MrPokemonsHouse_GotEggText:
text "<PLAYER> received" text "<PLAYER> received"
line "MYSTERY EGG." line "MYSTERY EGG."
done done
UnknownText_0x196feb: MrPokemonIntroText3:
text "I know a couple" text "I know a couple"
line "who run a #MON" line "who run a #MON"
cont "DAY-CARE service." cont "DAY-CARE service."
@@ -210,18 +210,18 @@ UnknownText_0x196feb:
cont "the authority." cont "the authority."
done done
UnknownText_0x197092: MrPokemonIntroText4:
text "Even PROF.OAK here" text "Even PROF.OAK here"
line "recognizes that." line "recognizes that."
done done
UnknownText_0x1970b7: MrPokemonIntroText5:
text "If my assumption" text "If my assumption"
line "is correct, PROF." line "is correct, PROF."
cont "ELM will know it." cont "ELM will know it."
done done
UnknownText_0x1970ed: MrPokemonsHouse_MrPokemonHealText:
text "You are returning" text "You are returning"
line "to PROF.ELM?" line "to PROF.ELM?"
@@ -230,12 +230,12 @@ UnknownText_0x1970ed:
cont "rest." cont "rest."
done done
UnknownText_0x197134: MrPokemonText_ImDependingOnYou:
text "I'm depending on" text "I'm depending on"
line "you!" line "you!"
done done
UnknownText_0x19714a: MrPokemonText_AlwaysNewDiscoveries:
text "Life is delight-" text "Life is delight-"
line "ful! Always, new" line "ful! Always, new"
@@ -243,7 +243,7 @@ UnknownText_0x19714a:
line "made!" line "made!"
done done
UnknownText_0x197185: MrPokemonsHouse_OakText1:
text "OAK: Aha! So" text "OAK: Aha! So"
line "you're <PLAY_G>!" line "you're <PLAY_G>!"
@@ -307,12 +307,12 @@ UnknownText_0x197185:
line "encyclopedia!" line "encyclopedia!"
done done
UnknownText_0x1973cc: MrPokemonsHouse_GetDexText:
text "<PLAYER> received" text "<PLAYER> received"
line "#DEX!" line "#DEX!"
done done
UnknownText_0x1973de: MrPokemonsHouse_OakText2:
text "Go meet many kinds" text "Go meet many kinds"
line "of #MON and" line "of #MON and"
@@ -330,7 +330,7 @@ UnknownText_0x1973de:
line "counting on you!" line "counting on you!"
done done
UnknownText_0x197476: MrPokemonText_GimmeTheScale:
text "Hm? That SCALE!" text "Hm? That SCALE!"
line "What's that?" line "What's that?"
cont "A red GYARADOS?" cont "A red GYARADOS?"
@@ -346,13 +346,13 @@ UnknownText_0x197476:
cont "from PROF.OAK." cont "from PROF.OAK."
done done
UnknownText_0x19750d: MrPokemonText_Disappointed:
text "That's disappoint-" text "That's disappoint-"
line "ing. That happens" line "ing. That happens"
cont "to be very rare." cont "to be very rare."
done done
UnknownText_0x197543: MrPokemonsHouse_ForeignMagazinesText:
text "It's packed with" text "It's packed with"
line "foreign magazines." line "foreign magazines."
@@ -360,13 +360,13 @@ UnknownText_0x197543:
line "their titles…" line "their titles…"
done done
UnknownText_0x197584: MrPokemonsHouse_BrokenComputerText:
text "It's a big com-" text "It's a big com-"
line "puter. Hmm. It's" line "puter. Hmm. It's"
cont "broken." cont "broken."
done done
UnknownText_0x1975ac: MrPokemonsHouse_StrangeCoinsText:
text "A whole pile of" text "A whole pile of"
line "strange coins!" line "strange coins!"
@@ -396,5 +396,5 @@ MrPokemonsHouse_MapEventHeader:
.PersonEvents: .PersonEvents:
db 2 db 2
person_event SPRITE_GENTLEMAN, 5, 3, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, GentlemanScript_0x196e97, -1 person_event SPRITE_GENTLEMAN, 5, 3, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, MrPokemonsHouse_MrPokemonScript, -1
person_event SPRITE_OAK, 5, 6, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, ObjectEvent, EVENT_MR_POKEMONS_HOUSE_OAK person_event SPRITE_OAK, 5, 6, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, ObjectEvent, EVENT_MR_POKEMONS_HOUSE_OAK

View File

@@ -3067,12 +3067,12 @@ PoisonStepCount:: ; dc74
ds 1 ds 1
ds 2 ds 2
wdc77:: ds 2 wHappinessStepCount:: ds 1
wdc79:: ds 1
wParkBallsRemaining:: wParkBallsRemaining::
wSafariBallsRemaining:: ds 1 wSafariBallsRemaining:: ds 1 ; dc79
wSafariTimeRemaining:: ds 2 wSafariTimeRemaining:: ds 2 ; dc7a
wPhoneList:: ds CONTACT_LIST_SIZE wPhoneList:: ds CONTACT_LIST_SIZE ; dc7c
ds 23 ds 23
wLuckyNumberShowFlag:: ds 2 ; dc9d wLuckyNumberShowFlag:: ds 2 ; dc9d
wLuckyIDNumber:: ds 2 ; dc9f wLuckyIDNumber:: ds 2 ; dc9f