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.
Syntax
Section titled “Syntax”SetPickupQuality(id, quality)| Parameter | Type | |
|---|---|---|
id |
number | the pickup |
quality |
number | the quality, 1..4; 0 = the class’s own |
Returns
Section titled “Returns”boolean - false for an entity that is no item pickup
Example
Section titled “Example”local id = CreatePickup("shortswordBroad", x, y, z)SetPickupQuality(id, 4)See also
Section titled “See also”GetPickupQuality · CreatePickup · SetPickupHealth · the Items and inventory group of the index
