Skip to content

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.

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

boolean - false when the player holds no item with that id

SetPlayerItemTag(pid, "contract-4", "Signed contract", "Signed by both parties on the feast of St. Wenceslas.")

GivePlayerTaggedItem · FindPlayerItem · the Items and inventory group of the index