Skip to content

SetPickupQuality

Sets the quality a pickup’s item has.

1..4 (I..IV; 0 = the class’s own): every screen makes the item lying there at that quality, and whoever takes it keeps it. Set it right after the pickup is made (CreatePickup takes it as an argument too): a screen that shows the pickup already keeps the one it made. A player’s drop has the dropped item’s quality already.

SetPickupQuality(id, quality)
Parameter Type
id number the pickup
quality number the quality, 1..4; 0 = the class’s own

boolean - false for an entity that is no item pickup

local id = CreatePickup("shortswordBroad", x, y, z)
SetPickupQuality(id, 4)

GetPickupQuality · CreatePickup · SetPickupHealth · the Items and inventory group of the index