주 콘텐츠로 건너뛰기

검색

Tricky Maths question: How do I get a trigger zone to send out TWO numbers, and not just one?

  • Magus0Mind00

    I can't really understand what you're trying to do from the description. But just based on the title, you could wire the trigger zone to two separate calculator gadgets set to subtract different amounts.

  • davidnorth100

    I'm not sure what being poor at maths has to do with it since you only want to subtract 1 multiple times! Anyway sounds like you want a trigger zone that can be configured to output a certain number of pulses rather than just 1.

    I would make a microchip with a trigger zone on it. Include a value slider where you configure your decrement (1, 3 or 8 in your example). Add an output node. Then you use a combination of a timer and a counter to output the right number of pulses. The chosen decrement will be wired to the target value of the counter (forget the exact name). Then a timer is used to create a delay before incrementing the timer again. I'm glossing over the details I know. I could share a version of this.

    Then you have a chip that you can clone and configure as many times as you need rather than having lots of trigger zones wired up to a whole mess of logic.

  • Flyux

    '@David: This sounds like the sort of thing I was trying to do, I just didn't know how, so thank you! I'll give that a shot and see. I know the solution is likely to be simple, but I'm just having a hard time figuring out how, and that sounds about right!

    @Magnus: Yeah, I tried to make it as clear as possible. Sorry!

  • TrenchBucket

    I think David's solution sounds good, but one thing that might make your work easier is using a variable rather than a counter (hugely dependent on what you're working on).

    Create one variable (give it a name!), and then for each square create a variable modifier, set it to 'Add' mode, enter the variable's name, and attach the trigger pulse to its power, and set the value in the variable modifier as you wish.

댓글을 남기려면 로그인하세요.