Need help resetting only one box in my dropzone

I’m creating a dropzone with 5 boxes, when I remove an object, instead of just one box resetting they all do, here’s my code.


m

What do you mean by “resetting”? What is happening to which object?

Oh Each box in my dropzone holds item data, when I remove items from dropzone I want to erase data (item name, value, count) from the dropzone/boxes, which I have done successfully. The issue is when I remove an item from a single dropzone/box, the information from every box is cleared, I’d like for a single box to reset at a time.

Are you referring to Green_Box? What objects are in Dropzone?

The last line is picking the Green_Box objects whose Count is equal or less than 0. Are there multiple Green_Box objects because I don’t see anthing that is picking a specific Green_Box object. So, the actions of actions apply to all instances.

Or are you referring to the Dropzone object(s)? The same applies. The 1st event would change all instances of Dropzone. The 2nd affects only the dropzone not in collision with the dropobject, the last event doesn’t have any conditions with dropzone so, all of the actions will affect all Dropzone instances.

It can be difficult to understand a snippet of events without more context.

It might be that you just need a condition to select a single instance. Without conditions, all objects are affected by actions.

Thanks for the help, I actually managed to fix the issue.

1 Like