Sorry for such a n00b question. I'm trying to learn my way around by debugging a certain mod, but there's something really basic I'm missing.
I can see from an area .BAF file that the mod is looking for a particular area variable (checking to see if the value is set to 0). I use the CLUAConsole:GetGlobal command to try and figure out what the value of that variable is in-game, but it responds that the "variable does not exist". So here's my question - how/where do variables get defined? Are they just implicitly created on the fly by the SetGlobal command? Cause looking through all the files that come zipped up in the mod, I can't find any place where the variables are actually defined.
Also - if the variable doesn't exist according to the CLUAConsole:GetGlobal command, but there's an IF THEN statement in a given .BAF file that has a check on that variable as part of the condition, what's the result of the condition? Does the value of a non-existent variable = 0 as far as the conditional is concerned? Or does it just automatically return false?
I'm a programmer by trade, and I think that's actually hampering me at the moment. I'm used to seeing variables defined explicitly in very obvious places, so not being able to find them here is throwing me for a loop :/
Thanks much for the help!
Qwinn