[Papyrus] Recieving an OnSpellCast Event help

Post » Tue Jul 22, 2014 8:14 am

Im currently in the process of making a mod for destruction. Essentially, you select a perk, and what this perk does is, when a destruction spell is cast, it increase the damage of the next destruction spell you cast. My question is, i cant get this script to recieve an "OnSpellCast" event when attatched to the perk itself... So where can i attach this script too? Do i have to attach my script to every spell? Here is my script so far.

Scriptname ARC_IncantersFlowScript extends ReferenceAliasEvent OnSpellCast(Form akSpell)    Debug.Notification("A spell was cast")endEvent

When ever i cast a spell, i never receive the notification that a spell was cast.

User avatar
jadie kell
 
Posts: 3497
Joined: Sat Jul 29, 2006 3:54 pm

Post » Mon Jul 21, 2014 11:41 pm

The Event OnSpellCast(Form akSpell) extends objectReferences, which means you need to call it from a objectReference or objects which extends objectReferences (like actors)

User avatar
Lou
 
Posts: 3518
Joined: Wed Aug 23, 2006 6:56 pm


Return to V - Skyrim