Skip to main content

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:

A forum post by TheOneironaut

The variable will be storing a number from the counter so I can reference it later with other functions. I want to be able to recall the variable later and use on multiple occasions, modify it, etc. There will eventually be other variables and gadgets involved, but I'm just working on getting the variable to be stored at all so I can move onto the next step. Basically, I just need to know how to store any variable *at all*. It's just not working.

The real problem seems to be that I just don't know what I'm doing—haha. I know what I want to do, but I can't figure out how to get the gadgets to link together the way I wanted the logic to work.

Basically, this is what I want:
- Counter counts up with the Triangle button (Currently: remote controlled Controller Sensor with Triangle button is wired to the Count Increase on the Counter)
- Counter output should be sent to a variable and stored there.
- When I recall that variable, I need it to represent whatever that Counter value was when it was stored (I plan on changing the counter value after this, so I need it to remember this number.)
- I'm only using a Display Number gadget right now for debugging, I won't be using it later. (With my current setup, if I wire the Display Number directly to the Counter Value, it works fine, but that's not the intention. I am only trying to display the variable to make sure it was stored.)

The parts in between are what are tripping me up, because the Variable Modifiers aren't doing what I expect them to do. I don't think I understand where to connect things and what I'm setting between the counter value and the variable itself.

Oh dear! Your browser is either unsupported or there has been a problem loading the page.