Jump to content

[LE] Needs help with conditions/scripts for spell dual-casting


qruk000

Recommended Posts

Greetings.

 

I'm trying to create aimed spell that applies another different reanimate spells (spells, not effects!) which raise targets. What spell will raise target depends on the cast type - if it was dual cast, target gets extra health throw perk's entry point, which is associated with one of spell's ids (which should be applied in case of dual cast).

 

So its very important to have 2 different spells that could be applied by one.

 

I created 2 copies of dead thrall effect, changed their archetypes to Script archetype and added to each that simple scipt:

 

Spell Property DeadThrall Auto

 

Event OnEffectStart (Actor akTarget, Actor akCaster)
DeadThrall.cast(akCaster, akTarget)
Self.Dispel()
EndEvent

 

For each script i set as properties those different spells (reanimate/fire&forget/contact) that i want to apply to target depending on the cast type. And these effects work fine separately: target is rasing instantly after projectile hit it, target gets extra health in the case of one of these spells, etc.

 

But i cant get them to work in the same spell, because conditions dont work correctly: I set EffectWasDualCast == 1 and EffectWasDualCast == 0 accordingly, but it gets wrong results for every Run on type, which i tested (i tested almost everything, including option "swap target and subject"). And i cant set conditions inside reanimate effects because they are called to .cast(), so they have no dual cast values

 

Any suggestions? Is there any function that gets info about type of spell cast inside scypt? Or maybe another way to determine the type of cast?

I am not very experienced in modding and cant solve that problem about a few days :<

 

Any help would be appreсiated.

 

https://i.imgsafe.org/37/376d53e154.png

Edited by qruk000
Link to comment
Share on other sites

  • Recently Browsing   0 members

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