There is no way to determine *which* visual effects are on an object?
andFrom the Lexicon on RemoveEffect:
you must loop through effects on the creature, and remove the effect(s) of the correct type, and possibly the correct creator and subtype. View the codesample below for information on how to do this.
It was previously mentioned that visual effects have no effecttype. This is incorrect, this function will return EFFECT_TYPE_VISUALEFFECT for visual effects.
So my only choice in removing the visual effects are to remove *all* visual effects?
effect eLoop=GetFirstEffect(oPC);
while (GetIsEffectValid(eLoop))
{
if (GetEffectType(eLoop)==EFFECT_TYPE_VISUALEFFECT)
RemoveEffect(oPC, eLoop);
eLoop=GetNextEffect(oPC);
}
<... of an incomplete incantation scroll of enormous power>
Modifié par Rolo Kipp, 29 novembre 2011 - 09:37 .





Retour en haut






