Editing Bethesda Tutorial Papyrus Events and Properties

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 167: Line 167:


<source lang="papyrus">
<source lang="papyrus">
scriptName LokirsDraugrResurrection extends Actor
scriptName LokirsDraugrResurrection extends Actor
{This Script lives on the dead minion draugr in Lokir's Tomb. It handles their resurrection}
{This Script lives on the dead minion draugr in Lokir's Tomb. It handles their resurrection}
   
   
Spell property reanimateSpell Auto          ; this is the special self-resurrection spell to use
Spell property reanimateSpell Auto          ; this is the special self-resurrection spell to use
objectReference property myTrigger auto    ; This is the reference we are waiting on to send an activate
objectReference property myTrigger auto    ; This is the reference we are waiting on to send an activate
   
   
Event OnActivate(ObjectReference akActionRef)
Event OnActivate(ObjectReference akActionRef)
   ; I've been activated - see if was my trigger
   ; I've been activated - see if was my trigger
   if (akActionRef == myTrigger)
   if (akActionRef == myTrigger)
      ; Cast a Reanimate spell on the Draugr
      ; Cast a Reanimate spell on the Draugr
      reanimateSpell.Cast(Self, Self)
      reanimateSpell.Cast(Self, Self)
   EndIf
   EndIf
EndEvent
EndEvent
</source>
</source>


Please note that all contributions to the CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see CreationKit:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)