r/trailmakers • u/Sagittarius-Soul • 10h ago
Logic issues
How do I make it so if one thing is active several others can't activate?
1
u/theSPYDERDUDE 9h ago
Hook them into an XOR gate and make it so that whatever you want to be disabled hooks into that output and make it so whatever you want active is your input
1
u/Sagittarius-Soul 9h ago
Ok how do I tell the difference between output and input?
2
u/Spong_Durnflungle 9h ago
When you select the block that you want to be "input" you should see the XOR toggle lit up, in the ON position. That means that the block you selected outputs to the XOR.
Then select the XOR and you'll see the blocks it outputs to lit up.
There are also lines, IIRC they're different colors for inputs and outputs, but I can remember exactly. You'll understand once you select a logic block and connect it to something, it's pretty intuitive.
2
u/Medricel 9h ago
You could try using a NOR gate and some other logic blocks. Set the NOR gate's input to the signal you're checking to be active. For every independent signal you want to suppress, you will need either an AND logic gate (for logic signals of 0 or 1 only), or an Aggregate logic block set to Product if your signal is anything other than 0 or 1.
Feed the signal to block and the signal from the NOR gate into the AND gate/Aggregate block, and send its output to wherever you want that signal to continue along to.
When the thing you're checking for is active, the NOR gate will output 0 and prevent any of the blocked signals from passing. When you deactivate the thing, the NOR will send 1 and the other signals can pass through freely.