Closed FrogsOfDoom closed 3 years ago
I guess it works as a visual effect and can't be linked with other visual effects. It'll need a non vfx/icon effect in the link.
If you want an effect that does nothing you can just use an empty EffectRunScript() to the link
effect eIcon = EffectIcon(EFFECT_ICON_ABILITY_DECREASE_CHA);
eIcon = EffectLinkEffects(EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE), eIcon);
eIcon = EffectLinkEffects(EffectRunScript(), eIcon);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eIcon, oPlayer, 20.0f);
Thanks; that worked like a charm. Going to close it then.
I've been running the latest development patch, and EffectIcon doesn't seem to work when linked with another effect. Here's a snippet of script where it doesn't work: