mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 12:14:20 +01:00
440 lines
12 KiB
PHP
440 lines
12 KiB
PHP
Route117_EventScript_291C18:: @ 8291C18
|
||
lock
|
||
faceplayer
|
||
special GetDaycareMonNicknames
|
||
specialvar VAR_RESULT, GetDaycareState
|
||
compare VAR_RESULT, 1
|
||
goto_eq Route117_EventScript_291C4D
|
||
compare VAR_RESULT, 2
|
||
goto_eq Route117_EventScript_291CD1
|
||
compare VAR_RESULT, 3
|
||
goto_eq Route117_EventScript_291CE8
|
||
msgbox Route117_Text_291FCF, 4
|
||
release
|
||
end
|
||
|
||
Route117_EventScript_291C4D:: @ 8291C4D
|
||
msgbox Route117_Text_29205D, 5
|
||
compare VAR_RESULT, 1
|
||
goto_eq Route117_EventScript_291C83
|
||
msgbox Route117_Text_2922C6, 5
|
||
compare VAR_RESULT, 1
|
||
goto_eq Route117_EventScript_291C83
|
||
msgbox Route117_Text_292149, 4
|
||
clearflag FLAG_PENDING_DAYCARE_EGG
|
||
special RejectEggFromDayCare
|
||
release
|
||
end
|
||
|
||
Route117_EventScript_291C83:: @ 8291C83
|
||
specialvar VAR_RESULT, CalculatePlayerPartyCount
|
||
compare VAR_RESULT, 6
|
||
goto_if 5, Route117_EventScript_291C9D
|
||
msgbox Route117_Text_29216A, 4
|
||
release
|
||
end
|
||
|
||
Route117_EventScript_291C9D:: @ 8291C9D
|
||
message Route117_Text_2921A4
|
||
playfanfare MUS_FANFA1
|
||
waitfanfare
|
||
waitbuttonpress
|
||
msgbox Route117_Text_2921CF, 4
|
||
special GiveEggFromDaycare
|
||
clearflag FLAG_PENDING_DAYCARE_EGG
|
||
release
|
||
end
|
||
|
||
Route117_EventScript_291CB7:: @ 8291CB7
|
||
specialvar VAR_RESULT, sub_8071614
|
||
compare VAR_RESULT, 1
|
||
call_if 1, Route117_EventScript_291CC8
|
||
return
|
||
|
||
Route117_EventScript_291CC8:: @ 8291CC8
|
||
msgbox Route117_Text_2921E5, 4
|
||
return
|
||
|
||
Route117_EventScript_291CD1:: @ 8291CD1
|
||
special GetDaycareMonNicknames
|
||
msgbox Route117_Text_292114, 4
|
||
setvar VAR_0x8004, 0
|
||
call Route117_EventScript_291CB7
|
||
release
|
||
end
|
||
|
||
Route117_EventScript_291CE8:: @ 8291CE8
|
||
special GetDaycareMonNicknames
|
||
msgbox Route117_Text_292299, 4
|
||
special SetDaycareCompatibilityString
|
||
special ShowFieldMessageStringVar4
|
||
waitmessage
|
||
waitbuttonpress
|
||
setvar VAR_0x8004, 0
|
||
call Route117_EventScript_291CB7
|
||
setvar VAR_0x8004, 1
|
||
call Route117_EventScript_291CB7
|
||
release
|
||
end
|
||
|
||
Route117_PokemonDayCare_EventScript_291D11:: @ 8291D11
|
||
lock
|
||
faceplayer
|
||
specialvar VAR_RESULT, GetDaycareState
|
||
compare VAR_RESULT, 1
|
||
goto_eq Route117_PokemonDayCare_EventScript_291E0B
|
||
compare VAR_RESULT, 2
|
||
goto_eq Route117_PokemonDayCare_EventScript_291E2F
|
||
compare VAR_RESULT, 3
|
||
goto_eq Route117_PokemonDayCare_EventScript_291F5C
|
||
msgbox Route117_PokemonDayCare_Text_2922F4, 5
|
||
compare VAR_RESULT, 1
|
||
goto_eq Route117_PokemonDayCare_EventScript_291D56
|
||
msgbox Route117_PokemonDayCare_Text_292416, 4
|
||
release
|
||
end
|
||
|
||
Route117_PokemonDayCare_EventScript_291D56:: @ 8291D56
|
||
specialvar VAR_RESULT, CountPartyNonEggMons
|
||
compare VAR_RESULT, 1
|
||
goto_eq Route117_PokemonDayCare_EventScript_291DED
|
||
specialvar VAR_RESULT, sub_80722E0
|
||
compare VAR_RESULT, 2
|
||
goto_eq Route117_PokemonDayCare_EventScript_291E01
|
||
msgbox Route117_PokemonDayCare_Text_292349, 4
|
||
fadescreen 1
|
||
special ChooseSendDaycareMon
|
||
waitstate
|
||
compare VAR_0x8004, 255
|
||
goto_eq Route117_PokemonDayCare_EventScript_291DCA
|
||
specialvar VAR_RESULT, CountPartyAliveNonEggMons_IgnoreVar0x8004Slot
|
||
compare VAR_RESULT, 0
|
||
goto_eq Route117_PokemonDayCare_EventScript_291DF7
|
||
specialvar VAR_0x8005, GetSelectedMonNickAndSpecies
|
||
waitse
|
||
playmoncry VAR_0x8005, 0
|
||
msgbox Route117_PokemonDayCare_Text_292370, 4
|
||
waitmoncry
|
||
special StoreSelectedPokemonInDaycare
|
||
incrementgamestat 47
|
||
specialvar VAR_RESULT, GetDaycareState
|
||
compare VAR_RESULT, 2
|
||
goto_eq Route117_PokemonDayCare_EventScript_291DD4
|
||
release
|
||
end
|
||
|
||
Route117_PokemonDayCare_EventScript_291DCA:: @ 8291DCA
|
||
msgbox Route117_PokemonDayCare_Text_292476, 4
|
||
release
|
||
end
|
||
|
||
Route117_PokemonDayCare_EventScript_291DD4:: @ 8291DD4
|
||
msgbox Route117_PokemonDayCare_Text_2923AF, 5
|
||
compare VAR_RESULT, 1
|
||
goto_eq Route117_PokemonDayCare_EventScript_291D56
|
||
goto Route117_PokemonDayCare_EventScript_291DCA
|
||
end
|
||
|
||
Route117_PokemonDayCare_EventScript_291DED:: @ 8291DED
|
||
msgbox Route117_PokemonDayCare_Text_2925BB, 4
|
||
release
|
||
end
|
||
|
||
Route117_PokemonDayCare_EventScript_291DF7:: @ 8291DF7
|
||
msgbox Route117_PokemonDayCare_Text_292617, 4
|
||
release
|
||
end
|
||
|
||
Route117_PokemonDayCare_EventScript_291E01:: @ 8291E01
|
||
msgbox Route117_PokemonDayCare_Text_29266D, 4
|
||
release
|
||
end
|
||
|
||
Route117_PokemonDayCare_EventScript_291E0B:: @ 8291E0B
|
||
msgbox Route117_PokemonDayCare_Text_2923F6, 4
|
||
release
|
||
end
|
||
|
||
Route117_PokemonDayCare_EventScript_291E15:: @ 8291E15
|
||
msgbox Route117_PokemonDayCare_Text_2924CC, 4
|
||
return
|
||
|
||
Route117_PokemonDayCare_EventScript_291E1E:: @ 8291E1E
|
||
specialvar VAR_RESULT, GetNumLevelsGainedFromDaycare
|
||
compare VAR_RESULT, 0
|
||
call_if 5, Route117_PokemonDayCare_EventScript_291E15
|
||
return
|
||
|
||
Route117_PokemonDayCare_EventScript_291E2F:: @ 8291E2F
|
||
msgbox Route117_PokemonDayCare_Text_292488, 4
|
||
setvar VAR_0x8004, 0
|
||
call Route117_PokemonDayCare_EventScript_291E1E
|
||
msgbox Route117_PokemonDayCare_Text_2923AF, 5
|
||
compare VAR_RESULT, 1
|
||
goto_eq Route117_PokemonDayCare_EventScript_291D56
|
||
msgbox Route117_PokemonDayCare_Text_2925F6, 5
|
||
compare VAR_RESULT, 1
|
||
goto_eq Route117_PokemonDayCare_EventScript_291E6D
|
||
goto Route117_PokemonDayCare_EventScript_291DCA
|
||
end
|
||
|
||
Route117_PokemonDayCare_EventScript_291E6D:: @ 8291E6D
|
||
specialvar VAR_RESULT, CalculatePlayerPartyCount
|
||
compare VAR_RESULT, 6
|
||
goto_eq Route117_PokemonDayCare_EventScript_291F3D
|
||
specialvar VAR_RESULT, GetDaycareState
|
||
setvar VAR_0x8004, 0
|
||
compare VAR_RESULT, 2
|
||
goto_eq Route117_PokemonDayCare_EventScript_291EAC
|
||
special ShowDaycareLevelMenu
|
||
waitstate
|
||
copyvar VAR_0x8004, VAR_RESULT
|
||
compare VAR_RESULT, 2
|
||
goto_eq Route117_PokemonDayCare_EventScript_291DCA
|
||
goto Route117_PokemonDayCare_EventScript_291EAC
|
||
end
|
||
|
||
Route117_PokemonDayCare_EventScript_291EAC:: @ 8291EAC
|
||
special GetDaycareCost
|
||
msgbox Route117_PokemonDayCare_Text_292549, 5
|
||
compare VAR_RESULT, 1
|
||
goto_eq Route117_PokemonDayCare_EventScript_291EC8
|
||
goto Route117_PokemonDayCare_EventScript_291DCA
|
||
end
|
||
|
||
Route117_PokemonDayCare_EventScript_291EC8:: @ 8291EC8
|
||
specialvar VAR_RESULT, IsEnoughForCostInVar0x8005
|
||
compare VAR_RESULT, 1
|
||
goto_eq Route117_PokemonDayCare_EventScript_291EE2
|
||
msgbox Route117_PokemonDayCare_Text_292432, 4
|
||
release
|
||
end
|
||
|
||
Route117_PokemonDayCare_EventScript_291EE2:: @ 8291EE2
|
||
applymovement 1, Route117_PokemonDayCare_Movement_291F47
|
||
waitmovement 0
|
||
specialvar VAR_RESULT, TakePokemonFromDaycare
|
||
special SubtractMoneyFromVar0x8005
|
||
playse SE_REGI
|
||
msgbox Route117_PokemonDayCare_Text_292575, 4
|
||
waitse
|
||
playmoncry VAR_RESULT, 0
|
||
msgbox Route117_PokemonDayCare_Text_292593, 4
|
||
waitmoncry
|
||
specialvar VAR_RESULT, GetDaycareState
|
||
compare VAR_RESULT, 2
|
||
goto_eq Route117_PokemonDayCare_EventScript_291F24
|
||
goto Route117_PokemonDayCare_EventScript_291DCA
|
||
end
|
||
|
||
Route117_PokemonDayCare_EventScript_291F24:: @ 8291F24
|
||
msgbox Route117_PokemonDayCare_Text_29244F, 5
|
||
compare VAR_RESULT, 1
|
||
goto_eq Route117_PokemonDayCare_EventScript_291E6D
|
||
goto Route117_PokemonDayCare_EventScript_291DCA
|
||
end
|
||
|
||
Route117_PokemonDayCare_EventScript_291F3D:: @ 8291F3D
|
||
msgbox Route117_PokemonDayCare_Text_2924EF, 4
|
||
release
|
||
end
|
||
|
||
Route117_PokemonDayCare_Movement_291F47: @ 8291F47
|
||
step_14
|
||
step_14
|
||
step_02
|
||
step_14
|
||
step_14
|
||
step_03
|
||
step_14
|
||
step_14
|
||
step_01
|
||
slow_step_up
|
||
step_54
|
||
step_14
|
||
step_14
|
||
step_14
|
||
step_14
|
||
step_14
|
||
step_00
|
||
step_55
|
||
slow_step_down
|
||
step_end
|
||
|
||
Route117_PokemonDayCare_EventScript_291F5B:: @ 8291F5B
|
||
end
|
||
|
||
Route117_PokemonDayCare_EventScript_291F5C:: @ 8291F5C
|
||
msgbox Route117_PokemonDayCare_Text_292488, 4
|
||
setvar VAR_0x8004, 0
|
||
call Route117_PokemonDayCare_EventScript_291E1E
|
||
setvar VAR_0x8004, 1
|
||
call Route117_PokemonDayCare_EventScript_291E1E
|
||
msgbox Route117_PokemonDayCare_Text_2925F6, 5
|
||
compare VAR_RESULT, 1
|
||
goto_eq Route117_PokemonDayCare_EventScript_291E6D
|
||
msgbox Route117_PokemonDayCare_Text_292476, 4
|
||
release
|
||
end
|
||
|
||
Route117_PokemonDayCare_EventScript_291F95:: @ 8291F95
|
||
special ShowDaycareLevelMenu
|
||
waitstate
|
||
compare VAR_RESULT, 2
|
||
goto_eq Route117_PokemonDayCare_EventScript_291DCA
|
||
copyvar VAR_0x8004, VAR_RESULT
|
||
specialvar VAR_RESULT, TakePokemonFromDaycare
|
||
msgbox Route117_PokemonDayCare_Text_292575, 4
|
||
msgbox Route117_PokemonDayCare_Text_292476, 4
|
||
release
|
||
end
|
||
|
||
Route117_PokemonDayCare_EventScript_291FC0:: @ 8291FC0
|
||
lockall
|
||
msgbox Text_292668, 4
|
||
special EggHatch
|
||
waitstate
|
||
releaseall
|
||
end
|
||
|
||
Route117_Text_291FCF: @ 8291FCF
|
||
.string "I’m the DAY-CARE MAN.\p"
|
||
.string "I help take care of the precious\n"
|
||
.string "POKéMON of TRAINERS.\p"
|
||
.string "If you’d like me to raise your POKéMON,\n"
|
||
.string "have a word with my wife.$"
|
||
|
||
Route117_Text_29205D: @ 829205D
|
||
.string "Ah, it’s you!\p"
|
||
.string "We were raising your POKéMON,\n"
|
||
.string "and my goodness, were we surprised!\p"
|
||
.string "Your POKéMON had an EGG!\p"
|
||
.string "We don’t know how it got there,\n"
|
||
.string "but your POKéMON had it.\p"
|
||
.string "You do want it, yes?$"
|
||
|
||
Route117_Text_292114: @ 8292114
|
||
.string "Ah, it’s you! Good to see you.\n"
|
||
.string "Your {STR_VAR_1}’s doing fine.$"
|
||
|
||
Route117_Text_292149: @ 8292149
|
||
.string "Well then, I’ll keep it.\n"
|
||
.string "Thanks!$"
|
||
|
||
Route117_Text_29216A: @ 829216A
|
||
.string "You have no room for it…\n"
|
||
.string "Come back when you’ve made room.$"
|
||
|
||
Route117_Text_2921A4: @ 82921A4
|
||
.string "{PLAYER} received the EGG from\n"
|
||
.string "the DAY-CARE MAN.$"
|
||
|
||
Route117_Text_2921CF: @ 82921CF
|
||
.string "Take good care of it.$"
|
||
|
||
Route117_Text_2921E5: @ 82921E5
|
||
.string "By the way, about your {STR_VAR_1},\n"
|
||
.string "it seemed to be friendly with\l"
|
||
.string "{STR_VAR_2}’s {STR_VAR_3}.\p"
|
||
.string "I may even have seen it receiving\n"
|
||
.string "a piece of MAIL.$"
|
||
|
||
Route117_Text_29225A: @ 829225A
|
||
.string "If you want to pick up your POKéMON,\n"
|
||
.string "have a word with my wife.$"
|
||
|
||
Route117_Text_292299: @ 8292299
|
||
.string "Ah, it’s you! Your {STR_VAR_1} and\n"
|
||
.string "{STR_VAR_2} are doing fine.$"
|
||
|
||
Route117_Text_2922C6: @ 82922C6
|
||
.string "I really will keep it.\n"
|
||
.string "You do want this, yes?$"
|
||
|
||
Route117_PokemonDayCare_Text_2922F4: @ 82922F4
|
||
.string "I’m the DAY-CARE LADY.\p"
|
||
.string "We can raise POKéMON for you.\p"
|
||
.string "Would you like us to raise one?$"
|
||
|
||
Route117_PokemonDayCare_Text_292349: @ 8292349
|
||
.string "Which POKéMON should we raise for\n"
|
||
.string "you?$"
|
||
|
||
Route117_PokemonDayCare_Text_292370: @ 8292370
|
||
.string "Fine, we’ll raise your {STR_VAR_1}\n"
|
||
.string "for a while.\p"
|
||
.string "Come back for it later.$"
|
||
|
||
Route117_PokemonDayCare_Text_2923AF: @ 82923AF
|
||
.string "We can raise two of your POKéMON.\n"
|
||
.string "Would you like us to raise one more?$"
|
||
|
||
Route117_PokemonDayCare_Text_2923F6: @ 82923F6
|
||
.string "My husband was looking for you.$"
|
||
|
||
Route117_PokemonDayCare_Text_292416: @ 8292416
|
||
.string "Oh, fine, then.\n"
|
||
.string "Come again.$"
|
||
|
||
Route117_PokemonDayCare_Text_292432: @ 8292432
|
||
.string "You don’t have enough money…$"
|
||
|
||
Route117_PokemonDayCare_Text_29244F: @ 829244F
|
||
.string "Will you take back the other one,\n"
|
||
.string "too?$"
|
||
|
||
Route117_PokemonDayCare_Text_292476: @ 8292476
|
||
.string "Fine.\n"
|
||
.string "Come again.$"
|
||
|
||
Route117_PokemonDayCare_Text_292488: @ 8292488
|
||
.string "Ah, it’s you! Good to see you.\n"
|
||
.string "Your POKéMON can only be doing good!$"
|
||
|
||
Route117_PokemonDayCare_Text_2924CC: @ 82924CC
|
||
.string "By level, your {STR_VAR_1} has\n"
|
||
.string "grown by {STR_VAR_2}.$"
|
||
|
||
Route117_PokemonDayCare_Text_2924EF: @ 82924EF
|
||
.string "Your POKéMON team is full.\n"
|
||
.string "Make room, then come see me.$"
|
||
|
||
Route117_PokemonDayCare_Text_292527: @ 8292527
|
||
.string "Which POKéMON will you take back?$"
|
||
|
||
Route117_PokemonDayCare_Text_292549: @ 8292549
|
||
.string "If you want your {STR_VAR_1} back,\n"
|
||
.string "it will cost ¥{STR_VAR_2}.$"
|
||
|
||
Route117_PokemonDayCare_Text_292575: @ 8292575
|
||
.string "Perfect!\n"
|
||
.string "Here’s your POKéMON.$"
|
||
|
||
Route117_PokemonDayCare_Text_292593: @ 8292593
|
||
.string "{PLAYER} took back {STR_VAR_1} from\n"
|
||
.string "the DAY-CARE LADY.$"
|
||
|
||
Route117_PokemonDayCare_Text_2925BB: @ 82925BB
|
||
.string "Oh? But you have just one\n"
|
||
.string "POKéMON.\p"
|
||
.string "Come back another time.$"
|
||
|
||
Route117_PokemonDayCare_Text_2925F6: @ 82925F6
|
||
.string "Will you take your POKéMON back?$"
|
||
|
||
Route117_PokemonDayCare_Text_292617: @ 8292617
|
||
.string "If you leave me that POKéMON,\n"
|
||
.string "what will you battle with?\p"
|
||
.string "Come back another time.$"
|
||
|
||
Text_292668: @ 8292668
|
||
.string "Huh?$"
|
||
|
||
Route117_PokemonDayCare_Text_29266D: @ 829266D
|
||
.string "Huh?\n"
|
||
.string "Now, now.\p"
|
||
.string "If you leave that POKéMON with\n"
|
||
.string "me, you’ll be left with just one.\p"
|
||
.string "You will be better off if you catch\n"
|
||
.string "some more, I dare say.$"
|