EDIT: turns out I was on a general bug with C2, so this is unimportant now
I wrote a trigger condition.
I have an action that triggers the condition, after picking items from a container.
In the trigger event, I pick an item, which should pick all the siblings in the container. Yet it doesn't and I get undefined object errors.
I tried using the "pick all" function to reset the picking but it doesn't help.
I post to see if someone says something like "oh you need to reset the picking when triggering for an action". I have done nothing apart from call the runtime.trigger and noticed weird behaviour. If no-one can help I will try getting it into a smaller example but I am having trouble replicating it at the moment on non-3rd party plugins.