SquishyPoon 1 Posted December 13, 2017 Hi, i am working on a map in the editor and i made a puzzle with 12 switch and i want it to run the action, perform action with an entity once 4 of the switch are on.but right now all i can think of perform the action if any switch is on or the last switch does it. any tips regarding game logic objects is also welcome.thanks for the great game Share this post Link to post Share on other sites
Houp 237 Posted December 14, 2017 Hi, I think that you can use Label game logic for it. 1) Make Label "SwitchOn" 2) On swithing switch perform Change Entity Labels action and add to the switched switch Label "SwitchOn" 3) Add new Event listener. Change "Listen for" to "Labeled entities count changed", select "SwitchOn" label and event Count is equal 4. Hope this helps. Share this post Link to post Share on other sites
SquishyPoon 1 Posted December 14, 2017 (edited) here is what i did 1)i created a label and added the 4 switch i want to use to open the door. 2) i created an event listener here is what it looks like and i think this is where i did something wrong. 3) i created a 2nd event listener this is what i did. (its not connected to event listener 1) here is a screenshot of the whole thing still dosent work Thanks for taking time to look at this and any help you provide. Edited December 15, 2017 by SquishyPoon Share this post Link to post Share on other sites
Houp 237 Posted December 15, 2017 Hi, tested this setup: 4 x for each lever. 4x for each lever Hope this helps 1 1 Share this post Link to post Share on other sites
SquishyPoon 1 Posted December 15, 2017 Hi,Thank you, those 5 screenshot helped me a lot not only it works but it also made me learn a lot about the game Logic label and Listener. 2 thumbs up for Houp for taking some time to help me. 1 Share this post Link to post Share on other sites