Issues with SendModEvent()?

Post » Thu Dec 12, 2013 3:17 pm

I created a MagicEffect for part of a Spell. I have a script attached to it that looks like:

Scriptname BB_MyDancingScript extends activemagiceffect[...]   ;some Properties and VariablesEvent OnEffectStart(Actor akTarget, Actor akCaster)   [...]   ;some functions and lines calling debug notifications   SendModEvent("BB_MyDanceModEvent")endEvent

Now, I know that almost everything is working fine because I'm seeing the notifications pop up in-game. Everything is fine until SendModEvent(). Checking my Papyrus log, I find:

[12/12/2013 - 12:05:45AM] ERROR: Unable to call SendModEvent - no native object bound to the script object, or object is of incorrect typestack:[Active effect 6 on  (00000014)].BB_MyDancingScript.SendModEvent() - "" Line ?[Active effect 6 on  (00000014)].BB_MyDancingScript.OnEffectStart() - "BB_MyDancingScript.psc" Line 37
Am I doing something clearly wrong that I haven't noticed. Is there something I have to do with the MagicEffect (i.e. check a flag, choose a certain archetype, set a certain duration) to make this work? Also, I do have SKSE installed.
User avatar
Ludivine Dupuy
 
Posts: 3418
Joined: Tue Mar 27, 2007 6:51 pm

Post » Thu Dec 12, 2013 3:45 pm

No, this is a bug in the current SKSE release. The script is registered internally for a Form when it should be registered for an ActiveMagicEffect. Though why you're propagating an SKSE event from a script that already is an event is beyond me though, the only thing you're accomplishing by doing this is delaying your processing by pushing the event onto the very end of the queue.

User avatar
LADONA
 
Posts: 3290
Joined: Wed Aug 15, 2007 3:52 am


Return to V - Skyrim