Category:Events
This category is a holding place for the various Papyrus Events.
For a reference on Events: Events Reference
A note about events
Events are not like the old block types. When you make an event in your script that extends ObjectReference or ReferenceAlias you are essentially creating a new version of that event, and you need to declare it with the same number of parameters. Those parameters are then used inside the script.
You should pretty much just copy and paste the events straight from the wiki, unless you desire to change the name of the parameters for some reason (but I can't think of a reason).
For example:
Event OnHit(ObjectReference akAggressor, Form akWeapon, Projectile akProjectile)
EndEvent
You might be tempted to try something like this:
Event OnHit(Game.GetPlayer())
EndEvent
But that DOES NOT work.
Instead what you need to do is something like this:
Event OnHit(ObjectReference akAggressor, Form akWeapon, Projectile akProjectile)
if akAggressor == game.getPlayer()
;do something
endif
EndEvent
Language: | English • 日本語 |
---|
Subcategories
This category has only the following subcategory.
R
Pages in category "Events"
The following 110 pages are in this category, out of 110 total.
O
- OnActivate - ObjectReference
- OnAnimationEvent - ActiveMagicEffect
- OnAnimationEvent - Alias
- OnAnimationEvent - Form
- OnAnimationEventUnregistered - ActiveMagicEffect
- OnAnimationEventUnregistered - Alias
- OnAnimationEventUnregistered - Form
- OnAttachedToCell - ObjectReference
- OnBeginState
- OnCellAttach - ObjectReference
- OnCellDetach - ObjectReference
- OnCellLoad - ObjectReference
- OnClose - ObjectReference
- OnCombatStateChanged - Actor
- OnContainerChanged - ObjectReference
- OnDeath - Actor
- OnDestructionStageChanged - ObjectReference
- OnDetachedFromCell - ObjectReference
- OnDying - Actor
- OnEffectFinish - ActiveMagicEffect
- OnEffectStart - ActiveMagicEffect
- OnEndState
- OnEnterBleedout - Actor
- OnEquipped - ObjectReference
- OnGainLOS - ActiveMagicEffect
- OnGainLOS - Alias
- OnGainLOS - Form
- OnGetUp - Actor
- OnGrab - ObjectReference
- OnHit - ObjectReference
- OnInit
- OnItemAdded - ObjectReference
- OnItemRemoved - ObjectReference
- OnLoad - ObjectReference
- OnLocationChange - Actor
- OnLockStateChanged - ObjectReference
- OnLostLOS - ActiveMagicEffect
- OnLostLOS - Alias
- OnLostLOS - Form
- OnLycanthropyStateChanged - Actor
- OnMagicEffectApply - ObjectReference
- OnObjectEquipped - Actor
- OnObjectUnequipped - Actor
- OnOpen - ObjectReference
- OnPackageChange - Actor
- OnPackageEnd - Actor
- OnPackageStart - Actor
- OnPlayerBowShot - Actor
- OnPlayerFastTravelEnd - Actor
- OnPlayerLoadGame - Actor
- OnRaceSwitchComplete - Actor
- OnRead - ObjectReference
- OnRelease - ObjectReference
- OnReset - Alias
- OnReset - ObjectReference
- OnReset - Quest
- OnSell - ObjectReference
- OnSit - Actor
- OnSleepStart - Form
- OnSleepStop - Form
- OnSpellCast - ObjectReference
- OnStoryActivateActor - Quest
- OnStoryAddToPlayer - Quest
- OnStoryArrest - Quest
- OnStoryAssaultActor - Quest
- OnStoryBribeNPC - Quest
- OnStoryCastMagic - Quest
- OnStoryChangeLocation - Quest
- OnStoryCraftItem - Quest
- OnStoryCrimeGold - Quest
- OnStoryCure - Quest
- OnStoryDialogue - Quest
- OnStoryDiscoverDeadBody - Quest
- OnStoryEscapeJail - Quest
- OnStoryFlatterNPC - Quest
- OnStoryHello - Quest
- OnStoryIncreaseLevel - Quest
- OnStoryIncreaseSkill - Quest
- OnStoryInfection - Quest
- OnStoryIntimidateNPC - Quest
- OnStoryJail - Quest
- OnStoryKillActor - Quest
- OnStoryNewVoicePower - Quest
- OnStoryPayFine - Quest
- OnStoryPickLock - Quest
- OnStoryPlayerGetsFavor - Quest
- OnStoryRelationshipChange - Quest
- OnStoryRemoveFromPlayer - Quest
- OnStoryScript - Quest
- OnStoryServedTime - Quest
- OnStoryTrespass - Quest
- OnTrackedStatsEvent - Form
- OnTranslationAlmostComplete - ObjectReference
- OnTranslationComplete - ObjectReference
- OnTranslationFailed - ObjectReference
- OnTrapHit - ObjectReference
- OnTrapHitStart - ObjectReference
- OnTrapHitStop - ObjectReference
- OnTrigger - ObjectReference
- OnTriggerEnter - ObjectReference
- OnTriggerLeave - ObjectReference
- OnUnequipped - ObjectReference
- OnUnload - ObjectReference
- OnUpdate - ActiveMagicEffect
- OnUpdate - Alias
- OnUpdate - Form
- OnUpdateGameTime - Form
- OnVampireFeed - Actor
- OnVampirismStateChanged - Actor
- OnWardHit - ObjectReference