Talk:OnSpellCast - ObjectReference

There are no discussions on this page.
Revision as of 12:32, 13 July 2023 by TwilightSky (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

While not as 'dangerous' as OnHit - ObjectReference, this Event will fire for every spell cast by the player, and in theory with enough casting, could cause stack dumping. --Lisselli (talk)

This event also fires when casting from a scroll, but akSpell is always none no matter the casting type/delivery, or scrolls qty --Ingvion (talk) 21:51, 7 July 2023 (EDT)

The parameter is type Form, so just as you have to cast form to spell you'll have to cast the form to scroll I think. --TwilightSky (talk) 10:28, 11 July 2023 (EDT)
No, it returns none either way, i've tried to cast it as a Scroll, still nothing. --Ingvion (talk) 11:54, 11 July 2023 (EDT)

A small remark considering the shouts note: this event has no problems with detecting shouted spells if a magic effect with the script is already active at the time of shouting; in this case a spell of a shout with any number of words is detected correctly. But if a magic effect with the script is becoming active with a shouting action (via the condition) - in this case there is a spell detection problem, described on IsPlayerActionActive discussion page. --Ingvion (talk) 07:48, 13 July 2023 (EDT)

Understood. I have reverted my change. --TwilightSky (talk) 12:32, 13 July 2023 (EDT)
Return to "OnSpellCast - ObjectReference" page.