Skyrim

File information

Last updated

Original upload

Created by

Hoax2

Uploaded by

trebtreb

Virus scan

Safe to use

Mod articles

  • The logic behind the scenes

    The Problem.
    There are a few places in the vanilla Skyrim scripts that use the OnMagicEffectApply event but don't actually care what type of effect triggered the event. With the original game this is a fairly trivial issue because most, if not all, Magic Effects are intended to have consequences and the vanilla area-of-effect spells (Cloak Spells) are no exception.

    The issue arises now that modders are getting creative with their solutions. For example dynamically attaching scripts to objects/actors in an area by use of cloak spells. This technique causes the nonpartisan OnMagicEffectApply events to be triggered regardless of the spell's settings, giving authors no way to have their spell ignored.

    This issue is most obvious during Brawls, because the...

  • The code

    Event OnMagicEffectApply(ObjectReference akCaster, MagicEffect akEffect)
    if akEffect.HasKeyword(Game.GetFormFromFile(0x000F3E6C, "Skyrim.esm") as Keyword) ; Effect keyword = Dummy
    else
    ; script here to do whatever it does
    endif
    endEvent

    ==========================================================
    This mod edits these scripts in the above way
    - BladesSparringScript
    - C00TrainerScript
    - C00VilkasScript
    - CompanionsSingleCombatantScript
    - Critter
    - DGIntimidateAliasScript
    - DGIntimidatePlayerScript
    - dunLabyrinthianMazeTabletScript
    - MG02WallAliasScript
    - MS11CalixtoScript
    - TrapFallingOilLamp
    - TrapFallingOilLampAnim
    - TrapFallingOilLampColLayer
    - trapSoulGe...