SetContainerPreset
Gives a container a loot preset and fills it from it now.
The chest is rolled from the preset at once (whoever has it open sees the new list) and again after every restock period
once somebody touches it. An empty name takes the preset away: the contents stay as they are and nothing restocks.
false for a preset the tables do not have.
Syntax
Section titled “Syntax”SetContainerPreset(key, preset)| Parameter | Type | |
|---|---|---|
key |
string | the container’s level name |
preset |
string | the preset’s name, empty for none |
Returns
Section titled “Returns”boolean - false for an unknown preset
Example
Section titled “Example”SetContainerPreset(ARMOURY, "inventory_zbrojnice_trosky") -- the armoury holds what the game's armoury holdsSee also
Section titled “See also”RestockContainer · RollLoot · GetContainerPreset · the Doors and containers group of the index
