qruk000 Posted March 21, 2019 Share Posted March 21, 2019 (edited) 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 March 21, 2019 by qruk000 Link to comment Share on other sites More sharing options...
qruk000 Posted March 21, 2019 Author Share Posted March 21, 2019 Nvm, i found a solution: "Detect life" archetype instead of "Script", it could be applied to dead targets and have Dual Cast modifier Link to comment Share on other sites More sharing options...
qruk000 Posted March 25, 2019 Author Share Posted March 25, 2019 if anyone is still interested, there is a full solution: Archetype "Detect life" -> "Subject" + "Swap Target and Subject" -> "Effect was dual casted" = true/false. Works great for me Link to comment Share on other sites More sharing options...
Recommended Posts