Route7_EastEntrance_MapScripts:: .byte 0 Route7_EastEntrance_EventScript_Guard:: msgbox Route7_EastEntrance_Text_HiHowsItGoing, MSGBOX_NPC end Route7_EastEntrance_EventScript_GuardTriggerTop:: lockall setvar VAR_TEMP_1, 0 goto Route7_EastEntrance_EventScript_GuardTrigger end Route7_EastEntrance_EventScript_GuardTriggerMid:: lockall setvar VAR_TEMP_1, 1 goto Route7_EastEntrance_EventScript_GuardTrigger end Route7_EastEntrance_EventScript_GuardTriggerBottom:: lockall setvar VAR_TEMP_1, 2 goto Route7_EastEntrance_EventScript_GuardTrigger end Route7_EastEntrance_EventScript_GuardTrigger:: textcolor NPC_TEXT_COLOR_MALE applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterUp waitmovement 0 goto_if_set FLAG_GOT_TEA, Route7_EastEntrance_EventScript_GiveTea msgbox Route7_EastEntrance_Text_ThirstyOnGuardDuty closemessage applymovement OBJ_EVENT_ID_PLAYER, Route7_EastEntrance_Movement_BlockPlayerEntry waitmovement 0 releaseall end Route7_EastEntrance_EventScript_GiveTea:: removeitem ITEM_TEA goto Route7_EastEntrance_EventScript_GuardDrinkTea end Route7_EastEntrance_EventScript_GuardDrinkTea:: msgbox Route7_EastEntrance_Text_ThatTeaLooksTasty closemessage call_if_eq VAR_TEMP_1, 0, Route7_EastEntrance_WalkToGuardTop call_if_eq VAR_TEMP_1, 1, Route7_EastEntrance_WalkToGuardMid call_if_eq VAR_TEMP_1, 2, Route7_EastEntrance_WalkToGuardBottom msgbox Route7_EastEntrance_Text_ThanksIllShareTeaWithGuards setvar VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES, 1 releaseall end Route7_EastEntrance_WalkToGuardTop:: applymovement OBJ_EVENT_ID_PLAYER, Route7_EastEntrance_Movement_WalkToGuardTop waitmovement 0 return Route7_EastEntrance_WalkToGuardMid:: applymovement OBJ_EVENT_ID_PLAYER, Route7_EastEntrance_Movement_WalkToGuardMid waitmovement 0 return Route7_EastEntrance_WalkToGuardBottom:: applymovement OBJ_EVENT_ID_PLAYER, Route7_EastEntrance_Movement_WalkToGuardBottom waitmovement 0 return Route7_EastEntrance_Movement_WalkToGuardMid:: walk_up step_end Route7_EastEntrance_Movement_WalkToGuardBottom:: walk_up walk_up step_end Route7_EastEntrance_Movement_WalkToGuardTop:: walk_in_place_up step_end Route7_EastEntrance_Movement_BlockPlayerEntry:: walk_left step_end