Sort of a vague thread, i know. But I'm having trouble with some math logic things in source.
Here's what I'm trying to do: I have a number of keys in a level, when you get a key it adds 1 to a math_counter. I also have a number of locked doors in my level. When you approach a locked door, and you have at least one key, the door should open permanently and subtract 1 from the math_counter.
I know how to set up the math_counter and I've used logic_cases before, but is there any way to get the math_counter to send it's value to the logic_case? (and from there open a door)
So is this possible?: (pseudo-code)
On trigger >> logic_case >> getvalue >> math_counter
Case1 - open door, subtract 1 from math_counter
Case2 - open door, subtract 1 from math_counter
Case3 - open door, subtract 1 from math_counter
If anyone has ever played Zelda, that's the key system I'm trying to re-create. Any key can unlock any door, but you can only use a given key once.