The DbSkseEvents script is a part of Skyrim SE’s Papyrus scripting ecosystem. This script is not present in the vanilla game, but can be found in modded sources like Dylbills Papyrus Functions (Dylbills PE).
For this script, the Papyrus index knows about:
- 57 events
- 42 functions
Inheritance Tree
No indexed scripts extend this script.
Properties
No properties found.
Events
- Found in:
- Dylbills PE
eventOnLoadGameGlobal()events ===========================================================================================================================================================================
as of version 6.3 OnLoadGameGlobal doesn't have to be registered for, it is always sent.- Found in:
- Dylbills PE
eventOnWaitStartGlobal()- Found in:
- Dylbills PE
eventOnWaitStopGlobal(boolinterrupted)- Found in:
- Dylbills PE
eventOnFurnitureEnterGlobal(ActorakActor, ObjectReferencefurnitureRef)- Found in:
- Dylbills PE
eventOnFurnitureExitGlobal(ActorakActor, ObjectReferencefurnitureRef)- Found in:
- Dylbills PE
eventOnActivateGlobal(ObjectReferenceActivatorRef, ObjectReferenceActivatedRef)- Found in:
- Dylbills PE
eventOnLockChangedGlobal(ObjectReferenceakReference, boolLocked)event sent when a reference is locked or unlocked
- Found in:
- Dylbills PE
eventOnOpenGlobal(ObjectReferenceActivatorRef, ObjectReferenceakActionRef)Open and close events are for animated doors / gates, use OnActivateGlobal for more general purposes.
- Found in:
- Dylbills PE
eventOnCloseGlobal(ObjectReferenceActivatorRef, ObjectReferenceakActionRef)- Found in:
- Dylbills PE
eventOnHitGlobal(ObjectReferenceAttacker, ObjectReferenceTarget, FormSource, AmmoakAmmo, ProjectileakProjectile, boolabPowerAttack, boolabSneakAttack, boolabBashAttack, boolabHitBlocked)note that OnHitGlobal sends Ammo as well as projectile.
This is because the projectile in this event is bugged, it doesn't detect reliably.
This sends the Ammo the attacker has equipped if the Source is a bow or crossbow.- Found in:
- Dylbills PE
eventOnProjectileImpactGlobal(ObjectReferenceshooter, ObjectReferencetarget, FormSource, AmmoammoSource, ProjectileakProjectile, boolabSneakAttack, boolabHitBlocked, intimpactResult, intcollidedLayer, floatdistanceTraveled, stringdamagedNodeName, ObjectReferenceprojectileMarker, float[]projectileHitTranslation)impactResults are: 0 = none, 1 = destroy, 2 = bounce, 3 = impale, 4 = stick
for collided layer see DbSkseFunctions.GetCollisionLayerName()
projectileMarker is an xMarker that is placed at the projectile at the point of impact so you can use functions
GetPosition, GetAngle and GetHeadingAngle to compare with the target
damagedNodeName only works on actors. e.g "SHIELD", "NPC Head [Head]", "NPC R UpperArm [RUar]" ect.
projectileHitTranslation is only valid for actors. projectileHitTranslation.length will be 6 if the data is valid.
[0] = Xposition, [1] = Yposition, [2] = Zposition,
[3] = XhitDirection, [4] = YhitDirection, [5] = ZhitDirection
this event requires the iMaxArrowsSavedPerReference setting in DbSkseFunctions.ini to be greater than 0.- Found in:
- Dylbills PE
eventOnMagicEffectAppliedGlobal(ObjectReferenceCaster, ObjectReferenceTarget, MagicEffectakEffect)Like OnMagicEffectApplied. Is triggered when the magicEffect is added to a target.
Is trigged regardless if the MagicEffect or spell conditions evaluate to true.- Found in:
- Dylbills PE
eventOnEffectStartGlobal(ActorCaster, ActorTarget, MagicEffectakEffect, Formsource, intcastingSource)Like ActiveMagicEffect OnEffectStart
Triggers when the akEffect becomes active on the Target, meaning the conditions for the effect or spell evaluate to true.
Source could be a spell, enchantment, potion, ingredient ect. The magic item that applied the akEffect.
For castingSource:
;LeftHand = 0,
RightHand = 1,
Other = 2, (most likely shout)
Instant = 3- Found in:
- Dylbills PE
eventOnEffectFinishGlobal(ActorCaster, ActorTarget, MagicEffectakEffect, Formsource, intcastingSource, floatelapsedSeconds, floatelapsedGameHours)Like ActiveMagicEffect OnEffectFinish
Triggers when the akEffect becomes inactive or finishes on the Target.
Source could be a spell, enchantment, potion, ingredient ect. The magic item that applied the akEffect.
For castingSource:
;LeftHand = 0,
RightHand = 1,
Other = 2, (most likely shout)
Instant = 3
elapsedSeconds is that amount real time seconds since the effect was last started on the Target. Time spent in menus is counted.
elapsedGameHours is the amount of game hours elapsed since the effect was last started on the Target.- Found in:
- Dylbills PE
eventOnSpellCastGlobal(ObjectReferenceCaster, FormSource)Event sent when an ObjectReference casts a spell. Source could be a spell, enchantment, potion or ingredient.
- Found in:
- Dylbills PE
eventOnActorSpellCastGlobal(ActorCaster, FormSource, intslot)Actor Action events. Source is the weapon / spell / shout.
Slots are 0 = left hand, 1 = right hand, 2 = voice / power.- Found in:
- Dylbills PE
eventOnActorSpellFireGlobal(ActorCaster, FormSource, intslot)- Found in:
- Dylbills PE
eventOnVoiceCastGlobal(ActorCaster, FormSource, intslot)- Found in:
- Dylbills PE
eventOnVoiceFireGlobal(ActorCaster, FormSource, intslot)- Found in:
- Dylbills PE
eventOnBowDrawGlobal(ActorakActor, FormSource, intslot)- Found in:
- Dylbills PE
eventOnBowReleaseGlobal(ActorakActor, FormSource, intslot)- Found in:
- Dylbills PE
eventOnBeginDrawGlobal(ActorakActor, FormSource, intslot)for draw / sheathe events, they are always sent for the right hand.
Left hand events are only sent if there's something in the left hand, i.e spell / weapon / shield ect.- Found in:
- Dylbills PE
eventOnEndDrawGlobal(ActorakActor, FormSource, intslot)- Found in:
- Dylbills PE
eventOnBeginSheatheGlobal(ActorakActor, FormSource, intslot)- Found in:
- Dylbills PE
eventOnEndSheatheGlobal(ActorakActor, FormSource, intslot)- Found in:
- Dylbills PE
eventOnWeaponSwingGlobal(ActorakActor, FormSource, intslot)- Found in:
- Dylbills PE
eventOnActorFootStepGlobal(ActorakActor, stringtype)type can be "FootLeft", "FootRight", "FootSprintLeft", "FootSprintRight", "JumpUp", "JumpDown" ect.
- Found in:
- Dylbills PE
eventOnDeathGlobal(ActorVictim, ActorKiller)- Found in:
- Dylbills PE
eventOnDyingGlobal(ActorVictim, ActorKiller)- Found in:
- Dylbills PE
eventOnEnterBleedoutGlobal(ActorVictim)- Found in:
- Dylbills PE
eventOnRaceSwitchCompleteGlobal(ActorakActor, RaceakOldRace, RaceakNewRace)- Found in:
- Dylbills PE
eventOnContainerChangedGlobal(ObjectReferencenewContainer, ObjectReferenceoldContainer, ObjectReferenceitemReference, FormbaseObj, intitemCount)Note that this can be used as ItemAdded or ItemRemoved event.
- Found in:
- Dylbills PE
eventOnObjectEquippedGlobal(ActorakActor, FormakBaseObject, ObjectReferenceakReference)- Found in:
- Dylbills PE
eventOnObjectUnequippedGlobal(ActorakActor, FormakBaseObject, ObjectReferenceakReference)- Found in:
- Dylbills PE
eventOnCombatStateChangedGlobal(ActorakActor, ActorakTarget, intaeCombatState)note that this will work on the player for most cases. Exception being if stopCombat is called on the player with a script.
internally this checks the player's combat status whenever another actor changes combat status
and sends the event if the player combat status has changed, if the player is registered for akActor.- Found in:
- Dylbills PE
eventOnItemCraftedGlobal(FormitemCrafted, ObjectReferencebenchRef, intcount, intworkBenchType, stringbenchSkill)workbench types are:
None = 0,
CreateObject = 1,
SmithingWeapon = 2,
Enchanting = 3,
EnchantingExperiment = 4,
Alchemy = 5,
AlchemyExperiment = 6,
SmithingArmor = 7
benchSkill will be an actor value such as "smithing", "enchanting" ect.- Found in:
- Dylbills PE
eventOnItemsPickpocketedGlobal(ActorakTarget, FormitemTaken, intcount)- Found in:
- Dylbills PE
eventOnLocationClearedGlobal(LocationakLocation)- Found in:
- Dylbills PE
eventOnQuestObjectiveStateChangedGlobal(QuestakQuest, stringdisplayText, intoldState, intnewState, intobjectiveIndex, Alias[]ojbectiveAliases)states for oldState and newState are:
Dormant = 0,
Displayed = 1,
Completed = 2,
CompletedDisplayed = 3,
Failed = 4,
FailedDisplayed = 5- Found in:
- Dylbills PE
eventOnPositionPlayerStartGlobal(ObjectReferencefastTravelMarker, ObjectReferencemoveToRef, WorldSpaceakWorldSpace, CellakInteriorCell)Position Player events are triggered whenever the player enters a new space, i.e fast traveling, going through a load door or a script calling MoveTo on the player.
OnPositionPlayerStart is right before the Loading Menu opens.
If the player is moving to an exterior the akWorldSpace will exist but the akInteriorCell will not and vice versa for moving to an interior.
The fastTravelMarker will only exist if the player fast travels or Game.FastTravel(objectReference destination) is called
The moveToRef will only exist if moveTo is called on the player (can be from a papyrus script or console command), ie Game.GetPlayer().moveTo(ref)
Also note that the parameters for these PositionPlayer events only work on Skyrim SE and AE, not VR.
The events will be sent on VR but the parameters will all be none- Found in:
- Dylbills PE
eventOnPositionPlayerFinishGlobal(ObjectReferencefastTravelMarker, ObjectReferencemoveToRef, WorldSpaceakWorldSpace, CellakInteriorCell)OnPositionPlayerFinish is after the game is done loading when the player moves into a new space.
The parameters here will be the same from the last OnPositionPlayerStart event.- Found in:
- Dylbills PE
eventOnPlayerChangeCellGlobal(CellakNewCell, CellakPreviousCell)Event triggered when the player moves from one cell to another
Note that if the akPreviousCell is unloaded it will be none.
This happens when the player fast travels to a new worldspace
or when the player moves outside of the current cell grid and the previous cell is unloaded.- Found in:
- Dylbills PE
eventOnPerkEntryRunGlobal(PerkakPerk, ObjectReferenceakTarget, ObjectReferenceowner, intflag)This triggers the same as adding a script fragment to a perk entry point in the creation kit.
Not sure what the flag is for, but it's in the TESPerkEntryRunEvent so I included it here.- Found in:
- Dylbills PE
eventOnTriggerEnterGlobal(ObjectReferenceakTriggerBox, ObjectReferenceakTarget)- Found in:
- Dylbills PE
eventOnTriggerLeaveGlobal(ObjectReferenceakTriggerBox, ObjectReferenceakTarget)- Found in:
- Dylbills PE
eventOnPackageStartGlobal(ActorakActor, PackageakPackage)- Found in:
- Dylbills PE
eventOnPackageChangeGlobal(ActorakActor, PackageakPackage)- Found in:
- Dylbills PE
eventOnPackageEndGlobal(ActorakActor, PackageakPackage)- Found in:
- Dylbills PE
eventOnDestructionStageChangedGlobal(ObjectReferenceref, intoldStage, intnewStage)- Found in:
- Dylbills PE
eventOnTranslationFailedGlobal(ObjectReferenceref)- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
eventOnMusicTypeChangeGlobal(MusicTypenewMusicType, MusicTypeoldMusicType)Uses frame update function to detect change. Interval determined by the iFrameUpdateInterval setting in Data/SKSE/Plugins/DbSkseFunctions.ini
- Found in:
- Dylbills PE
eventOnWeatherChangeGlobal(WeathernewWeather, WeatheroldWeather)Be aware that weather changes when going in and out of the map menu.
Uses frame update function to detect change. Interval determined by the iFrameUpdateInterval setting in Data/SKSE/Plugins/DbSkseFunctions.ini- Found in:
- Dylbills PE
eventOnUiItemMenuEvent(stringmenuName, FormakSelectedForm, inteventType, intcount, boolplayerInventory, boolstolen)menuName is the item menu that's currently open.
akSelectedForm can be none if nothing is currently selected / highlighted.
eventTypes are: -1 = all types, 0 = selection changed, 1 = item selected, 2 = r button (drop, take all ect), 3 = f button (favorite ect).
count is the count of the item selected or highlighted, this is before the ui event is processed.
So for example if the inventory menu is open and eventType is 2 (r button for dropped) to get the number of items dropped use: int dropped items = (count - Game.GetPlayer().GetItemCount(akSelectedForm))
playerInventory is if the item was selected from the player's inventory and not the open container in the case of container menu, barter menu, gift menu ect.- Found in:
- Dylbills PE
eventOnEnterRange(ObjectReferenceakTarget, ObjectReferenceakCenterRef, floatdistance)Triggered when the akTarget enters the previously registered distance range of akCenterRef.
Distance is the distance that was registered, not the current distance from akTarget to akCenterRef.
Use akTarget.GetDistance(akCenterRef) for current distance.
This is because this event uses polling and not triggered immediately when the target enters the range.
Polling interval determined by the fEventPollingInterval setting in Data/SKSE/Plugins/DbSkseFunctions.ini- Found in:
- Dylbills PE
eventOnLeaveRange(ObjectReferenceakTarget, ObjectReferenceakCenterRef, floatdistance)Triggered when the akTarget leaves previously registered distance range of akCenterRef.
Distance is the distance that was registered, not the current distance from akTarget to akCenterRef.
Use akTarget.GetDistance(akCenterRef) for current distance.
This is because this event uses polling and not triggered immediatly when the target enters the range.
Polling interval determined by the fEventPollingInterval setting in Data/SKSE/Plugins/DbSkseFunctions.ini
Functions
- Found in:
- Dylbills PE
boolfunctionIsFormRegisteredForGlobalEvent(stringasEvent, FormeventReceiver, FormparamFilter=NONE, intparamFilterIndex=0)NativeGlobalform ==================================================================================================================================================
- Found in:
- Dylbills PE
voidfunctionRegisterFormForGlobalEvent(stringasEvent, FormeventReceiver, FormparamFilter=NONE, intparamFilterIndex=0)NativeGlobal- Found in:
- Dylbills PE
voidfunctionUnregisterFormForGlobalEvent(stringasEvent, FormeventReceiver, FormparamFilter=NONE, intparamFilterIndex=0)NativeGlobal- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
boolfunctionToggleGlobalEventOnForm(stringsEvent, FormeventReceiver, FormparamFilter=NONE, intparamFilterIndex=0)Globalreturns true if registering, or false if unregistering.
- Found in:
- Dylbills PE
boolfunctionIsAliasRegisteredForGlobalEvent(stringasEvent, AliaseventReceiver, FormparamFilter=NONE, intparamFilterIndex=0)NativeGlobalalias ==========================================================================================================================================================================
- Found in:
- Dylbills PE
voidfunctionRegisterAliasForGlobalEvent(stringasEvent, AliaseventReceiver, FormparamFilter=NONE, intparamFilterIndex=0)NativeGlobal- Found in:
- Dylbills PE
voidfunctionUnregisterAliasForGlobalEvent(stringasEvent, AliaseventReceiver, FormparamFilter=NONE, intparamFilterIndex=0)NativeGlobal- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
boolfunctionToggleGlobalEventOnAlias(stringsEvent, AliaseventReceiver, FormparamFilter=NONE, intparamFilterIndex=0)Globalreturns true if registering, or false if unregistering.
- Found in:
- Dylbills PE
boolfunctionIsActiveMagicEffectRegisteredForGlobalEvent(stringasEvent, ActiveMagicEffecteventReceiver, FormparamFilter=NONE, intparamFilterIndex=0)NativeGlobalActiveMagicEffect ===============================================================================================================================================================
- Found in:
- Dylbills PE
voidfunctionRegisterActiveMagicEffectForGlobalEvent(stringasEvent, ActiveMagicEffecteventReceiver, FormparamFilter=NONE, intparamFilterIndex=0)NativeGlobal- Found in:
- Dylbills PE
voidfunctionUnregisterActiveMagicEffectForGlobalEvent(stringasEvent, ActiveMagicEffecteventReceiver, FormparamFilter=NONE, intparamFilterIndex=0)NativeGlobal- Found in:
- Dylbills PE
voidfunctionUnregisterActiveMagicEffectForGlobalEvent_All(stringasEvent, ActiveMagicEffecteventReceiver)NativeGlobal- Found in:
- Dylbills PE
boolfunctionToggleGlobalEventOnActiveMagicEffect(stringsEvent, ActiveMagicEffecteventReceiver, FormparamFilter=NONE, intparamFilterIndex=0)Globalreturns true if registering, or false if unregistering.
- Found in:
- Dylbills PE
voidfunctionIsFormRegisteredForUiItemMenuEvent(stringmenuName, FormeventReceiver, FormparamFilter=NONE, inteventType=-1)NativeGlobalform
- Found in:
- Dylbills PE
voidfunctionRegisterFormForUiItemMenuEvent(stringmenuName, FormeventReceiver, FormparamFilter=NONE, inteventType=-1)NativeGlobal- Found in:
- Dylbills PE
voidfunctionUnregisterFormForUiItemMenuEvent(stringmenuName, FormeventReceiver, FormparamFilter=NONE, inteventType=-1)NativeGlobal- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
voidfunctionIsAliasRegisteredForUiItemMenuEvent(stringmenuName, AliaseventReceiver, FormparamFilter=NONE, inteventType=-1)NativeGlobalAlias
- Found in:
- Dylbills PE
voidfunctionRegisterAliasForUiItemMenuEvent(stringmenuName, AliaseventReceiver, FormparamFilter=NONE, inteventType=-1)NativeGlobal- Found in:
- Dylbills PE
voidfunctionUnregisterAliasForUiItemMenuEvent(stringmenuName, AliaseventReceiver, FormparamFilter=NONE, inteventType=-1)NativeGlobal- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
voidfunctionIsActiveMagicEffectRegisteredForUiItemMenuEvent(stringmenuName, ActiveMagicEffecteventReceiver, FormparamFilter=NONE, inteventType=-1)NativeGlobalsActiveMagicEffect
- Found in:
- Dylbills PE
voidfunctionRegisterActiveMagicEffectForUiItemMenuEvent(stringmenuName, ActiveMagicEffecteventReceiver, FormparamFilter=NONE, inteventType=-1)NativeGlobal- Found in:
- Dylbills PE
voidfunctionUnregisterActiveMagicEffectForUiItemMenuEvent(stringmenuName, ActiveMagicEffecteventReceiver, FormparamFilter=NONE, inteventType=-1)NativeGlobal- Found in:
- Dylbills PE
voidfunctionUnregisterActiveMagicEffectForUiItemMenuEvent_All(ActiveMagicEffecteventReceiver)NativeGlobal- Found in:
- Dylbills PE
form ===================================================================================================================================================================================================================================================================================
- Found in:
- Dylbills PE
boolfunctionIsFormRegisteredForRangeEvents(FormeventReceiver, ObjectReferenceakTarget, ObjectReferenceakCenterRef, floatdistance)NativeGlobal- Found in:
- Dylbills PE
boolfunctionRegisterFormForRangeEvents(FormeventReceiver, ObjectReferenceakTarget, ObjectReferenceakCenterRef, floatdistance)NativeGlobal- Found in:
- Dylbills PE
boolfunctionUnregisterFormForRangeEvents(FormeventReceiver, ObjectReferenceakTarget, ObjectReferenceakCenterRef, floatdistance)NativeGlobal- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
Alias ===================================================================================================================================================================================================================================================================================
- Found in:
- Dylbills PE
boolfunctionIsAliasRegisteredForRangeEvents(AliaseventReceiver, ObjectReferenceakTarget, ObjectReferenceakCenterRef, floatdistance)NativeGlobal- Found in:
- Dylbills PE
boolfunctionRegisterAliasForRangeEvents(AliaseventReceiver, ObjectReferenceakTarget, ObjectReferenceakCenterRef, floatdistance)NativeGlobal- Found in:
- Dylbills PE
boolfunctionUnregisterAliasForRangeEvents(AliaseventReceiver, ObjectReferenceakTarget, ObjectReferenceakCenterRef, floatdistance)NativeGlobal- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
intfunctionGetNumRangeEventsRegisteredOnActiveMagicEffect(ActiveMagicEffecteventReceiver)NativeGlobalActiveMagicEffect ===================================================================================================================================================================================================================================================================================
- Found in:
- Dylbills PE
boolfunctionIsActiveMagicEffectRegisteredForRangeEvents(ActiveMagicEffecteventReceiver, ObjectReferenceakTarget, ObjectReferenceakCenterRef, floatdistance)NativeGlobal- Found in:
- Dylbills PE
boolfunctionRegisterActiveMagicEffectForRangeEvents(ActiveMagicEffecteventReceiver, ObjectReferenceakTarget, ObjectReferenceakCenterRef, floatdistance)NativeGlobal- Found in:
- Dylbills PE
boolfunctionUnregisterActiveMagicEffectForRangeEvents(ActiveMagicEffecteventReceiver, ObjectReferenceakTarget, ObjectReferenceakCenterRef, floatdistance)NativeGlobal- Found in:
- Dylbills PE
intfunctionUnregisterActiveMagicEffectForRangeEvents_All(ActiveMagicEffecteventReceiver)NativeGlobal
