2021-07-20 21:18:31 +02:00
|
|
|
BerryTreeScript::
|
2019-11-21 04:55:44 +01:00
|
|
|
special ObjectEventInteractionGetBerryTreeData
|
2017-11-11 23:10:17 +01:00
|
|
|
switch VAR_0x8004
|
2019-10-20 08:31:51 +02:00
|
|
|
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
|
2017-11-11 23:10:17 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_Sparkling::
|
2017-11-11 23:10:17 +01:00
|
|
|
lockall
|
2019-04-05 01:28:37 +02:00
|
|
|
message BerryTree_Text_ExclamationPoint
|
2017-11-11 23:10:17 +01:00
|
|
|
waitmessage
|
|
|
|
waitbuttonpress
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_CheckSoil::
|
2017-11-11 23:10:17 +01:00
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
specialvar VAR_RESULT, PlayerHasBerries
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, TRUE, BerryTree_EventScript_WantToPlant
|
2019-04-05 01:28:37 +02:00
|
|
|
message BerryTree_Text_ItsSoftLoamySoil
|
2017-11-11 23:10:17 +01:00
|
|
|
waitmessage
|
|
|
|
waitbuttonpress
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_WantToPlant::
|
2019-04-05 01:28:37 +02:00
|
|
|
msgbox BerryTree_Text_WantToPlant, MSGBOX_YESNO
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, YES, BerryTree_EventScript_ChooseBerryToPlant
|
|
|
|
goto_if_eq VAR_RESULT, NO, BerryTree_EventScript_CancelPlanting
|
2017-11-11 23:10:17 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_ChooseBerryToPlant::
|
2019-12-15 17:42:50 +01:00
|
|
|
fadescreen FADE_TO_BLACK
|
2017-11-11 23:10:17 +01:00
|
|
|
closemessage
|
|
|
|
special Bag_ChooseBerry
|
|
|
|
waitstate
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_ITEM_ID, 0, BerryTree_EventScript_CancelPlanting
|
2020-01-13 05:24:52 +01:00
|
|
|
removeitem VAR_ITEM_ID
|
2019-04-05 01:28:37 +02:00
|
|
|
call BerryTree_EventScript_PlantBerry
|
2017-11-11 23:10:17 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_CancelPlanting::
|
2017-11-11 23:10:17 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_CheckBerryStage1::
|
2017-11-11 23:10:17 +01:00
|
|
|
lockall
|
2019-11-21 04:55:44 +01:00
|
|
|
special ObjectEventInteractionGetBerryCountString
|
2019-04-05 01:28:37 +02:00
|
|
|
message BerryTree_Text_BerryGrowthStage1
|
2017-11-11 23:10:17 +01:00
|
|
|
waitmessage
|
|
|
|
waitbuttonpress
|
2019-04-05 01:28:37 +02:00
|
|
|
goto BerryTree_EventScript_WantToWater
|
2017-11-11 23:10:17 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_CheckBerryStage2::
|
2017-11-11 23:10:17 +01:00
|
|
|
lockall
|
2019-11-21 04:55:44 +01:00
|
|
|
special ObjectEventInteractionGetBerryName
|
2019-04-05 01:28:37 +02:00
|
|
|
message BerryTree_Text_BerryGrowthStage2
|
2017-11-11 23:10:17 +01:00
|
|
|
waitmessage
|
|
|
|
waitbuttonpress
|
2019-04-05 01:28:37 +02:00
|
|
|
goto BerryTree_EventScript_WantToWater
|
2017-11-11 23:10:17 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_CheckBerryStage3::
|
2017-11-11 23:10:17 +01:00
|
|
|
lockall
|
2019-11-21 04:55:44 +01:00
|
|
|
special ObjectEventInteractionGetBerryName
|
2019-04-05 01:28:37 +02:00
|
|
|
message BerryTree_Text_BerryGrowthStage3
|
2017-11-11 23:10:17 +01:00
|
|
|
waitmessage
|
|
|
|
waitbuttonpress
|
2019-04-05 01:28:37 +02:00
|
|
|
goto BerryTree_EventScript_WantToWater
|
2017-11-11 23:10:17 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_CheckBerryStage4::
|
2019-04-05 01:28:37 +02:00
|
|
|
call BerryTree_EventScript_GetCareAdverb
|
2017-11-11 23:10:17 +01:00
|
|
|
lockall
|
2019-11-21 04:55:44 +01:00
|
|
|
special ObjectEventInteractionGetBerryName
|
2019-04-05 01:28:37 +02:00
|
|
|
message BerryTree_Text_BerryGrowthStage4
|
2017-11-11 23:10:17 +01:00
|
|
|
waitmessage
|
|
|
|
waitbuttonpress
|
2019-04-05 01:28:37 +02:00
|
|
|
goto BerryTree_EventScript_WantToWater
|
2017-11-11 23:10:17 +01:00
|
|
|
|
2019-10-20 08:31:51 +02:00
|
|
|
@ VAR_0x8005 here is the number of times watered
|
2019-11-21 04:55:44 +01:00
|
|
|
@ Buffered by ObjectEventInteractionGetBerryTreeData
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_GetCareAdverb::
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_0x8005, 0, BerryTree_EventScript_SetAdverbPoor
|
|
|
|
goto_if_eq VAR_0x8005, 4, BerryTree_EventScript_SetAdverbGreat
|
2021-11-18 04:00:44 +01:00
|
|
|
bufferstring STR_VAR_2, BerryTree_Text_CareAdverbGood
|
2017-11-11 23:10:17 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_SetAdverbGreat::
|
2021-11-18 04:00:44 +01:00
|
|
|
bufferstring STR_VAR_2, BerryTree_Text_CareAdverbGreat
|
2017-11-11 23:10:17 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_SetAdverbPoor::
|
2021-11-18 04:00:44 +01:00
|
|
|
bufferstring STR_VAR_2, BerryTree_Text_CareAdverbPoor
|
2017-11-11 23:10:17 +01:00
|
|
|
return
|
|
|
|
|
2019-10-20 08:31:51 +02:00
|
|
|
@ VAR_0x8006 here is the number of berries
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_CheckBerryFullyGrown::
|
2021-11-18 04:00:44 +01:00
|
|
|
buffernumberstring STR_VAR_2, VAR_0x8006
|
2017-11-11 23:10:17 +01:00
|
|
|
lock
|
|
|
|
faceplayer
|
2019-11-21 04:55:44 +01:00
|
|
|
special ObjectEventInteractionGetBerryCountString
|
2019-04-05 01:28:37 +02:00
|
|
|
msgbox BerryTree_Text_WantToPick, MSGBOX_YESNO
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, YES, BerryTree_EventScript_PickBerry
|
|
|
|
goto_if_eq VAR_RESULT, NO, BerryTree_EventScript_CancelPickingBerry
|
2017-11-11 23:10:17 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_PickBerry::
|
2019-11-21 04:55:44 +01:00
|
|
|
special ObjectEventInteractionPickBerryTree
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_0x8004, 0, BerryTree_EventScript_BerryPocketFull
|
2019-10-20 08:31:51 +02:00
|
|
|
special IncrementDailyPickedBerries
|
2019-11-21 04:55:44 +01:00
|
|
|
special ObjectEventInteractionRemoveBerryTree
|
2019-04-05 01:28:37 +02:00
|
|
|
message BerryTree_Text_PickedTheBerry
|
2020-08-21 00:02:00 +02:00
|
|
|
playfanfare MUS_OBTAIN_BERRY
|
2017-11-11 23:10:17 +01:00
|
|
|
waitmessage
|
|
|
|
waitfanfare
|
|
|
|
waitbuttonpress
|
2019-04-05 01:28:37 +02:00
|
|
|
message BerryTree_Text_PutAwayBerry
|
2017-11-11 23:10:17 +01:00
|
|
|
waitmessage
|
|
|
|
waitbuttonpress
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_BerryPocketFull::
|
2019-04-05 01:28:37 +02:00
|
|
|
message BerryTree_Text_BerryPocketFull
|
2017-11-11 23:10:17 +01:00
|
|
|
waitmessage
|
|
|
|
waitbuttonpress
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_CancelPickingBerry::
|
2019-04-05 01:28:37 +02:00
|
|
|
message BerryTree_Text_BerryLeftUnpicked
|
2017-11-11 23:10:17 +01:00
|
|
|
waitmessage
|
|
|
|
waitbuttonpress
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_ItemUsePlantBerry::
|
2017-11-11 23:10:17 +01:00
|
|
|
lockall
|
2019-11-21 04:55:44 +01:00
|
|
|
special ObjectEventInteractionGetBerryTreeData
|
2019-04-05 01:28:37 +02:00
|
|
|
call BerryTree_EventScript_PlantBerry
|
2017-11-11 23:10:17 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_WantToWater::
|
2021-08-05 18:46:11 +02:00
|
|
|
checkitem ITEM_WAILMER_PAIL
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, FALSE, BerryTree_EventScript_DontWater
|
2019-11-21 04:55:44 +01:00
|
|
|
special ObjectEventInteractionGetBerryName
|
2019-04-05 01:28:37 +02:00
|
|
|
msgbox BerryTree_Text_WantToWater, MSGBOX_YESNO
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, YES, BerryTree_EventScript_WaterBerry
|
|
|
|
goto_if_eq VAR_RESULT, NO, BerryTree_EventScript_DontWater
|
2017-11-11 23:10:17 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_DontWater::
|
2017-11-11 23:10:17 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_ItemUseWailmerPail::
|
2019-11-21 04:55:44 +01:00
|
|
|
special ObjectEventInteractionGetBerryTreeData
|
2017-11-11 23:10:17 +01:00
|
|
|
lockall
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_WaterBerry::
|
2019-11-21 04:55:44 +01:00
|
|
|
special ObjectEventInteractionGetBerryName
|
2019-04-05 01:28:37 +02:00
|
|
|
message BerryTree_Text_WateredTheBerry
|
2017-11-11 23:10:17 +01:00
|
|
|
waitmessage
|
2019-11-21 04:55:44 +01:00
|
|
|
special ObjectEventInteractionWaterBerryTree
|
2018-12-10 04:24:54 +01:00
|
|
|
special DoWateringBerryTreeAnim
|
2017-11-11 23:10:17 +01:00
|
|
|
waitstate
|
2019-04-05 01:28:37 +02:00
|
|
|
message BerryTree_Text_PlantIsDelighted
|
2017-11-11 23:10:17 +01:00
|
|
|
waitmessage
|
|
|
|
waitbuttonpress
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_EventScript_PlantBerry::
|
2019-11-21 04:55:44 +01:00
|
|
|
special ObjectEventInteractionPlantBerryTree
|
2019-09-05 20:56:34 +02:00
|
|
|
incrementgamestat GAME_STAT_PLANTED_BERRIES
|
2019-10-20 08:31:51 +02:00
|
|
|
special IncrementDailyPlantedBerries
|
2019-11-21 04:55:44 +01:00
|
|
|
special ObjectEventInteractionGetBerryCountString
|
2019-04-05 01:28:37 +02:00
|
|
|
message BerryTree_Text_PlantedOneBerry
|
2017-11-11 23:10:17 +01:00
|
|
|
waitmessage
|
|
|
|
waitbuttonpress
|
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_ItsSoftLoamySoil:
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "It's soft, loamy soil.$"
|
2017-11-11 23:10:17 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_WantToPlant:
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "It's soft, loamy soil.\n"
|
2017-11-11 23:10:17 +01:00
|
|
|
.string "Want to plant a BERRY?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_PlantedOneBerry:
|
2017-11-11 23:10:17 +01:00
|
|
|
.string "{PLAYER} planted one {STR_VAR_1} in\n"
|
|
|
|
.string "the soft, loamy soil.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_BerryGrowthStage1:
|
2017-11-11 23:10:17 +01:00
|
|
|
.string "One {STR_VAR_1} was planted here.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_BerryGrowthStage2:
|
2017-11-11 23:10:17 +01:00
|
|
|
.string "{STR_VAR_1} has sprouted.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_BerryGrowthStage3:
|
2017-11-11 23:10:17 +01:00
|
|
|
.string "This {STR_VAR_1} plant is growing taller.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_BerryGrowthStage4:
|
2017-11-11 23:10:17 +01:00
|
|
|
.string "These {STR_VAR_1} flowers are blooming\n"
|
|
|
|
.string "{STR_VAR_2}.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_CareAdverbGreat:
|
2017-11-11 23:10:17 +01:00
|
|
|
.string "very beautifully$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_CareAdverbPoor:
|
2017-11-11 23:10:17 +01:00
|
|
|
.string "cutely$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_CareAdverbGood:
|
2017-11-11 23:10:17 +01:00
|
|
|
.string "prettily$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_WantToPick:
|
2017-11-11 23:10:17 +01:00
|
|
|
.string "You found {STR_VAR_2} {STR_VAR_1}!\p"
|
|
|
|
.string "Do you want to pick the\n"
|
|
|
|
.string "{STR_VAR_1}?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_PickedTheBerry:
|
2017-11-11 23:10:17 +01:00
|
|
|
.string "{PLAYER} picked the {STR_VAR_2} {STR_VAR_1}.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_PutAwayBerry:
|
2017-11-11 23:10:17 +01:00
|
|
|
.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"
|
2017-11-11 23:10:17 +01:00
|
|
|
.string "The soil returned to its soft and\n"
|
|
|
|
.string "loamy state.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_BerryPocketFull:
|
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.$"
|
2017-11-11 23:10:17 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_BerryLeftUnpicked:
|
2017-11-11 23:10:17 +01:00
|
|
|
.string "{PLAYER} left the {STR_VAR_1}\n"
|
|
|
|
.string "unpicked.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_WantToWater:
|
2017-11-11 23:10:17 +01:00
|
|
|
.string "Want to water the {STR_VAR_1} with the\n"
|
|
|
|
.string "WAILMER PAIL?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_WateredTheBerry:
|
2017-11-11 23:10:17 +01:00
|
|
|
.string "{PLAYER} watered the {STR_VAR_1}.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_PlantIsDelighted:
|
2017-11-11 23:10:17 +01:00
|
|
|
.string "The plant seems to be delighted.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
BerryTree_Text_ExclamationPoint:
|
2017-11-11 23:10:17 +01:00
|
|
|
.string "!$"
|