1) A MagicEffect called "myEffect", with these parameters:
Effect archetype: Script
Casting type: Fire and forget
Delivery: Target actor
Magic skill: NONE
and everything else is "NONE" or unchecked.
I put a script in "Pypyrus scripts" sections which looks as follows:
Scriptname myScript extends MagicEffectActor NPC_targetEvent OnEffectStart(Actor akTarget, Actor akCaster) Debug.Trace("Magic effect was started on " + akTarget) NPC_Target = akTargetEndEvent2) A Spell object called "mySpell", with these parameters:
Type: Spell
Casting: Fire and forget (it's greyed out)
Delivery: Target actor (it's greyed out)
Menu display object: MAGINVIceSpellArt
Equip type: EitherHand
Casting perk: DestructionNovice00
Range: 20.0 ft
And then I checked "auto-calculate", "ignore resistance", and "no dual cast modifications"
And added as effect my "myEffect", with:
magnitude: 20
Duration: 3s
and no conditions
But when I call ingame the console function "player.AddSpell <(correct ID of my spell)>", it says the spell was added to player, but I cannot see it in magic inventory. What is wrong?