Route117_EventScript_1B222D:: @ 81B222D lock faceplayer special GetDaycareMonNicknames specialvar VAR_RESULT, GetDaycareState compare VAR_RESULT, 1 goto_if_eq Route117_EventScript_1B2262 compare VAR_RESULT, 2 goto_if_eq Route117_EventScript_1B22E7 compare VAR_RESULT, 3 goto_if_eq Route117_EventScript_1B22FE msgbox Route117_Text_1B25CB, MSGBOX_DEFAULT release end Route117_EventScript_1B2262:: @ 81B2262 msgbox Route117_Text_1B2659, MSGBOX_YESNO compare VAR_RESULT, YES goto_if_eq Route117_EventScript_1B2298 msgbox Route117_Text_1B28C4, MSGBOX_YESNO compare VAR_RESULT, YES goto_if_eq Route117_EventScript_1B2298 msgbox Route117_Text_1B2745, MSGBOX_DEFAULT clearflag FLAG_PENDING_DAYCARE_EGG special RejectEggFromDayCare release end Route117_EventScript_1B2298:: @ 81B2298 specialvar VAR_RESULT, CalculatePlayerPartyCount compare VAR_RESULT, 6 goto_if_ne Route117_EventScript_1B22B2 msgbox Route117_Text_1B2766, MSGBOX_DEFAULT release end Route117_EventScript_1B22B2:: @ 81B22B2 message Route117_Text_1B27A2 playfanfare MUS_LEVEL_UP waitfanfare waitmessage waitbuttonpress msgbox Route117_Text_1B27CD, MSGBOX_DEFAULT special GiveEggFromDaycare clearflag FLAG_PENDING_DAYCARE_EGG release end Route117_EventScript_1B22CD:: @ 81B22CD specialvar VAR_RESULT, DaycareMonReceivedMail compare VAR_RESULT, 1 call_if_eq Route117_EventScript_1B22DE return Route117_EventScript_1B22DE:: @ 81B22DE msgbox Route117_Text_1B27E3, MSGBOX_DEFAULT return Route117_EventScript_1B22E7:: @ 81B22E7 special GetDaycareMonNicknames msgbox Route117_Text_1B2710, MSGBOX_DEFAULT setvar VAR_0x8004, 0 call Route117_EventScript_1B22CD release end Route117_EventScript_1B22FE:: @ 81B22FE special GetDaycareMonNicknames msgbox Route117_Text_1B2897, MSGBOX_DEFAULT special SetDaycareCompatibilityString special ShowFieldMessageStringVar4 waitmessage waitbuttonpress setvar VAR_0x8004, 0 call Route117_EventScript_1B22CD setvar VAR_0x8004, 1 call Route117_EventScript_1B22CD release end Route117_PokemonDayCare_EventScript_1B2327:: @ 81B2327 lock faceplayer specialvar VAR_RESULT, GetDaycareState compare VAR_RESULT, 1 goto_if_eq Route117_PokemonDayCare_EventScript_1B2407 compare VAR_RESULT, 2 goto_if_eq Route117_PokemonDayCare_EventScript_1B242B compare VAR_RESULT, 3 goto_if_eq Route117_PokemonDayCare_EventScript_1B2558 msgbox Route117_PokemonDayCare_Text_1B28F2, MSGBOX_YESNO compare VAR_RESULT, YES goto_if_eq Route117_PokemonDayCare_EventScript_1B236C msgbox Route117_PokemonDayCare_Text_1B2A14, MSGBOX_DEFAULT release end Route117_PokemonDayCare_EventScript_1B236C:: @ 81B236C specialvar VAR_RESULT, GetNumValidDaycarePartyMons compare VAR_RESULT, 1 goto_if_eq Route117_PokemonDayCare_EventScript_1B23F3 msgbox Route117_PokemonDayCare_Text_1B2947, MSGBOX_DEFAULT fadescreen FADE_TO_BLACK special ChooseSendDaycareMon waitstate compare VAR_0x8004, 255 goto_if_eq Route117_PokemonDayCare_EventScript_1B23D0 specialvar VAR_RESULT, CountAlivePartyMonsExceptSelectedOne compare VAR_RESULT, 0 goto_if_eq Route117_PokemonDayCare_EventScript_1B23FD specialvar VAR_0x8005, GetSelectedDaycareMonNickname waitse playmoncry VAR_0x8005, 0 msgbox Route117_PokemonDayCare_Text_1B296E, MSGBOX_DEFAULT waitmoncry special StoreSelectedPokemonInDaycare incrementgamestat GAME_STAT_USED_DAYCARE specialvar VAR_RESULT, GetDaycareState compare VAR_RESULT, 2 goto_if_eq Route117_PokemonDayCare_EventScript_1B23DA release end Route117_PokemonDayCare_EventScript_1B23D0:: @ 81B23D0 msgbox Route117_PokemonDayCare_Text_1B2A76, MSGBOX_DEFAULT release end Route117_PokemonDayCare_EventScript_1B23DA:: @ 81B23DA msgbox Route117_PokemonDayCare_Text_1B29AD, MSGBOX_YESNO compare VAR_RESULT, YES goto_if_eq Route117_PokemonDayCare_EventScript_1B236C goto Route117_PokemonDayCare_EventScript_1B23D0 end Route117_PokemonDayCare_EventScript_1B23F3:: @ 81B23F3 msgbox Route117_PokemonDayCare_Text_1B2BBB, MSGBOX_DEFAULT release end Route117_PokemonDayCare_EventScript_1B23FD:: @ 81B23FD msgbox Route117_PokemonDayCare_Text_1B2C17, MSGBOX_DEFAULT release end Route117_PokemonDayCare_EventScript_1B2407:: @ 81B2407 msgbox Route117_PokemonDayCare_Text_1B29F4, MSGBOX_DEFAULT release end Route117_PokemonDayCare_EventScript_1B2411:: @ 81B2411 msgbox Route117_PokemonDayCare_Text_1B2ACC, MSGBOX_DEFAULT return Route117_PokemonDayCare_EventScript_1B241A:: @ 81B241A specialvar VAR_RESULT, GetNumLevelsGainedFromDaycare compare VAR_RESULT, 0 call_if_ne Route117_PokemonDayCare_EventScript_1B2411 return Route117_PokemonDayCare_EventScript_1B242B:: @ 81B242B msgbox Route117_PokemonDayCare_Text_1B2A88, MSGBOX_DEFAULT setvar VAR_0x8004, 0 call Route117_PokemonDayCare_EventScript_1B241A msgbox Route117_PokemonDayCare_Text_1B29AD, MSGBOX_YESNO compare VAR_RESULT, YES goto_if_eq Route117_PokemonDayCare_EventScript_1B236C msgbox Route117_PokemonDayCare_Text_1B2BF6, MSGBOX_YESNO compare VAR_RESULT, YES goto_if_eq Route117_PokemonDayCare_EventScript_1B2469 goto Route117_PokemonDayCare_EventScript_1B23D0 end Route117_PokemonDayCare_EventScript_1B2469:: @ 81B2469 specialvar VAR_RESULT, CalculatePlayerPartyCount compare VAR_RESULT, 6 goto_if_eq Route117_PokemonDayCare_EventScript_1B2539 specialvar VAR_RESULT, GetDaycareState setvar VAR_0x8004, 0 compare VAR_RESULT, 2 goto_if_eq Route117_PokemonDayCare_EventScript_1B24A8 special ShowDaycareLevelMenu waitstate copyvar VAR_0x8004, VAR_RESULT compare VAR_RESULT, 2 goto_if_eq Route117_PokemonDayCare_EventScript_1B23D0 goto Route117_PokemonDayCare_EventScript_1B24A8 end Route117_PokemonDayCare_EventScript_1B24A8:: @ 81B24A8 special GetDaycareCost msgbox Route117_PokemonDayCare_Text_1B2B49, MSGBOX_YESNO compare VAR_RESULT, YES goto_if_eq Route117_PokemonDayCare_EventScript_1B24C4 goto Route117_PokemonDayCare_EventScript_1B23D0 end Route117_PokemonDayCare_EventScript_1B24C4:: @ 81B24C4 specialvar VAR_RESULT, HasEnoughMoneyFor compare VAR_RESULT, 1 goto_if_eq Route117_PokemonDayCare_EventScript_1B24DE msgbox Route117_PokemonDayCare_Text_1B2A30, MSGBOX_DEFAULT release end Route117_PokemonDayCare_EventScript_1B24DE:: @ 81B24DE applymovement 1, Route117_PokemonDayCare_Movement_1B2543 waitmovement 0 specialvar VAR_RESULT, TakePokemonFromDaycare special PayMoneyFor playse SE_SHOP msgbox Route117_PokemonDayCare_Text_1B2B75, MSGBOX_DEFAULT waitse playmoncry VAR_RESULT, 0 msgbox Route117_PokemonDayCare_Text_1B2B93, MSGBOX_DEFAULT waitmoncry specialvar VAR_RESULT, GetDaycareState compare VAR_RESULT, 2 goto_if_eq Route117_PokemonDayCare_EventScript_1B2520 goto Route117_PokemonDayCare_EventScript_1B23D0 end Route117_PokemonDayCare_EventScript_1B2520:: @ 81B2520 msgbox Route117_PokemonDayCare_Text_1B2A4F, MSGBOX_YESNO compare VAR_RESULT, YES goto_if_eq Route117_PokemonDayCare_EventScript_1B2469 goto Route117_PokemonDayCare_EventScript_1B23D0 end Route117_PokemonDayCare_EventScript_1B2539:: @ 81B2539 msgbox Route117_PokemonDayCare_Text_1B2AEF, MSGBOX_DEFAULT release end Route117_PokemonDayCare_Movement_1B2543:: @ 81B2543 delay_16 delay_16 face_left delay_16 delay_16 face_right delay_16 delay_16 face_up walk_slow_up set_invisible delay_16 delay_16 delay_16 delay_16 delay_16 face_down set_visible walk_slow_down step_end @ 81B2557 end Route117_PokemonDayCare_EventScript_1B2558:: @ 81B2558 msgbox Route117_PokemonDayCare_Text_1B2A88, MSGBOX_DEFAULT setvar VAR_0x8004, 0 call Route117_PokemonDayCare_EventScript_1B241A setvar VAR_0x8004, 1 call Route117_PokemonDayCare_EventScript_1B241A msgbox Route117_PokemonDayCare_Text_1B2BF6, MSGBOX_YESNO compare VAR_RESULT, YES goto_if_eq Route117_PokemonDayCare_EventScript_1B2469 msgbox Route117_PokemonDayCare_Text_1B2A76, MSGBOX_DEFAULT release end @ 81B2591 special ShowDaycareLevelMenu waitstate compare VAR_RESULT, 2 goto_if_eq Route117_PokemonDayCare_EventScript_1B23D0 copyvar VAR_0x8004, VAR_RESULT specialvar VAR_RESULT, TakePokemonFromDaycare msgbox Route117_PokemonDayCare_Text_1B2B75, MSGBOX_DEFAULT msgbox Route117_PokemonDayCare_Text_1B2A76, MSGBOX_DEFAULT release end S_EggHatch:: @ 81B25BC lockall msgbox UnknownString_81B2C68, MSGBOX_DEFAULT special EggHatch waitstate releaseall end