A spell that casts another spell...

Post » Mon Jun 18, 2012 7:36 pm

Does anyone know if this is possible? You can add plenty of magic effects to a spell, but there are a few cases where I would like a perk to affect part of a spell, but not the entire spell. A good example of this in vanilla is the "Aspect of Terror" perk in illusion, which has the effect of increasing the damage of fire destruction spells. The reason is that the magnitude of the entire spell gets raised if any the magic effects called contain the fear keyword and not just the magic effect that contains the keyword. If there were some way to make a spell call a magic effect and another spell, then I think I could do what I'm trying to pull off...
User avatar
Jimmie Allen
 
Posts: 3358
Joined: Sun Oct 14, 2007 6:39 am

Post » Tue Jun 19, 2012 5:14 am

In many of my magic effects I have scripts that add spells... but I don't think you can "cast" spells from them.

"Aspect of Terror" increases fire destruction spells?
User avatar
Harry-James Payne
 
Posts: 3464
Joined: Wed May 09, 2007 6:58 am

Post » Mon Jun 18, 2012 9:39 pm

In Oblivion, one way around the issue was to call an Activator from the spell that would cast another spell. Not sure if that will be the optimal way to do it for Skyrim thoiugh.

http://cs.elderscrolls.com/index.php/Casting_Spells_From_An_Activator
User avatar
Benji
 
Posts: 3447
Joined: Tue May 15, 2007 11:58 pm

Post » Tue Jun 19, 2012 1:20 am

Cloak effects automatically cast another spell at targets in range, with the spell being determined by what value is associated with the effect. Check out the vanilla cloaks, the way they deal damage is by referencing and continually casting a second spell at the targets (for example Flame Cloak continually casts the FlameCloakDamage spell, which in turn references a unique spell effect). You could look at that and possibly get it to work depending on exactly what you're trying to do.
User avatar
Eilidh Brian
 
Posts: 3504
Joined: Mon Jun 19, 2006 10:45 am

Post » Tue Jun 19, 2012 3:47 am

ElecManEXE, yes, I had seen the cloak spells, which is what gave me the idea. The "Associated Item" type seems to be determined by the "Effect Archetype." The cloak archetype allows you to select from a limited set of spells (perhaps only hostile or detrimental spells? I'm not sure what causes them to appear in the list, but not every spell is listed.) The archetype I need the new spell attached to is Peak Value Modifier.

Straton, I will look into that - it may be a good workaround in this case too.

Thanks for the suggestions! :)
User avatar
Kelly John
 
Posts: 3413
Joined: Tue Jun 13, 2006 6:40 am

Post » Tue Jun 19, 2012 8:23 am

I took a quick look at the available associated spells for Cloak spells. I believe the type that actually shows up in the list are "Concentration" type spells.

I'm not sure if a Peak Value Modifier would work as a concentration spell, but... couldn't hurt to play around with it a bit.
User avatar
Milagros Osorio
 
Posts: 3426
Joined: Fri Aug 25, 2006 4:33 pm

Post » Tue Jun 19, 2012 5:55 am

Hooray! I got it working. I was able to add a script (in the lower right corner), give it a spell property which I assigned to my new spell, then OnEffectStart I called the cast function on my spell property. Thanks again - your suggestions definitely pointed me in the right direction!
User avatar
Cameron Wood
 
Posts: 3384
Joined: Wed Oct 31, 2007 3:01 pm


Return to V - Skyrim