blazeda59 Posted February 19, 2012 Share Posted February 19, 2012 Hi Im trying to setup a staff that will display a MSG when used. Ive tried addin a script to both the weapon and magic affect but nether is working. Can someone please tell me how I can get this done....Thanks Link to comment Share on other sites More sharing options...
firas55556 Posted February 19, 2012 Share Posted February 19, 2012 http://www.creationkit.com/OnSpellCast_-_ObjectReferenceShould work since it casts a spell. Link to comment Share on other sites More sharing options...
blazeda59 Posted February 20, 2012 Author Share Posted February 20, 2012 thanks for the reply but I still cant get it working. Im having trouble defining the variable. heres my code Scriptname AAASummonSCRIPT extends activemagiceffect Event OnSpellCast(Form akSpell) Spell spellCast = akSpell as Spell if spellCast && spellCast == AAASummon Debug.Trace("We just cast a fireball!") endIf endEvent its the AAASummon part which brakes but when I add "int AAASummon" it tells me i cannot name a variable or property the same as a known type or script?? Link to comment Share on other sites More sharing options...
Recommended Posts