unfortunately a global is your own option but i tend to use them effectively
function MyFunction( )
if private<>null then goto public
private:
global private as boolean
private = 1
public:
print "wahey, i'm so frickin' bored!"
endfunction

i tend to do that alot to emulate the public/private/protected of C++ ... so if something needs to run every Nth look you just create the main boolean for private, and then you can add extra commands.
if you want to destroy them after a while you just do something like
function MyFunction()
if private<>null
if tickover<5
goto public
else
goto protected
endif
endif
private:
global private as boolean
global value2 as dword
private = 1
protected:
local value2 as dword
tick=0
public:
tick=tick+1
value2=value2*value2
endfunction
then that'd run for like 5 cycles when you can use value2 globally then after that it resets and is destoryed

crude but effective hehee
Within the Epic battle of the fates the Shadow and the Angel will meet. With it will harbinger the very fight of good vs evil!