How to use global variables in a DEF block with multiple arguments and outputs?
Hmm... That's weird. I'm getting an "Uninitialized variable used in 0:608" error on my program. Line 608 is where the function is being called:
CLLSN PX,PVX,PY,PVY OUT PVX,PVY,PGAll of those variables have been initialized. I assumed the error was actually coming from inside the DEF block, because the function carries out fine until it tries reading from some global arrays:
IF TILE[OFSX,OFSY,MAP[TX,TY,0]]!=0 THENVariables OFSX,OFSY,TX and TY have all been initiated in the function... Anyways, thanks for the help so far. I didn't realize global variables worked like that, so that's good to know!