Aller au contenu

Photo

Apply Effect


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
Jereniva

Jereniva
  • Members
  • 124 messages

What am I doing wrong here? The 10 point heal happens, but no vfx.

object oUser = GetItemActivator();
effect eHeal = EffectHeal(10);
effect eVis = EffectVisualEffect(VFX_IMP_HEALING_G);
effect eLink = EffectLinkEffects(eHeal, eVis); 
ApplyEffectToObject(DURATION_TYPE_INSTANT, eLink, oUser);


#2
Psionic-Entity

Psionic-Entity
  • Members
  • 195 messages

Can't see any obvious reason. Have you tried applying them each without the link? Are your ingame settings tuned so some effects don't show? Maybe try it with another VFX, not all of the ones in the menu work. Worst case, find the visual you want in the Data files, make sure it works in the VFX editor, and run it as a SEF file instead of EffectVisualEffect.


  • Jereniva aime ceci

#3
rjshae

rjshae
  • Members
  • 4 491 messages

The DoHealing function in nw_i0_spells applies the healing separately from the visual effect. I'd just try calling that function instead.


  • Jereniva aime ceci

#4
Tchos

Tchos
  • Members
  • 5 054 messages

More conveniently, use the PowerBar plugin's VFX browser to quickly find the one you want, and apply it as a SEF as suggested.  I don't use the 2DA integer-based VFX function you're using there, so I don't know if that one even works, but I do have a healing script that applies a healing visual effect using the NWN2 function.  It does not link it to the other effect, it just applies it alongside the healing effect.

 

effect eVisual = EffectNWN2SpecialEffectFile("sp_cure_critical");


  • Jereniva aime ceci

#5
Jereniva

Jereniva
  • Members
  • 124 messages

First a big thank you to all of you for such fast replies.

 

Regarding the EffectNWN2SpecialEffectFile call, this worked!

I downloaded the power bar plugin and that is an awesome tool, can't believe I have never seen it. 



#6
Tchos

Tchos
  • Members
  • 5 054 messages

I can't recommend that plugin enough.  :)