Can't get an item created effect on a player
Japualtah
Member Posts: 165
Hey guys,
I'm trying to know if a player is under haste, so I just go the usual route:
effect eE=GetFirstEffect(oPC);
while (GetIsEffectValid(eE)) {
if (eE==EffectHaste()) { // do stuff here
}
eE=GetNextEffect(oPC);
}
but I can't catch the haste effect coming from an armor.
So I tried GetHasSpellEffect(SPELL_HASTE, oPC) which doesn't get me any further.
How am I supposed to get an effect coming from an item?
Cheers
I'm trying to know if a player is under haste, so I just go the usual route:
effect eE=GetFirstEffect(oPC);
while (GetIsEffectValid(eE)) {
if (eE==EffectHaste()) { // do stuff here
}
eE=GetNextEffect(oPC);
}
but I can't catch the haste effect coming from an armor.
So I tried GetHasSpellEffect(SPELL_HASTE, oPC) which doesn't get me any further.
How am I supposed to get an effect coming from an item?
Cheers
0
Comments
Item enhancements never seem to give detectable effects but something must be applied to the pc .... maybe check if it gets applied to the pc skin? (Edit - I tried, it doesn't. Only checking Item Property on the item gives a successful check, but I can't quite believe this is the best way)
Don't know if that'll help you... if you ask I will try to find the tutorial again, I have my PC wipe history when I close the browser so I'd have to search for it. Or you could just ask for a copy of my scripts but they're formatted for NWN2.