Event triggered without checking all conditions

How do I…

To sump up : I have water, i have a chest. My chest calculates at all time the amount of water it needs to be full.
For some reason the second event is triggered even when the amount of my water is over the amount my chest needs to be full.

What is the expected result

The amount of water left should be equal to the initial amount of water - the amount my chest needs to be full.

What is the actual result

Every time my water is in collision with my chest the amount of water equals 0.

Related screenshots

Are there multiple instances of both objects in the scene. Currently, it’s not checking which object is which. It might help if the drag condition was first. Then it would only test for collisions between the object being dragged.

I’m gonna delete the rest of my earlier post, my brain isn’t functioning. Try moving the drag to the top. It might also help to display the values in a text object or the debugger.

I’m still not sure of the effect of multiple colliding objects. It currently wouldn’t know which was which and might use the same object in the actions. Usually, the object created first. Either way, moving the drag condition to the top in both events would narrow the focus.

It works thank you a lot. With the amount of info i gave you, you just found the answer, it’s incredible really !

Now there is another issue, it works 80% of the time. Sometimes the value goes over 100 and when you collide the water again, the value over 100 switch back to the water. It’s something I didn’t code, it is a bug .

This worked, you really need to take Gdevelop by the hand sometimes.