Difference between revisions of "Talk:OnSpellCast - ObjectReference"
imported>Lisselli (Theory on stack dumping.) |
TwilightSky (talk | contribs) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
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. --[[User:Lisselli|Lisselli]] ([[User talk:Lisselli|talk]]) | 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. --[[User:Lisselli|Lisselli]] ([[User talk: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 --[[User:Ingvion|Ingvion]] ([[User talk: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. --[[User:TwilightSky|TwilightSky]] ([[User talk: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. --[[User:Ingvion|Ingvion]] ([[User talk: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 [[Talk:IsPlayerActionActive|discussion page]]. --[[User:Ingvion|Ingvion]] ([[User talk:Ingvion|talk]]) 07:48, 13 July 2023 (EDT) | |||
::Understood. I have reverted my change. --[[User:TwilightSky|TwilightSky]] ([[User talk:TwilightSky|talk]]) 12:32, 13 July 2023 (EDT) |
Latest revision as of 11:32, 13 July 2023
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)
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)