// npc->Misc[] index // Set this so it doesn't conflict with other scripts. Legal values are 0-15. const int __GHI_GHZH_DATA = 15;
You'd have something like this:
// npc->Misc[] index int __GHI_GHZH_DATA = RegisterIndex(INDEX_NPC_MISC);
If all the different scripts you'd use would call a register function instead of assigning an arbitrary index, then you wouldn't have to worry about managing these constants, the code would take care of that for you.
Anyway, if I wrote this, would people use it? Because if I end up being the only one using it, it'd be kind of pointless.

