Jump to content

Are Buffing Auras Possible?


ShadeKirby

Recommended Posts

I want to make a constant effect spell that gives slight buffs to nearby allies in a certain radius. The thing is, I'm not even sure this is possible with the scripting functions I have available to me. Last time I checked it worked, but with slight bugs.

 

I'm going to post an updated version of the script up on here, I think I cleared most of the bugs but I can't be sure.

 

Scriptname buffAura extends ActiveMagicEffect  
{Buffs a random target within a certain Radius, using a certain spell.}

import game

Float Property Radius  Auto  
Spell Property Speel Auto  
Actor Property Caster auto


Event OnEffectStart(Actor akTarget, Actor akCaster)
 Caster = akCaster
 RegisterForSingleUpdate(0.1)
EndEvent

Event OnUpdate()
if Caster.isDead()
Dispel()
Else
RegisterForSingleUpdate(0.1)
Endif
bool i = true
Actor target = FindRandomActorFromRef(Caster, Radius)
While i == true
if !target.IsHostileToActor(Caster)
	Speel.Cast(Caster, target)
endif
i = false
Endwhile
EndEvent

 

Comments?

 

Edit: I'm not using the cloak spell type because I can't figure out how to increase the radius on it, if it is at all possible.

Edited by ShadeKirby
Link to comment
Share on other sites

I'm not versed at all in Skyrim's scripting, but if the Cloak spells cause damage to enemies within a certain radius, surely that can be altered to give positive effects to allies.

 

That was my original idea, but it seems like the radius is always melee range, and I was trying to give it a longer radius. But if it turns out this idea isn't the best way to go about it and is just a waste of processing power, I'll scrap it.

Edited by ShadeKirby
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...