Jump to content

0 for 2 - Failing at AddSpell


raverrn

Recommended Posts

So after trying again to make my SheggorathSword, I've run into a snag applying Magic Effects on the player. I went back to the drawing board and pulled this almost wholesale from the CK tutorial:

 

Scriptname tutGlovesofBlizzardScript extends ObjectReference

{OnEquip adds a spell.}

 

Spell Property Blizzard auto

 

Event OnEquipped(Actor akActor)

If (akActor == Game.GetPlayer())

Debug.Notification("Check, it's equipped.")

Game.GetPlayer().AddSpell(Blizzard)

EndIf

EndEvent

 

Event OnUnequipped(Actor akActor)

If (akActor == Game.GetPlayer())

Game.GetPlayer().RemoveSpell(Blizzard)

EndIf

EndEvent

 

The notification fires, but the player doesn't get the spell. I have to admit I have no idea why,

Edited by raverrn
Link to comment
Share on other sites

  • Recently Browsing   0 members

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