SetPlayerItemTag
Renames one of the player’s tagged items - a contract signed, a letter opened.
Sets the name and text the game’s item panel shows for the tagged item with that id (GivePlayerTaggedItem); the
player’s game shows them at once. "" gives back the class’s own.
Syntax
Section titled “Syntax”SetPlayerItemTag(pid, id, name, text)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
id |
string | the item’s id |
name |
string | the new name |
text |
string | the new description |
Returns
Section titled “Returns”boolean - false when the player holds no item with that id
Example
Section titled “Example”SetPlayerItemTag(pid, "contract-4", "Signed contract", "Signed by both parties on the feast of St. Wenceslas.")See also
Section titled “See also”GivePlayerTaggedItem · FindPlayerItem · the Items and inventory group of the index
