greyday01 Posted June 30, 2023 Share Posted June 30, 2023 I have a spell with a scripted spell effect. It's a fire and forget spell that when it hits the target checks conditions to see if it will take effect. Currently the Hit Effect Art is HealTargetFx and the Hit Shader is HealFX. I could leave it like that but the effect plays whether the spell takes effect or not. I could remove both Hit effects but then nothing would show. Is there a way to have the HealFX and HealTargetFX only play if the spell hits an appropriate target? Link to comment Share on other sites More sharing options...
maxarturo Posted June 30, 2023 Share Posted June 30, 2023 Remove from the magic effect the 'Hit Effect Art' and the 'Hit Shader', and add them inside your script, it would be easier to assist you if you would have posted the script. But, it should look something like this: EVENT OnEffectStart(Actor akTarget, Actor akCaster) If ( all my conditions check...) MyEffectShader.Play(akTarget) MyVisualEffect.Play(akTarget) EndIf ENDEVENT Link to comment Share on other sites More sharing options...
scorrp10 Posted June 30, 2023 Share Posted June 30, 2023 Another option is double-effect. The spell applies an invisible effect that checks conditions, and if met, it applies another effect - one with shaders. Link to comment Share on other sites More sharing options...
Recommended Posts