Thanks to you both, think I will have lots of questions until I get my feet under me.
I am just using candlelight as a placeholder at the moment I will be switching the spell in idfferent bits of the script so I need to leave akTarget in their (at least for now).
I've got another problem now, as I ahve that working and am trying to add an IF statement. It compiles OK.
ScriptName castspell extends activemagiceffect
Spell property candlelight Auto
Keyword property BeginCasting Auto
Event OnEffectStart(Actor akTarget, Actor akCaster)
if (Game.GetPlayer().HasMagicEffectWithKeyword(BeginCasting))
candlelight.Cast(akCaster, akTarget)
endIf
EndEvent
BeginCasting is a keyword I have attached to a Lesser Power. I cast the power (which has one other Keyword and nothing else) then I cast the spell with this script attached, nothing happens. Any idea what I'm doing wrong?