Getting magnitude from effect to use it on script ?

Post » Wed Jun 20, 2012 1:51 am

I'm trying to change a lot of spells with the CK, and one thing that is holding me back is the inability to pass the magnitude of a magic effect to the script associated with that effect.

For example, I have one spell that starts at magnitude 15, but that can increase up to 35 according to the player's skill level and also perks that the player can get. The script attached to this magic effect has no way to know the actual magnitude in real time, so I basically have to replicate calculations inside the script, such as manually applying the bonuses from skill level, perks, etc.

Have you guys found a way to get the magnitude from a magic effect and use it on scripts? Any nice workaround?
User avatar
Shelby McDonald
 
Posts: 3497
Joined: Sat Jan 13, 2007 2:29 pm

Post » Tue Jun 19, 2012 9:42 pm

The only workaround I can think of is to have multiple effects with differing magnitudes on your spell, each effect having different conditions so that only one effect applies at a time.
User avatar
Chloe Yarnall
 
Posts: 3461
Joined: Sun Oct 08, 2006 3:26 am

Post » Tue Jun 19, 2012 7:39 pm

I would like to know this too.
User avatar
Joanne
 
Posts: 3357
Joined: Fri Oct 27, 2006 1:25 pm

Post » Tue Jun 19, 2012 6:38 pm

I've been wanting to do this since day 1...never found a solution. You would think it would be easily available since it's an integral part of the MagicEffect. You can show it in the effect description with , but you can't access it in a script attached to the effect? really?
User avatar
Czar Kahchi
 
Posts: 3306
Joined: Mon Jul 30, 2007 11:56 am

Post » Tue Jun 19, 2012 11:59 pm

The only workaround I can think of is to have multiple effects with differing magnitudes on your spell, each effect having different conditions so that only one effect applies at a time.

This, i'm certain i've read a post asking the same thing, and the reply was that it couldn't be done within the CK.
However RandomNoob suggestion does indeed work.
User avatar
Facebook me
 
Posts: 3442
Joined: Wed Nov 08, 2006 8:05 am


Return to V - Skyrim