Not intending to hijack my own thread(Is that even possible?)... or, maybe I am... Either way, I give myself permission...
I haven't looked at your scripts yet since I'm already in the middle of learning the fine art of mdl manipulation, but I plan to alter it to work with an existing system that I already have. Basically, items have certain variables on them. The OnEquip script checks for the variable and sets the var on the player. Then, I can check for that var in the OnPerception or HB very quickly and easily. I have spells hooked so I can add vars from casting spells also.
As long as our builder knows to keep NPC's with light sources away from the area, I can just do something like:
if (GetIsPC(oPercieved)&&GetLocalInt(oPercieved, "Bright")==1)
{
ExecuteLightShyAI;
}
That'll keep them from checking each other and should make it plenty fast.
Of course, I haven't seen the script yet.
'> </OffTopic>
.... Back to the regular scheduled program... Nothing to see here...
Hak list, anyone?
Modifié par wyldhunt1, 27 novembre 2011 - 03:59 .