Inventory From Variable
Description
Reads a previously serialized inventory string from a variable and applies it to the target player's inventory, overwriting the current contents. The variable must be a String variable produced by InventoryToVariable.
The target must be a player. If the variable is missing or is not a String variable, the mechanic does nothing.
Attributes
| Attribute | Aliases | Description | Default |
|---|---|---|---|
| variable | var, name, n, key, k | The string variable to read the serialized inventory from. May include a scope prefix (e.g. global.stash) |
|
| scope | s | The variable scope to read the variable from | taken from the variable name |
Examples
Skills:
- inventoryFromVariable{variable=caster.stash} @self
Aliases
- deserializeInventory
- inventoryFromVar