I suppose it wastes a nest, by calling a function every frame, even when it's not needed. If it was me, I'd do this:

Code:
void DoHolesLava()
{
	
	HolesLavaMain();
	Update_HoleLava(returnx, returny, returndmap, returnscreen, returndir);

}
Then, in the global script, call:

Code:
if(Link->Action != LA_SCROLLING) DoHolesLava();
Sorry, it's just the umpteen-Nth time I've had to make another global script for someone today, that the user could have done if the function calls were all encapsulated.

The other thing I do by default, is trim all the vars down to a single array. Over time, these tally, and if someone is unable to merge a global script, they're not likely to comprehend stack errors either.

http://www.purezc.net/forums/index.p...81#entry988150

If you want to see why... People just have no idea how to do any of this unless you make it dead simple.