Door + progress bar behavior system

Here is my behavior system that allows me to open a door only after a certain amount of items are collected. it also makes the items invisible after the text box is closed.
you will need to tweak it a little to fit your game

paste this into your items:

{“data”:{“behavior”:{“nodes”:[{“isMenuItem”:false,“x”:-810,“outputCount”:0,“group”:"",“y”:-32,“behaviorType”:“logic.NodeGroup”,“name”:“dissapear”,“id”:“c6aab12f55e5264e”,“inputCount”:0},{“tag”:“100”,“x”:-90,“startVal”:0,“outputCount”:1,“group”:“c6aab12f55e5264e”,“y”:-64,“behaviorType”:“logic.logic.Value”,“name”:“Number”,“id”:“c6aab132a8b6df4a”,“inputCount”:3},{“textColor”:13421772,“x”:-270,“name”:“Alert”,“id”:“c6aab13fdc3b834c”,“y”:-128,“behaviorType”:“logic.hud.Alert”,“btnColor”:3355443,“inputCount”:1,“bgColor”:2105376,“comp_x”:440,“outputCount”:1,“header”:“test item 3”,“comp_y”:110,“buttonLabel”:“Take”,“group”:“c6aab12f55e5264e”,“message”:""},{“x”:-450,“outputCount”:1,“group”:“c6aab12f55e5264e”,“y”:-32,“behaviorType”:“logic.logic.Gate”,“name”:“Logic Gate”,“id”:“c6aab14081041d4a”,“gateType”:“AND”,“inputCount”:2},{“tag”:"",“x”:-90,“startVal”:20,“outputCount”:1,“group”:“c6aab12f55e5264e”,“y”:64,“behaviorType”:“logic.logic.Value”,“name”:“Number”,“id”:“c6aab13bd7cd2549”,“inputCount”:3},{“x”:90,“outputCount”:1,“group”:“c6aab12f55e5264e”,“y”:-96,“behaviorType”:“logic.properties.Alpha”,“name”:“Alpha”,“id”:“c6aab1418538a64a”,“inputCount”:1},{“x”:-630,“allObjects”:false,“name”:“Proximity”,“id”:“c6aab14471353644”,“y”:-64,“behaviorType”:“logic.triggers.Proximity”,“targetEntityId”:0,“once”:false,“threshold”:48,“targetClassId”:5532606,“inputCount”:0,“outputCount”:2,“delay”:0,“firstObject”:true,“group”:“c6aab12f55e5264e”,“nearestOnly”:false},{“x”:90,“sendToEntity”:true,“name”:“Message”,“id”:“c6aab14270b54245”,“y”:64,“behaviorType”:“logic.components.Message”,“targetEntityId”:146568273,“targetClassId”:5537847,“inputCount”:1,“sendToSelf”:false,“outputCount”:0,“sendToLastContacted”:false,“group”:“c6aab12f55e5264e”,“msg”:“value4”},{“repeats”:false,“x”:-630,“keyCode”:69,“outputCount”:2,“group”:“c6aab12f55e5264e”,“y”:64,“behaviorType”:“logic.triggers.Keyboard”,“delay”:0,“name”:“Keyboard”,“id”:“c6d14883e6e9c644”,“inputCount”:0}],“links”:[{“output_id”:“c6aab132a8b6df4ao0”,“input_id”:“c6aab1418538a64ai0”},{“output_id”:“c6aab13fdc3b834co0”,“input_id”:“c6aab132a8b6df4ai1”},{“output_id”:“c6aab13fdc3b834co0”,“input_id”:“c6aab13bd7cd2549i1”},{“output_id”:“c6aab14081041d4ao0”,“input_id”:“c6aab13fdc3b834ci0”},{“output_id”:“c6aab13bd7cd2549o0”,“input_id”:“c6aab14270b54245i0”},{“output_id”:“c6aab14471353644o0”,“input_id”:“c6aab14081041d4ai0”},{“output_id”:“c6aab14471353644o1”,“input_id”:“c6aab14081041d4ai0”},{“output_id”:“c6d14883e6e9c644o0”,“input_id”:“c6aab14081041d4ai1”}],“v”:“2”}}}

paste this into one of your items:

{“data”:{“behavior”:{“nodes”:[{“isMenuItem”:true,“x”:90,“outputCount”:0,“group”:"",“y”:0,“behaviorType”:“logic.NodeGroup”,“name”:“door bar system”,“id”:“c69a5727b54d7d46”,“inputCount”:0},{“textColor”:13421772,“x”:-450,“name”:“Alert”,“id”:“c69a572c8f08ea42”,“y”:-128,“behaviorType”:“logic.hud.Alert”,“btnColor”:3355443,“inputCount”:1,“bgColor”:2105376,“comp_x”:469,“outputCount”:1,“header”:“key”,“comp_y”:110,“buttonLabel”:“Take”,“group”:“c69a5727b54d7d46”,“message”:""},{“x”:-450,“outputCount”:1,“group”:“c69a5727b54d7d46”,“y”:-224,“behaviorType”:“logic.properties.Alpha”,“name”:“Alpha”,“id”:“c69a572e5c900e45”,“inputCount”:1},{“x”:-990,“allObjects”:false,“name”:“Proximity”,“id”:“c69e550c03d1254c”,“y”:-192,“behaviorType”:“logic.triggers.Proximity”,“targetEntityId”:0,“once”:false,“threshold”:49,“targetClassId”:5532606,“inputCount”:0,“outputCount”:2,“delay”:0,“firstObject”:true,“group”:“c69a5727b54d7d46”,“nearestOnly”:false},{“tag”:“bar”,“x”:-270,“startVal”:0,“outputCount”:1,“group”:“c69a5727b54d7d46”,“y”:-320,“behaviorType”:“logic.logic.Value”,“name”:“Number”,“id”:“c6ade6dea08bd54b”,“inputCount”:3},{“x”:-990,“outputCount”:1,“group”:“c69a5727b54d7d46”,“y”:-320,“behaviorType”:“logic.components.Mailbox”,“name”:“Mailbox”,“id”:“c69b6b148c745844”,“msg”:“value1”,“inputCount”:0},{“x”:-630,“outputCount”:1,“group”:“c69a5727b54d7d46”,“y”:-320,“behaviorType”:“logic.components.Mailbox”,“name”:“Mailbox”,“id”:“c6abf035ad3a8e4e”,“msg”:“value3”,“inputCount”:0},{“tag”:“100”,“x”:-630,“startVal”:0,“outputCount”:1,“group”:“c69a5727b54d7d46”,“y”:-192,“behaviorType”:“logic.logic.Value”,“name”:“Number”,“id”:“c69a57307ed5d84f”,“inputCount”:3},{“x”:-810,“outputCount”:1,“group”:“c69a5727b54d7d46”,“y”:-320,“behaviorType”:“logic.components.Mailbox”,“name”:“Mailbox”,“id”:“c6a9714220147e47”,“msg”:“value2”,“inputCount”:0},{“barColor”:-5273495,“x”:-90,“frameColor”:-6249611,“name”:“Bar”,“id”:“c69b16160ab66240”,“y”:-320,“behaviorType”:“logic.hud.Bar”,“max”:100,“inputCount”:1,“comp_x”:923,“outputCount”:1,“comp_y”:203,“val”:0,“group”:“c69a5727b54d7d46”},{“tag”:"",“x”:-270,“startVal”:20,“outputCount”:1,“group”:“c69a5727b54d7d46”,“y”:-192,“behaviorType”:“logic.logic.Value”,“name”:“Number”,“id”:“c69a5733656a6643”,“inputCount”:3},{“id”:“c6bd8722dff3b548”,“x”:0,“outputCount”:2,“group”:“c69a5727b54d7d46”,“y”:-192,“behaviorType”:“logic.logic.Filter”,“gateVal”:99,“name”:“Filter”,“mode”:“greater than”,“inputCount”:2},{“x”:0,“sendToEntity”:true,“name”:“Message”,“id”:“c6bdfb0676c10449”,“y”:-64,“behaviorType”:“logic.components.Message”,“targetEntityId”:146580487,“targetClassId”:5538132,“inputCount”:1,“sendToSelf”:false,“outputCount”:0,“sendToLastContacted”:false,“group”:“c69a5727b54d7d46”,“msg”:“open”},{“repeats”:false,“x”:-990,“keyCode”:69,“outputCount”:2,“group”:“c69a5727b54d7d46”,“y”:-96,“behaviorType”:“logic.triggers.Keyboard”,“delay”:0,“name”:“Keyboard”,“id”:“c6d50aa12ace1d4d”,“inputCount”:0},{“x”:-450,“outputCount”:1,“group”:“c69a5727b54d7d46”,“y”:-320,“behaviorType”:“logic.components.Mailbox”,“name”:“Mailbox”,“id”:“c6abdd03a4dcab41”,“msg”:“value4”,“inputCount”:0},{“x”:-810,“outputCount”:1,“group”:“c69a5727b54d7d46”,“y”:-192,“behaviorType”:“logic.logic.Gate”,“name”:“Logic Gate”,“id”:“c69e2bc92b65ca41”,“gateType”:“AND”,“inputCount”:2}],“links”:[{“output_id”:“c69a572c8f08ea42o0”,“input_id”:“c69a57307ed5d84fi1”},{“output_id”:“c69a572e5c900e45o0”,“input_id”:“c69a5733656a6643i1”},{“output_id”:“c69e550c03d1254co0”,“input_id”:“c69e2bc92b65ca41i0”},{“output_id”:“c69e550c03d1254co1”,“input_id”:“c69e2bc92b65ca41i0”},{“output_id”:“c6ade6dea08bd54bo0”,“input_id”:“c69b16160ab66240i0”},{“output_id”:“c69b6b148c745844o0”,“input_id”:“c6ade6dea08bd54bi2”},{“output_id”:“c6abf035ad3a8e4eo0”,“input_id”:“c6ade6dea08bd54bi2”},{“output_id”:“c69a57307ed5d84fo0”,“input_id”:“c69a572e5c900e45i0”},{“output_id”:“c6a9714220147e47o0”,“input_id”:“c6ade6dea08bd54bi2”},{“output_id”:“c69b16160ab66240o0”,“input_id”:“c6bd8722dff3b548i0”},{“output_id”:“c69a5733656a6643o0”,“input_id”:“c6ade6dea08bd54bi2”},{“output_id”:“c6bd8722dff3b548o0”,“input_id”:“c6bdfb0676c10449i0”},{“output_id”:“c6d50aa12ace1d4do0”,“input_id”:“c69e2bc92b65ca41i1”},{“output_id”:“c6abdd03a4dcab41o0”,“input_id”:“c6ade6dea08bd54bi2”},{“output_id”:“c69e2bc92b65ca41o0”,“input_id”:“c69a572c8f08ea42i0”}],“v”:“2”}}}

I had to break up the post it was too long.

put this in your door

{“data”:{“behavior”:{“nodes”:[{“x”:90,“allObjects”:false,“name”:“Proximity”,“id”:“c6c49cf99559ed4c”,“y”:-192,“behaviorType”:“logic.triggers.Proximity”,“targetEntityId”:0,“once”:false,“threshold”:48,“targetClassId”:5532606,“inputCount”:0,“outputCount”:2,“delay”:0,“firstObject”:true,“group”:"",“nearestOnly”:false},{“x”:0,“outputCount”:1,“group”:"",“y”:-32,“behaviorType”:“logic.logic.Switch”,"_startVal":0,“name”:“Switch”,“id”:“c6c409e58151d54f”,“inputCount”:3},{“repeats”:false,“x”:-270,“keyCode”:69,“outputCount”:2,“group”:"",“y”:0,“behaviorType”:“logic.triggers.Keyboard”,“delay”:0,“name”:“Keyboard”,“id”:“c6c0b299a2f7f949”,“inputCount”:0},{“comp_y”:213,“x”:-180,“name”:“Label”,“id”:“c6cd54cf807f9647”,“y”:-288,“text”:“take them!”,“scale”:6,“borderColor”:16777215,“behaviorType”:“logic.hud.Label”,“comp_x”:110,“outputCount”:2,“fontName”:“ink”,“inputCount”:2,“textColor”:0,“group”:"",“borderStyle”:""},{“x”:-270,“outputCount”:1,“group”:"",“y”:-128,“behaviorType”:“logic.components.Mailbox”,“name”:“Mailbox”,“id”:“c6c04009ee031443”,“msg”:“open”,“inputCount”:0},{“x”:450,“outputCount”:1,“group”:"",“y”:-96,“behaviorType”:“logic.gameflow.NextLevel”,“levelName”:null,“name”:“NextLevel”,“id”:“c6c14938ec958041”,“inputCount”:1},{“x”:270,“outputCount”:1,“group”:"",“y”:-96,“behaviorType”:“logic.logic.Gate”,“name”:“Logic Gate”,“id”:“c6c0eb77264cb546”,“gateType”:“AND”,“inputCount”:2}],“links”:[{“output_id”:“c6c49cf99559ed4co0”,“input_id”:“c6c0eb77264cb546i0”},{“output_id”:“c6c49cf99559ed4co1”,“input_id”:“c6c0eb77264cb546i0”},{“output_id”:“c6c04009ee031443o0”,“input_id”:“c6c409e58151d54fi1”},{“output_id”:“c6c0b299a2f7f949o0”,“input_id”:“c6c409e58151d54fi2”},{“output_id”:“c6c409e58151d54fo0”,“input_id”:“c6c0eb77264cb546i1”},{“output_id”:“c6c0b299a2f7f949o0”,“input_id”:“c6c409e58151d54fi2”},{“output_id”:“c6c04009ee031443o0”,“input_id”:“c6c409e58151d54fi1”},{“output_id”:“c6c0eb77264cb546o0”,“input_id”:“c6c14938ec958041i0”},{“output_id”:“c6c409e58151d54fo0”,“input_id”:“c6c0eb77264cb546i1”},{“output_id”:“c6c0eb77264cb546o0”,“input_id”:“c6c14938ec958041i0”}],“v”:“2”}}}

once you put them in the right items, it is easy to edit it to fit your game