pokeemerald/data/scripts/berry_tree.inc

264 lines
7.2 KiB
PHP
Raw Normal View History

BerryTreeScript:: @ 82742F9
special ObjectEventInteractionGetBerryTreeData
switch VAR_0x8004
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_Sparkling:: @ 827434F
lockall
2019-04-05 01:28:37 +02:00
message BerryTree_Text_ExclamationPoint
waitmessage
waitbuttonpress
releaseall
end
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_CheckSoil:: @ 8274359
lock
faceplayer
specialvar VAR_RESULT, PlayerHasBerries
compare VAR_RESULT, TRUE
2019-04-05 01:28:37 +02:00
goto_if_eq BerryTree_EventScript_WantToPlant
message BerryTree_Text_ItsSoftLoamySoil
waitmessage
waitbuttonpress
release
end
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_WantToPlant:: @ 8274374
msgbox BerryTree_Text_WantToPlant, MSGBOX_YESNO
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, YES
2019-04-05 01:28:37 +02:00
goto_if_eq BerryTree_EventScript_ChooseBerryToPlant
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, NO
2019-04-05 01:28:37 +02:00
goto_if_eq BerryTree_EventScript_CancelPlanting
end
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_ChooseBerryToPlant:: @ 8274393
2019-12-15 17:42:50 +01:00
fadescreen FADE_TO_BLACK
closemessage
special Bag_ChooseBerry
waitstate
compare VAR_ITEM_ID, 0
2019-04-05 01:28:37 +02:00
goto_if_eq BerryTree_EventScript_CancelPlanting
removeitem VAR_ITEM_ID
2019-04-05 01:28:37 +02:00
call BerryTree_EventScript_PlantBerry
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_CancelPlanting:: @ 82743AF
release
end
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_CheckBerryStage1:: @ 82743B1
lockall
special ObjectEventInteractionGetBerryCountString
2019-04-05 01:28:37 +02:00
message BerryTree_Text_BerryGrowthStage1
waitmessage
waitbuttonpress
2019-04-05 01:28:37 +02:00
goto BerryTree_EventScript_WantToWater
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_CheckBerryStage2:: @ 82743C1
lockall
special ObjectEventInteractionGetBerryName
2019-04-05 01:28:37 +02:00
message BerryTree_Text_BerryGrowthStage2
waitmessage
waitbuttonpress
2019-04-05 01:28:37 +02:00
goto BerryTree_EventScript_WantToWater
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_CheckBerryStage3:: @ 82743D1
lockall
special ObjectEventInteractionGetBerryName
2019-04-05 01:28:37 +02:00
message BerryTree_Text_BerryGrowthStage3
waitmessage
waitbuttonpress
2019-04-05 01:28:37 +02:00
goto BerryTree_EventScript_WantToWater
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_CheckBerryStage4:: @ 82743E1
call BerryTree_EventScript_GetCareAdverb
lockall
special ObjectEventInteractionGetBerryName
2019-04-05 01:28:37 +02:00
message BerryTree_Text_BerryGrowthStage4
waitmessage
waitbuttonpress
2019-04-05 01:28:37 +02:00
goto BerryTree_EventScript_WantToWater
@ VAR_0x8005 here is the number of times watered
@ Buffered by ObjectEventInteractionGetBerryTreeData
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_GetCareAdverb:: @ 82743F6
compare VAR_0x8005, 0
2019-04-05 01:28:37 +02:00
goto_if_eq BerryTree_EventScript_SetAdverbPoor
compare VAR_0x8005, 4
2019-04-05 01:28:37 +02:00
goto_if_eq BerryTree_EventScript_SetAdverbGreat
bufferstring 1, BerryTree_Text_CareAdverbGood
return
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_SetAdverbGreat:: @ 8274413
bufferstring 1, BerryTree_Text_CareAdverbGreat
return
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_SetAdverbPoor:: @ 827441A
bufferstring 1, BerryTree_Text_CareAdverbPoor
return
@ VAR_0x8006 here is the number of berries
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_CheckBerryFullyGrown:: @ 8274421
buffernumberstring 1, VAR_0x8006
lock
faceplayer
special ObjectEventInteractionGetBerryCountString
2019-04-05 01:28:37 +02:00
msgbox BerryTree_Text_WantToPick, MSGBOX_YESNO
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, YES
2019-04-05 01:28:37 +02:00
goto_if_eq BerryTree_EventScript_PickBerry
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, NO
2019-04-05 01:28:37 +02:00
goto_if_eq BerryTree_EventScript_CancelPickingBerry
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_PickBerry:: @ 8274448
special ObjectEventInteractionPickBerryTree
compare VAR_0x8004, 0
2019-04-05 01:28:37 +02:00
goto_if_eq BerryTree_EventScript_BerryPocketFull
special IncrementDailyPickedBerries
special ObjectEventInteractionRemoveBerryTree
2019-04-05 01:28:37 +02:00
message BerryTree_Text_PickedTheBerry
2017-12-22 08:46:19 +01:00
playfanfare MUS_ME_KINOMI
waitmessage
waitfanfare
waitbuttonpress
2019-04-05 01:28:37 +02:00
message BerryTree_Text_PutAwayBerry
waitmessage
waitbuttonpress
release
end
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_BerryPocketFull:: @ 8274470
message BerryTree_Text_BerryPocketFull
waitmessage
waitbuttonpress
release
end
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_CancelPickingBerry:: @ 8274479
message BerryTree_Text_BerryLeftUnpicked
waitmessage
waitbuttonpress
release
end
BerryTree_EventScript_ItemUsePlantBerry:: @ 8274482
lockall
special ObjectEventInteractionGetBerryTreeData
2019-04-05 01:28:37 +02:00
call BerryTree_EventScript_PlantBerry
releaseall
end
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_WantToWater:: @ 827448D
checkitem ITEM_WAILMER_PAIL, 1
compare VAR_RESULT, 0
2019-04-05 01:28:37 +02:00
goto_if_eq BerryTree_EventScript_DontWater
special ObjectEventInteractionGetBerryName
2019-04-05 01:28:37 +02:00
msgbox BerryTree_Text_WantToWater, MSGBOX_YESNO
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, YES
2019-04-05 01:28:37 +02:00
goto_if_eq BerryTree_EventScript_WaterBerry
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, NO
2019-04-05 01:28:37 +02:00
goto_if_eq BerryTree_EventScript_DontWater
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_DontWater:: @ 82744BE
releaseall
end
BerryTree_EventScript_ItemUseWailmerPail:: @ 82744C0
special ObjectEventInteractionGetBerryTreeData
lockall
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_WaterBerry:: @ 82744C4
special ObjectEventInteractionGetBerryName
2019-04-05 01:28:37 +02:00
message BerryTree_Text_WateredTheBerry
waitmessage
special ObjectEventInteractionWaterBerryTree
special DoWateringBerryTreeAnim
waitstate
2019-04-05 01:28:37 +02:00
message BerryTree_Text_PlantIsDelighted
waitmessage
waitbuttonpress
releaseall
end
2019-04-05 01:28:37 +02:00
BerryTree_EventScript_PlantBerry:: @ 82744DD
special ObjectEventInteractionPlantBerryTree
incrementgamestat GAME_STAT_PLANTED_BERRIES
special IncrementDailyPlantedBerries
special ObjectEventInteractionGetBerryCountString
2019-04-05 01:28:37 +02:00
message BerryTree_Text_PlantedOneBerry
waitmessage
waitbuttonpress
return
2019-04-05 01:28:37 +02:00
BerryTree_Text_ItsSoftLoamySoil: @ 82744F0
2018-12-07 16:41:08 +01:00
.string "It's soft, loamy soil.$"
2019-04-05 01:28:37 +02:00
BerryTree_Text_WantToPlant: @ 8274507
2018-12-07 16:41:08 +01:00
.string "It's soft, loamy soil.\n"
.string "Want to plant a BERRY?$"
2019-04-05 01:28:37 +02:00
BerryTree_Text_PlantedOneBerry: @ 8274535
.string "{PLAYER} planted one {STR_VAR_1} in\n"
.string "the soft, loamy soil.$"
2019-04-05 01:28:37 +02:00
BerryTree_Text_BerryGrowthStage1: @ 8274560
.string "One {STR_VAR_1} was planted here.$"
2019-04-05 01:28:37 +02:00
BerryTree_Text_BerryGrowthStage2: @ 8274579
.string "{STR_VAR_1} has sprouted.$"
2019-04-05 01:28:37 +02:00
BerryTree_Text_BerryGrowthStage3: @ 827458A
.string "This {STR_VAR_1} plant is growing taller.$"
2019-04-05 01:28:37 +02:00
BerryTree_Text_BerryGrowthStage4: @ 82745AB
.string "These {STR_VAR_1} flowers are blooming\n"
.string "{STR_VAR_2}.$"
2019-04-05 01:28:37 +02:00
BerryTree_Text_CareAdverbGreat: @ 82745CD
.string "very beautifully$"
2019-04-05 01:28:37 +02:00
BerryTree_Text_CareAdverbPoor: @ 82745DE
.string "cutely$"
2019-04-05 01:28:37 +02:00
BerryTree_Text_CareAdverbGood: @ 82745E5
.string "prettily$"
2019-04-05 01:28:37 +02:00
BerryTree_Text_WantToPick: @ 82745EE
.string "You found {STR_VAR_2} {STR_VAR_1}!\p"
.string "Do you want to pick the\n"
.string "{STR_VAR_1}?$"
2019-04-05 01:28:37 +02:00
BerryTree_Text_PickedTheBerry: @ 827461B
.string "{PLAYER} picked the {STR_VAR_2} {STR_VAR_1}.$"
2019-04-05 01:28:37 +02:00
BerryTree_Text_PutAwayBerry: @ 8274630
.string "{PLAYER} put away the {STR_VAR_1}\n"
2018-12-07 16:41:08 +01:00
.string "in the BAG's BERRIES POCKET.\p"
.string "The soil returned to its soft and\n"
.string "loamy state.$"
2019-04-05 01:28:37 +02:00
BerryTree_Text_BerryPocketFull: @ 827468F
2018-12-07 16:41:08 +01:00
.string "The BAG's BERRIES POCKET is full.\p"
.string "The {STR_VAR_1} couldn't be taken.$"
2019-04-05 01:28:37 +02:00
BerryTree_Text_BerryLeftUnpicked: @ 82746CB
.string "{PLAYER} left the {STR_VAR_1}\n"
.string "unpicked.$"
2019-04-05 01:28:37 +02:00
BerryTree_Text_WantToWater: @ 82746E4
.string "Want to water the {STR_VAR_1} with the\n"
.string "WAILMER PAIL?$"
2019-04-05 01:28:37 +02:00
BerryTree_Text_WateredTheBerry: @ 8274710
.string "{PLAYER} watered the {STR_VAR_1}.$"
2019-04-05 01:28:37 +02:00
BerryTree_Text_PlantIsDelighted: @ 8274723
.string "The plant seems to be delighted.$"
2019-04-05 01:28:37 +02:00
BerryTree_Text_ExclamationPoint: @ 8274744
.string "!$"