I put the following code in my header:
#define invitem character[EGO].activeinv
Now whenever I reference 'invitem', the compiler gives an error:
unknown variable: EGO
Is this a limitation of #define? I thought EGO was an internal variable.
EGO is a #define constant itself and #define's are not evaluated recursively.
Okay. So what is it defined to, then I can do the recursion myself.
EGO will be #defined as the character number of the EGO character - if it's the first character, this will be 0.