Labels relating to odd egg

This commit is contained in:
PikalaxALT 2015-12-25 23:34:33 -05:00
parent a5e928eb98
commit 7683b78fb4
14 changed files with 561 additions and 536 deletions

View File

@ -5,7 +5,7 @@
const ENGINE_PHONE_CARD
const ENGINE_EXPN_CARD
const ENGINE_POKEGEAR
const ENGINE_DAYCARE_MONS_ARE_COMPATIBLE
const ENGINE_DAYCARE_MAN_HAS_EGG
const ENGINE_DAYCARE_MAN_HAS_MON
const ENGINE_DAYCARE_LADY_HAS_MON
const ENGINE_MOM_SAVING_MONEY

View File

@ -58,36 +58,36 @@ GiveOddEgg: ; 1fb4b6
; load species in wcd2a
ld a, EGG
ld [wcd2a], a
ld [wMobileMonSpeciesBuffer], a
; load pointer to wcd29 in wcd20
ld a, wcd29 % $100
ld [wcd20], a
ld a, wcd29 / $100
ld [wcd21], a
; load pointer to OddEggSpecies in wcd22
; load pointer to (wMobileMonSpeciesBuffer - 1) in wMobileMonSpeciesPointerBuffer
ld a, (wMobileMonSpeciesBuffer - 1) % $100
ld [wMobileMonSpeciesPointerBuffer], a
ld a, (wMobileMonSpeciesBuffer - 1) / $100
ld [wMobileMonSpeciesPointerBuffer + 1], a
; load pointer to OddEggSpecies in wMobileMonStructurePointerBuffer
ld a, OddEggSpecies % $100
ld [wcd22], a
ld [wMobileMonStructurePointerBuffer], a
ld a, OddEggSpecies / $100
ld [wcd23], a
ld [wMobileMonStructurePointerBuffer + 1], a
; load Odd Egg Name in wcd2b
; load Odd Egg Name in wTempOddEggNickname
ld hl, .Odd
ld de, wcd2b
ld de, wTempOddEggNickname
ld bc, PKMN_NAME_LENGTH
call CopyBytes
; load pointer to wcd2b in wcd24
ld a, wcd2b % $100
ld [wcd24], a
ld a, wcd2b / $100
ld [wcd25], a
; load pointer to wOddEggName in wcd26
; load pointer to wTempOddEggNickname in wMobileMonOTNamePointerBuffer
ld a, wTempOddEggNickname % $100
ld [wMobileMonOTNamePointerBuffer], a
ld a, wTempOddEggNickname / $100
ld [wMobileMonOTNamePointerBuffer + 1], a
; load pointer to wOddEggName in wMobileMonNicknamePointerBuffer
ld a, wOddEggName % $100
ld [wcd26], a
ld [wMobileMonNicknamePointerBuffer], a
ld a, wOddEggName / $100
ld [wcd27], a
callba Function11b98f
ld [wMobileMonNicknamePointerBuffer + 1], a
callba AddMobileMonToParty
ret
; 1fb546
@ -102,19 +102,25 @@ prob_total = prob_total + (\1)
ENDM
prob_total = 0
; Pichu
prob 8
prob 1
; Cleffa
prob 16
prob 3
; Igglybuff
prob 16
prob 3
; Smoochum
prob 14
prob 2
; Magby
prob 10
prob 2
; Elekid
prob 12
prob 2
; Tyrogue
prob 10
prob 1
; 1fb56e

View File

@ -99,8 +99,8 @@ ENDM
engine_flag wPokegearFlags, 7 ; on/off
; wDaycareMan, 7 ; daycare 1 on
engine_flag wDaycareMan, 6 ; monster 1 and 2 are compatible
; wDaycareMan, 5 ; egg is ready
engine_flag wDaycareMan, 6 ; egg is ready
; wDaycareMan, 5 ; monster 1 and 2 are compatible
engine_flag wDaycareMan, 0 ; monster 1 in daycare
; wDaycareLady, 7 = daycare 2 on

View File

@ -147,7 +147,7 @@ SpecialsPointers:: ; c029
add_special Function_LoadOpponentTrainerAndPokemonsWithOTSprite
add_special Function11ba38
add_special SpecialCheckForBattleTowerRules
add_special Function117656
add_special Special_GiveOddEgg
add_special Reset
add_special Function1011f1
add_special Function101220

View File

@ -183,4 +183,3 @@ stonetable: MACRO
db \1, \2
dw \3
endm

View File

@ -217,14 +217,14 @@ mobiletradeanim_end: macro
db mobiletradeanim_end_command ; 0c
endm
enum mobiletradeanim_showwondertradegivemon_command
mobiletradeanim_showwondertradegivemon: macro
db mobiletradeanim_showwondertradegivemon_command ; 0d
enum mobiletradeanim_showgtsgivemon_command
mobiletradeanim_showgtsgivemon: macro
db mobiletradeanim_showgtsgivemon_command ; 0d
endm
enum mobiletradeanim_showwondertradegetmon_command
mobiletradeanim_showwondertradegetmon: macro
db mobiletradeanim_showwondertradegetmon_command ; 0e
enum mobiletradeanim_showgtsgetmon_command
mobiletradeanim_showgtsgetmon: macro
db mobiletradeanim_showgtsgetmon_command ; 0e
endm
enum mobiletradeanim_0f_command

View File

@ -11,66 +11,66 @@ DayCare_MapScriptHeader:
; callbacks
dbw 2, UnknownScript_0x62f7b
dbw 2, .EggCheckCallback
UnknownScript_0x62f7b:
checkflag ENGINE_DAYCARE_MONS_ARE_COMPATIBLE
iftrue UnknownScript_0x62f88
.EggCheckCallback:
checkflag ENGINE_DAYCARE_MAN_HAS_EGG
iftrue .PutDaycareManOutside
clearevent EVENT_DAYCARE_MAN_IN_DAYCARE
setevent EVENT_DAYCARE_MAN_ON_ROUTE_34
return
UnknownScript_0x62f88:
.PutDaycareManOutside:
setevent EVENT_DAYCARE_MAN_IN_DAYCARE
clearevent EVENT_DAYCARE_MAN_ON_ROUTE_34
return
GrampsScript_0x62f8f:
DayCareManScript_Inside:
faceplayer
opentext
checkevent EVENT_GOT_ODD_EGG
iftrue UnknownScript_0x62fbd
writetext UnknownText_0x630ce
iftrue .AlreadyHaveOddEgg
writetext DayCareManText_GiveOddEgg
buttonsound
closetext
checkcode VAR_PARTYCOUNT
if_equal $6, UnknownScript_0x62fb6
special Function117656
if_equal PARTY_LENGTH, .PartyFull
special Special_GiveOddEgg
opentext
writetext UnknownText_0x631ae
writetext DayCareText_GotOddEgg
playsound SFX_KEY_ITEM
waitsfx
writetext UnknownText_0x631c3
writetext DayCareText_DescribeOddEgg
waitbutton
closetext
setevent EVENT_GOT_ODD_EGG
end
UnknownScript_0x62fb6:
.PartyFull:
opentext
writetext UnknownText_0x63237
writetext DayCareText_PartyFull
waitbutton
closetext
end
UnknownScript_0x62fbd:
.AlreadyHaveOddEgg:
special Special_DayCareMan
waitbutton
closetext
end
GrannyScript_0x62fc3:
DayCareLadyScript:
faceplayer
opentext
checkflag ENGINE_DAYCARE_MONS_ARE_COMPATIBLE
iftrue UnknownScript_0x62fd1
checkflag ENGINE_DAYCARE_MAN_HAS_EGG
iftrue .HusbandWasLookingForYou
special Special_DayCareLady
waitbutton
closetext
end
UnknownScript_0x62fd1:
writetext UnknownText_0x62fda
.HusbandWasLookingForYou:
writetext Text_GrampsLookingForYou
waitbutton
closetext
end
@ -78,12 +78,12 @@ UnknownScript_0x62fd1:
DayCareBookshelf:
jumpstd difficultbookshelf
UnknownText_0x62fda:
Text_GrampsLookingForYou:
text "Gramps was looking"
line "for you."
done
UnknownText_0x62ff7:
Text_DayCareManTalksAboutEggTicket:
text "I'm the DAY-CARE"
line "MAN."
@ -106,7 +106,7 @@ UnknownText_0x62ff7:
line "as well have it."
done
UnknownText_0x630ce:
DayCareManText_GiveOddEgg:
text "I'm the DAY-CARE"
line "MAN."
@ -130,16 +130,16 @@ UnknownText_0x630ce:
line "yours to keep!"
done
UnknownText_0x631a1:
DayCareText_ComeAgain:
text "Come again."
done
UnknownText_0x631ae:
DayCareText_GotOddEgg:
text "<PLAYER> received"
line "ODD EGG!"
done
UnknownText_0x631c3:
DayCareText_DescribeOddEgg:
text "I found that when"
line "I was caring for"
@ -153,7 +153,7 @@ UnknownText_0x631c3:
line "it around."
done
UnknownText_0x63237:
DayCareText_PartyFull:
text "You've no room for"
line "this."
done
@ -179,5 +179,5 @@ DayCare_MapEventHeader:
.PersonEvents:
db 2
person_event SPRITE_GRAMPS, 3, 2, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, GrampsScript_0x62f8f, EVENT_DAYCARE_MAN_IN_DAYCARE
person_event SPRITE_GRANNY, 3, 5, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_SCRIPT, 0, GrannyScript_0x62fc3, -1
person_event SPRITE_GRAMPS, 3, 2, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, DayCareManScript_Inside, EVENT_DAYCARE_MAN_IN_DAYCARE
person_event SPRITE_GRANNY, 3, 5, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_SCRIPT, 0, DayCareLadyScript, -1

View File

@ -22,107 +22,107 @@ Route34_MapScriptHeader:
; callbacks
dbw 2, UnknownScript_0x78005
dbw 2, .EggCheckCallback
UnknownScript_0x78005:
checkflag ENGINE_DAYCARE_MONS_ARE_COMPATIBLE
iftrue UnknownScript_0x78014
.EggCheckCallback:
checkflag ENGINE_DAYCARE_MAN_HAS_EGG
iftrue .PutDaycareManOutside
clearevent EVENT_DAYCARE_MAN_IN_DAYCARE
setevent EVENT_DAYCARE_MAN_ON_ROUTE_34
jump UnknownScript_0x7801d
jump .CheckMon1
UnknownScript_0x78014:
.PutDaycareManOutside:
setevent EVENT_DAYCARE_MAN_IN_DAYCARE
clearevent EVENT_DAYCARE_MAN_ON_ROUTE_34
jump UnknownScript_0x7801d
jump .CheckMon1
UnknownScript_0x7801d:
.CheckMon1:
checkflag ENGINE_DAYCARE_MAN_HAS_MON
iffalse UnknownScript_0x78029
iffalse .HideMon1
clearevent EVENT_DAYCARE_MON_1
jump UnknownScript_0x7802f
jump .CheckMon2
UnknownScript_0x78029:
.HideMon1:
setevent EVENT_DAYCARE_MON_1
jump UnknownScript_0x7802f
jump .CheckMon2
UnknownScript_0x7802f:
.CheckMon2:
checkflag ENGINE_DAYCARE_LADY_HAS_MON
iffalse UnknownScript_0x78039
iffalse .HideMon2
clearevent EVENT_DAYCARE_MON_2
return
UnknownScript_0x78039:
.HideMon2:
setevent EVENT_DAYCARE_MON_2
return
GrampsScript_0x7803d:
DayCareManScript_Outside:
faceplayer
opentext
special Special_DayCareManOutside
waitbutton
closetext
if_equal $1, UnknownScript_0x7805a
clearflag ENGINE_DAYCARE_MONS_ARE_COMPATIBLE
if_equal $1, .end_fail
clearflag ENGINE_DAYCARE_MAN_HAS_EGG
checkcode VAR_FACING
if_equal RIGHT, UnknownScript_0x7805b
applymovement ROUTE34_GRAMPS, MovementData_0x78333
if_equal RIGHT, .walk_around_player
applymovement ROUTE34_GRAMPS, Route34MovementData_DayCareManWalksBackInside
playsound SFX_ENTER_DOOR
disappear ROUTE34_GRAMPS
UnknownScript_0x7805a:
.end_fail:
end
UnknownScript_0x7805b:
applymovement ROUTE34_GRAMPS, MovementData_0x78337
.walk_around_player:
applymovement ROUTE34_GRAMPS, Route34MovementData_DayCareManWalksBackInside_WalkAroundPlayer
playsound SFX_ENTER_DOOR
disappear ROUTE34_GRAMPS
end
DaycareMon1Script_0x78065:
DaycareMon1Script:
opentext
special Special_DayCareMon1
closetext
end
DaycareMon2Script_0x7806b:
DaycareMon2Script:
opentext
special Special_DayCareMon2
closetext
end
TrainerCamperTodd1:
trainer EVENT_BEAT_CAMPER_TODD, CAMPER, TODD1, CamperTodd1SeenText, CamperTodd1BeatenText, 0, CamperTodd1Script
trainer EVENT_BEAT_CAMPER_TODD, CAMPER, TODD1, CamperTodd1SeenText, CamperTodd1BeatenText, 0, .Script
CamperTodd1Script:
.Script:
writecode VAR_CALLERID, PHONE_CAMPER_TODD
end_if_just_battled
opentext
checkflag ENGINE_TODD
iftrue UnknownScript_0x780bd
iftrue .Rematch
checkflag ENGINE_GOLDENROD_DEPT_STORE_SALE_IS_ON
iftrue UnknownScript_0x78131
iftrue .SaleIsOn
checkcellnum PHONE_CAMPER_TODD
iftrue UnknownScript_0x78143
iftrue .NumberAccepted
checkevent EVENT_TODD_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x780a6
writetext UnknownText_0x784f0
iftrue .AskAgain
writetext CamperTodd1AfterText
buttonsound
setevent EVENT_TODD_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x78137
jump UnknownScript_0x780a9
scall .AskNumber
jump .FinishAsk
UnknownScript_0x780a6:
scall UnknownScript_0x7813b
UnknownScript_0x780a9:
.AskAgain:
scall .AskNumber2
.FinishAsk:
askforphonenumber PHONE_CAMPER_TODD
if_equal $1, UnknownScript_0x7814b
if_equal $2, UnknownScript_0x78147
if_equal $1, .PhoneFull
if_equal $2, .NumberDeclined
trainertotext CAMPER, TODD1, $0
scall UnknownScript_0x7813f
jump UnknownScript_0x78143
scall .RegisteredNumber
jump .NumberAccepted
UnknownScript_0x780bd:
scall UnknownScript_0x7814f
.Rematch:
scall .RematchStd
winlosstext CamperTodd1BeatenText, 0
copybytetovar wToddFightCount
if_equal 4, .Fight4
@ -181,73 +181,73 @@ UnknownScript_0x780bd:
clearflag ENGINE_TODD
end
UnknownScript_0x78131:
writetext UnknownText_0x78532
.SaleIsOn:
writetext CamperToddSaleText
waitbutton
closetext
end
UnknownScript_0x78137:
.AskNumber:
jumpstd asknumber1m
end
UnknownScript_0x7813b:
.AskNumber2:
jumpstd asknumber2m
end
UnknownScript_0x7813f:
.RegisteredNumber:
jumpstd registerednumberm
end
UnknownScript_0x78143:
.NumberAccepted:
jumpstd numberacceptedm
end
UnknownScript_0x78147:
.NumberDeclined:
jumpstd numberdeclinedm
end
UnknownScript_0x7814b:
.PhoneFull:
jumpstd phonefullm
end
UnknownScript_0x7814f:
.RematchStd:
jumpstd rematchm
end
TrainerPicnickerGina1:
trainer EVENT_BEAT_PICNICKER_GINA, PICNICKER, GINA1, PicnickerGina1SeenText, PicnickerGina1BeatenText, 0, PicnickerGina1Script
trainer EVENT_BEAT_PICNICKER_GINA, PICNICKER, GINA1, PicnickerGina1SeenText, PicnickerGina1BeatenText, 0, .Script
PicnickerGina1Script:
.Script:
writecode VAR_CALLERID, PHONE_PICNICKER_GINA
end_if_just_battled
opentext
checkflag ENGINE_GINA
iftrue UnknownScript_0x7819f
iftrue .Rematch
checkflag ENGINE_GINA_HAS_LEAF_STONE
iftrue UnknownScript_0x78213
iftrue .LeafStone
checkcellnum PHONE_PICNICKER_GINA
iftrue UnknownScript_0x78234
iftrue .NumberAccepted
checkevent EVENT_GINA_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x78188
writetext UnknownText_0x785b8
iftrue .AskAgain
writetext PicnickerGina1AfterText
buttonsound
setevent EVENT_GINA_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x78228
jump UnknownScript_0x7818b
scall .AskNumber1
jump .FinishAsk
UnknownScript_0x78188:
scall UnknownScript_0x7822c
UnknownScript_0x7818b:
.AskAgain:
scall .AskNumber2
.FinishAsk:
askforphonenumber PHONE_PICNICKER_GINA
if_equal $1, UnknownScript_0x7823c
if_equal $2, UnknownScript_0x78238
if_equal $1, .PhoneFull
if_equal $2, .NumberDeclined
trainertotext PICNICKER, GINA1, $0
scall UnknownScript_0x78230
jump UnknownScript_0x78234
scall .RegisteredNumber
jump .NumberAccepted
UnknownScript_0x7819f:
scall UnknownScript_0x78240
.Rematch:
scall .RematchStd
winlosstext PicnickerGina1BeatenText, 0
copybytetovar wGinaFightCount
if_equal 4, .Fight4
@ -306,65 +306,65 @@ UnknownScript_0x7819f:
clearflag ENGINE_GINA
end
UnknownScript_0x78213:
scall UnknownScript_0x78244
.LeafStone:
scall .Gift
verbosegiveitem LEAF_STONE
iffalse UnknownScript_0x78225
iffalse .BagFull
clearflag ENGINE_GINA_HAS_LEAF_STONE
setevent EVENT_GINA_GAVE_LEAF_STONE
jump UnknownScript_0x78234
jump .NumberAccepted
UnknownScript_0x78225:
jump UnknownScript_0x78248
.BagFull:
jump .PackFull
UnknownScript_0x78228:
.AskNumber1:
jumpstd asknumber1f
end
UnknownScript_0x7822c:
.AskNumber2:
jumpstd asknumber2f
end
UnknownScript_0x78230:
.RegisteredNumber:
jumpstd registerednumberf
end
UnknownScript_0x78234:
.NumberAccepted:
jumpstd numberacceptedf
end
UnknownScript_0x78238:
.NumberDeclined:
jumpstd numberdeclinedf
end
UnknownScript_0x7823c:
.PhoneFull:
jumpstd phonefullf
end
UnknownScript_0x78240:
.RematchStd:
jumpstd rematchf
end
UnknownScript_0x78244:
.Gift:
jumpstd giftf
end
UnknownScript_0x78248:
.PackFull:
jumpstd packfullf
end
OfficerScript_0x7824c:
OfficerKeithScript:
faceplayer
opentext
checknite
iffalse UnknownScript_0x78276
iffalse .NoFight
checkevent EVENT_BEAT_OFFICER_KEITH
iftrue UnknownScript_0x78270
iftrue .AfterScript
playmusic MUSIC_OFFICER_ENCOUNTER
writetext UnknownText_0x785e4
writetext OfficerKeithSeenText
waitbutton
closetext
winlosstext UnknownText_0x78609, 0
winlosstext OfficerKeithWinText, 0
loadtrainer OFFICER, KEITH
startbattle
returnafterbattle
@ -372,120 +372,120 @@ OfficerScript_0x7824c:
closetext
end
UnknownScript_0x78270:
writetext UnknownText_0x78624
.AfterScript:
writetext OfficerKeithAfterText
waitbutton
closetext
end
UnknownScript_0x78276:
writetext UnknownText_0x7866a
.NoFight:
writetext OfficerKeithDaytimeText
waitbutton
closetext
end
TrainerYoungsterSamuel:
trainer EVENT_BEAT_YOUNGSTER_SAMUEL, YOUNGSTER, SAMUEL, YoungsterSamuelSeenText, YoungsterSamuelBeatenText, 0, YoungsterSamuelScript
trainer EVENT_BEAT_YOUNGSTER_SAMUEL, YOUNGSTER, SAMUEL, YoungsterSamuelSeenText, YoungsterSamuelBeatenText, 0, .Script
YoungsterSamuelScript:
.Script:
end_if_just_battled
opentext
writetext UnknownText_0x783d8
writetext YoungsterSamuelAfterText
waitbutton
closetext
end
TrainerYoungsterIan:
trainer EVENT_BEAT_YOUNGSTER_IAN, YOUNGSTER, IAN, YoungsterIanSeenText, YoungsterIanBeatenText, 0, YoungsterIanScript
trainer EVENT_BEAT_YOUNGSTER_IAN, YOUNGSTER, IAN, YoungsterIanSeenText, YoungsterIanBeatenText, 0, .Script
YoungsterIanScript:
.Script:
end_if_just_battled
opentext
writetext UnknownText_0x78469
writetext YoungsterIanAfterText
waitbutton
closetext
end
TrainerPokefanmBrandon:
trainer EVENT_BEAT_POKEFANM_BRANDON, POKEFANM, BRANDON, PokefanmBrandonSeenText, PokefanmBrandonBeatenText, 0, PokefanmBrandonScript
trainer EVENT_BEAT_POKEFANM_BRANDON, POKEFANM, BRANDON, PokefanmBrandonSeenText, PokefanmBrandonBeatenText, 0, .Script
PokefanmBrandonScript:
.Script:
end_if_just_battled
opentext
writetext UnknownText_0x786fc
writetext PokefanmBrandonAfterText
waitbutton
closetext
end
TrainerCooltrainerfIrene:
trainer EVENT_BEAT_COOLTRAINERF_IRENE, COOLTRAINERF, IRENE, CooltrainerfIreneSeenText, CooltrainerfIreneBeatenText, 0, CooltrainerfIreneScript
trainer EVENT_BEAT_COOLTRAINERF_IRENE, COOLTRAINERF, IRENE, CooltrainerfIreneSeenText, CooltrainerfIreneBeatenText, 0, .Script
CooltrainerfIreneScript:
.Script:
end_if_just_battled
opentext
checkevent EVENT_GOT_SOFT_SAND_FROM_KATE
iftrue UnknownScript_0x782d2
writetext UnknownText_0x7877f
iftrue .GotSoftSand
writetext CooltrainerfIreneAfterText1
waitbutton
closetext
end
UnknownScript_0x782d2:
writetext UnknownText_0x787ad
.GotSoftSand:
writetext CooltrainerfIreneAfterText2
waitbutton
closetext
end
TrainerCooltrainerfJenn:
trainer EVENT_BEAT_COOLTRAINERF_JENN, COOLTRAINERF, JENN, CooltrainerfJennSeenText, CooltrainerfJennBeatenText, 0, CooltrainerfJennScript
trainer EVENT_BEAT_COOLTRAINERF_JENN, COOLTRAINERF, JENN, CooltrainerfJennSeenText, CooltrainerfJennBeatenText, 0, .Script
CooltrainerfJennScript:
.Script:
end_if_just_battled
opentext
checkevent EVENT_GOT_SOFT_SAND_FROM_KATE
iftrue UnknownScript_0x782f2
writetext UnknownText_0x78836
iftrue .GotSoftSand
writetext CooltrainerfJennAfterText1
waitbutton
closetext
end
UnknownScript_0x782f2:
writetext UnknownText_0x78866
.GotSoftSand:
writetext CooltrainerfJennAfterText2
waitbutton
closetext
end
TrainerCooltrainerfKate:
trainer EVENT_BEAT_COOLTRAINERF_KATE, COOLTRAINERF, KATE, CooltrainerfKateSeenText, CooltrainerfKateBeatenText, 0, CooltrainerfKateScript
trainer EVENT_BEAT_COOLTRAINERF_KATE, COOLTRAINERF, KATE, CooltrainerfKateSeenText, CooltrainerfKateBeatenText, 0, .Script
CooltrainerfKateScript:
.Script:
end_if_just_battled
opentext
checkevent EVENT_GOT_SOFT_SAND_FROM_KATE
iftrue UnknownScript_0x78319
writetext UnknownText_0x788e2
iftrue .GotSoftSand
writetext CooltrainerfKateOfferSoftSandText
buttonsound
verbosegiveitem SOFT_SAND
iffalse UnknownScript_0x7831d
iffalse .BagFull
setevent EVENT_GOT_SOFT_SAND_FROM_KATE
UnknownScript_0x78319:
writetext UnknownText_0x7892b
.GotSoftSand:
writetext CooltrainerfKateAfterText
waitbutton
UnknownScript_0x7831d:
.BagFull:
closetext
end
UnknownScript_0x7831f:
jumptext UnknownText_0x7898a
MapRoute34UnusedSignpostScript:
jumptext MapRoute34UnusedSignpostText
MapRoute34Signpost0Script:
jumptext UnknownText_0x789a8
jumptext MapRoute34Signpost0Text
MapRoute34Signpost1Script:
jumptext UnknownText_0x789ed
jumptext MapRoute34Signpost1Text
MapRoute34Signpost2Script:
jumptext UnknownText_0x78a52
jumptext MapRoute34Signpost2Text
Route34Nugget:
itemball NUGGET
@ -498,13 +498,13 @@ Route34HiddenSuperPotion:
dwb EVENT_ROUTE_34_HIDDEN_SUPER_POTION, SUPER_POTION
MovementData_0x78333:
Route34MovementData_DayCareManWalksBackInside:
slow_step_left
slow_step_left
slow_step_up
step_end
MovementData_0x78337:
Route34MovementData_DayCareManWalksBackInside_WalkAroundPlayer:
slow_step_down
slow_step_left
slow_step_left
@ -522,7 +522,7 @@ YoungsterSamuelBeatenText:
line "passing stranger!"
done
UnknownText_0x7837d:
YoungsterSamuelMobileText:
text "Have you been to"
line "GOLDENROD CITY?"
@ -533,7 +533,7 @@ UnknownText_0x7837d:
line "#MON CENTER?"
done
UnknownText_0x783d8:
YoungsterSamuelAfterText:
text "I'm going to train"
line "even harder."
@ -552,7 +552,7 @@ YoungsterIanBeatenText:
line "ter trainers…"
done
UnknownText_0x78469:
YoungsterIanAfterText:
text "I'm trying hard so"
line "I can be the star"
cont "in my class."
@ -571,7 +571,7 @@ CamperTodd1BeatenText:
line "training?"
done
UnknownText_0x784f0:
CamperTodd1AfterText:
text "Maybe I should"
line "take one to a DAY-"
@ -579,7 +579,7 @@ UnknownText_0x784f0:
line "some items…"
done
UnknownText_0x78532:
CamperToddSaleText:
text "Shopping under the"
line "sky!"
@ -599,24 +599,24 @@ PicnickerGina1BeatenText:
line "can't win…"
done
UnknownText_0x785b8:
PicnickerGina1AfterText:
text "You're too strong"
line "to be a practice"
cont "partner."
done
UnknownText_0x785e4:
OfficerKeithSeenText:
text "Who goes there?"
line "What are you up"
cont "to?"
done
UnknownText_0x78609:
OfficerKeithWinText:
text "You're a tough"
line "little kid."
done
UnknownText_0x78624:
OfficerKeithAfterText:
text "Yep, I see nothing"
line "wrong today. You"
@ -624,7 +624,7 @@ UnknownText_0x78624:
line "out of trouble."
done
UnknownText_0x7866a:
OfficerKeithDaytimeText:
text "I'm on patrol for"
line "suspicious indi-"
cont "viduals."
@ -644,7 +644,7 @@ PokefanmBrandonBeatenText:
line "this way?"
done
UnknownText_0x786fc:
PokefanmBrandonAfterText:
text "My #MON knew"
line "moves I didn't"
cont "know it had."
@ -663,13 +663,13 @@ CooltrainerfIreneBeatenText:
line "Too strong!"
done
UnknownText_0x7877f:
CooltrainerfIreneAfterText1:
text "IRENE: My sister"
line "KATE will get you"
cont "for this!"
done
UnknownText_0x787ad:
CooltrainerfIreneAfterText2:
text "IRENE: Isn't this"
line "beach great?"
@ -688,13 +688,13 @@ CooltrainerfJennBeatenText:
line "IRENE! Sis!"
done
UnknownText_0x78836:
CooltrainerfJennAfterText1:
text "JENN: Don't get"
line "cocky! My sister"
cont "KATE is tough!"
done
UnknownText_0x78866:
CooltrainerfJennAfterText2:
text "JENN: Sunlight"
line "makes your body"
cont "stronger."
@ -711,7 +711,7 @@ CooltrainerfKateBeatenText:
line "believe I lost."
done
UnknownText_0x788e2:
CooltrainerfKateOfferSoftSandText:
text "KATE: You're too"
line "strong. I didn't"
cont "stand a chance."
@ -720,7 +720,7 @@ UnknownText_0x788e2:
line "this."
done
UnknownText_0x7892b:
CooltrainerfKateAfterText:
text "KATE: I'm sorry we"
line "jumped you."
@ -731,12 +731,12 @@ UnknownText_0x7892b:
line "startled us."
done
UnknownText_0x7898a:
MapRoute34UnusedSignpostText:
text "ILEX FOREST"
line "THROUGH THE GATE"
done
UnknownText_0x789a8:
MapRoute34Signpost0Text:
text "ROUTE 34"
para "GOLDENROD CITY -"
@ -746,7 +746,7 @@ UnknownText_0x789a8:
line "SOMEWHERE BETWEEN"
done
UnknownText_0x789ed:
MapRoute34Signpost1Text:
text "TRAINER TIPS"
para "BERRY trees grow"
@ -758,7 +758,7 @@ UnknownText_0x789ed:
cont "which BERRIES."
done
UnknownText_0x78a52:
MapRoute34Signpost2Text:
text "DAY-CARE"
para "LET US RAISE YOUR"
@ -794,11 +794,11 @@ Route34_MapEventHeader:
person_event SPRITE_YOUNGSTER, 32, 15, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_TRAINER, 3, TrainerYoungsterSamuel, -1
person_event SPRITE_YOUNGSTER, 20, 11, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_TRAINER, 3, TrainerYoungsterIan, -1
person_event SPRITE_LASS, 26, 10, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_TRAINER, 3, TrainerPicnickerGina1, -1
person_event SPRITE_OFFICER, 11, 9, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, OfficerScript_0x7824c, -1
person_event SPRITE_OFFICER, 11, 9, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, OfficerKeithScript, -1
person_event SPRITE_POKEFAN_M, 28, 18, SPRITEMOVEDATA_SPINCOUNTERCLOCKWISE, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_TRAINER, 3, TrainerPokefanmBrandon, -1
person_event SPRITE_GRAMPS, 16, 15, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, GrampsScript_0x7803d, EVENT_DAYCARE_MAN_ON_ROUTE_34
person_event SPRITE_DAYCARE_MON_1, 18, 14, SPRITEMOVEDATA_POKEMON, 2, 2, -1, -1, 0, PERSONTYPE_SCRIPT, 0, DaycareMon1Script_0x78065, EVENT_DAYCARE_MON_1
person_event SPRITE_DAYCARE_MON_2, 19, 17, SPRITEMOVEDATA_POKEMON, 2, 2, -1, -1, 0, PERSONTYPE_SCRIPT, 0, DaycareMon2Script_0x7806b, EVENT_DAYCARE_MON_2
person_event SPRITE_GRAMPS, 16, 15, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, DayCareManScript_Outside, EVENT_DAYCARE_MAN_ON_ROUTE_34
person_event SPRITE_DAYCARE_MON_1, 18, 14, SPRITEMOVEDATA_POKEMON, 2, 2, -1, -1, 0, PERSONTYPE_SCRIPT, 0, DaycareMon1Script, EVENT_DAYCARE_MON_1
person_event SPRITE_DAYCARE_MON_2, 19, 17, SPRITEMOVEDATA_POKEMON, 2, 2, -1, -1, 0, PERSONTYPE_SCRIPT, 0, DaycareMon2Script, EVENT_DAYCARE_MON_2
person_event SPRITE_COOLTRAINER_F, 48, 11, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_TRAINER, 5, TrainerCooltrainerfIrene, -1
person_event SPRITE_COOLTRAINER_F, 48, 3, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_TRAINER, 3, TrainerCooltrainerfJenn, -1
person_event SPRITE_COOLTRAINER_F, 51, 6, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_TRAINER, 2, TrainerCooltrainerfKate, -1

View File

@ -26,9 +26,9 @@ Function1700c4: ; 1700c4
ld [$be46], a
ld hl, w3_dffc
ld de, $aa41
ld bc, $0004
ld bc, 4
call CopyBytes
ld hl, w3_d202
ld hl, w3_d202Name
ld de, $aa8e
ld bc, 7 * $cc ; length of battle tower struct from japanese games?
call CopyBytes
@ -44,7 +44,7 @@ Function1700c4: ; 1700c4
ld e, l
ld d, h
ld hl, w3_dffc
ld bc, $0004
ld bc, 4
call CopyBytes
call CloseSRAM
pop af
@ -54,17 +54,17 @@ Function1700c4: ; 1700c4
Function170114: ; 170114
call InitBattleTowerChallengeRAM
call Function170121
call .Function170121
callba Function11805f
ret
; 170121
Function170121: ; 170121
.Function170121: ; 170121
ld a, $5
call GetSRAMBank
ld hl, $a948
ld de, wMisc
ld bc, $00f6 ; 246
ld bc, $f6 ; 246
call CopyBytes
call CloseSRAM
call Function170c8b
@ -106,7 +106,7 @@ Function170139: ; 170139
ld e, l
ld d, h
ld hl, PlayerName
ld bc, $0005 ; Japanese name length
ld bc, 5 ; Japanese name length
call CopyBytes
ld bc, PlayerID
ld de, PlayerGender
@ -152,17 +152,17 @@ Function170139: ; 170139
ld a, $4
call GetSRAMBank
ld hl, $a013
ld bc, $0024
ld bc, $24
call CopyBytes
call CloseSRAM
ld a, $5
call GetSRAMBank
ld hl, $a894
ld bc, $0006
ld bc, 6
call CopyBytes
ld hl, wMisc
ld de, $a948
ld bc, $00f6
ld bc, $f6
call CopyBytes
call CloseSRAM
ret
@ -710,7 +710,7 @@ endr
ld hl, $a89c
ld de, StringBuffer3
ld bc, $0016
ld bc, $16
call CopyBytes
ld hl, $a8b2

View File

@ -1,12 +1,12 @@
Function108000: ; 108000
MobileTradeAnimation_SendGivemonToGTS: ; 108000
ld a, $80
ld [wcf65], a
ld de, Unknown_10800b
ld de, .TradeAnimScript
jp RunMobileTradeAnim_NoFrontpics
; 10800b
Unknown_10800b:
mobiletradeanim_showwondertradegivemon
.TradeAnimScript:
mobiletradeanim_showgtsgivemon
mobiletradeanim_12
mobiletradeanim_10
mobiletradeanim_sendmon
@ -14,23 +14,23 @@ Unknown_10800b:
mobiletradeanim_0f
mobiletradeanim_end
Function108012:
MobileTradeAnimation_RetrieveGivemonFromGTS:
ld a, $80
jr asm_108018
Function108016: ; 108016
MobileTradeAnimation_ReceiveGetmonFromGTS: ; 108016
ld a, $0
asm_108018:
ld [wcf65], a
ld de, Unknown_108021
ld de, .TradeAnimScript
jp RunMobileTradeAnim_NoFrontpics
; 108021
Unknown_108021:
.TradeAnimScript:
mobiletradeanim_11
mobiletradeanim_07
mobiletradeanim_receivemon
mobiletradeanim_showwondertradegetmon
mobiletradeanim_showgtsgetmon
mobiletradeanim_end
Function108026: ; 108026
@ -42,11 +42,11 @@ Function10802a: ; 10802a
asm_10802c:
ld [wcf65], a
ld de, Unknown_108035
ld de, .TradeAnimScript
jp RunMobileTradeAnim_Frontpics
; 108035
Unknown_108035: ; trade
.TradeAnimScript: ; trade
mobiletradeanim_showgivemon
mobiletradeanim_12
mobiletradeanim_02
@ -59,11 +59,11 @@ Unknown_108035: ; trade
Function10803d: ; 10803d
ld a, $0
ld [wcf65], a
ld de, Unknown_108048
ld de, .TradeAnimScript
jp RunMobileTradeAnim_NoFrontpics
; 108048
Unknown_108048:
.TradeAnimScript:
mobiletradeanim_11
mobiletradeanim_07
mobiletradeanim_receivemon
@ -73,13 +73,13 @@ Unknown_108048:
Function10804d: ; 10804d
ld a, $0
ld [wcf65], a
ld de, Unknown_108058
ld de, .TradeAnimScript
jp RunMobileTradeAnim_NoFrontpics
; 108058
Unknown_108058:
.TradeAnimScript:
mobiletradeanim_11
mobiletradeanim_showwondertradegetmon
mobiletradeanim_showgtsgetmon
mobiletradeanim_end
RunMobileTradeAnim_Frontpics: ; 10805b
@ -396,8 +396,8 @@ endr
jumptable MobileTradeAnim_GetTrademon3 ; 0a
jumptable MobileTradeAnim_ShowOTMonFromTrade ; 0b
jumptable EndMobileTradeAnim ; 0c
jumptable MobileTradeAnim_ShowPlayerMonForWonderTrade ; 0d
jumptable MobileTradeAnim_ShowOTMonFromWonderTrade ; 0e
jumptable MobileTradeAnim_ShowPlayerMonForGTS ; 0d
jumptable MobileTradeAnim_ShowOTMonFromGTS ; 0e
jumptable MobileTradeAnim_0f ; 0f
jumptable MobileTradeAnim_10 ; 10
jumptable MobileTradeAnim_11 ; 11
@ -599,7 +599,7 @@ MobileTradeAnim_ShowOTMonFromTrade: ; 10839b
ret
; 10842c
MobileTradeAnim_ShowPlayerMonForWonderTrade: ; 10842c
MobileTradeAnim_ShowPlayerMonForGTS: ; 10842c
ld de, MUSIC_EVOLUTION
call PlayMusic2
ld a, $80
@ -676,7 +676,7 @@ MobileTradeAnim_ShowPlayerMonForWonderTrade: ; 10842c
ret
; 1084d7
MobileTradeAnim_ShowOTMonFromWonderTrade: ; 1084d7
MobileTradeAnim_ShowOTMonFromGTS: ; 1084d7
call ClearBGPalettes
call ClearSprites
call ClearTileMap
@ -1672,15 +1672,15 @@ Function108c40: ; 108c40
ld a, $90
ld [hWY], a
ld a, [wcf65]
and $80
jr z, .asm_108c57
and %10000000
jr z, .Getmon
ld hl, .CameBack
call PrintText
ld c, 80
call DelayFrames
ret
.asm_108c57
.Getmon
ld hl, .TakeGoodCareOf
call PrintText
ld c, 80

View File

@ -7650,7 +7650,7 @@ Unknown_117356:
SECTION "Mobile Stadium", ROMX, BANK[$45]
Function117656: ; 117656
Special_GiveOddEgg: ; 117656
callba GiveOddEgg
ret
; 11765d

File diff suppressed because it is too large Load Diff

View File

@ -331,53 +331,53 @@ Function17d0f3: ; 17d0f3
ret
; 17d187
Function17d187: ; 17d187
ld hl, Unknown_17d194
Mobile_CopyDefaultOTName: ; 17d187
ld hl, Mobile5F_KrissName
ld de, $c63d
ld bc, $0005
ld bc, 5
call CopyBytes
ret
; 17d194
Unknown_17d194:
Mobile5F_KrissName:
db "クりス@@"
; 17d198
Function17d199: ; 17d199
ld hl, Unknown_17d1a6
Mobile_CopyDefaultNickname: ; 17d199
ld hl, .DefaultNickname
ld de, $c642
ld bc, $0005
ld bc, 5
call CopyBytes
ret
; 17d1a6
Unknown_17d1a6:
.DefaultNickname:
db "?????"
Function17d1ab: ; 17d1ab
ld a, $50
Mobile_CopyDefaultMail: ; 17d1ab
ld a, "@"
ld hl, $c647
ld bc, $0021
ld bc, MAIL_MSG_LENGTH + 1
call ByteFill
ld hl, Unknown_17d1c3
ld hl, .DefaultMessage
ld de, $c647
ld bc, $0006
ld bc, 6
call CopyBytes
ret
; 17d1c3
Unknown_17d1c3:
.DefaultMessage:
db "こんにちは@"
; 17d1c9
Function17d1c9: ; 17d1c9
ld a, $50
Mobile_CopyDefaultMailAuthor: ; 17d1c9
ld a, "@"
ld de, $c668
ld bc, $0005
ld bc, 5
call ByteFill
ld hl, Unknown_17d194
ld hl, Mobile5F_KrissName
ld de, $c668
ld bc, $0005
ld bc, 5
call CopyBytes
ret
; 17d1e1

View File

@ -1367,8 +1367,15 @@ wccba:: ds 102
SECTION "Video", WRAM0
CreditsPos::
BGMapBuffer:: ; cd20
wcd20:: ds 1
BGMapBuffer::
wMobileMonSpeciesPointerBuffer:: dw
wMobileMonStructurePointerBuffer:: dw
wMobileMonOTNamePointerBuffer:: dw
wMobileMonNicknamePointerBuffer:: dw
wMobileMonMailPointerBuffer:: dw
ds CreditsPos - @
wcd20:: ds 1 ; cd20
wcd21:: ds 1
wcd22::
CreditsTimer:: ; cd22
@ -1381,7 +1388,9 @@ wcd26:: ds 1
wcd27:: ds 1
wcd28:: ds 1
wcd29:: ds 1
wMobileMonSpeciesBuffer::
wcd2a:: ds 1
wTempOddEggNickname::
wcd2b:: ds 1
wcd2c:: ds 1
wcd2d:: ds 1