Applying spell effect to area around caster?

Post » Sat Nov 17, 2012 7:45 am

I know this is possible, but I can't seem to figure out how. What I'm trying to do is create an ability that applies a Combat Health Regen modifier to specific targets around a base NPC. I can conditionalize it just fine, using keywords, but the problem comes up with creating a magic effect and spell/ability that target NPCs around the "caster". So what I have is:

Custom Magic Effect with a value modifier for CombatHealthRegenMulti
Custom Spell listing the above magic effect with an area of 12, and condition that "target" haskeyword
Custom Perk that contains this ability

It doesn't seem to apply the effect to the surrounding enemies. Any ideas?
User avatar
Dan Wright
 
Posts: 3308
Joined: Mon Jul 16, 2007 8:40 am

Post » Sat Nov 17, 2012 5:44 am

To do what you're trying to do you need the following:

The magic effect needs to be:
  • Self targetting
  • Fire and Forget
The spell needs to be:
  • Self targetting
  • Fire and Forget
  • Has an area of effect set
  • Has a duration set
And that's pretty much all there is to it, this'll create an AoE spell centred on the caster, I don't think this setup will affect the caster. if you also need to affect the caster, add a second magic effect on the spell that points to the same magic effect as the AoE, and have it set to zero area. Conditions can be set up to narrow down what targets are affected or ignored.

BTW might you not be better off just using a healling effect on the spell instead of fiddling with their natural regens and perks?
User avatar
Tarka
 
Posts: 3430
Joined: Sun Jun 10, 2007 9:22 pm

Post » Sat Nov 17, 2012 7:30 am

The target is meant to die pretty quickly, I'm just looking for a few ways to make things interesting, even if it is minor.

Wouldn't the fire and forget setting require that the spell be cast at some point? I think I would have some trouble forcing the NPC to cast the spell in the first place. And would I be able to check the No Duration box so that it never wears off?
User avatar
Shelby Huffman
 
Posts: 3454
Joined: Wed Aug 08, 2007 11:06 am

Post » Sat Nov 17, 2012 7:28 am

Bump.
User avatar
james kite
 
Posts: 3460
Joined: Sun Jul 22, 2007 8:52 am

Post » Sat Nov 17, 2012 3:52 pm

Ok. Here is an axample that searches for the closest actor to the player. It is sophsitcated, but it can be easily simplified modified to suit your needs:


Phase1:

Spell1 fire and forget (F/F) on self
Magic effect (ME)1 script, F/F, on self - possible several condition functions on player (subject) taking into account different situations
Here in script you set global variables used later that changes depending on circumstances and you pauae the script via wait - skip the phase if not applicable (if you dont have to set global variables).

Phase2:

Spell2 F/F, on self, cloak
ME2 cloak, F/F, on self - possible several condition functions on player (subject)
Possibe several MEs taking into account different situations (different condition functions)

Phase3:

Spell3 aimed, concentration - attached to MG2 - possible several spells attached to several MEs from phase2
ME3 aimed, concentration, script - possible several condition functions on target (subject)
Possibe several MEs taking into account different situations (different condition functions)
Here in script you can run additional conditions not possible as condition functions and then you place the target in actor array in a script in your quest.

Phase4:

Script in ME1 (or in ME2 if you skipped phase1) resumes after say 1 sec and checks the actor array in a script in your quest and chooses nearest actor and then you do with him what you want.
User avatar
Victoria Vasileva
 
Posts: 3340
Joined: Sat Jul 29, 2006 5:42 pm


Return to V - Skyrim