In my game there will be multiple rooms that you will explore, to enter those rooms you have to enter a teleporter. However, I don’t want to make like 10 sets of teleporters and instead make a name system that detects the name of 2 teleporters and connects them. So if I put down 2 teleporters in the editor and named the 1st one “A1” and the second one “A2” then using A1 in game would bring you to A2 and vice versa. So uhh how can I do this? I think it has something to do with lists but I don’t know how to use those.
{"data":{"behavior":{"v":"2","nodes":[{"inputCount":1,"outputCount":2,"name":"Door","behaviorType":"logic.NodeGroup","x":-360,"y":-160,"group":"","id":"ee438cf56206944a","notes":"With the output, you'd just send a message to the player or something. Whatever you like. The other door is the one that outputs, not the one you activate.","n_o":1,"isMenuItem":false},{"inputCount":1,"outputCount":1,"name":"Extractor","behaviorType":"logic.properties.Extractor","x":-180,"y":-64,"group":"ee438cf56206944a","id":"ee43370b81854f4a","targetId":0,"eName":null,"prop":"name","version":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-360,"y":-64,"group":"ee438cf56206944a","id":"ee439d1252e3a846","portId":"ee438cf56206944ai0","tag":"Teleport","dataType":2},{"inputCount":1,"outputCount":0,"name":"Message","behaviorType":"logic.components.Message","x":0,"y":-64,"group":"ee438cf56206944a","id":"ee46cf90906ecb4b","notes":"Sends to all doors","n_o":1,"msg":"Which Door","dt":1,"route":"SendToSelected","targetEntityId":0,"targetClassId":21181178},{"inputCount":0,"outputCount":1,"name":"Mailbox","behaviorType":"logic.components.Mailbox","x":-180,"y":288,"group":"ee438cf56206944a","id":"ee4742e9efe22940","msg":"Which Door","dt":1},{"inputCount":0,"outputCount":1,"name":"Once","behaviorType":"logic.triggers.Once","x":-540,"y":112,"group":"ee438cf56206944a","id":"ee47a8fd90739144","resetOnLevelStart":false},{"inputCount":1,"outputCount":1,"name":"Extractor","behaviorType":"logic.properties.Extractor","x":-360,"y":112,"group":"ee438cf56206944a","id":"ee47c388a9c01e47","targetId":0,"eName":null,"prop":"name","version":2},{"inputCount":2,"outputCount":2,"name":"Text Compare","behaviorType":"logic.data.TextCompare","x":0,"y":160,"group":"ee438cf56206944a","id":"ee47e9488e138547","notes":"Checks if letters match","n_o":1,"hsv":"","mode":3},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":-180,"y":160,"group":"ee438cf56206944a","id":"ee483025c197de4b","startVal":""},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-360,"y":208,"group":"ee438cf56206944a","id":"ee48641adfe52746","startVal":1,"tag":"","roundMode":1},{"inputCount":2,"outputCount":2,"name":"Text Compare","behaviorType":"logic.data.TextCompare","x":180,"y":112,"group":"ee438cf56206944a","id":"ee497f909a98d34e","notes":"Makes sure it's not the same door. There are multiple ways to do this, this is just what I picked","n_o":1,"hsv":"","mode":0},{"inputCount":1,"outputCount":1,"name":"To Number","behaviorType":"logic.data.ToNumber","x":360,"y":112,"group":"ee438cf56206944a","id":"ee49f911f2925248"},{"inputCount":1,"outputCount":1,"name":"Extractor","behaviorType":"logic.properties.Extractor","x":540,"y":208,"group":"ee438cf56206944a","id":"ee4b04abe1068347","targetId":0,"eName":null,"prop":"y","version":2},{"inputCount":1,"outputCount":1,"name":"Extractor","behaviorType":"logic.properties.Extractor","x":540,"y":112,"group":"ee438cf56206944a","id":"ee4b053e0cbfa847","targetId":0,"eName":null,"prop":"x","version":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":720,"y":112,"group":"ee438cf56206944a","id":"ee4b4edcef4bde4b","portId":"ee438cf56206944ao0","tag":"X","dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":720,"y":208,"group":"ee438cf56206944a","id":"ee4b509ef6c5c240","portId":"ee438cf56206944ao1","tag":"Y","dataType":2}],"links":[{"input_id":"ee46cf90906ecb4bi0","output_id":"ee43370b81854f4ao0"},{"input_id":"ee43370b81854f4ai0","output_id":"ee439d1252e3a846o0"},{"input_id":"ee47e9488e138547i1","output_id":"ee4742e9efe22940o0"},{"input_id":"ee47c388a9c01e47i0","output_id":"ee47a8fd90739144o0"},{"input_id":"ee48641adfe52746i1","output_id":"ee47a8fd90739144o0"},{"input_id":"ee497f909a98d34ei0","output_id":"ee47c388a9c01e47o0"},{"input_id":"ee483025c197de4bi0","output_id":"ee47c388a9c01e47o0"},{"input_id":"ee497f909a98d34ei1","output_id":"ee47e9488e138547o0"},{"input_id":"ee47e9488e138547i0","output_id":"ee483025c197de4bo0"},{"input_id":"ee483025c197de4bi2","output_id":"ee48641adfe52746o0"},{"input_id":"ee49f911f2925248i0","output_id":"ee497f909a98d34eo1"},{"input_id":"ee4b053e0cbfa847i0","output_id":"ee49f911f2925248o0"},{"input_id":"ee4b04abe1068347i0","output_id":"ee49f911f2925248o0"},{"input_id":"ee4b509ef6c5c240i0","output_id":"ee4b04abe1068347o0"},{"input_id":"ee4b4edcef4bde4bi0","output_id":"ee4b053e0cbfa847o0"}]}}}
There are multiple ways to do this (including with Lists), this is just one way that doesn’t include it. If you wanted to try some of the other ways, this is some really good practice for having the same object perform different actions, really useful stuff
That’s how it’s set up already, In the example when you click A1, then the bundle in A2 will output. And the same is true vice versa. I’m assuming you’re just messaging these coords to the player
It checks if the player is near the pipe, and if the player clicks down (or up, depending if the pipe is on the ceiling or not) then it’s supposed to send them to the other pipe
How exactly does this make both doors activate at the same time?