Skyrim:ActiveMagicEffect Script
Extends: None
Script zur Manipulation von aktiven magischen Effekten (MagicEffects, die aktuell an einen Actor angehängt sind).
Beachte, dass ActiveMagicEffect Scripts zusätzlich zu den unten definierten Events auch Events empfangen, die zum Aktor gehören, dem sie zugeordnet sind. Das ist nützlich, um dem Aktor Scriptprozesse dynamisch ohne die Nutzung von Quest-Aliases beizufügen
Inhaltsverzeichnis
Definition
<papyrusscript> ScriptName ActiveMagicEffect </papyrusscript>
Properties
None
Global Functions
None
Member Functions
Function AddInventoryEventFilter(Form akFilter)
- Fügt ein Inventarfilter-Event dem Effekt hinzu.
Function Dispel()
- Verbannt diesen aktiven magischen Effekt.
MagicEffect Function GetBaseObject()
- Obtains the MagicEffect this active magic effect is based on.
Actor Function GetCasterActor()
- Obtains the Actor that cast the spell this magic effect is from.
Actor Function GetTargetActor()
- Obtains the Actor this active magic effect is applied to.
Function RegisterForAnimationEvent(ObjectReference akSender, string asEventName)
- Registers this magic effect to receive the specified animation event from the specified object.
Function RegisterForLOS(Actor akViewer, ObjectReference akTarget)
- Registers this magic effect to receive gain and lost LOS events between the viewer and the target.
Function RegisterForSingleLOSGain(Actor akViewer, ObjectReference akTarget)
- Registers this magic effect to receive a single LOS gain event when the viewer sees the target.
Function RegisterForSingleLOSLost(Actor akViewer, ObjectReference akTarget)
- Registers this magic effect to receive a single LOS lost event when the viewer loses sight of the target.
Function RegisterForSingleUpdate(float afInterval)
- Registers this magic effect to receive a single update event in the specified time.
Function RegisterForSingleUpdateGameTime(float afInterval)
- Registers this magic effect to receive a single update event in the specified number of game hours.
Function RegisterForSleep()
- Registers this magic effect to receive sleep events for when the player goes to sleep or wakes up.
Function RegisterForTrackedStatsEvent()
- Registers this magic effect to receive tracked stats events for when tracked stats are updated.
Function RegisterForUpdate(float afInterval)
- Registers this magic effect to receive update events with the specified interval, or changes the update interval.
Function RegisterForUpdateGameTime(float afInterval)
- Registers this magic effect to receive update events with the specified interval in game time hours, or changes the update interval.
Function RemoveAllInventoryEventFilters()
- Remove all inventory event filters on this effect.
Function RemoveInventoryEventFilter(Form akFilter)
- Remove a specific inventory event filter.
Function StartObjectProfiling()
- Starts profiling all scripts attached to this magic effect.
Function StopObjectProfiling()
- Stops profiling all scripts attached to this magic effect.
Function UnregisterForAnimationEvent(ObjectReference akSender, string asEventName)
- Unregisters this magic effect from receiving the specified animation event from the specified object.
Function UnregisterForLOS(Actor akViewer, ObjectReference akTarget)
- Unregisters this magic effect from any LOS events between the viewer and target.
Function UnregisterForSleep()
- Unregisters this magic effect from sleep events.
Function UnregisterForTrackedStatsEvent()
- Unregisters this magic effect from tracked stats events.
Function UnregisterForUpdate()
- Unregisters this magic effect from update events.
Function UnregisterForUpdateGameTime()
- Unregisters this magic effect from game time update events.
Events
Event OnAnimationEvent(ObjectReference akSource, string asEventName)
- Received when one of animation events we are listening for is recieved.
Event OnAnimationEventUnregistered(ObjectReference akSource, string asEventName)
- Received when one of the animation events we are listening for has been automatically unregistered by the game due to the target animation graph unloading.
Event OnEffectStart(Actor akTarget, Actor akCaster)
- Event received when this effect starts
Event OnEffectFinish(Actor akTarget, Actor akCaster)
- Event received when this effect has finished
Event OnGainLOS(Actor akViewer, ObjectReference akTarget)
- Received when the viewer goes from not seeing the target to seeing the target - if this magic effect is registered.
Event OnLostLOS(Actor akViewer, ObjectReference akTarget)
- Received when the viewer goes from seeing the target to not seeing the target - if this magic effect is registered.
Event OnSleepStart(float afSleepStartTime, float afDesiredSleepEndTime)
- Received when the player goes to sleep.
Event OnSleepStop(bool abInterrupted)
- Received when the player wakes up or is interrupted in sleep.
Event OnTrackedStatsEvent(string asStat, int aiStatValue)
- Received when tracked stats are updated.
Event OnUpdate()
- Received at periodic intervals, if the magic effect is registered.
Event OnUpdateGameTime()
- Received at periodic intervals of game time, if the magic effect is registered.
ActiveMagicEffects empfängt ebenfalls Events vom Actor, dem sie zugeordnet sind.
Links
- ActiveMagicEffect Script (das englische Original des obigen Artikels)