//Is it possible to make a plug-in with functions like this // Also if it is tell me I need help //For example you have four buildings // A¹ , A² , B¹ , B² //If you click A¹ you will get A² //but you can only turn A² back into A¹ //if B² is next to it also to prevent B² // making A² into A¹ accidentally //There is 2 modes for the B building // B¹ (off) B² (on) //If you click B¹ (off) you get B² (on) //that can change A² back to A¹ //so simply B building is like a switch and A //building is like a light bulb {"id":"a1", "build time":0, "on click fun":[ { "condition":{ {"type":"building","id":"a1"}, }, "actions":[ {"type":"remove"}, {"type":"build","id":"a2"} ], "p":1 } ] }, {"id":"a2", "build time":0, "on click fun":[ { "condition":{ {"type":"building nearby","id":"b2","min":1,"max":8}, }, "actions":[ {"type":"remove"}, {"type":"build","id":"a1"} ], "p":1 } ] }, {"id":"b1", "build time":0, "on click fun":[ { "condition":{ {"type":"building","id":"b1"}, }, "actions":[ {"type":"remove"}, {"type":"build","id":"b2"} ], "p":1 } ] }, {"id":"b2", "build time":0, "on click fun":[ { "condition":{ {"type":"building","id":"b2"}, }, "actions":[ {"type":"remove"}, {"type":"build","id":"b1"} ], "p":1 } ] },