Jump to content

Conditional spell effect


Recommended Posts

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...