Originally Posted by Durstie
So, if the global variables get set during particular events (like a search being sent and waiting for a response), then I should be able to echo the variable value to the chat box to watch its value change in my script as it is running too fast.
|
It's not a global variable, it's a global constant. And therefore it will always have the same value.
This should tell me the different states of the variable (nil, 0, 1, true, false, etc.). I wasn't sure if I could check the globals directly since it crashed my game the last time I tried.
|
d(tostring(TRADING_HOUSE_RESULT_SEARCH_PENDING))
should not crash, but as said, the value will be a constant number.