use a type_def struct to make your variables to a certain scope and thus making sure it doesnt point to any core variables defined in the engine. e.g.
typedef struct
{
ENTITY* entAgent;
int ID;
var x;
var result;
var zpos;
var timestamp;
var exist;
var dead;
} structMyVars;
structMyVars myVar;
To access use myVar.result, etc.. for all the members. I understand that this is not memory efficient if u mite need only one member sometimes. But u can do this for all ur normal variables.