While lexicons says:
Some time ago, Whizard showed an example script that is removing the effect via this method and it works. However I was trying to use effect on PC as track for my new poison system I am working on and it didn't worked how I supposed it will.A common mistake with this function is to use the following approach to remove, say, a sleep effect:
effect eSleep=EffectSleep();
RemoveEffect(oPC, eSleep);
When I passed the effect eTrack = EffectVisualEffect(666); into my delay function, the effect was never valid in the time of function executed (although the type/subtype was correct but even when the effect was removed from PC). Then I tried
to pass into the function last effect from GetFirst/Next, this time the effect was always valid even when the effect was removed from PC before function executed.
Why it doesn't work? I thought that the effect declared in spellscript is reference same as object. If this is not true why the Whizard's sample code works?
EDIT: finally seems I found out way how to use effect to track something, but that doesnt answer my questions
Modifié par ShaDoOoW, 31 janvier 2012 - 12:04 .





Retour en haut







