Report this content
We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.
Note that misuse of the reporting tool will not be tolerated.Item being reported:
I don't have the game in front of me now, but I'll try to explain what I think could work for you.
First, do you actually need it to be a variable? Can it just be a number in a value slider?
If it can be in the value slider, you could do this:
Set a trigger zone on the box and leave it on detect possessed.
Wire the output to a Splitter, connect the plus symbol output to the A input if 2 AND Gates.
Wire the 1 output of the splitter to the B input of one of those and gates.
Wire the 2 output to the B input of the other.
Wire each And gate output to separate Value Sliders' power.
Set the first slider to 1, the second to 2. (You can turn off the setting to see the slider itself)
Connect both of those sliders to a Signal Manipulator
With the tweak open, home L1and X on the input to set it to blend.
Wire the signal output to a final Value Slider.
Wire the Plus output from the Splitter earlier, to the Signal Manipulator's Freeze output option.
Now when player 1steps in the value is 1.
Player 2 will set it to 2. And the value should hold until someone else us detected.