Closed itteerde closed 8 months ago
const pack = await fromUuid("Actor.nrTOaAjDjugyxtpD.Item.wvql7UJCKlCIM0IY"); //your uuid, use with caution
const contained = pack.system.allContainedItems.contents;
const updates = contained.sort((a, b) => a.name.localeCompare(b.name)).map((item, i) => {
return {_id: item.id, sort: i * 10};
});
await pack.actor.updateEmbeddedDocuments("Item", updates);
BoH
Guidance
ActiveEffect
Absorb Elements
ActiveEffect
Alarm
ActiveEffect
Detect Magic
ActiveEffect
Disguise Self
ActiveEffect
Expeditious Retreat
ActiveEffect
Faerie Fire
ActiveEffect
False Life
ActiveEffect
Feather Fall
ActiveEffect
Grease
ActiveEffect
Jump
ActiveEffect
Longstrider
ActiveEffect
Sanctuary
ActiveEffect
Snare
ActiveEffect
Tasha's Caustic Brew
ActiveEffect
Aid
ActiveEffect
Air Bubble
ActiveEffect
Alter Self
ActiveEffect
Arcane Lock
ActiveEffect
Blur
ActiveEffect
Darkvision
ActiveEffect
Enhanced Ability
ActiveEffect
Enlarge/Reduce
ActiveEffect
Flaming Sphere
ActiveEffect
Heat Metal
ActiveEffect
Invisibility
ActiveEffect
Kinetic Jaunt
ActiveEffect
Levitate
ActiveEffect
Magic Weapon
ActiveEffect
Protection from Poison
ActiveEffect
Rope Trick
ActiveEffect
See Invisibility
ActiveEffect
Skywrite
ActiveEffect
Spider Climb
ActiveEffect
Web
ActiveEffect
Ashardalon's Stride
ActiveEffect
Blink
ActiveEffect
Catnap
ActiveEffect
Elemental Weapon
ActiveEffect
Flame Arrows
ActiveEffect
Fly
ActiveEffect
Gaseous Form
ActiveEffect
Haste
ActiveEffect
Intellect Fortress
ActiveEffect
Protection from Energy
ActiveEffect
Tiny Servant
ActiveEffect
Water Breathing
ActiveEffect
Water Walk
ActiveEffect
Arcane Eye
ActiveEffect
Death Ward
ActiveEffect
Elemental Bane
ActiveEffect
Freedom of Movement
ActiveEffect
Mordenkainen's Faithful Hound
ActiveEffect
Mordenkainen's Private Sanctum
ActiveEffect
Otiluke's Resilient Sphere
ActiveEffect
Stoneskin
ActiveEffect
Summon Construct
ActiveEffect
#177