OK...
After MORE wastage of time, re-reading EVERYONES posts in this thread,
I finally got the bastich working! But, by the gods, is it UGLY...

Here it is. IMPORTANT:: The bulk of the code MUST come straight after acknex.h and before any other #include's you do.
Otherwise they will just be processing 'un-redirected' wait functions... I THINK ...
Code:
#include <acknex.h>
//
void _wait(var);
void _wait_initialize()	{	_wait = wait; }
#define wait(i) 	do{  diag(waiting\n");  _wait(i);  } while(0)
//
#include "everything else"
//
//
void main()
{
   _wait_initialize();   //this MUST come before any wait's in main!
   ...



Point of interest for Germanunkol: Be aware that the "engine_gettaskinfo" function
is currently bugged! Check the Bugs forum under Benni003's "engine_getscriptinfo" posting.
This bug also affects the engine_gettaskinfo function too...




"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial