Merge branch 'master' into doc-partymenu

This commit is contained in:
GriffinR
2019-10-31 14:22:51 -04:00
committed by GitHub
219 changed files with 7959 additions and 7663 deletions

View File

@@ -1,16 +1,16 @@
BerryTreeScript:: @ 82742F9
special EventObjectInteractionGetBerryTreeData
switch VAR_0x8004
case 255, BerryTree_EventScript_27434F
case 0, BerryTree_EventScript_CheckSoil
case 1, BerryTree_EventScript_CheckBerryStage1
case 2, BerryTree_EventScript_CheckBerryStage2
case 3, BerryTree_EventScript_CheckBerryStage3
case 4, BerryTree_EventScript_CheckBerryStage4
case 5, BerryTree_EventScript_CheckBerryFullyGrown
case BERRY_STAGE_SPARKLING, BerryTree_EventScript_Sparkling
case BERRY_STAGE_NO_BERRY, BerryTree_EventScript_CheckSoil
case BERRY_STAGE_PLANTED, BerryTree_EventScript_CheckBerryStage1
case BERRY_STAGE_SPROUTED, BerryTree_EventScript_CheckBerryStage2
case BERRY_STAGE_TALLER, BerryTree_EventScript_CheckBerryStage3
case BERRY_STAGE_FLOWERING, BerryTree_EventScript_CheckBerryStage4
case BERRY_STAGE_BERRIES, BerryTree_EventScript_CheckBerryFullyGrown
end
BerryTree_EventScript_27434F:: @ 827434F
BerryTree_EventScript_Sparkling:: @ 827434F
lockall
message BerryTree_Text_ExclamationPoint
waitmessage
@@ -22,7 +22,7 @@ BerryTree_EventScript_CheckSoil:: @ 8274359
lock
faceplayer
specialvar VAR_RESULT, PlayerHasBerries
compare VAR_RESULT, 1
compare VAR_RESULT, TRUE
goto_if_eq BerryTree_EventScript_WantToPlant
message BerryTree_Text_ItsSoftLoamySoil
waitmessage
@@ -85,6 +85,8 @@ BerryTree_EventScript_CheckBerryStage4:: @ 82743E1
waitbuttonpress
goto BerryTree_EventScript_WantToWater
@ VAR_0x8005 here is the number of times watered
@ Buffered by EventObjectInteractionGetBerryTreeData
BerryTree_EventScript_GetCareAdverb:: @ 82743F6
compare VAR_0x8005, 0
goto_if_eq BerryTree_EventScript_SetAdverbPoor
@@ -101,6 +103,7 @@ BerryTree_EventScript_SetAdverbPoor:: @ 827441A
bufferstring 1, BerryTree_Text_CareAdverbPoor
return
@ VAR_0x8006 here is the number of berries
BerryTree_EventScript_CheckBerryFullyGrown:: @ 8274421
buffernumberstring 1, VAR_0x8006
lock
@@ -116,7 +119,7 @@ BerryTree_EventScript_PickBerry:: @ 8274448
special EventObjectInteractionPickBerryTree
compare VAR_0x8004, 0
goto_if_eq BerryTree_EventScript_BerryPocketFull
special sub_80EED34
special IncrementDailyPickedBerries
special EventObjectInteractionRemoveBerryTree
message BerryTree_Text_PickedTheBerry
playfanfare MUS_ME_KINOMI
@@ -143,7 +146,7 @@ BerryTree_EventScript_CancelPickingBerry:: @ 8274479
release
end
BerryTree_EventScript_274482:: @ 8274482
BerryTree_EventScript_ItemUsePlantBerry:: @ 8274482
lockall
special EventObjectInteractionGetBerryTreeData
call BerryTree_EventScript_PlantBerry
@@ -165,10 +168,9 @@ BerryTree_EventScript_DontWater:: @ 82744BE
releaseall
end
BerryTree_EventScript_2744C0:: @ 82744C0
BerryTree_EventScript_ItemUseWailmerPail:: @ 82744C0
special EventObjectInteractionGetBerryTreeData
lockall
BerryTree_EventScript_WaterBerry:: @ 82744C4
special EventObjectInteractionGetBerryName
message BerryTree_Text_WateredTheBerry
@@ -185,7 +187,7 @@ BerryTree_EventScript_WaterBerry:: @ 82744C4
BerryTree_EventScript_PlantBerry:: @ 82744DD
special EventObjectInteractionPlantBerryTree
incrementgamestat GAME_STAT_PLANTED_BERRIES
special sub_80EED10
special IncrementDailyPlantedBerries
special EventObjectInteractionGetBerryCountString
message BerryTree_Text_PlantedOneBerry
waitmessage

4
data/scripts/flash.inc Normal file
View File

@@ -0,0 +1,4 @@
EventScript_FldEffFlash:: @ 82926F8
animateflash 1
setflashradius 1
end

View File

@@ -1,337 +1,332 @@
@ Unused
EventScript_28CCAA:: @ 828CCAA
setvar VAR_0x8005, 8
special InterviewBefore
compare VAR_RESULT, 1
goto_if_eq EventScript_28CCC6
goto_if_eq EventScript_UnusedRet
setvar VAR_0x8005, 8
special InterviewAfter
return
EventScript_28CCC6:: @ 828CCC6
EventScript_UnusedRet:: @ 828CCC6
return
Route111_EventScript_28CCC7:: @ 828CCC7
Route118_EventScript_28CCC7:: @ 828CCC7
Route120_EventScript_28CCC7:: @ 828CCC7
@ Gabby and Ty always move to the same spots for the first 5 battles
@ From the 6th battle onwards, they move randomly between locations 6-8
GabbyAndTy_EventScript_UpdateLocation:: @ 828CCC7
cleartrainerflag TRAINER_GABBY_AND_TY_6
specialvar VAR_RESULT, GabbyAndTyGetBattleNum
switch VAR_RESULT
case 0, Route111_EventScript_28CD38
case 1, Route111_EventScript_28CD3E
case 2, Route111_EventScript_28CD49
case 3, Route111_EventScript_28CD54
case 4, Route111_EventScript_28CD5F
case 5, Route111_EventScript_28CD6A
case 6, Route111_EventScript_28CD75
case 7, Route111_EventScript_28CD80
case 8, Route111_EventScript_28CD8B
case 0, GabbyAndTy_EventScript_MoveForBattle1
case 1, GabbyAndTy_EventScript_MoveForBattle2
case 2, GabbyAndTy_EventScript_MoveForBattle3
case 3, GabbyAndTy_EventScript_MoveForBattle4
case 4, GabbyAndTy_EventScript_MoveForBattle5
case 5, GabbyAndTy_EventScript_MoveForBattle6
case 6, GabbyAndTy_EventScript_MoveForBattle7
case 7, GabbyAndTy_EventScript_MoveForBattle8
case 8, GabbyAndTy_EventScript_MoveForBattle9
end
Route111_EventScript_28CD38:: @ 828CD38
call Route111_EventScript_28CD9A
GabbyAndTy_EventScript_MoveForBattle1:: @ 828CD38
call GabbyAndTy_EventScript_ShowAtRoute111_1
return
Route111_EventScript_28CD3E:: @ 828CD3E
call Route111_EventScript_28CDA2
call Route111_EventScript_28CD96
GabbyAndTy_EventScript_MoveForBattle2:: @ 828CD3E
call GabbyAndTy_EventScript_ShowAtRoute118_1
call GabbyAndTy_EventScript_HideAtRoute111_1
return
Route111_EventScript_28CD49:: @ 828CD49
call Route111_EventScript_28CDAA
call Route111_EventScript_28CD9E
GabbyAndTy_EventScript_MoveForBattle3:: @ 828CD49
call GabbyAndTy_EventScript_ShowAtRoute120_1
call GabbyAndTy_EventScript_HideAtRoute118_1
return
Route111_EventScript_28CD54:: @ 828CD54
call Route111_EventScript_28CDB2
call Route111_EventScript_28CDA6
GabbyAndTy_EventScript_MoveForBattle4:: @ 828CD54
call GabbyAndTy_EventScript_ShowAtRoute111_3
call GabbyAndTy_EventScript_HideAtRoute120_1
return
Route111_EventScript_28CD5F:: @ 828CD5F
call Route111_EventScript_28CDBA
call Route111_EventScript_28CDAE
GabbyAndTy_EventScript_MoveForBattle5:: @ 828CD5F
call GabbyAndTy_EventScript_ShowAtRoute118_2
call GabbyAndTy_EventScript_HideAtRoute111_3
return
Route111_EventScript_28CD6A:: @ 828CD6A
call Route111_EventScript_28CDC2
call Route111_EventScript_28CDB6
GabbyAndTy_EventScript_MoveForBattle6:: @ 828CD6A
call GabbyAndTy_EventScript_ShowAtRoute120_2
call GabbyAndTy_EventScript_HideAtRoute118_2
return
Route111_EventScript_28CD75:: @ 828CD75
call Route111_EventScript_28CDCA
call Route111_EventScript_28CDBE
GabbyAndTy_EventScript_MoveForBattle7:: @ 828CD75
call GabbyAndTy_EventScript_ShowAtRoute111_2
call GabbyAndTy_EventScript_HideAtRoute120_2
return
Route111_EventScript_28CD80:: @ 828CD80
call Route111_EventScript_28CDD2
call Route111_EventScript_28CDC6
GabbyAndTy_EventScript_MoveForBattle8:: @ 828CD80
call GabbyAndTy_EventScript_ShowAtRoute118_3
call GabbyAndTy_EventScript_HideAtRoute111_2
return
Route111_EventScript_28CD8B:: @ 828CD8B
call Route111_EventScript_28CDC2
call Route111_EventScript_28CDCE
GabbyAndTy_EventScript_MoveForBattle9:: @ 828CD8B
call GabbyAndTy_EventScript_ShowAtRoute120_2
call GabbyAndTy_EventScript_HideAtRoute118_3
return
Route111_EventScript_28CD96:: @ 828CD96
GabbyAndTy_EventScript_HideAtRoute111_1:: @ 828CD96
setflag FLAG_HIDE_ROUTE_111_GABBY_AND_TY_1
return
Route111_EventScript_28CD9A:: @ 828CD9A
GabbyAndTy_EventScript_ShowAtRoute111_1:: @ 828CD9A
clearflag FLAG_HIDE_ROUTE_111_GABBY_AND_TY_1
return
Route111_EventScript_28CD9E:: @ 828CD9E
GabbyAndTy_EventScript_HideAtRoute118_1:: @ 828CD9E
setflag FLAG_HIDE_ROUTE_118_GABBY_AND_TY_1
return
Route111_EventScript_28CDA2:: @ 828CDA2
GabbyAndTy_EventScript_ShowAtRoute118_1:: @ 828CDA2
clearflag FLAG_HIDE_ROUTE_118_GABBY_AND_TY_1
return
Route111_EventScript_28CDA6:: @ 828CDA6
GabbyAndTy_EventScript_HideAtRoute120_1:: @ 828CDA6
setflag FLAG_HIDE_ROUTE_120_GABBY_AND_TY_1
return
Route111_EventScript_28CDAA:: @ 828CDAA
GabbyAndTy_EventScript_ShowAtRoute120_1:: @ 828CDAA
clearflag FLAG_HIDE_ROUTE_120_GABBY_AND_TY_1
return
Route111_EventScript_28CDAE:: @ 828CDAE
GabbyAndTy_EventScript_HideAtRoute111_3:: @ 828CDAE
setflag FLAG_HIDE_ROUTE_111_GABBY_AND_TY_3
return
Route111_EventScript_28CDB2:: @ 828CDB2
GabbyAndTy_EventScript_ShowAtRoute111_3:: @ 828CDB2
clearflag FLAG_HIDE_ROUTE_111_GABBY_AND_TY_3
return
Route111_EventScript_28CDB6:: @ 828CDB6
GabbyAndTy_EventScript_HideAtRoute118_2:: @ 828CDB6
setflag FLAG_HIDE_ROUTE_118_GABBY_AND_TY_2
return
Route111_EventScript_28CDBA:: @ 828CDBA
GabbyAndTy_EventScript_ShowAtRoute118_2:: @ 828CDBA
clearflag FLAG_HIDE_ROUTE_118_GABBY_AND_TY_2
return
Route111_EventScript_28CDBE:: @ 828CDBE
GabbyAndTy_EventScript_HideAtRoute120_2:: @ 828CDBE
setflag FLAG_HIDE_ROUTE_120_GABBY_AND_TY_2
return
Route111_EventScript_28CDC2:: @ 828CDC2
GabbyAndTy_EventScript_ShowAtRoute120_2:: @ 828CDC2
clearflag FLAG_HIDE_ROUTE_120_GABBY_AND_TY_2
return
Route111_EventScript_28CDC6:: @ 828CDC6
GabbyAndTy_EventScript_HideAtRoute111_2:: @ 828CDC6
setflag FLAG_HIDE_ROUTE_111_GABBY_AND_TY_2
return
Route111_EventScript_28CDCA:: @ 828CDCA
GabbyAndTy_EventScript_ShowAtRoute111_2:: @ 828CDCA
clearflag FLAG_HIDE_ROUTE_111_GABBY_AND_TY_2
return
Route111_EventScript_28CDCE:: @ 828CDCE
GabbyAndTy_EventScript_HideAtRoute118_3:: @ 828CDCE
setflag FLAG_HIDE_ROUTE_118_GABBY_AND_TY_3
return
Route111_EventScript_28CDD2:: @ 828CDD2
GabbyAndTy_EventScript_ShowAtRoute118_3:: @ 828CDD2
clearflag FLAG_HIDE_ROUTE_118_GABBY_AND_TY_3
return
Route111_EventScript_28CDD6:: @ 828CDD6
trainerbattle_double TRAINER_GABBY_AND_TY_1, Route111_Text_28AF05, Route111_Text_28B000, Route111_Text_28B5EC, Route111_EventScript_28CF56
msgbox Route111_Text_28B5C0, MSGBOX_DEFAULT
GabbyAndTy_EventScript_GabbyBattle1:: @ 828CDD6
trainerbattle_double TRAINER_GABBY_AND_TY_1, GabbyAndTy_Text_GabbyPreFirstBattle, GabbyAndTy_Text_GabbyDefeatFirstTime, GabbyAndTy_Text_GabbyNotEnoughMons, GabbyAndTy_EventScript_FirstInterview
msgbox GabbyAndTy_Text_KeepingAnEyeOutForYou, MSGBOX_DEFAULT
release
end
Route111_EventScript_28CDF6:: @ 828CDF6
trainerbattle_double TRAINER_GABBY_AND_TY_1, Route111_Text_28B75C, Route111_Text_28B8B1, Route111_Text_28B841, Route111_EventScript_28CF56
msgbox Route111_Text_28B805, MSGBOX_DEFAULT
GabbyAndTy_EventScript_TyBattle1:: @ 828CDF6
trainerbattle_double TRAINER_GABBY_AND_TY_1, GabbyAndTy_Text_TyPreFirstBattle, GabbyAndTy_Text_TyDefeatFirstTime, GabbyAndTy_Text_TyNotEnoughMons, GabbyAndTy_EventScript_FirstInterview
msgbox GabbyAndTy_Text_TyPostBattle, MSGBOX_DEFAULT
release
end
Route118_EventScript_28CE16:: @ 828CE16
trainerbattle_double TRAINER_GABBY_AND_TY_2, Route118_Text_28AF7D, Route118_Text_28B719, Route118_Text_28B5EC, Route118_EventScript_28CFC3
msgbox Route118_Text_28B5C0, MSGBOX_DEFAULT
GabbyAndTy_EventScript_GabbyBattle2:: @ 828CE16
trainerbattle_double TRAINER_GABBY_AND_TY_2, GabbyAndTy_Text_GabbyPreBattle, GabbyAndTy_Text_GabbyDefeat, GabbyAndTy_Text_GabbyNotEnoughMons, GabbyAndTy_EventScript_RequestInterview
msgbox GabbyAndTy_Text_KeepingAnEyeOutForYou, MSGBOX_DEFAULT
release
end
Route118_EventScript_28CE36:: @ 828CE36
trainerbattle_double TRAINER_GABBY_AND_TY_2, Route118_Text_28B7B1, Route118_Text_28B8F6, Route118_Text_28B841, Route118_EventScript_28CFC3
msgbox Route118_Text_28B805, MSGBOX_DEFAULT
GabbyAndTy_EventScript_TyBattle2:: @ 828CE36
trainerbattle_double TRAINER_GABBY_AND_TY_2, GabbyAndTy_Text_TyPreBattle, GabbyAndTy_Text_TyDefeat, GabbyAndTy_Text_TyNotEnoughMons, GabbyAndTy_EventScript_RequestInterview
msgbox GabbyAndTy_Text_TyPostBattle, MSGBOX_DEFAULT
release
end
Route120_EventScript_28CE56:: @ 828CE56
trainerbattle_double TRAINER_GABBY_AND_TY_3, Route120_Text_28AF7D, Route120_Text_28B719, Route120_Text_28B5EC, Route120_EventScript_28CFC3
msgbox Route120_Text_28B5C0, MSGBOX_DEFAULT
GabbyAndTy_EventScript_GabbyBattle3:: @ 828CE56
trainerbattle_double TRAINER_GABBY_AND_TY_3, GabbyAndTy_Text_GabbyPreBattle, GabbyAndTy_Text_GabbyDefeat, GabbyAndTy_Text_GabbyNotEnoughMons, GabbyAndTy_EventScript_RequestInterview
msgbox GabbyAndTy_Text_KeepingAnEyeOutForYou, MSGBOX_DEFAULT
release
end
Route120_EventScript_28CE76:: @ 828CE76
trainerbattle_double TRAINER_GABBY_AND_TY_3, Route120_Text_28B7B1, Route120_Text_28B8F6, Route120_Text_28B841, Route120_EventScript_28CFC3
msgbox Route120_Text_28B805, MSGBOX_DEFAULT
GabbyAndTy_EventScript_TyBattle3:: @ 828CE76
trainerbattle_double TRAINER_GABBY_AND_TY_3, GabbyAndTy_Text_TyPreBattle, GabbyAndTy_Text_TyDefeat, GabbyAndTy_Text_TyNotEnoughMons, GabbyAndTy_EventScript_RequestInterview
msgbox GabbyAndTy_Text_TyPostBattle, MSGBOX_DEFAULT
release
end
Route111_EventScript_28CE96:: @ 828CE96
trainerbattle_double TRAINER_GABBY_AND_TY_4, Route111_Text_28AF7D, Route111_Text_28B719, Route111_Text_28B5EC, Route111_EventScript_28CFC3
msgbox Route111_Text_28B5C0, MSGBOX_DEFAULT
GabbyAndTy_EventScript_GabbyBattle4:: @ 828CE96
trainerbattle_double TRAINER_GABBY_AND_TY_4, GabbyAndTy_Text_GabbyPreBattle, GabbyAndTy_Text_GabbyDefeat, GabbyAndTy_Text_GabbyNotEnoughMons, GabbyAndTy_EventScript_RequestInterview
msgbox GabbyAndTy_Text_KeepingAnEyeOutForYou, MSGBOX_DEFAULT
release
end
Route111_EventScript_28CEB6:: @ 828CEB6
trainerbattle_double TRAINER_GABBY_AND_TY_4, Route111_Text_28B7B1, Route111_Text_28B8F6, Route111_Text_28B841, Route111_EventScript_28CFC3
msgbox Route111_Text_28B805, MSGBOX_DEFAULT
GabbyAndTy_EventScript_TyBattle4:: @ 828CEB6
trainerbattle_double TRAINER_GABBY_AND_TY_4, GabbyAndTy_Text_TyPreBattle, GabbyAndTy_Text_TyDefeat, GabbyAndTy_Text_TyNotEnoughMons, GabbyAndTy_EventScript_RequestInterview
msgbox GabbyAndTy_Text_TyPostBattle, MSGBOX_DEFAULT
release
end
Route118_EventScript_28CED6:: @ 828CED6
trainerbattle_double TRAINER_GABBY_AND_TY_5, Route118_Text_28AF7D, Route118_Text_28B719, Route118_Text_28B5EC, Route118_EventScript_28CFC3
msgbox Route118_Text_28B5C0, MSGBOX_DEFAULT
Route118_EventScript_GabbyBattle5:: @ 828CED6
trainerbattle_double TRAINER_GABBY_AND_TY_5, GabbyAndTy_Text_GabbyPreBattle, GabbyAndTy_Text_GabbyDefeat, GabbyAndTy_Text_GabbyNotEnoughMons, GabbyAndTy_EventScript_RequestInterview
msgbox GabbyAndTy_Text_KeepingAnEyeOutForYou, MSGBOX_DEFAULT
release
end
Route118_EventScript_28CEF6:: @ 828CEF6
trainerbattle_double TRAINER_GABBY_AND_TY_5, Route118_Text_28B7B1, Route118_Text_28B8F6, Route118_Text_28B841, Route118_EventScript_28CFC3
msgbox Route118_Text_28B805, MSGBOX_DEFAULT
Route118_EventScript_TyBattle5:: @ 828CEF6
trainerbattle_double TRAINER_GABBY_AND_TY_5, GabbyAndTy_Text_TyPreBattle, GabbyAndTy_Text_TyDefeat, GabbyAndTy_Text_TyNotEnoughMons, GabbyAndTy_EventScript_RequestInterview
msgbox GabbyAndTy_Text_TyPostBattle, MSGBOX_DEFAULT
release
end
Route111_EventScript_28CF16:: @ 828CF16
Route118_EventScript_28CF16:: @ 828CF16
Route120_EventScript_28CF16:: @ 828CF16
trainerbattle_double TRAINER_GABBY_AND_TY_6, Route111_Text_28AF7D, Route111_Text_28B719, Route111_Text_28B5EC, Route111_EventScript_28CFC3
msgbox Route111_Text_28B5C0, MSGBOX_DEFAULT
GabbyAndTy_EventScript_GabbyBattle6:: @ 828CF16
trainerbattle_double TRAINER_GABBY_AND_TY_6, GabbyAndTy_Text_GabbyPreBattle, GabbyAndTy_Text_GabbyDefeat, GabbyAndTy_Text_GabbyNotEnoughMons, GabbyAndTy_EventScript_RequestInterview
msgbox GabbyAndTy_Text_KeepingAnEyeOutForYou, MSGBOX_DEFAULT
release
end
Route111_EventScript_28CF36:: @ 828CF36
Route118_EventScript_28CF36:: @ 828CF36
Route120_EventScript_28CF36:: @ 828CF36
trainerbattle_double TRAINER_GABBY_AND_TY_6, Route111_Text_28B7B1, Route111_Text_28B8F6, Route111_Text_28B841, Route111_EventScript_28CFC3
msgbox Route111_Text_28B805, MSGBOX_DEFAULT
GabbyAndTy_EventScript_TyBattle6:: @ 828CF36
trainerbattle_double TRAINER_GABBY_AND_TY_6, GabbyAndTy_Text_TyPreBattle, GabbyAndTy_Text_TyDefeat, GabbyAndTy_Text_TyNotEnoughMons, GabbyAndTy_EventScript_RequestInterview
msgbox GabbyAndTy_Text_TyPostBattle, MSGBOX_DEFAULT
release
end
Route111_EventScript_28CF56:: @ 828CF56
GabbyAndTy_EventScript_FirstInterview:: @ 828CF56
special GabbyAndTyBeforeInterview
special GabbyAndTySetScriptVarsToEventObjectLocalIds
compare VAR_FACING, DIR_NORTH
call_if_eq Route111_EventScript_28CF94
call_if_eq GabbyAndTy_EventScript_FacePlayerNorth
compare VAR_FACING, DIR_SOUTH
call_if_eq Route111_EventScript_28CF9F
call_if_eq GabbyAndTy_EventScript_FacePlayerSouth
compare VAR_FACING, DIR_EAST
call_if_eq Route111_EventScript_28CFB1
goto_if_set FLAG_TEMP_1, Route111_EventScript_28D0EE
msgbox Route111_Text_28B042, MSGBOX_YESNO
goto Route111_EventScript_28D0A7
call_if_eq GabbyAndTy_EventScript_FacePlayerEast
goto_if_set FLAG_TEMP_1, GabbyAndTy_EventScript_KeepingAnEyeOutForYou
msgbox GabbyAndTy_Text_WhoAreYouInterview, MSGBOX_YESNO
goto GabbyAndTy_EventScript_Interview
end
Route111_EventScript_28CF94:: @ 828CF94
applymovement VAR_0x8004, Route111_Movement_28D04D
GabbyAndTy_EventScript_FacePlayerNorth:: @ 828CF94
applymovement VAR_0x8004, GabbyAndTy_Movement_WalkInPlaceDown
waitmovement 0
return
Route111_EventScript_28CF9F:: @ 828CF9F
applymovement VAR_0x8004, Route111_Movement_28D04F
GabbyAndTy_EventScript_FacePlayerSouth:: @ 828CF9F
applymovement VAR_0x8004, GabbyAndTy_Movement_WalkInPlaceUp
applymovement VAR_0x8005, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
return
Route111_EventScript_28CFB1:: @ 828CFB1
applymovement VAR_0x8004, Route111_Movement_28D051
GabbyAndTy_EventScript_FacePlayerEast:: @ 828CFB1
applymovement VAR_0x8004, GabbyAndTy_Movement_WalkInPlaceLeft
applymovement VAR_0x8005, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
Route111_EventScript_28CFC3:: @ 828CFC3
Route118_EventScript_28CFC3:: @ 828CFC3
Route120_EventScript_28CFC3:: @ 828CFC3
GabbyAndTy_EventScript_RequestInterview:: @ 828CFC3
special GabbyAndTyBeforeInterview
special GabbyAndTySetScriptVarsToEventObjectLocalIds
compare VAR_FACING, DIR_NORTH
call_if_eq Route111_EventScript_28CF94
call_if_eq GabbyAndTy_EventScript_FacePlayerNorth
compare VAR_FACING, DIR_SOUTH
call_if_eq Route111_EventScript_28CF9F
call_if_eq GabbyAndTy_EventScript_FacePlayerSouth
compare VAR_FACING, DIR_EAST
call_if_eq Route111_EventScript_28CFB1
goto_if_set FLAG_TEMP_1, Route111_EventScript_28D0EE
call_if_eq GabbyAndTy_EventScript_FacePlayerEast
goto_if_set FLAG_TEMP_1, GabbyAndTy_EventScript_KeepingAnEyeOutForYou
specialvar VAR_RESULT, GabbyAndTyGetLastQuote
compare VAR_RESULT, 0
goto_if_eq Route111_EventScript_28D053
msgbox Route111_Text_28B137, MSGBOX_DEFAULT
goto_if_eq GabbyAndTy_EventScript_DidntInterviewLastTime
msgbox GabbyAndTy_Text_QuoteFromLastInterview, MSGBOX_DEFAULT
specialvar VAR_RESULT, GabbyAndTyGetLastBattleTrivia
switch VAR_RESULT
case 0, Route111_EventScript_28D061
case 1, Route111_EventScript_28D06F
case 2, Route111_EventScript_28D07D
case 3, Route111_EventScript_28D08B
case 4, Route111_EventScript_28D099
case 0, GabbyAndTy_EventScript_RequestInterviewNoTrivia
case 1, GabbyAndTy_EventScript_RequestInterviewShortBattle
case 2, GabbyAndTy_EventScript_RequestInterviewThrewBall
case 3, GabbyAndTy_EventScript_RequestInterviewUsedItems
case 4, GabbyAndTy_EventScript_RequestInterviewLostAMon
end
Route111_Movement_28D04D: @ 828D04D
GabbyAndTy_Movement_WalkInPlaceDown: @ 828D04D
walk_in_place_down
step_end
Route111_Movement_28D04F: @ 828D04F
GabbyAndTy_Movement_WalkInPlaceUp: @ 828D04F
walk_in_place_up
step_end
Route111_Movement_28D051: @ 828D051
GabbyAndTy_Movement_WalkInPlaceLeft: @ 828D051
walk_in_place_left
step_end
Route111_EventScript_28D053:: @ 828D053
msgbox Route111_Text_28B62D, MSGBOX_YESNO
goto Route111_EventScript_28D0A7
GabbyAndTy_EventScript_DidntInterviewLastTime:: @ 828D053
msgbox GabbyAndTy_Text_GiveUsAnInterviewThisTime, MSGBOX_YESNO
goto GabbyAndTy_EventScript_Interview
end
Route111_EventScript_28D061:: @ 828D061
msgbox Route111_Text_28B3F3, MSGBOX_YESNO
goto Route111_EventScript_28D0A7
GabbyAndTy_EventScript_RequestInterviewNoTrivia:: @ 828D061
msgbox GabbyAndTy_Text_InterviewAgain, MSGBOX_YESNO
goto GabbyAndTy_EventScript_Interview
end
Route111_EventScript_28D06F:: @ 828D06F
msgbox Route111_Text_28B1B3, MSGBOX_YESNO
goto Route111_EventScript_28D0A7
GabbyAndTy_EventScript_RequestInterviewShortBattle:: @ 828D06F
msgbox GabbyAndTy_Text_YouStompedUsInterviewAgain, MSGBOX_YESNO
goto GabbyAndTy_EventScript_Interview
end
Route111_EventScript_28D07D:: @ 828D07D
msgbox Route111_Text_28B23D, MSGBOX_YESNO
goto Route111_EventScript_28D0A7
GabbyAndTy_EventScript_RequestInterviewThrewBall:: @ 828D07D
msgbox GabbyAndTy_Text_YouThrewABallAtUsInterviewAgain, MSGBOX_YESNO
goto GabbyAndTy_EventScript_Interview
end
Route111_EventScript_28D08B:: @ 828D08B
msgbox Route111_Text_28B2FA, MSGBOX_YESNO
goto Route111_EventScript_28D0A7
GabbyAndTy_EventScript_RequestInterviewUsedItems:: @ 828D08B
msgbox GabbyAndTy_Text_CleverItemSkillsInterviewAgain, MSGBOX_YESNO
goto GabbyAndTy_EventScript_Interview
end
Route111_EventScript_28D099:: @ 828D099
msgbox Route111_Text_28B379, MSGBOX_YESNO
goto Route111_EventScript_28D0A7
GabbyAndTy_EventScript_RequestInterviewLostAMon:: @ 828D099
msgbox GabbyAndTy_Text_WeLookedRespectableInterviewAgain, MSGBOX_YESNO
goto GabbyAndTy_EventScript_Interview
end
Route111_EventScript_28D0A7:: @ 828D0A7
GabbyAndTy_EventScript_Interview:: @ 828D0A7
compare VAR_RESULT, 0
goto_if_eq Route111_EventScript_28D0E1
msgbox Route111_Text_28B433, MSGBOX_DEFAULT
goto_if_eq GabbyAndTy_EventScript_DontGiveUpKeepingEyeOut
msgbox GabbyAndTy_Text_DescribeYourFeelings, MSGBOX_DEFAULT
setvar VAR_0x8004, EASY_CHAT_TYPE_GABBY_AND_TY
call Common_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 0
goto_if_eq Route111_EventScript_28D0E1
msgbox Route111_Text_28B4AB, MSGBOX_DEFAULT
goto_if_eq GabbyAndTy_EventScript_DontGiveUpKeepingEyeOut
msgbox GabbyAndTy_Text_PerfectWellBeSeeingYou, MSGBOX_DEFAULT
special GabbyAndTyAfterInterview
setflag FLAG_TEMP_1
release
end
Route111_EventScript_28D0E1:: @ 828D0E1
msgbox Route111_Text_28B577, MSGBOX_DEFAULT
GabbyAndTy_EventScript_DontGiveUpKeepingEyeOut:: @ 828D0E1
msgbox GabbyAndTy_Text_DontGiveUpKeepingEyeOut, MSGBOX_DEFAULT
setflag FLAG_TEMP_1
release
end
Route111_EventScript_28D0EE:: @ 828D0EE
msgbox Route111_Text_28B5C0, MSGBOX_DEFAULT
GabbyAndTy_EventScript_KeepingAnEyeOutForYou:: @ 828D0EE
msgbox GabbyAndTy_Text_KeepingAnEyeOutForYou, MSGBOX_DEFAULT
release
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,110 +1,110 @@
PetalburgCity_PokemonCenter_1F_EventScript_291539:: @ 8291539
MysteryEventClub_EventScript_Man:: @ 8291539
lock
faceplayer
goto_if_set FLAG_SYS_CHAT_USED, PetalburgCity_PokemonCenter_1F_EventScript_2915F5
msgbox PetalburgCity_PokemonCenter_1F_Text_291687, MSGBOX_DEFAULT
goto PetalburgCity_PokemonCenter_1F_EventScript_291552
goto_if_set FLAG_SYS_CHAT_USED, MysteryEventClub_EventScript_2915F5
msgbox MysteryEventClub_Text_CollectTrainerProfiles, MSGBOX_DEFAULT
goto MysteryEventClub_EventScript_291552
end
PetalburgCity_PokemonCenter_1F_EventScript_291552:: @ 8291552
msgbox PetalburgCity_PokemonCenter_1F_Text_2916FF, MSGBOX_DEFAULT
MysteryEventClub_EventScript_291552:: @ 8291552
msgbox MysteryEventClub_Text_2916FF, MSGBOX_DEFAULT
multichoice 17, 6, MULTI_YESNOINFO_2, 0
switch VAR_RESULT
case 0, PetalburgCity_PokemonCenter_1F_EventScript_29159F
case 1, PetalburgCity_PokemonCenter_1F_EventScript_2915EB
case 2, PetalburgCity_PokemonCenter_1F_EventScript_291591
case MULTI_B_PRESSED, PetalburgCity_PokemonCenter_1F_EventScript_2915EB
case 0, MysteryEventClub_EventScript_29159F
case 1, MysteryEventClub_EventScript_2915EB
case 2, MysteryEventClub_EventScript_291591
case MULTI_B_PRESSED, MysteryEventClub_EventScript_2915EB
end
PetalburgCity_PokemonCenter_1F_EventScript_291591:: @ 8291591
msgbox PetalburgCity_PokemonCenter_1F_Text_291729, MSGBOX_DEFAULT
goto PetalburgCity_PokemonCenter_1F_EventScript_291552
MysteryEventClub_EventScript_291591:: @ 8291591
msgbox MysteryEventClub_Text_EasyChatExplanation, MSGBOX_DEFAULT
goto MysteryEventClub_EventScript_291552
end
PetalburgCity_PokemonCenter_1F_EventScript_29159F:: @ 829159F
msgbox PetalburgCity_PokemonCenter_1F_Text_291969, MSGBOX_DEFAULT
MysteryEventClub_EventScript_29159F:: @ 829159F
msgbox MysteryEventClub_Text_291969, MSGBOX_DEFAULT
closemessage
setvar VAR_0x8004, EASY_CHAT_TYPE_PROFILE
call Common_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 0
goto_if_eq PetalburgCity_PokemonCenter_1F_EventScript_2915CB
goto_if_eq MysteryEventClub_EventScript_2915CB
compare VAR_RESULT, 1
goto_if_eq PetalburgCity_PokemonCenter_1F_EventScript_2915D5
goto_if_eq MysteryEventClub_EventScript_2915D5
end
PetalburgCity_PokemonCenter_1F_EventScript_2915CB:: @ 82915CB
msgbox PetalburgCity_PokemonCenter_1F_Text_2919DC, MSGBOX_DEFAULT
MysteryEventClub_EventScript_2915CB:: @ 82915CB
msgbox MysteryEventClub_Text_2919DC, MSGBOX_DEFAULT
release
end
PetalburgCity_PokemonCenter_1F_EventScript_2915D5:: @ 82915D5
MysteryEventClub_EventScript_2915D5:: @ 82915D5
setvar VAR_0x8004, 0
special sub_811EECC
waitmessage
delay 80
msgbox PetalburgCity_PokemonCenter_1F_Text_291B22, MSGBOX_DEFAULT
msgbox MysteryEventClub_Text_291B22, MSGBOX_DEFAULT
release
end
PetalburgCity_PokemonCenter_1F_EventScript_2915EB:: @ 82915EB
msgbox PetalburgCity_PokemonCenter_1F_Text_291991, MSGBOX_DEFAULT
MysteryEventClub_EventScript_2915EB:: @ 82915EB
msgbox MysteryEventClub_Text_291991, MSGBOX_DEFAULT
release
end
PetalburgCity_PokemonCenter_1F_EventScript_2915F5:: @ 82915F5
msgbox PetalburgCity_PokemonCenter_1F_Text_291A1B, MSGBOX_DEFAULT
goto PetalburgCity_PokemonCenter_1F_EventScript_291603
MysteryEventClub_EventScript_2915F5:: @ 82915F5
msgbox MysteryEventClub_Text_YouHaveWonderfulSmile, MSGBOX_DEFAULT
goto MysteryEventClub_EventScript_291603
end
PetalburgCity_PokemonCenter_1F_EventScript_291603:: @ 8291603
msgbox PetalburgCity_PokemonCenter_1F_Text_291A4F, MSGBOX_DEFAULT
MysteryEventClub_EventScript_291603:: @ 8291603
msgbox MysteryEventClub_Text_MayISeeYourNewProfile, MSGBOX_DEFAULT
multichoice 17, 6, MULTI_YESNOINFO_2, 0
switch VAR_RESULT
case 0, PetalburgCity_PokemonCenter_1F_EventScript_291650
case 1, PetalburgCity_PokemonCenter_1F_EventScript_29167C
case 2, PetalburgCity_PokemonCenter_1F_EventScript_291642
case MULTI_B_PRESSED, PetalburgCity_PokemonCenter_1F_EventScript_29167C
case 0, MysteryEventClub_EventScript_291650
case 1, MysteryEventClub_EventScript_29167C
case 2, MysteryEventClub_EventScript_291642
case MULTI_B_PRESSED, MysteryEventClub_EventScript_29167C
end
PetalburgCity_PokemonCenter_1F_EventScript_291642:: @ 8291642
msgbox PetalburgCity_PokemonCenter_1F_Text_291729, MSGBOX_DEFAULT
goto PetalburgCity_PokemonCenter_1F_EventScript_291603
MysteryEventClub_EventScript_291642:: @ 8291642
msgbox MysteryEventClub_Text_EasyChatExplanation, MSGBOX_DEFAULT
goto MysteryEventClub_EventScript_291603
end
PetalburgCity_PokemonCenter_1F_EventScript_291650:: @ 8291650
msgbox PetalburgCity_PokemonCenter_1F_Text_291A6B, MSGBOX_DEFAULT
MysteryEventClub_EventScript_291650:: @ 8291650
msgbox MysteryEventClub_Text_291A6B, MSGBOX_DEFAULT
closemessage
setvar VAR_0x8004, EASY_CHAT_TYPE_PROFILE
call Common_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 0
goto_if_eq PetalburgCity_PokemonCenter_1F_EventScript_2915CB
goto_if_eq MysteryEventClub_EventScript_2915CB
compare VAR_RESULT, 1
goto_if_eq PetalburgCity_PokemonCenter_1F_EventScript_2915D5
goto_if_eq MysteryEventClub_EventScript_2915D5
end
PetalburgCity_PokemonCenter_1F_EventScript_29167C:: @ 829167C
msgbox PetalburgCity_PokemonCenter_1F_Text_291ABA, MSGBOX_DEFAULT
MysteryEventClub_EventScript_29167C:: @ 829167C
msgbox MysteryEventClub_Text_291ABA, MSGBOX_DEFAULT
release
end
PetalburgCity_PokemonCenter_1F_EventScript_291686:: @ 8291686
MysteryEventClub_EventScript_291686:: @ 8291686
return
PetalburgCity_PokemonCenter_1F_Text_291687: @ 8291687
MysteryEventClub_Text_CollectTrainerProfiles: @ 8291687
.string "Hello there, TRAINER!\n"
.string "You've got a wonderful smile, there.\p"
.string "I have a hobby--collecting the profiles\n"
.string "of POKéMON TRAINERS.$"
PetalburgCity_PokemonCenter_1F_Text_2916FF: @ 82916FF
MysteryEventClub_Text_2916FF: @ 82916FF
.string "So, how about it?\n"
.string "May I see your profile?$"
PetalburgCity_PokemonCenter_1F_Text_291729: @ 8291729
MysteryEventClub_Text_EasyChatExplanation: @ 8291729
.string "You make your own profile by putting\n"
.string "together four words or phrases.\p"
.string "Here, I'll show you an example of a\n"
@@ -123,37 +123,37 @@ PetalburgCity_PokemonCenter_1F_Text_291729: @ 8291729
.string "Repeat for the remaining text choices,\n"
.string "and you'll have your very own profile.$"
PetalburgCity_PokemonCenter_1F_Text_291969: @ 8291969
MysteryEventClub_Text_291969: @ 8291969
.string "Yes! Thank you!\n"
.string "So, let's see it, then.$"
PetalburgCity_PokemonCenter_1F_Text_291991: @ 8291991
MysteryEventClub_Text_291991: @ 8291991
.string "Oh, no, really?\p"
.string "I imagine someone like you would have\n"
.string "a wonderful profile…$"
PetalburgCity_PokemonCenter_1F_Text_2919DC: @ 82919DC
MysteryEventClub_Text_2919DC: @ 82919DC
.string "Oh? You're not into it right now?\p"
.string "Well, anytime is good by me!$"
PetalburgCity_PokemonCenter_1F_Text_291A1B: @ 8291A1B
MysteryEventClub_Text_YouHaveWonderfulSmile: @ 8291A1B
.string "Hello there, TRAINER!\n"
.string "You've got a wonderful smile.$"
PetalburgCity_PokemonCenter_1F_Text_291A4F: @ 8291A4F
MysteryEventClub_Text_MayISeeYourNewProfile: @ 8291A4F
.string "May I see your new profile?$"
PetalburgCity_PokemonCenter_1F_Text_291A6B: @ 8291A6B
MysteryEventClub_Text_291A6B: @ 8291A6B
.string "Yes! Thank you!\p"
.string "I hope it's even better than the profile\n"
.string "you showed me before.$"
PetalburgCity_PokemonCenter_1F_Text_291ABA: @ 8291ABA
MysteryEventClub_Text_291ABA: @ 8291ABA
.string "Oh, you like your profile the way it is.\p"
.string "I don't blame you--it's a wonderful\n"
.string "profile the way it is now.$"
PetalburgCity_PokemonCenter_1F_Text_291B22: @ 8291B22
MysteryEventClub_Text_291B22: @ 8291B22
.string "F-fantastic!\p"
.string "Your profile, it's wonderful!\n"
.string "It really says what you're about.\p"
@@ -161,7 +161,7 @@ PetalburgCity_PokemonCenter_1F_Text_291B22: @ 8291B22
.string "be captivated by you!\p"
.string "Thank you!$"
PetalburgCity_PokemonCenter_1F_Text_291BB7: @ 8291BB7
MysteryEventClub_Text_291BB7: @ 8291BB7
.string "Oh?\n"
.string "You know the secret saying!\p"
.string "That means you're now a fellow member\n"

View File

@@ -102,7 +102,7 @@ EventScript_ResetAllMapFlags:: @ 82715DE
setflag FLAG_HIDE_BRINEYS_HOUSE_PEEKO
setflag FLAG_HIDE_ROUTE_104_MR_BRINEY
setflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN
setflag FLAG_HIDE_ROUTE_108_MR_BRINEY
setflag FLAG_HIDE_ROUTE_109_MR_BRINEY
setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD_TOWN
setflag FLAG_HIDE_ROUTE_109_MR_BRINEY_BOAT
setflag FLAG_HIDE_ROUTE_104_WHITE_HERB_FLORIST
@@ -117,7 +117,7 @@ EventScript_ResetAllMapFlags:: @ 82715DE
setflag FLAG_HIDE_PETALBURG_GYM_GREETER
setflag FLAG_HIDE_PETALBURG_GYM_WALLYS_UNCLE
setflag FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_BRENDAN
setflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_BRENDAN
setflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_MAY
setflag FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_RIVAL_BEDROOM
setflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_RIVAL_BEDROOM
setflag FLAG_HIDE_PLAYERS_HOUSE_DAD

View File

@@ -0,0 +1,208 @@
Std_ObtainItem:: @ 8271AD3
giveitem VAR_0x8000, VAR_0x8001
copyvar VAR_0x8007, VAR_RESULT
call EventScript_ObtainItemMessage
return
EventScript_ObtainItemMessage:: @ 8271AE3
bufferitemnameplural 1, VAR_0x8000, VAR_0x8001
checkitemtype VAR_0x8000
call EventScript_BufferPocketNameAndTryFanfare
compare VAR_0x8007, 1
call_if_eq EventScript_ObtainedItem
compare VAR_0x8007, 0
call_if_eq EventScript_NoRoomForItem
return
EventScript_BufferPocketNameAndTryFanfare:: @ 8271B08
switch VAR_RESULT
case POCKET_ITEMS, EventScript_BufferItemsPocket
case POCKET_KEY_ITEMS, EventScript_BufferKeyItemsPocket
case POCKET_POKE_BALLS, EventScript_BufferPokeballsPocket
case POCKET_TM_HM, EventScript_BufferTMHMsPocket
case POCKET_BERRIES, EventScript_BufferBerriesPocket
end
EventScript_BufferItemsPocket:: @ 8271B45
bufferstdstring 2, STDSTRING_ITEMS
compare VAR_0x8007, 1
call_if_eq EventScript_PlayFanfareObtainedItem
return
EventScript_BufferKeyItemsPocket:: @ 8271B55
bufferstdstring 2, STDSTRING_KEYITEMS
compare VAR_0x8007, 1
call_if_eq EventScript_PlayFanfareObtainedItem
return
EventScript_BufferPokeballsPocket:: @ 8271B65
bufferstdstring 2, STDSTRING_POKEBALLS
compare VAR_0x8007, 1
call_if_eq EventScript_PlayFanfareObtainedItem
return
EventScript_BufferTMHMsPocket:: @ 8271B75
bufferstdstring 2, STDSTRING_TMHMS
compare VAR_0x8007, 1
call_if_eq EventScript_PlayFanfareObtainedTMHM
return
EventScript_BufferBerriesPocket:: @ 8271B85
bufferstdstring 2, STDSTRING_BERRIES
compare VAR_0x8007, 1
call_if_eq EventScript_PlayFanfareObtainedItem
return
EventScript_ObtainedItem:: @ 8271B95
message gText_ObtainedTheItem
waitfanfare
msgbox gText_PutItemInPocket, MSGBOX_DEFAULT
setvar VAR_RESULT, 1
return
EventScript_NoRoomForItem:: @ 8271BA9
setvar VAR_RESULT, 0
return
EventScript_PlayFanfareObtainedItem:: @ 8271BAF
playfanfare MUS_FANFA4
return
EventScript_PlayFanfareObtainedTMHM:: @ 8271BB3
playfanfare MUS_ME_WAZA
return
Std_ObtainDecoration:: @ 8271BB7
givedecoration VAR_0x8000
copyvar VAR_0x8007, VAR_RESULT
call EventScript_ObtainDecorationMessage
return
EventScript_ObtainDecorationMessage:: @ 8271BC5
bufferdecorationname 1, VAR_0x8000
compare VAR_0x8007, 1
call_if_eq EventScript_ObtainedDecor
compare VAR_0x8007, 0
call_if_eq EventScript_NoRoomForDecor
return
EventScript_ObtainedDecor:: @ 8271BE0
playfanfare MUS_FANFA4
message gText_ObtainedTheDecor
waitfanfare
msgbox gText_TheDecorWasTransferredToThePC, MSGBOX_DEFAULT
setvar VAR_RESULT, 1
return
EventScript_NoRoomForDecor:: @ 8271BF7
setvar VAR_RESULT, 0
return
Std_FindItem:: @ 8271BFD
lock
faceplayer
waitse
copyvar VAR_0x8004, VAR_0x8000
copyvar VAR_0x8005, VAR_0x8001
checkitemspace VAR_0x8000, VAR_0x8001
copyvar VAR_0x8007, VAR_RESULT
bufferitemnameplural 1, VAR_0x8000, VAR_0x8001
checkitemtype VAR_0x8000
call EventScript_BufferPocketNameAndTryFanfare
compare VAR_0x8007, 1
call_if_eq EventScript_PickUpItem
compare VAR_0x8007, 0
call_if_eq EventScript_NoRoomToPickUpItem
release
return
EventScript_PickUpItem:: @ 8271C3A
removeobject VAR_LAST_TALKED
giveitem VAR_0x8004, VAR_0x8005
specialvar VAR_RESULT, BufferTMHMMoveName
copyvar VAR_0x8008, VAR_RESULT
compare VAR_0x8008, 1
call_if_eq EventScript_FoundTMHM
compare VAR_0x8008, 0
call_if_eq EventScript_FoundItem
waitfanfare
waitmessage
bufferitemnameplural 1, VAR_0x8004, VAR_0x8005
setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_IS_IN
special CallBattlePyramidFunction
compare VAR_RESULT, 1
goto_if_eq EventScript_PutBattlePyramidItemInBag
msgbox gText_PutItemInPocket, MSGBOX_DEFAULT
return
EventScript_PutBattlePyramidItemInBag:: @ 8271C86
msgbox gText_PlayerPutItemInBag, MSGBOX_DEFAULT
return
EventScript_FoundTMHM:: @ 8271C8F
bufferitemnameplural 0, VAR_0x8004, VAR_0x8005
message gText_PlayerFoundOneTMHM
return
EventScript_FoundItem:: @ 8271C9B
message gText_PlayerFoundOneItem
return
EventScript_NoRoomToPickUpItem:: @ 8271CA1
msgbox gText_ObtainedTheItem, MSGBOX_DEFAULT
msgbox gText_TooBadBagIsFull, MSGBOX_DEFAULT
setvar VAR_RESULT, 0
return
EventScript_HiddenItemScript:: @ 8271CB7
lockall
waitse
giveitem VAR_0x8005, 1
copyvar VAR_0x8007, VAR_RESULT
bufferitemnameplural 1, VAR_0x8005, 1
checkitemtype VAR_0x8005
call EventScript_BufferPocketNameAndTryFanfare
compare VAR_0x8007, 1
goto_if_eq EventScript_PickUpHiddenItem
compare VAR_0x8007, 0
goto_if_eq EventScript_NoRoomForHiddenItem
end
EventScript_PickUpHiddenItem:: @ 8271CE8
copyvar VAR_0x8008, VAR_0x8004
copyvar VAR_0x8004, VAR_0x8005
specialvar VAR_RESULT, BufferTMHMMoveName
compare VAR_RESULT, 1
goto_if_eq EventScript_FoundHiddenTMHM
compare VAR_RESULT, 0
goto_if_eq EventScript_FoundHiddenItem
end
EventScript_FoundHiddenTMHM:: @ 8271D0E
bufferitemnameplural 0, VAR_0x8004, 1
message gText_PlayerFoundOneTMHM
goto EventScript_PutHiddenItemInPocket
end
EventScript_FoundHiddenItem:: @ 8271D1F
message gText_PlayerFoundOneItem
goto EventScript_PutHiddenItemInPocket
end
EventScript_PutHiddenItemInPocket:: @ 8271D2A
waitmessage
waitfanfare
bufferitemnameplural 1, VAR_0x8004, 1
copyvar VAR_0x8004, VAR_0x8008
msgbox gText_PutItemInPocket, MSGBOX_DEFAULT
special TryPutTreasureInvestigatorsOnAir
special SetHiddenItemFlag
releaseall
end
EventScript_NoRoomForHiddenItem:: @ 8271D47
msgbox gText_PlayerFoundOneItem, MSGBOX_DEFAULT
msgbox gText_TooBadBagIsFull, MSGBOX_DEFAULT
setvar VAR_RESULT, 0
releaseall
end

View File

@@ -0,0 +1,52 @@
@ VAR_0x8004 here is used by ChangePokemonNickname
Common_EventScript_GetGiftMonPartySlot:: @ 827378B
getpartysize
subvar VAR_RESULT, 1
copyvar VAR_0x8004, VAR_RESULT
return
Common_EventScript_NameReceivedBoxMon:: @ 8273797
fadescreen 1
special ChangeBoxPokemonNickname
waitstate
lock
faceplayer
return
Common_EventScript_TransferredToPC:: @ 82737A0
bufferboxname 0, VAR_PC_BOX_TO_SEND_MON
bufferspeciesname 1, VAR_TEMP_1
call_if_unset FLAG_SYS_PC_LANETTE, EventScript_TransferredSomeonesPC
call_if_set FLAG_SYS_PC_LANETTE, EventScript_TransferredLanettesPC
return
EventScript_TransferredSomeonesPC:: @ 82737BB
specialvar VAR_RESULT, ShouldShowBoxWasFullMessage
compare VAR_RESULT, 1
goto_if_eq EventScript_SomeonesPCBoxFull
msgbox gText_PkmnTransferredSomeonesPC, MSGBOX_DEFAULT
return
EventScript_SomeonesPCBoxFull:: @ 82737D4
specialvar VAR_RESULT, GetPCBoxToSendMon
bufferboxname 2, VAR_RESULT
msgbox gText_PkmnTransferredSomeonesPCBoxFull, MSGBOX_DEFAULT
return
EventScript_TransferredLanettesPC:: @ 82737E6
specialvar VAR_RESULT, ShouldShowBoxWasFullMessage
compare VAR_RESULT, 1
goto_if_eq EventScript_LanettesPCBoxFull
msgbox gText_PkmnTransferredLanettesPC, MSGBOX_DEFAULT
return
EventScript_LanettesPCBoxFull:: @ 82737FF
specialvar VAR_RESULT, GetPCBoxToSendMon
bufferboxname 2, VAR_RESULT
msgbox gText_PkmnTransferredLanettesPCBoxFull, MSGBOX_DEFAULT
return
Common_EventScript_NoMoreRoomForPokemon:: @ 8273811
msgbox gText_NoMoreRoomForPokemon, MSGBOX_DEFAULT
release
end

View File

@@ -1,67 +1,63 @@
LittlerootTown_BrendansHouse_2F_EventScript_2926FE:: @ 82926FE
LittlerootTown_MaysHouse_2F_EventScript_2926FE:: @ 82926FE
PlayersHouse_2F_EventScript_BlockStairsUntilClockIsSet:: @ 82926FE
setvar VAR_LITTLEROOT_INTRO_STATE, 5
return
LittlerootTown_BrendansHouse_1F_EventScript_292704:: @ 8292704
LittlerootTown_MaysHouse_1F_EventScript_292704:: @ 8292704
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7A1C, MSGBOX_DEFAULT
PlayersHouse_1F_EventScript_EnterHouseMovingIn:: @ 8292704
msgbox PlayersHouse_1F_Text_IsntItNiceInHere, MSGBOX_DEFAULT
applymovement VAR_0x8004, Common_Movement_FacePlayer
waitmovement 0
compare VAR_0x8005, 0
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_29274D
compare VAR_0x8005, 1
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292758
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7A46, MSGBOX_DEFAULT
compare VAR_0x8005, MALE
call_if_eq PlayersHouse_1F_EventScript_MomFacePlayerMovingInMale
compare VAR_0x8005, FEMALE
call_if_eq PlayersHouse_1F_EventScript_MomFacePlayerMovingInFemale
msgbox PlayersHouse_1F_Text_MoversPokemonGoSetClock, MSGBOX_DEFAULT
closemessage
setvar VAR_LITTLEROOT_INTRO_STATE, 4
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_292763
applymovement EVENT_OBJ_ID_PLAYER, PlayersHouse_1F_Movement_PlayerWalkIn
applymovement VAR_0x8004, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
releaseall
end
LittlerootTown_BrendansHouse_1F_EventScript_29274D:: @ 829274D
PlayersHouse_1F_EventScript_MomFacePlayerMovingInMale:: @ 829274D
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292758:: @ 8292758
PlayersHouse_1F_EventScript_MomFacePlayerMovingInFemale:: @ 8292758
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_Movement_292763: @ 8292763
PlayersHouse_1F_Movement_PlayerWalkIn: @ 8292763
walk_up
step_end
LittlerootTown_BrendansHouse_1F_EventScript_292765:: @ 8292765
LittlerootTown_MaysHouse_1F_EventScript_292765:: @ 8292765
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7B24, MSGBOX_DEFAULT
PlayersHouse_1F_EventScript_MomGoSeeRoom:: @ 8292765
msgbox PlayersHouse_1F_Text_ArentYouInterestedInRoom, MSGBOX_DEFAULT
closemessage
applymovement VAR_0x8004, Common_Movement_WalkInPlaceFastestUp
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_292AF0
applymovement EVENT_OBJ_ID_PLAYER, PlayersHouse_1F_Movement_MovePlayerAwayFromDoor
waitmovement 0
releaseall
end
LittlerootTown_BrendansHouse_2F_EventScript_292781:: @ 8292781
LittlerootTown_BrendansHouse_2F_EventScript_WallClock:: @ 8292781
lockall
setvar VAR_0x8004, 0
goto LittlerootTown_BrendansHouse_2F_EventScript_292799
setvar VAR_0x8004, MALE
goto PlayersHouse_2F_EventScript_WallClock
end
LittlerootTown_MaysHouse_2F_EventScript_29278D:: @ 829278D
LittlerootTown_MaysHouse_2F_EventScript_WallClock:: @ 829278D
lockall
setvar VAR_0x8004, 1
goto LittlerootTown_MaysHouse_2F_EventScript_292799
setvar VAR_0x8004, FEMALE
goto PlayersHouse_2F_EventScript_WallClock
end
LittlerootTown_BrendansHouse_2F_EventScript_292799:: @ 8292799
LittlerootTown_MaysHouse_2F_EventScript_292799:: @ 8292799
goto_if_set FLAG_SET_WALL_CLOCK, LittlerootTown_BrendansHouse_2F_EventScript_29283F
msgbox LittlerootTown_BrendansHouse_2F_Text_1F8668, MSGBOX_DEFAULT
call LittlerootTown_BrendansHouse_2F_EventScript_292849
PlayersHouse_2F_EventScript_WallClock:: @ 8292799
goto_if_set FLAG_SET_WALL_CLOCK, PlayersHouse_2F_EventScript_CheckWallClock
msgbox PlayersHouse_2F_Text_ClockIsStopped, MSGBOX_DEFAULT
call PlayersHouse_2F_EventScript_SetWallClock
delay 30
setvar VAR_LITTLEROOT_INTRO_STATE, 6
setflag FLAG_SET_WALL_CLOCK
@@ -69,41 +65,41 @@ LittlerootTown_MaysHouse_2F_EventScript_292799:: @ 8292799
setflag FLAG_HIDE_LITTLEROOT_TOWN_PLAYERS_HOUSE_VIGOROTH_2
checkplayergender
compare VAR_RESULT, MALE
call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_2927DF
call_if_eq PlayersHouse_2F_EventScript_MomComesUpstairsMale
compare VAR_RESULT, FEMALE
call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_29280F
call_if_eq PlayersHouse_2F_EventScript_MomComesUpstairsFemale
playse SE_KAIDAN
removeobject VAR_0x8008
releaseall
end
LittlerootTown_BrendansHouse_2F_EventScript_2927DF:: @ 82927DF
PlayersHouse_2F_EventScript_MomComesUpstairsMale:: @ 82927DF
setvar VAR_0x8008, 14
addobject VAR_0x8008
applymovement VAR_0x8008, LittlerootTown_BrendansHouse_2F_Movement_292850
applymovement VAR_0x8008, PlayersHouse_2F_Movement_MomEntersMale
waitmovement 0
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox LittlerootTown_BrendansHouse_2F_Text_1F869A, MSGBOX_DEFAULT
msgbox PlayersHouse_2F_Text_HowDoYouLikeYourRoom, MSGBOX_DEFAULT
closemessage
applymovement VAR_0x8008, LittlerootTown_BrendansHouse_2F_Movement_292857
applymovement VAR_0x8008, PlayersHouse_2F_Movement_MomExitsMale
waitmovement 0
return
LittlerootTown_BrendansHouse_2F_EventScript_29280F:: @ 829280F
PlayersHouse_2F_EventScript_MomComesUpstairsFemale:: @ 829280F
setvar VAR_0x8008, 14
addobject VAR_0x8008
applymovement VAR_0x8008, LittlerootTown_BrendansHouse_2F_Movement_29285B
applymovement VAR_0x8008, PlayersHouse_2F_Movement_MomEntersFemale
waitmovement 0
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox LittlerootTown_BrendansHouse_2F_Text_1F869A, MSGBOX_DEFAULT
msgbox PlayersHouse_2F_Text_HowDoYouLikeYourRoom, MSGBOX_DEFAULT
closemessage
applymovement VAR_0x8008, LittlerootTown_BrendansHouse_2F_Movement_292862
applymovement VAR_0x8008, PlayersHouse_2F_Movement_MomExitsFemale
waitmovement 0
return
LittlerootTown_BrendansHouse_2F_EventScript_29283F:: @ 829283F
PlayersHouse_2F_EventScript_CheckWallClock:: @ 829283F
incrementgamestat GAME_STAT_CHECKED_CLOCK
fadescreen 1
special Special_ViewWallClock
@@ -111,13 +107,13 @@ LittlerootTown_BrendansHouse_2F_EventScript_29283F:: @ 829283F
releaseall
end
LittlerootTown_BrendansHouse_2F_EventScript_292849:: @ 8292849
PlayersHouse_2F_EventScript_SetWallClock:: @ 8292849
fadescreen 1
special StartWallClock
waitstate
return
LittlerootTown_BrendansHouse_2F_Movement_292850: @ 8292850
PlayersHouse_2F_Movement_MomEntersMale: @ 8292850
delay_8
walk_down
walk_in_place_fastest_left
@@ -126,13 +122,13 @@ LittlerootTown_BrendansHouse_2F_Movement_292850: @ 8292850
walk_left
step_end
LittlerootTown_BrendansHouse_2F_Movement_292857: @ 8292857
PlayersHouse_2F_Movement_MomExitsMale: @ 8292857
walk_right
walk_up
delay_8
step_end
LittlerootTown_BrendansHouse_2F_Movement_29285B: @ 829285B
PlayersHouse_2F_Movement_MomEntersFemale: @ 829285B
delay_8
walk_down
walk_in_place_fastest_right
@@ -141,91 +137,88 @@ LittlerootTown_BrendansHouse_2F_Movement_29285B: @ 829285B
walk_right
step_end
LittlerootTown_BrendansHouse_2F_Movement_292862: @ 8292862
PlayersHouse_2F_Movement_MomExitsFemale: @ 8292862
walk_left
walk_up
delay_8
step_end
LittlerootTown_BrendansHouse_1F_EventScript_292866:: @ 8292866
LittlerootTown_MaysHouse_1F_EventScript_292866:: @ 8292866
PlayersHouse_1F_EventScript_SetWatchedBroadcast:: @ 8292866
setvar VAR_LITTLEROOT_INTRO_STATE, 7
releaseall
end
LittlerootTown_BrendansHouse_1F_EventScript_29286D:: @ 829286D
PlayersHouse_1F_EventScript_PetalburgGymReportMale:: @ 829286D
applymovement VAR_0x8005, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
call LittlerootTown_BrendansHouse_1F_EventScript_29294B
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_292AE0
call PlayersHouse_1F_EventScript_MomNoticeGymBroadcast
applymovement EVENT_OBJ_ID_PLAYER, PlayersHouse_1F_Movement_PlayerApproachTVForGymMale
waitmovement 0
playbgm MUS_INTER_V, 0
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7BBC, MSGBOX_DEFAULT
msgbox PlayersHouse_1F_Text_MaybeDadWillBeOn, MSGBOX_DEFAULT
closemessage
applymovement VAR_0x8005, LittlerootTown_BrendansHouse_1F_Movement_2929B7
applymovement VAR_0x8005, PlayersHouse_1F_Movement_MomMakeRoomToSeeTVMale
waitmovement 0
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_292AE6
applymovement EVENT_OBJ_ID_PLAYER, PlayersHouse_1F_Movement_PlayerMoveToTVMale
waitmovement 0
call LittlerootTown_BrendansHouse_1F_EventScript_29296C
call PlayersHouse_1F_EventScript_WatchGymBroadcast
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7BF1, MSGBOX_DEFAULT
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7C35, MSGBOX_DEFAULT
msgbox PlayersHouse_1F_Text_ItsOverWeMissedHim, MSGBOX_DEFAULT
msgbox PlayersHouse_1F_Text_GoIntroduceYourselfNextDoor, MSGBOX_DEFAULT
closemessage
setvar VAR_TEMP_1, 1
applymovement VAR_0x8005, LittlerootTown_BrendansHouse_1F_Movement_2929BD
applymovement VAR_0x8005, PlayersHouse_1F_Movement_MomReturnToSeatMale
waitmovement 0
goto LittlerootTown_BrendansHouse_1F_EventScript_292866
goto PlayersHouse_1F_EventScript_SetWatchedBroadcast
end
LittlerootTown_MaysHouse_1F_EventScript_2928DC:: @ 82928DC
PlayersHouse_1F_EventScript_PetalburgGymReportFemale:: @ 82928DC
applymovement VAR_0x8005, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
call LittlerootTown_MaysHouse_1F_EventScript_29294B
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_MaysHouse_1F_Movement_292AE8
call PlayersHouse_1F_EventScript_MomNoticeGymBroadcast
applymovement EVENT_OBJ_ID_PLAYER, PlayersHouse_1F_Movement_PlayerApproachTVForGymFemale
waitmovement 0
playbgm MUS_INTER_V, 0
msgbox LittlerootTown_MaysHouse_1F_Text_1F7BBC, MSGBOX_DEFAULT
msgbox PlayersHouse_1F_Text_MaybeDadWillBeOn, MSGBOX_DEFAULT
closemessage
applymovement VAR_0x8005, LittlerootTown_MaysHouse_1F_Movement_2929BA
applymovement VAR_0x8005, PlayersHouse_1F_Movement_MomMakeRoomToSeeTVFemale
waitmovement 0
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_MaysHouse_1F_Movement_292AEE
applymovement EVENT_OBJ_ID_PLAYER, PlayersHouse_1F_Movement_PlayerMoveToTVFemale
waitmovement 0
call LittlerootTown_MaysHouse_1F_EventScript_29296C
call PlayersHouse_1F_EventScript_WatchGymBroadcast
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox LittlerootTown_MaysHouse_1F_Text_1F7BF1, MSGBOX_DEFAULT
msgbox LittlerootTown_MaysHouse_1F_Text_1F7C35, MSGBOX_DEFAULT
msgbox PlayersHouse_1F_Text_ItsOverWeMissedHim, MSGBOX_DEFAULT
msgbox PlayersHouse_1F_Text_GoIntroduceYourselfNextDoor, MSGBOX_DEFAULT
closemessage
setvar VAR_TEMP_1, 1
applymovement VAR_0x8005, LittlerootTown_MaysHouse_1F_Movement_2929C1
applymovement VAR_0x8005, PlayersHouse_1F_Movement_MomReturnToSeatFemale
waitmovement 0
goto LittlerootTown_MaysHouse_1F_EventScript_292866
goto PlayersHouse_1F_EventScript_SetWatchedBroadcast
end
LittlerootTown_BrendansHouse_1F_EventScript_29294B:: @ 829294B
LittlerootTown_MaysHouse_1F_EventScript_29294B:: @ 829294B
PlayersHouse_1F_EventScript_MomNoticeGymBroadcast:: @ 829294B
playse SE_PIN
applymovement VAR_0x8005, Common_Movement_ExclamationMark
waitmovement 0
applymovement VAR_0x8005, Common_Movement_Delay48
waitmovement 0
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7B96, MSGBOX_DEFAULT
msgbox PlayersHouse_1F_Text_OhComeQuickly, MSGBOX_DEFAULT
closemessage
return
LittlerootTown_BrendansHouse_1F_EventScript_29296C:: @ 829296C
LittlerootTown_MaysHouse_1F_EventScript_29296C:: @ 829296C
PlayersHouse_1F_EventScript_WatchGymBroadcast:: @ 829296C
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7EC6, MSGBOX_DEFAULT
msgbox PlayersHouse_1F_Text_ReportFromPetalburgGym, MSGBOX_DEFAULT
fadedefaultbgm
special TurnOffTVScreen
setflag FLAG_SYS_TV_HOME
delay 35
return
LittlerootTown_BrendansHouse_1F_Movement_292989: @ 8292989
PlayersHouse_1F_Movement_MomApproachDadMale: @ 8292989
walk_up
walk_right
walk_right
@@ -235,7 +228,7 @@ LittlerootTown_BrendansHouse_1F_Movement_292989: @ 8292989
walk_in_place_fastest_right
step_end
LittlerootTown_BrendansHouse_1F_Movement_292991: @ 8292991
PlayersHouse_1F_Movement_MomApproachDadFemale: @ 8292991
walk_up
walk_left
walk_left
@@ -245,15 +238,15 @@ LittlerootTown_BrendansHouse_1F_Movement_292991: @ 8292991
walk_in_place_fastest_left
step_end
LittlerootTown_BrendansHouse_1F_Movement_292999: @ 8292999
PlayersHouse_1F_Movement_MomApproachPlayerMale: @ 8292999
walk_right
step_end
LittlerootTown_BrendansHouse_1F_Movement_29299B: @ 829299B
PlayersHouse_1F_Movement_MomApproachPlayerFemale: @ 829299B
walk_left
step_end
LittlerootTown_BrendansHouse_1F_Movement_29299D: @ 829299D
PlayersHouse_1F_Movement_MomNoticesLatiBroadcastMale: @ 829299D
walk_in_place_fastest_left
delay_16
delay_16
@@ -264,7 +257,7 @@ LittlerootTown_BrendansHouse_1F_Movement_29299D: @ 829299D
delay_16
step_end
LittlerootTown_BrendansHouse_1F_Movement_2929A6: @ 82929A6
PlayersHouse_1F_Movement_MomNoticesLatiBroadcastFemale: @ 82929A6
walk_in_place_fastest_right
delay_16
delay_16
@@ -275,70 +268,69 @@ LittlerootTown_BrendansHouse_1F_Movement_2929A6: @ 82929A6
delay_16
step_end
LittlerootTown_BrendansHouse_1F_Movement_2929AF: @ 82929AF
PlayersHouse_1F_Movement_MomApproachPlayerAfterTVMale: @ 82929AF
walk_up
walk_left
walk_left
step_end
LittlerootTown_BrendansHouse_1F_Movement_2929B3: @ 82929B3
PlayersHouse_1F_Movement_MomApproachPlayerAfterTVFemale: @ 82929B3
walk_up
walk_right
walk_right
step_end
LittlerootTown_BrendansHouse_1F_Movement_2929B7: @ 82929B7
PlayersHouse_1F_Movement_MomMakeRoomToSeeTVMale: @ 82929B7
walk_left
walk_in_place_fastest_right
step_end
LittlerootTown_MaysHouse_1F_Movement_2929BA: @ 82929BA
PlayersHouse_1F_Movement_MomMakeRoomToSeeTVFemale: @ 82929BA
walk_right
walk_in_place_fastest_left
step_end
LittlerootTown_BrendansHouse_1F_Movement_2929BD: @ 82929BD
PlayersHouse_1F_Movement_MomReturnToSeatMale: @ 82929BD
walk_left
walk_down
walk_in_place_fastest_right
step_end
LittlerootTown_MaysHouse_1F_Movement_2929C1: @ 82929C1
PlayersHouse_1F_Movement_MomReturnToSeatFemale: @ 82929C1
walk_right
walk_down
walk_in_place_fastest_left
step_end
LittlerootTown_BrendansHouse_1F_EventScript_2929C5:: @ 82929C5
LittlerootTown_MaysHouse_1F_EventScript_2929C5:: @ 82929C5
PlayersHouse_1F_EventScript_Mom:: @ 82929C5
lock
faceplayer
compare VAR_LITTLEROOT_HOUSES_STATE, 4
goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292A0F
goto_if_eq PlayersHouse_1F_EventScript_DontPushYourselfTooHard
compare VAR_LITTLEROOT_HOUSES_STATE_2, 4
goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292A0F
goto_if_set FLAG_HAS_MATCH_CALL, LittlerootTown_BrendansHouse_1F_EventScript_292A19
goto_if_set FLAG_RESCUED_BIRCH, LittlerootTown_BrendansHouse_1F_EventScript_292A86
goto_if_eq PlayersHouse_1F_EventScript_DontPushYourselfTooHard
goto_if_set FLAG_HAS_MATCH_CALL, PlayersHouse_1F_EventScript_TryRegisterMom
goto_if_set FLAG_RESCUED_BIRCH, PlayersHouse_1F_EventScript_MomHealsParty
compare VAR_TEMP_1, 1
goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292A94
goto_if_eq PlayersHouse_1F_EventScript_SeeYouHoney
compare VAR_LITTLEROOT_INTRO_STATE, 7
goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292AB0
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7A1C, MSGBOX_DEFAULT
goto_if_eq PlayersHouse_1F_EventScript_DidYouMeetProfBirch
msgbox PlayersHouse_1F_Text_IsntItNiceInHere, MSGBOX_DEFAULT
release
end
LittlerootTown_BrendansHouse_1F_EventScript_292A0F:: @ 8292A0F
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7DBE, MSGBOX_DEFAULT
PlayersHouse_1F_EventScript_DontPushYourselfTooHard:: @ 8292A0F
msgbox PlayersHouse_1F_Text_DontPushYourselfTooHard, MSGBOX_DEFAULT
release
end
LittlerootTown_BrendansHouse_1F_EventScript_292A19:: @ 8292A19
goto_if_set FLAG_ENABLE_MOM_MATCH_CALL, LittlerootTown_BrendansHouse_1F_EventScript_292A43
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7E0E, MSGBOX_DEFAULT
PlayersHouse_1F_EventScript_TryRegisterMom:: @ 8292A19
goto_if_set FLAG_ENABLE_MOM_MATCH_CALL, PlayersHouse_1F_EventScript_CheckGiveAmuletCoin
msgbox PlayersHouse_1F_Text_IsThatAPokenav, MSGBOX_DEFAULT
closemessage
delay 30
playfanfare MUS_ME_TORE_EYE
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7E89, MSGBOX_DEFAULT
msgbox PlayersHouse_1F_Text_RegisteredMom, MSGBOX_DEFAULT
waitfanfare
closemessage
delay 30
@@ -346,67 +338,65 @@ LittlerootTown_BrendansHouse_1F_EventScript_292A19:: @ 8292A19
release
end
LittlerootTown_BrendansHouse_1F_EventScript_292A43:: @ 8292A43
goto_if_set FLAG_BADGE05_GET, LittlerootTown_BrendansHouse_1F_EventScript_292A51
goto LittlerootTown_BrendansHouse_1F_EventScript_292A86
PlayersHouse_1F_EventScript_CheckGiveAmuletCoin:: @ 8292A43
goto_if_set FLAG_BADGE05_GET, PlayersHouse_1F_EventScript_TryGiveAmuletCoin
goto PlayersHouse_1F_EventScript_MomHealsParty
LittlerootTown_BrendansHouse_1F_EventScript_292A51:: @ 8292A51
goto_if_set FLAG_MOM_SAYS_GOODBYE, LittlerootTown_BrendansHouse_1F_EventScript_292A86
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7D73, MSGBOX_DEFAULT
PlayersHouse_1F_EventScript_TryGiveAmuletCoin:: @ 8292A51
goto_if_set FLAG_RECEIVED_AMULET_COIN, PlayersHouse_1F_EventScript_MomHealsParty
msgbox PlayersHouse_1F_Text_GotDadsBadgeHeresSomethingFromMom, MSGBOX_DEFAULT
giveitem_std ITEM_AMULET_COIN
compare VAR_RESULT, 0
goto_if_eq Common_EventScript_ShowBagIsFull
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7DBE, MSGBOX_DEFAULT
setflag FLAG_MOM_SAYS_GOODBYE
msgbox PlayersHouse_1F_Text_DontPushYourselfTooHard, MSGBOX_DEFAULT
setflag FLAG_RECEIVED_AMULET_COIN
release
end
LittlerootTown_BrendansHouse_1F_EventScript_292A86:: @ 8292A86
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7D08, MSGBOX_DEFAULT
goto LittlerootTown_BrendansHouse_1F_EventScript_292A9E
PlayersHouse_1F_EventScript_MomHealsParty:: @ 8292A86
msgbox PlayersHouse_1F_Text_YouShouldRestABit, MSGBOX_DEFAULT
goto PlayersHouse_1F_EventScript_HealParty
end
LittlerootTown_BrendansHouse_1F_EventScript_292A94:: @ 8292A94
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7CC3, MSGBOX_DEFAULT
PlayersHouse_1F_EventScript_SeeYouHoney:: @ 8292A94
msgbox PlayersHouse_1F_Text_SeeYouHoney, MSGBOX_DEFAULT
release
end
LittlerootTown_BrendansHouse_1F_EventScript_292A9E:: @ 8292A9E
PlayersHouse_1F_EventScript_HealParty:: @ 8292A9E
closemessage
call Common_EventScript_OutOfCenterPartyHeal
incrementgamestat GAME_STAT_RESTED_AT_HOME
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7D5C, MSGBOX_DEFAULT
msgbox PlayersHouse_1F_Text_TakeCareHoney, MSGBOX_DEFAULT
release
end
LittlerootTown_BrendansHouse_1F_EventScript_292AB0:: @ 8292AB0
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7CD8, MSGBOX_DEFAULT
PlayersHouse_1F_EventScript_DidYouMeetProfBirch:: @ 8292AB0
msgbox PlayersHouse_1F_Text_DidYouMeetProfBirch, MSGBOX_DEFAULT
release
end
LittlerootTown_BrendansHouse_1F_EventScript_292ABA:: @ 8292ABA
LittlerootTown_MaysHouse_1F_EventScript_292ABA:: @ 8292ABA
PlayersHouse_1F_EventScript_Vigoroth1:: @ 8292ABA
lock
faceplayer
waitse
playmoncry SPECIES_VIGOROTH, 0
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7EA8, MSGBOX_DEFAULT
msgbox PlayersHouse_1F_Text_Vigoroth1, MSGBOX_DEFAULT
waitmoncry
release
end
LittlerootTown_BrendansHouse_1F_EventScript_292ACD:: @ 8292ACD
LittlerootTown_MaysHouse_1F_EventScript_292ACD:: @ 8292ACD
PlayersHouse_1F_EventScript_Vigoroth2:: @ 8292ACD
lock
faceplayer
waitse
playmoncry SPECIES_VIGOROTH, 0
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7EB3, MSGBOX_DEFAULT
msgbox PlayersHouse_1F_Text_Vigoroth2, MSGBOX_DEFAULT
waitmoncry
release
end
LittlerootTown_BrendansHouse_1F_Movement_292AE0: @ 8292AE0
PlayersHouse_1F_Movement_PlayerApproachTVForGymMale: @ 8292AE0
walk_down
walk_down
walk_left
@@ -414,11 +404,11 @@ LittlerootTown_BrendansHouse_1F_Movement_292AE0: @ 8292AE0
walk_left
step_end
LittlerootTown_BrendansHouse_1F_Movement_292AE6: @ 8292AE6
PlayersHouse_1F_Movement_PlayerMoveToTVMale: @ 8292AE6
walk_left
step_end
LittlerootTown_MaysHouse_1F_Movement_292AE8: @ 8292AE8
PlayersHouse_1F_Movement_PlayerApproachTVForGymFemale: @ 8292AE8
walk_down
walk_down
walk_right
@@ -426,26 +416,25 @@ LittlerootTown_MaysHouse_1F_Movement_292AE8: @ 8292AE8
walk_right
step_end
LittlerootTown_MaysHouse_1F_Movement_292AEE: @ 8292AEE
PlayersHouse_1F_Movement_PlayerMoveToTVFemale: @ 8292AEE
walk_right
step_end
LittlerootTown_BrendansHouse_1F_Movement_292AF0: @ 8292AF0
PlayersHouse_1F_Movement_MovePlayerAwayFromDoor: @ 8292AF0
walk_up
step_end
LittlerootTown_BrendansHouse_1F_EventScript_292AF2:: @ 8292AF2
LittlerootTown_MaysHouse_1F_EventScript_292AF2:: @ 8292AF2
PlayersHouse_1F_EventScript_GetSSTicketAndSeeLatiTV:: @ 8292AF2
lockall
checkplayergender
compare VAR_RESULT, MALE
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292C76
call_if_eq PlayersHouse_1F_EventScript_SetUpObjectEventVarsMale
compare VAR_RESULT, FEMALE
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292C86
compare VAR_0x8008, 0
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292D08
compare VAR_0x8008, 1
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292D13
call_if_eq PlayersHouse_1F_EventScript_SetUpObjectEventVarsFemale
compare VAR_0x8008, MALE
call_if_eq PlayersHouse_1F_EventScript_PlayerEnterRoomMale
compare VAR_0x8008, FEMALE
call_if_eq PlayersHouse_1F_EventScript_PlayerEnterRoomFemale
applymovement VAR_0x8009, Common_Movement_FacePlayer
waitmovement 0
playse SE_PIN
@@ -454,64 +443,64 @@ LittlerootTown_MaysHouse_1F_EventScript_292AF2:: @ 8292AF2
applymovement VAR_0x8009, Common_Movement_Delay48
waitmovement 0
delay 20
compare VAR_0x8008, 0
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292C96
compare VAR_0x8008, 1
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292CA1
msgbox LittlerootTown_BrendansHouse_1F_Text_1F800E, MSGBOX_DEFAULT
compare VAR_0x8008, MALE
call_if_eq PlayersHouse_1F_EventScript_DadApproachPlayerMale
compare VAR_0x8008, FEMALE
call_if_eq PlayersHouse_1F_EventScript_DadApproachPlayerFemale
msgbox PlayersHouse_1F_Text_TicketFromBrineyCameForYou, MSGBOX_DEFAULT
giveitem_std ITEM_SS_TICKET
msgbox LittlerootTown_BrendansHouse_1F_Text_1F80FE, MSGBOX_DEFAULT
msgbox PlayersHouse_1F_Text_PortsInSlateportLilycove, MSGBOX_DEFAULT
closemessage
delay 20
compare VAR_0x8008, 0
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292CAC
compare VAR_0x8008, 1
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292CC1
msgbox LittlerootTown_BrendansHouse_1F_Text_1F815B, MSGBOX_DEFAULT
compare VAR_0x8008, MALE
call_if_eq PlayersHouse_1F_EventScript_MomApproachDadMale
compare VAR_0x8008, FEMALE
call_if_eq PlayersHouse_1F_EventScript_MomApproachDadFemale
msgbox PlayersHouse_1F_Text_BetterGetBackToGym, MSGBOX_DEFAULT
closemessage
compare VAR_0x8008, 0
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292CD6
compare VAR_0x8008, 1
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292CEF
compare VAR_0x8008, MALE
call_if_eq PlayersHouse_1F_EventScript_DadExitsMale
compare VAR_0x8008, FEMALE
call_if_eq PlayersHouse_1F_EventScript_DadExitsFemale
playse SE_DOOR
removeobject VAR_0x8009
setflag FLAG_RECEIVED_SS_TICKET
delay 30
compare VAR_0x8008, 0
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292D48
compare VAR_0x8008, 1
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292D5D
compare VAR_0x8008, MALE
call_if_eq PlayersHouse_1F_EventScript_MomApproachPlayerMale
compare VAR_0x8008, FEMALE
call_if_eq PlayersHouse_1F_EventScript_MomApproachPlayerFemale
delay 20
msgbox LittlerootTown_BrendansHouse_1F_Text_1F81B9, MSGBOX_DEFAULT
msgbox PlayersHouse_1F_Text_DadShouldStayLonger, MSGBOX_DEFAULT
closemessage
setflag FLAG_SYS_TV_LATIAS_LATIOS
special TurnOnTVScreen
delay 60
compare VAR_0x8008, 0
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292D72
compare VAR_0x8008, 1
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292D7D
msgbox LittlerootTown_BrendansHouse_1F_Text_1F824B, MSGBOX_DEFAULT
compare VAR_0x8008, MALE
call_if_eq PlayersHouse_1F_EventScript_MomNoticesLatiBroadcastMale
compare VAR_0x8008, FEMALE
call_if_eq PlayersHouse_1F_EventScript_MomNoticesLatiBroadcastFemale
msgbox PlayersHouse_1F_Text_IsThatABreakingStory, MSGBOX_DEFAULT
closemessage
compare VAR_0x8008, 0
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292D1E
compare VAR_0x8008, 1
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292D33
msgbox LittlerootTown_BrendansHouse_1F_Text_1F826F, MSGBOX_DEFAULT
compare VAR_0x8008, MALE
call_if_eq PlayersHouse_1F_EventScript_PlayerApproachTVForLatiMale
compare VAR_0x8008, FEMALE
call_if_eq PlayersHouse_1F_EventScript_PlayerApproachTVForLatiFemale
msgbox PlayersHouse_1F_Text_LatiEmergencyNewsFlash, MSGBOX_DEFAULT
closemessage
clearflag FLAG_SYS_TV_LATIAS_LATIOS
setflag FLAG_LATIOS_OR_LATIAS_ROAMING
special TurnOffTVScreen
compare VAR_0x8008, 0
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292D88
compare VAR_0x8008, 1
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292D9D
msgbox LittlerootTown_BrendansHouse_1F_Text_1F8351, MSGBOX_DEFAULT
compare VAR_0x8008, MALE
call_if_eq PlayersHouse_1F_EventScript_MomApproachPlayerAfterTVMale
compare VAR_0x8008, FEMALE
call_if_eq PlayersHouse_1F_EventScript_MomApproachPlayerAfterTVFemale
msgbox PlayersHouse_1F_Text_WhatColorDidTheySay, MSGBOX_DEFAULT
multichoice 22, 8, MULTI_TV_LATI, 1
copyvar VAR_0x8004, VAR_RESULT
special InitRoamer
copyvar VAR_ROAMER_POKEMON, VAR_RESULT
msgbox LittlerootTown_BrendansHouse_1F_Text_1F83A1, MSGBOX_DEFAULT
msgbox PlayersHouse_1F_Text_StillUnknownPokemon, MSGBOX_DEFAULT
closemessage
setvar VAR_LITTLEROOT_HOUSES_STATE, 4
setvar VAR_LITTLEROOT_HOUSES_STATE_2, 4
@@ -519,155 +508,155 @@ LittlerootTown_MaysHouse_1F_EventScript_292AF2:: @ 8292AF2
end
@ Never called.
LittlerootTown_BrendansHouse_1F_EventScript_292C72:: @ 8292C72
PlayersHouse_1F_EventScript_AirLatiBroadcast:: @ 8292C72
setflag FLAG_SYS_TV_LATIAS_LATIOS
return
LittlerootTown_BrendansHouse_1F_EventScript_292C76:: @ 8292C76
setvar VAR_0x8008, 0
setvar VAR_0x8009, 5
setvar VAR_0x800A, 1
PlayersHouse_1F_EventScript_SetUpObjectEventVarsMale:: @ 8292C76
setvar VAR_0x8008, MALE
setvar VAR_0x8009, 5 @ Dad object event ID
setvar VAR_0x800A, 1 @ Mom object event ID
return
LittlerootTown_BrendansHouse_1F_EventScript_292C86:: @ 8292C86
setvar VAR_0x8008, 1
setvar VAR_0x8009, 5
setvar VAR_0x800A, 1
PlayersHouse_1F_EventScript_SetUpObjectEventVarsFemale:: @ 8292C86
setvar VAR_0x8008, FEMALE
setvar VAR_0x8009, 5 @ Dad object event ID
setvar VAR_0x800A, 1 @ Mom object event ID
return
LittlerootTown_BrendansHouse_1F_EventScript_292C96:: @ 8292C96
applymovement VAR_0x8009, LittlerootTown_BrendansHouse_1F_Movement_292DB2
PlayersHouse_1F_EventScript_DadApproachPlayerMale:: @ 8292C96
applymovement VAR_0x8009, PlayersHouse_1F_Movement_DadApproachPlayerMale
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292CA1:: @ 8292CA1
applymovement VAR_0x8009, LittlerootTown_BrendansHouse_1F_Movement_292DB5
PlayersHouse_1F_EventScript_DadApproachPlayerFemale:: @ 8292CA1
applymovement VAR_0x8009, PlayersHouse_1F_Movement_DadApproachPlayerFemale
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292CAC:: @ 8292CAC
applymovement VAR_0x800A, LittlerootTown_BrendansHouse_1F_Movement_292989
PlayersHouse_1F_EventScript_MomApproachDadMale:: @ 8292CAC
applymovement VAR_0x800A, PlayersHouse_1F_Movement_MomApproachDadMale
waitmovement 0
applymovement VAR_0x8009, LittlerootTown_BrendansHouse_1F_Movement_292DB8
applymovement VAR_0x8009, PlayersHouse_1F_Movement_DadFaceMomMale
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292CC1:: @ 8292CC1
applymovement VAR_0x800A, LittlerootTown_BrendansHouse_1F_Movement_292991
PlayersHouse_1F_EventScript_MomApproachDadFemale:: @ 8292CC1
applymovement VAR_0x800A, PlayersHouse_1F_Movement_MomApproachDadFemale
waitmovement 0
applymovement VAR_0x8009, LittlerootTown_BrendansHouse_1F_Movement_292DBA
applymovement VAR_0x8009, PlayersHouse_1F_Movement_DadFaceMomFemale
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292CD6:: @ 8292CD6
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_292DCC
applymovement VAR_0x800A, LittlerootTown_BrendansHouse_1F_Movement_292DCC
applymovement VAR_0x8009, LittlerootTown_BrendansHouse_1F_Movement_292DBC
PlayersHouse_1F_EventScript_DadExitsMale:: @ 8292CD6
applymovement EVENT_OBJ_ID_PLAYER, PlayersHouse_1F_Movement_MomAndPlayerWatchDadExit
applymovement VAR_0x800A, PlayersHouse_1F_Movement_MomAndPlayerWatchDadExit
applymovement VAR_0x8009, PlayersHouse_1F_Movement_DadExitsMale
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292CEF:: @ 8292CEF
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_292DCC
applymovement VAR_0x800A, LittlerootTown_BrendansHouse_1F_Movement_292DCC
applymovement VAR_0x8009, LittlerootTown_BrendansHouse_1F_Movement_292DC1
PlayersHouse_1F_EventScript_DadExitsFemale:: @ 8292CEF
applymovement EVENT_OBJ_ID_PLAYER, PlayersHouse_1F_Movement_MomAndPlayerWatchDadExit
applymovement VAR_0x800A, PlayersHouse_1F_Movement_MomAndPlayerWatchDadExit
applymovement VAR_0x8009, PlayersHouse_1F_Movement_DadExitsFemale
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292D08:: @ 8292D08
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_292DC6
PlayersHouse_1F_EventScript_PlayerEnterRoomMale:: @ 8292D08
applymovement EVENT_OBJ_ID_PLAYER, PlayersHouse_1F_Movement_PlayerEnterRoomMale
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292D13:: @ 8292D13
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_292DD1
PlayersHouse_1F_EventScript_PlayerEnterRoomFemale:: @ 8292D13
applymovement EVENT_OBJ_ID_PLAYER, PlayersHouse_1F_Movement_PlayerEnterRoomFemale
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292D1E:: @ 8292D1E
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_292DD7
PlayersHouse_1F_EventScript_PlayerApproachTVForLatiMale:: @ 8292D1E
applymovement EVENT_OBJ_ID_PLAYER, PlayersHouse_1F_Movement_PlayerApproachTVForLatiMale
waitmovement 0
applymovement VAR_0x800A, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292D33:: @ 8292D33
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_292DDE
PlayersHouse_1F_EventScript_PlayerApproachTVForLatiFemale:: @ 8292D33
applymovement EVENT_OBJ_ID_PLAYER, PlayersHouse_1F_Movement_PlayerApproachTVForLatiFemale
waitmovement 0
applymovement VAR_0x800A, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292D48:: @ 8292D48
applymovement VAR_0x800A, LittlerootTown_BrendansHouse_1F_Movement_292999
PlayersHouse_1F_EventScript_MomApproachPlayerMale:: @ 8292D48
applymovement VAR_0x800A, PlayersHouse_1F_Movement_MomApproachPlayerMale
waitmovement 0
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292D5D:: @ 8292D5D
applymovement VAR_0x800A, LittlerootTown_BrendansHouse_1F_Movement_29299B
PlayersHouse_1F_EventScript_MomApproachPlayerFemale:: @ 8292D5D
applymovement VAR_0x800A, PlayersHouse_1F_Movement_MomApproachPlayerFemale
waitmovement 0
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292D72:: @ 8292D72
applymovement VAR_0x800A, LittlerootTown_BrendansHouse_1F_Movement_29299D
PlayersHouse_1F_EventScript_MomNoticesLatiBroadcastMale:: @ 8292D72
applymovement VAR_0x800A, PlayersHouse_1F_Movement_MomNoticesLatiBroadcastMale
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292D7D:: @ 8292D7D
applymovement VAR_0x800A, LittlerootTown_BrendansHouse_1F_Movement_2929A6
PlayersHouse_1F_EventScript_MomNoticesLatiBroadcastFemale:: @ 8292D7D
applymovement VAR_0x800A, PlayersHouse_1F_Movement_MomNoticesLatiBroadcastFemale
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292D88:: @ 8292D88
applymovement VAR_0x800A, LittlerootTown_BrendansHouse_1F_Movement_2929AF
PlayersHouse_1F_EventScript_MomApproachPlayerAfterTVMale:: @ 8292D88
applymovement VAR_0x800A, PlayersHouse_1F_Movement_MomApproachPlayerAfterTVMale
waitmovement 0
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292D9D:: @ 8292D9D
applymovement VAR_0x800A, LittlerootTown_BrendansHouse_1F_Movement_2929B3
PlayersHouse_1F_EventScript_MomApproachPlayerAfterTVFemale:: @ 8292D9D
applymovement VAR_0x800A, PlayersHouse_1F_Movement_MomApproachPlayerAfterTVFemale
waitmovement 0
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_Movement_292DB2: @ 8292DB2
PlayersHouse_1F_Movement_DadApproachPlayerMale: @ 8292DB2
walk_right
walk_right
step_end
LittlerootTown_BrendansHouse_1F_Movement_292DB5: @ 8292DB5
PlayersHouse_1F_Movement_DadApproachPlayerFemale: @ 8292DB5
walk_left
walk_left
step_end
LittlerootTown_BrendansHouse_1F_Movement_292DB8: @ 8292DB8
PlayersHouse_1F_Movement_DadFaceMomMale: @ 8292DB8
face_left
step_end
LittlerootTown_BrendansHouse_1F_Movement_292DBA: @ 8292DBA
PlayersHouse_1F_Movement_DadFaceMomFemale: @ 8292DBA
face_right
step_end
LittlerootTown_BrendansHouse_1F_Movement_292DBC: @ 8292DBC
PlayersHouse_1F_Movement_DadExitsMale: @ 8292DBC
walk_down
walk_right
walk_down
delay_8
step_end
LittlerootTown_BrendansHouse_1F_Movement_292DC1: @ 8292DC1
PlayersHouse_1F_Movement_DadExitsFemale: @ 8292DC1
walk_down
walk_left
walk_down
delay_8
step_end
LittlerootTown_BrendansHouse_1F_Movement_292DC6: @ 8292DC6
PlayersHouse_1F_Movement_PlayerEnterRoomMale: @ 8292DC6
delay_16
walk_down
walk_down
@@ -675,14 +664,14 @@ LittlerootTown_BrendansHouse_1F_Movement_292DC6: @ 8292DC6
walk_in_place_fastest_left
step_end
LittlerootTown_BrendansHouse_1F_Movement_292DCC: @ 8292DCC
PlayersHouse_1F_Movement_MomAndPlayerWatchDadExit: @ 8292DCC
delay_8
delay_16
delay_16
walk_in_place_fastest_down
step_end
LittlerootTown_BrendansHouse_1F_Movement_292DD1: @ 8292DD1
PlayersHouse_1F_Movement_PlayerEnterRoomFemale: @ 8292DD1
delay_16
walk_down
walk_down
@@ -690,7 +679,7 @@ LittlerootTown_BrendansHouse_1F_Movement_292DD1: @ 8292DD1
walk_in_place_fastest_right
step_end
LittlerootTown_BrendansHouse_1F_Movement_292DD7: @ 8292DD7
PlayersHouse_1F_Movement_PlayerApproachTVForLatiMale: @ 8292DD7
walk_up
walk_left
walk_left
@@ -699,7 +688,7 @@ LittlerootTown_BrendansHouse_1F_Movement_292DD7: @ 8292DD7
walk_in_place_fastest_up
step_end
LittlerootTown_BrendansHouse_1F_Movement_292DDE: @ 8292DDE
PlayersHouse_1F_Movement_PlayerApproachTVForLatiFemale: @ 8292DDE
walk_up
walk_right
walk_right
@@ -709,5 +698,5 @@ LittlerootTown_BrendansHouse_1F_Movement_292DDE: @ 8292DDE
step_end
EventScript_RunningShoesManual:: @ 8292DE5
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7F66, MSGBOX_SIGN
msgbox PlayersHouse_1F_Text_RunningShoesManual, MSGBOX_SIGN
end

View File

@@ -0,0 +1,23 @@
@ Seems this was superseded by the Record Center, and the below scripts are now unused
EventScript_MixRecordsPrompt:: @ 8271D5E
lock
faceplayer
msgbox Text_WouldYouLikeToMixRecords, MSGBOX_YESNO
compare VAR_RESULT, 1
goto_if_eq EventScript_MixRecords
compare VAR_RESULT, 0
goto_if_eq EventScript_DeclineMixRecords
goto EventScript_DeclineMixRecords
EventScript_MixRecords:: @ 8271D83
special RecordMixingPlayerSpotTriggered
waitstate
lock
faceplayer
EventScript_DeclineMixRecords:: @ 8271D89
message Text_WeHopeToSeeYouAgain
waitmessage
waitbuttonpress
release
end

6
data/scripts/repel.inc Normal file
View File

@@ -0,0 +1,6 @@
EventScript_RepelWoreOff:: @ 82A4B2A
msgbox Text_RepelWoreOff, MSGBOX_SIGN
end
Text_RepelWoreOff: @ 82A4B33
.string "REPEL's effect wore off…$"

View File

@@ -0,0 +1,48 @@
Common_EventScript_SetupRivalGfxId:: @ 8271ED7
checkplayergender
compare VAR_RESULT, MALE
goto_if_eq EventScript_SetupRivalGfxIdFemale
compare VAR_RESULT, FEMALE
goto_if_eq EventScript_SetupRivalGfxIdMale
end
EventScript_SetupRivalGfxIdFemale:: @ 8271EEF
setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_RIVAL_MAY_NORMAL
return
EventScript_SetupRivalGfxIdMale:: @ 8271EF5
setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_RIVAL_BRENDAN_NORMAL
return
Common_EventScript_SetupRivalOnBikeGfxId:: @ 8271EFB
checkplayergender
compare VAR_RESULT, MALE
goto_if_eq EventScript_SetupRivalOnBikeGfxIdFemale
compare VAR_RESULT, FEMALE
goto_if_eq EventScript_SetupRivalOnBikeGfxIdMale
end
EventScript_SetupRivalOnBikeGfxIdFemale:: @ 8271F13
setvar VAR_OBJ_GFX_ID_3, EVENT_OBJ_GFX_RIVAL_MAY_MACH_BIKE
return
EventScript_SetupRivalOnBikeGfxIdMale:: @ 8271F19
setvar VAR_OBJ_GFX_ID_3, EVENT_OBJ_GFX_RIVAL_BRENDAN_MACH_BIKE
return
@ Unused
Common_EventScript_SetupRivalGfxIdSameGender:: @ 8271F1F
checkplayergender
compare VAR_RESULT, MALE
goto_if_eq EventScript_SetupRivalGfxIdMale2
compare VAR_RESULT, FEMALE
goto_if_eq EventScript_SetupRivalGfxIdFemale2
end
EventScript_SetupRivalGfxIdMale2:: @ 8271F37
setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_RIVAL_BRENDAN_NORMAL
return
EventScript_SetupRivalGfxIdFemale2:: @ 8271F3D
setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_RIVAL_MAY_NORMAL
return

View File

@@ -1,103 +1,103 @@
EventScript_2A4B4C:: @ 82A4B4C
SafariZone_EventScript_OutOfBallsMidBattle:: @ 82A4B4C
setvar VAR_SAFARI_ZONE_STATE, 1
special ExitSafariMode
setwarp MAP_ROUTE121_SAFARI_ZONE_ENTRANCE, 255, 2, 5
end
EventScript_2A4B5D:: @ 82A4B5D
SafariZone_EventScript_Exit:: @ 82A4B5D
setvar VAR_SAFARI_ZONE_STATE, 1
special ExitSafariMode
warp MAP_ROUTE121_SAFARI_ZONE_ENTRANCE, 255, 2, 5
waitstate
end
EventScript_2A4B6F:: @ 82A4B6F
SafariZone_EventScript_RetirePrompt:: @ 82A4B6F
lockall
msgbox Text_2A4BF4, MSGBOX_YESNO
msgbox SafariZone_Text_WouldYouLikeToExit, MSGBOX_YESNO
compare VAR_RESULT, 1
goto_if_eq EventScript_2A4B85
goto_if_eq SafariZone_EventScript_Retire
releaseall
end
EventScript_2A4B85:: @ 82A4B85
goto EventScript_2A4B5D
SafariZone_EventScript_Retire:: @ 82A4B85
goto SafariZone_EventScript_Exit
EventScript_2A4B8A:: @ 82A4B8A
SafariZone_EventScript_TimesUp:: @ 82A4B8A
lockall
playse SE_PINPON
message Text_2A4C26
message SafariZone_Text_TimesUp
waitmessage
waitbuttonpress
releaseall
goto EventScript_2A4B5D
goto SafariZone_EventScript_Exit
EventScript_2A4B9B:: @ 82A4B9B
SafariZone_EventScript_OutOfBalls:: @ 82A4B9B
lockall
playse SE_PINPON
message Text_2A4C56
message SafariZone_Text_OutOfBalls
waitmessage
waitbuttonpress
releaseall
goto EventScript_2A4B5D
goto SafariZone_EventScript_Exit
EventScript_PokeBlockFeeder:: @ 82A4BAC
lockall
special GetPokeblockFeederInFront
compare VAR_RESULT, 65535
goto_if_ne EventScript_2A4BEB
msgbox Text_2A4C90, MSGBOX_YESNO
compare VAR_RESULT, 0xFFFF
goto_if_ne SafariZone_EventScript_PokeblockPresent
msgbox SafariZone_Text_PlacePokeblockOnFeeder, MSGBOX_YESNO
compare VAR_RESULT, 1
goto_if_eq EventScript_2A4BD0
goto_if_eq SafariZone_EventScript_ChoosePokeblock
releaseall
end
EventScript_2A4BD0:: @ 82A4BD0
SafariZone_EventScript_ChoosePokeblock:: @ 82A4BD0
fadescreen 1
special OpenPokeblockCaseOnFeeder
waitstate
compare VAR_RESULT, 65535
goto_if_ne EventScript_2A4BE2
compare VAR_RESULT, 0xFFFF
goto_if_ne SafariZone_EventScript_PokeblockPlaced
end
EventScript_2A4BE2:: @ 82A4BE2
message Text_2A4CEB
SafariZone_EventScript_PokeblockPlaced:: @ 82A4BE2
message SafariZone_Text_PokeblockWasPlaced
waitmessage
waitbuttonpress
releaseall
end
EventScript_2A4BEB:: @ 82A4BEB
message Text_2A4CC5
SafariZone_EventScript_PokeblockPresent:: @ 82A4BEB
message SafariZone_Text_PokeblockStillHere
waitmessage
waitbuttonpress
releaseall
end
Text_2A4BF4: @ 82A4BF4
SafariZone_Text_WouldYouLikeToExit: @ 82A4BF4
.string "Would you like to exit the SAFARI\n"
.string "ZONE right now?$"
Text_2A4C26: @ 82A4C26
SafariZone_Text_TimesUp: @ 82A4C26
.string "Ding-dong! Time's up!\n"
.string "Your SAFARI Game is over.$"
Text_2A4C56: @ 82A4C56
SafariZone_Text_OutOfBalls: @ 82A4C56
.string "You've run out of SAFARI BALLS.\n"
.string "Your SAFARI Game is over.$"
Text_2A4C90: @ 82A4C90
SafariZone_Text_PlacePokeblockOnFeeder: @ 82A4C90
.string "Would you like to place a {POKEBLOCK}\n"
.string "on the {POKEBLOCK} FEEDER?$"
Text_2A4CC5: @ 82A4CC5
SafariZone_Text_PokeblockStillHere: @ 82A4CC5
.string "The {STR_VAR_1} you left\n"
.string "before is still here.$"
Text_2A4CEB: @ 82A4CEB
SafariZone_Text_PokeblockWasPlaced: @ 82A4CEB
.string "The {STR_VAR_1} was placed\n"
.string "on the {POKEBLOCK} FEEDER.$"
Route121_SafariZoneEntrance_Text_2A4D12: @ 82A4D12
Route121_SafariZoneEntrance_Text_WelcomeToSafariZone: @ 82A4D12
.string "Welcome to the SAFARI ZONE!\p"
.string "Here, you may witness many kinds of\n"
.string "POKéMON rarely seen in HOENN.\p"
@@ -109,14 +109,14 @@ Route121_SafariZoneEntrance_Text_2A4D12: @ 82A4D12
.string "for keeps!\p"
.string "Come in and enjoy the SAFARI ZONE!$"
Route121_SafariZoneEntrance_Text_2A4E46: @ 82A4E46
Route121_SafariZoneEntrance_Text_WelcomeFirstTime: @ 82A4E46
.string "Welcome to the SAFARI ZONE!\n"
.string "Is it your first time here?$"
Route121_SafariZoneEntrance_Text_2A4E7E: @ 82A4E7E
Route121_SafariZoneEntrance_Text_ComeInAndEnjoy: @ 82A4E7E
.string "Come in and enjoy the SAFARI ZONE!$"
Route121_SafariZoneEntrance_Text_2A4EA1: @ 82A4EA1
Route121_SafariZoneEntrance_Text_FirstTimeInfo: @ 82A4EA1
.string "When you enter the SAFARI ZONE, you\n"
.string "start with 30 SAFARI BALLS for\l"
.string "catching POKéMON.\p"
@@ -125,39 +125,39 @@ Route121_SafariZoneEntrance_Text_2A4EA1: @ 82A4EA1
.string "walked 500 steps.\p"
.string "Come in and enjoy the SAFARI ZONE!$"
Route121_SafariZoneEntrance_Text_2A4F74: @ 82A4F74
Route121_SafariZoneEntrance_Text_WouldYouLikeToPlay: @ 82A4F74
.string "Welcome to the SAFARI ZONE!\p"
.string "All you can catch for just ¥500!\n"
.string "Would you like to play a SAFARI Game?$"
Route121_SafariZoneEntrance_Text_2A4FD7: @ 82A4FD7
Route121_SafariZoneEntrance_Text_PlayAnotherTime: @ 82A4FD7
.string "Okay.\n"
.string "Please play another time!$"
Route121_SafariZoneEntrance_Text_2A4FF7: @ 82A4FF7
Route121_SafariZoneEntrance_Text_NotEnoughMoney: @ 82A4FF7
.string "You don't have enough money.\n"
.string "Sorry.$"
Route121_SafariZoneEntrance_Text_2A501B: @ 82A501B
Route121_SafariZoneEntrance_Text_ThatWillBe500Please: @ 82A501B
.string "That will be ¥500, please.$"
Route121_SafariZoneEntrance_Text_2A5036: @ 82A5036
Route121_SafariZoneEntrance_Text_HereAreYourSafariBalls: @ 82A5036
.string "Here are your SAFARI BALLS.$"
Route121_SafariZoneEntrance_Text_2A5052: @ 82A5052
Route121_SafariZoneEntrance_Text_Received30SafariBalls: @ 82A5052
.string "{PLAYER} received 30 SAFARI BALLS.$"
Route121_SafariZoneEntrance_Text_2A506F: @ 82A506F
Route121_SafariZoneEntrance_Text_PleaseEnjoyYourself: @ 82A506F
.string "We'll let you know when your game\n"
.string "is over.\p"
.string "So, until then, enjoy yourself, please!\n"
.string "Off you go on your wild excursion!$"
Route121_SafariZoneEntrance_Text_2A50E5: @ 82A50E5
Route121_SafariZoneEntrance_Text_PCIsFull: @ 82A50E5
.string "Excuse me!\n"
.string "Your PC BOX is full.$"
Route121_SafariZoneEntrance_Text_2A5105: @ 82A5105
Route121_SafariZoneEntrance_Text_YouNeedPokeblockCase: @ 82A5105
.string "Excuse me!\n"
.string "You seem to be without a {POKEBLOCK} CASE.\p"
.string "Your SAFARI Game will be much more\n"
@@ -166,129 +166,129 @@ Route121_SafariZoneEntrance_Text_2A5105: @ 82A5105
.string "You may obtain a {POKEBLOCK} CASE from\n"
.string "the LILYCOVE CONTEST HALL.$"
SafariZone_South_Text_2A51D4: @ 82A51D4
SafariZone_South_Text_StillHaveTimeExit: @ 82A51D4
.string "You still have time left. Would you like\n"
.string "to exit the SAFARI ZONE now?$"
SafariZone_South_Text_2A521A: @ 82A521A
SafariZone_South_Text_EnjoyTheRestOfYourAdventure: @ 82A521A
.string "Please enjoy the rest of your wild\n"
.string "adventure!$"
SafariZone_South_Text_2A5248: @ 82A5248
SafariZone_South_Text_ExitEarlyThankYouForPlaying: @ 82A5248
.string "Okay.\p"
.string "I'll take back your remaining SAFARI\n"
.string "BALLS.\p"
.string "Thank you for playing.\n"
.string "We hope to see you again.$"
SafariZone_South_Text_2A52AB: @ 82A52AB
SafariZone_South_Text_GoodLuck: @ 82A52AB
.string "Good luck!\p"
.string "If you need anything, don't hesitate\n"
.string "to tell me, please!$"
SafariZone_South_Text_2A52EF: @ 82A52EF
SafariZone_South_Text_Boy: @ 82A52EF
.string "Did you know?\p"
.string "If you put a {POKEBLOCK} in that square box,\n"
.string "POKéMON gather around.$"
SafariZone_South_Text_2A533B: @ 82A533B
SafariZone_South_Text_Man: @ 82A533B
.string "I want to keep going deeper, but I\n"
.string "forgot to bring a BIKE.\p"
.string "Something tells me that rare POKéMON\n"
.string "live in the outlying areas.$"
SafariZone_Southwest_Text_2A53B7: @ 82A53B7
SafariZone_Southwest_Text_Woman: @ 82A53B7
.string "Sometimes, when I toss a {POKEBLOCK} at \n"
.string "POKéMON, it gets ignored.\p"
.string "Do POKéMON have likes and dislikes\n"
.string "about what they eat?$"
SafariZone_Northwest_Text_2A542C: @ 82A542C
SafariZone_Northwest_Text_Man: @ 82A542C
.string "Gasp… Gasp…\n"
.string "I…made it out here…but…\p"
.string "I'm exhausted… I don't have the\n"
.string "energy to catch POKéMON…$"
SafariZone_North_Text_2A5489: @ 82A5489
SafariZone_North_Text_Fisherman: @ 82A5489
.string "I'm on a mission to find WATER POKéMON\n"
.string "you don't see in HOENN.\p"
.string "Do you have any idea where the lake is?$"
SafariZone_North_Text_2A54F0: @ 82A54F0
SafariZone_North_Text_Man: @ 82A54F0
.string "I'm going to catch a lot of rare POKéMON\n"
.string "here and trade them with my friends!$"
SafariZone_South_Text_2A553E: @ 82A553E
SafariZone_South_Text_Youngster: @ 82A553E
.string "I put a {POKEBLOCK} on the {POKEBLOCK} FEEDER.\n"
.string "But it seems to have disappeared.\p"
.string "I guess POKéMON must have eaten it\n"
.string "without me noticing.$"
Route121_SafariZoneEntrance_Text_2A55BB: @ 82A55BB
Route121_SafariZoneEntrance_Text_TrainerTip: @ 82A55BB
.string "SAFARI ZONE TRAINER TIP!\p"
.string "Throw {POKEBLOCK}S at wild POKéMON to make\n"
.string "them less likely to flee.$"
SafariZone_Southwest_Text_2A5613: @ 82A5613
SafariZone_Southwest_Text_RestHouseSign: @ 82A5613
.string "“Relieve your tired feet.”\n"
.string "REST HOUSE$"
SafariZone_RestHouse_Text_2A5639: @ 82A5639
SafariZone_RestHouse_Text_Youngster: @ 82A5639
.string "I don't have any {POKEBLOCK}S, but I caught\n"
.string "a good number of POKéMON.\p"
.string "You can improve your chances of making\n"
.string "a catch by getting closer to them\l"
.string "before throwing a SAFARI BALL.$"
SafariZone_RestHouse_Text_2A56E1: @ 82A56E1
SafariZone_RestHouse_Text_PsychicM: @ 82A56E1
.string "If you use {POKEBLOCK}S, wild POKéMON won't\n"
.string "be so quick to run away.\p"
.string "It's not much use to give {POKEBLOCK}S to\n"
.string "POKéMON that don't flee easily.$"
SafariZone_RestHouse_Text_2A5764: @ 82A5764
SafariZone_RestHouse_Text_FatMan: @ 82A5764
.string "If you put a {POKEBLOCK} on the FEEDER,\n"
.string "POKéMON are attracted to it.\p"
.string "I think POKéMON with the same sort of\n"
.string "nature are drawn by a certain {POKEBLOCK}.$"
SafariZone_South_Text_2A57EE: @ 82A57EE
SafariZone_South_Text_AreaOffLimits1: @ 82A57EE
.string "This area is still under construction.\n"
.string "It's off-limits, sorry!$"
SafariZone_Southeast_Text_2A582D: @ 82A582D
SafariZone_Southeast_Text_ExpansionIsFinished: @ 82A582D
.string "The SAFARI ZONE's expansion project\n"
.string "is finished now.\p"
.string "We hope you will enjoy the new area.$"
SafariZone_South_Text_2A5887: @ 82A5887
SafariZone_South_Text_AreaOffLimits2: @ 82A5887
.string "This area is still under construction.\n"
.string "It's off-limits, sorry!$"
SafariZone_Southeast_Text_2A58C6: @ 82A58C6
SafariZone_Southeast_Text_LittleGirl: @ 82A58C6
.string "Wow! Whee! I haven't seen any of\n"
.string "these POKéMON before!$"
SafariZone_Southeast_Text_2A58FD: @ 82A58FD
SafariZone_Southeast_Text_FatMan: @ 82A58FD
.string "The POKéMON in this area are all\n"
.string "new to me.\p"
.string "And I'm allowed to catch these rare\n"
.string "POKéMON! Too cool!$"
SafariZone_Southeast_Text_2A5960: @ 82A5960
SafariZone_Southeast_Text_RichBoy: @ 82A5960
.string "The POKéMON around here seem to be\n"
.string "from somewhere other than HOENN.$"
SafariZone_Northeast_Text_2A59A4: @ 82A59A4
SafariZone_Northeast_Text_Boy: @ 82A59A4
.string "I only have a couple SAFARI BALLS left.\p"
.string "I'm having a hard time trying to\n"
.string "decide what I should catch.$"
SafariZone_Northeast_Text_2A5A09: @ 82A5A09
SafariZone_Northeast_Text_Woman: @ 82A5A09
.string "I heard that you can see PIKACHU here.\n"
.string "Where might one be?$"
SafariZone_Northeast_Text_2A5A44: @ 82A5A44
SafariZone_Northeast_Text_Girl: @ 82A5A44
.string "Oh, boo!\n"
.string "I can't seem to catch anything!\p"
.string "I'll end up wasting the admission\n"

View File

@@ -0,0 +1,92 @@
Common_EventScript_SetGymTrainers:: @ 8271F43
switch VAR_0x8008
case 1, RusboroCity_Gym_SetGymTrainers
case 2, DewfordTown_Gym_SetGymTrainers
case 3, MauvilleCity_Gym_SetGymTrainers
case 4, LavaridgeTown_Gym_SetGymTrainers
case 5, PetalburgCity_Gym_SetGymTrainers
case 6, FortreeCity_Gym_SetGymTrainers
case 7, MossdeepCity_Gym_SetGymTrainers
case 8, SootopolisCity_Gym_SetGymTrainers
end
RusboroCity_Gym_SetGymTrainers:: @ 8271FA1
settrainerflag TRAINER_JOSH
settrainerflag TRAINER_TOMMY
settrainerflag TRAINER_MARC
return
DewfordTown_Gym_SetGymTrainers:: @ 8271FAB
settrainerflag TRAINER_TAKAO
settrainerflag TRAINER_JOCELYN
settrainerflag TRAINER_LAURA
settrainerflag TRAINER_BRENDEN
settrainerflag TRAINER_CRISTIAN
settrainerflag TRAINER_LILITH
return
MauvilleCity_Gym_SetGymTrainers:: @ 8271FBE
settrainerflag TRAINER_KIRK
settrainerflag TRAINER_SHAWN
settrainerflag TRAINER_BEN
settrainerflag TRAINER_VIVIAN
settrainerflag TRAINER_ANGELO
return
LavaridgeTown_Gym_SetGymTrainers:: @ 8271FCE
settrainerflag TRAINER_COLE
settrainerflag TRAINER_AXLE
settrainerflag TRAINER_KEEGAN
settrainerflag TRAINER_GERALD
settrainerflag TRAINER_DANIELLE
settrainerflag TRAINER_JACE
settrainerflag TRAINER_JEFF
settrainerflag TRAINER_ELI
return
PetalburgCity_Gym_SetGymTrainers:: @ 8271FE7
settrainerflag TRAINER_RANDALL
settrainerflag TRAINER_PARKER
settrainerflag TRAINER_GEORGE
settrainerflag TRAINER_BERKE
settrainerflag TRAINER_MARY
settrainerflag TRAINER_ALEXIA
settrainerflag TRAINER_JODY
return
FortreeCity_Gym_SetGymTrainers:: @ 8271FFD
settrainerflag TRAINER_JARED
settrainerflag TRAINER_FLINT
settrainerflag TRAINER_ASHLEY
settrainerflag TRAINER_EDWARDO
settrainerflag TRAINER_HUMBERTO
settrainerflag TRAINER_DARIUS
return
MossdeepCity_Gym_SetGymTrainers:: @ 8272010
settrainerflag TRAINER_PRESTON
settrainerflag TRAINER_VIRGIL
settrainerflag TRAINER_BLAKE
settrainerflag TRAINER_HANNAH
settrainerflag TRAINER_SAMANTHA
settrainerflag TRAINER_MAURA
settrainerflag TRAINER_SYLVIA
settrainerflag TRAINER_NATE
settrainerflag TRAINER_KATHLEEN
settrainerflag TRAINER_CLIFFORD
settrainerflag TRAINER_MACEY
settrainerflag TRAINER_NICHOLAS
return
SootopolisCity_Gym_SetGymTrainers:: @ 8272035
settrainerflag TRAINER_ANDREA
settrainerflag TRAINER_CRISSY
settrainerflag TRAINER_BRIANNA
settrainerflag TRAINER_CONNIE
settrainerflag TRAINER_BRIDGET
settrainerflag TRAINER_OLIVIA
settrainerflag TRAINER_TIFFANY
settrainerflag TRAINER_BETHANY
settrainerflag TRAINER_ANNIKA
settrainerflag TRAINER_DAPHNE
return

View File

@@ -20,7 +20,7 @@ SecretBase_MapScript2_OnFrame: @ 823B4AE
.2byte 0
SecretBase_MapScript1_OnResume: @ 823B4B8
setstepcallback 6
setstepcallback STEP_CB_SECRET_BASE
end
SecretBase_EventScript_PC:: @ 823B4BB

16
data/scripts/surf.inc Normal file
View File

@@ -0,0 +1,16 @@
EventScript_UseSurf:: @ 8271EA0
checkpartymove MOVE_SURF
compare VAR_RESULT, PARTY_SIZE
goto_if_eq EventScript_EndUseSurf
bufferpartymonnick 0, VAR_RESULT
setfieldeffectargument 0, VAR_RESULT
lockall
msgbox gText_WantToUseSurf, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq EventScript_ReleaseUseSurf
msgbox gText_PlayerUsedSurf, MSGBOX_DEFAULT
dofieldeffect FLDEFF_USE_SURF
EventScript_ReleaseUseSurf:: @ 8271ED5
releaseall
EventScript_EndUseSurf:: @ 8271ED6
end

View File

@@ -0,0 +1,7 @@
Text_ThisIsATestSignpostMsg:: @ 82C840A
.string "This is a test message.\n"
.string "This is a signpost.$"
EventScript_TestSignpostMsg:: @ 82C8436
msgbox Text_ThisIsATestSignpostMsg, MSGBOX_SIGN
end

View File

@@ -1,3 +1,7 @@
EventScript_271354:: @ 8271354
cmdD8
cmdD9
EventScript_ShowSecondTrainerIntro:: @ 8271356
special SetUpTrainerEncounterMusic
special EndTrainerApproach

View File

@@ -0,0 +1,23 @@
Std_RegisteredInMatchCall:: @ 82742C9
buffertrainerclassname 0, VAR_0x8000
buffertrainername 1, VAR_0x8000
closemessage
delay 30
playfanfare MUS_ME_TORE_EYE
msgbox gText_RegisteredTrainerinPokeNav, MSGBOX_DEFAULT
waitfanfare
closemessage
delay 30
return
EventScript_TryGetTrainerScript:: @ 82742E6
special ShouldTryGetTrainerScript
compare VAR_RESULT, 1
goto_if_eq EventScript_GotoTrainerScript
releaseall
end
EventScript_GotoTrainerScript:: @ 82742F6
gotobeatenscript
releaseall
end

View File

@@ -4,9 +4,9 @@ EventScript_TV:: @ 827EE0B
special ResetTVShowState
specialvar VAR_RESULT, CheckForBigMovieOrEmergencyNewsOnTV
compare VAR_RESULT, 2
goto_if_eq EventScript_27EE9A
goto_if_eq EventScript_PlayersHouseMovie
compare VAR_RESULT, 1
goto_if_eq EventScript_27EEA4
goto_if_eq EventScript_PlayersHouseLatiNewsFlash
goto_if_unset FLAG_SYS_TV_START, EventScript_27EE8A
goto_if_set FLAG_SYS_TV_WATCH, EventScript_27EE8A
specialvar VAR_RESULT, IsTVShowInSearchOfTrainersAiring
@@ -35,13 +35,13 @@ EventScript_27EE8A:: @ 827EE8A
releaseall
end
EventScript_27EE9A:: @ 827EE9A
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7F0F, MSGBOX_DEFAULT
EventScript_PlayersHouseMovie:: @ 827EE9A
msgbox PlayersHouse_1F_Text_TheresAMovieOnTV, MSGBOX_DEFAULT
releaseall
end
EventScript_27EEA4:: @ 827EEA4
msgbox LittlerootTown_BrendansHouse_1F_Text_1F826F, MSGBOX_DEFAULT
EventScript_PlayersHouseLatiNewsFlash:: @ 827EEA4
msgbox PlayersHouse_1F_Text_LatiEmergencyNewsFlash, MSGBOX_DEFAULT
@ This is a junk call. Its input var (VAR_0x8004) hasn't been set, and
@ It's called again when Mom actually asks for the color, overwriting
@ whatever it does here.