sovereignx/data/text/obtain_item.inc
psf bf8b09b1b6
Item Ball refactor / Pluralize item names for giveitem and finditem (#3942)
* Emptied out item_ball_scripts
Added GetObjectEventTrainerRangeFromTemplate
Added Common_EventScript_FindItem

* Replaced trainer_sight_or_berry_tree_id with item constant
Replaced scripts with Common_EventScript_FindItem

* Renamed to GetItemBallIdAndAmountFromTemplate
Moved to item_ball.c

* Updated ObjectEventTemplate

* Updated inc files to support plural item names

* Refactored CopyItemNameHandlePlural to handle all items

* Change failsafe in GetItemBallIdFromTemplate to be ITEM_NONE + 1 instead of ITEMS_COUNT

* Converted spaces to tabs
https://github.com/rh-hideout/pokeemerald-expansion/pull/3942\#discussion_r1446415663
https://github.com/rh-hideout/pokeemerald-expansion/pull/3942\#discussion_r1446415525
https://github.com/rh-hideout/pokeemerald-expansion/pull/3942\#discussion_r1446415409
https://github.com/rh-hideout/pokeemerald-expansion/pull/3942\#discussion_r1446415130

* Added warning on object_event macro to prevent silent failure
Reverted global.fieldmap to original state, per feedback

---------

Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
2024-01-14 21:35:45 +01:00

37 lines
908 B
PHP

gText_ObtainedTheItem::
.string "Obtained the {STR_VAR_2}!$"
gText_TheBagIsFull::
.string "The BAG is full…$"
gText_PutItemInPocket::
.string "{PLAYER} put away the {STR_VAR_2}\n"
.string "in the {STR_VAR_3} POCKET.$"
gText_PlayerFoundOneItem::
.string "{PLAYER} found one {STR_VAR_2}!$"
gText_TooBadBagIsFull::
.string "Too bad!\n"
.string "The BAG is full…$"
gText_PlayerPutItemInBag::
.string "{PLAYER} put away the {STR_VAR_2}\n"
.string "in the BAG.$"
gText_ObtainedTheDecor::
.string "Obtained the {STR_VAR_2}!$"
gText_NoRoomLeftForAnother::
.string "Too bad! There's no room left for\n"
.string "another {STR_VAR_2}…$"
gText_TheDecorWasTransferredToThePC::
.string "The {STR_VAR_2} was transferred\n"
.string "to the PC.$"
gText_ObtainedTheItems::
.string "Obtained {STR_VAR_1} {STR_VAR_2}!$"
gText_PlayerFoundItems::
.string "{PLAYER} found {STR_VAR_1} {STR_VAR_2}!$"