// Link the two supplied effects, returning eChildEffect as a child of
// eParentEffect.
// Note: When applying linked effects if the target is immune to all valid
// effects all other effects will be removed as well. This means that if you
// apply a visual effect and a silence effect (in a link) and the target is
// immune to the silence effect that the visual effect will get removed as well.
// Visual Effects are not considered "valid" effects for the purposes of
// determining if an effect will be removed or not and as such should never be
// packaged *only* with other visual effects in a link.
effect EffectLinkEffects(effect eChildEffect, effect eParentEffect );

It is important to note when linking effects that if you plan to use SetEffectSpellId or another similar function to uniquely identify the effect and then use that ID to remove the linked effect through another script, that some effects when linked will cause the ID to return as zero. A list of these effects can be found here.

These effects should be applied removed separately, or simply applied as a temporary effects.