Has anyone found a way to destroy an item in a sack ?
The sack has no removeItem, and destroy() seems to leave a zombie object there which will crash the game sooner or later.
How to destroy items in a sack ?
How to destroy items in a sack ?
Waking Violet (Steam, PS4, PSVita, Switch) : http://www.wakingviolet.com
The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563
My preciousss: http://www.moonsharp.org
The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563
My preciousss: http://www.moonsharp.org
Re: How to destroy items in a sack ?
Those great methods in the GrimQ don't do it? I'm working through them now, thanks for that.
If you move the sack using your methods couldn't you just replace the sack sans said item?
Using your methods, you could try spawning a "ghost party" in a far off square and spread the contents of the sack into a ghost champ's inventory slots. Destroy (removeItem()) the item, then reinstall the items into a sack and return to the origin.
Keep in mind I've only sent single items back & forth to the ghost party so this is 95% untested fiction.
edit: coffee just hit so I'm full of ideas. You could just leave the offending item in a holding square to sit in purgatory forever. It wouldn't be destroyed but would be effectively removed from the game.
If you move the sack using your methods couldn't you just replace the sack sans said item?
Using your methods, you could try spawning a "ghost party" in a far off square and spread the contents of the sack into a ghost champ's inventory slots. Destroy (removeItem()) the item, then reinstall the items into a sack and return to the origin.
Keep in mind I've only sent single items back & forth to the ghost party so this is 95% untested fiction.
edit: coffee just hit so I'm full of ideas. You could just leave the offending item in a holding square to sit in purgatory forever. It wouldn't be destroyed but would be effectively removed from the game.
Re: How to destroy items in a sack ?
It's exactly to fix a bug in grimqThose great methods in the GrimQ don't do it? I'm working through them now, thanks for that.
In theory, yes, it's feasible and without a big effort too (just a slightly modified version of copyItem). The problem is that contents in sacks are rearranged when copying (as we can get the content and add them back, but without the exact cell because of limits of the current scripting functions offered by the game) and I was hoping for a cleaner solution (one more transparent for the player).If you move the sack using your methods couldn't you just replace the sack sans said item?
I'll try to implement some of this later today (better than crashing, which is what the current version does
Thanks!
Waking Violet (Steam, PS4, PSVita, Switch) : http://www.wakingviolet.com
The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563
My preciousss: http://www.moonsharp.org
The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563
My preciousss: http://www.moonsharp.org
Re: How to destroy items in a sack ?
Oops, it looks like I've completely forgotten to add Item:removeItem(). Thanks!
Re: How to destroy items in a sack ?
Thanks to you! 
Waking Violet (Steam, PS4, PSVita, Switch) : http://www.wakingviolet.com
The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563
My preciousss: http://www.moonsharp.org
The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563
My preciousss: http://www.moonsharp.org
Re: How to destroy items in a sack ?
wait a sec, you mean that's currently available but undocumented, or will be in the future patch? 
Finished Dungeons - complete mods to play
