Okay, short backstory: This variable determines if slaver guards are before the front gate. If it's 0, no guards. If it's -1, yeah, there are guards but you don't know about them. If it's 1, there are guards and you DO know about them.
If you use a binoculars, you can see from a distance and spot the guards. Okay, so why dosn't this work in the binoculars code? It still returns a -1. The thing is, there are a lot of conditions I need to reveal if you scope the target.
<your variable> = Math.abs(<your variable>) and that will always return a 1 no if statement required.
If the only options are -1, 0, and 1, could you just do:
(Or whatever the code looks like; this isn't a language I'm familiar with)
This is still frustrating. From what I understand, the original code should have worked. ABS() didn't work either - tried that too.