Checking to see if a magic effect was Dual Cast in papyrus?

Post » Wed Jun 20, 2012 8:00 pm

Is there a way to detect, in papyrus, if a magic effect was dual cast or not?

I looked through the animation events and I didn't seem to see any that would help me out in this respect, I was thinking of maybe setting a global variable to 1 on a certain animation event and then in my activemagiceffect script checking to see if it is 1 when it hits a target, to know whether it has been dual cast or not, but now I don't think that is the way to do it.
User avatar
Shirley BEltran
 
Posts: 3450
Joined: Wed Jul 26, 2006 4:14 pm

Post » Wed Jun 20, 2012 11:53 pm

there is a condition for Magic Effects "EffectWasDualCast" (I think thats the one, don't have my CK handy to check)
the drawback is the spell has to hit something before you can know it was dual cast

I believe there is also a condition "IsDualCasting" if you made an ability with a magic effect that used that condition, the magic effect could have a script that changes your global variable when it activates
User avatar
Stryke Force
 
Posts: 3393
Joined: Fri Oct 05, 2007 6:20 am

Post » Wed Jun 20, 2012 10:29 pm

there is a condition for Magic Effects "EffectWasDualCast" (I think thats the one, don't have my CK handy to check)
the drawback is the spell has to hit something before you can know it was dual cast

I believe there is also a condition "IsDualCasting" if you made an ability with a magic effect that used that condition, the magic effect could have a script that changes your global variable when it activates

Ok awesome. I will just make a variant of the script and stick it on a separate magic effect so it will choose one or the other effect based on whether it was dual cast or not.
User avatar
Laura Ellaby
 
Posts: 3355
Joined: Sun Jul 02, 2006 9:59 am

Post » Wed Jun 20, 2012 9:22 pm

Looks like I cant get it to work. If the spell is aimed (projectile) should I be running EffectWasDualCast == 1 on the subject? It seems to be returning true for effectwasdualcast == 0 because of the two versions of the effect on the spell, the one that is not the dual cast version is landing on the target 100% of the time, dual casted or not.
User avatar
Josephine Gowing
 
Posts: 3545
Joined: Fri Jun 30, 2006 12:41 pm

Post » Thu Jun 21, 2012 3:46 am

I think EffectWasDualCast needs to run on Target not Subject
I know I've seen other posts on this condition floating around here and nexus try doing a search and see what they came up with
User avatar
Amanda savory
 
Posts: 3332
Joined: Mon Nov 27, 2006 10:37 am


Return to V - Skyrim