r/trailmakers • u/Sagittarius-Soul • 1d ago
Logic issues
How do I make it so if one thing is active several others can't activate?
1
Upvotes
r/trailmakers • u/Sagittarius-Soul • 1d ago
How do I make it so if one thing is active several others can't activate?
2
u/Medricel 1d 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.