Difference between revisions of "Bethesda Tutorial Basic Quest Scripting"

→‎Writing the Script: Adding code that should have been there.
imported>Catwheezle
m (More svelte template usage: no "Template:" needed.)
imported>AlexanderKenneth
(→‎Writing the Script: Adding code that should have been there.)
Line 64: Line 64:
<source lang="papyrus">
<source lang="papyrus">
Event OnDeath(Actor killer)
Event OnDeath(Actor killer)
        TutorialQuest.SetObjectiveDisplayed(20)
TutorialQuest.SetStage(20)
TutorialQuest.SetStage(20)
EndEvent
EndEvent
</source>
</source>
Once again, ignore the <code>SetObjectiveDisplayed(20)</code>


If you're familiar enough with programming or scripting that what you just pasted made sense to you, feel free to skip ahead to the "Scripting the Amulet" section. For everyone else, we'll go through line by line.  
If you're familiar enough with programming or scripting that what you just pasted made sense to you, feel free to skip ahead to the "Scripting the Amulet" section. For everyone else, we'll go through line by line.  
Line 84: Line 87:
If you see anything else in there, you typed something wrong. Try again!  
If you see anything else in there, you typed something wrong. Try again!  


Once you're done, close the script windows and the actor window, and save your plugin. Now it's time to script the amulet itself.  
Once you're done, close the script windows and the actor window, and save your plugin. Now it's time to script the amulet itself.


=Scripting the Amulet=
=Scripting the Amulet=