1,482
edits
imported>Lmstearn m (→Notes) |
m (Convert source tags to syntaxhighlight) |
||
| Line 62: | Line 62: | ||
At the bottom of the text, copy and paste the following snippet of code. | At the bottom of the text, copy and paste the following snippet of code. | ||
< | <syntaxhighlight lang="papyrus"> | ||
Event OnDeath(Actor killer) | Event OnDeath(Actor killer) | ||
TutorialQuest.SetObjectiveDisplayed(20) | TutorialQuest.SetObjectiveDisplayed(20) | ||
TutorialQuest.SetStage(20) | TutorialQuest.SetStage(20) | ||
EndEvent | EndEvent | ||
</ | </syntaxhighlight> | ||
Once again, ignore the <code>SetObjectiveDisplayed(20)</code> | Once again, ignore the <code>SetObjectiveDisplayed(20)</code> | ||
| Line 102: | Line 102: | ||
Open up the script, and we're going to add an event to it. The amulet can't die (obviously), but we do want to know when the player picks it up. Our event script will look like this: | Open up the script, and we're going to add an event to it. The amulet can't die (obviously), but we do want to know when the player picks it up. Our event script will look like this: | ||
< | <syntaxhighlight lang="papyrus"> | ||
Event OnContainerChanged(ObjectReference newContainer, ObjectReference oldContainer) | Event OnContainerChanged(ObjectReference newContainer, ObjectReference oldContainer) | ||
if (newContainer == Game.GetPlayer()) | if (newContainer == Game.GetPlayer()) | ||
| Line 109: | Line 109: | ||
endif | endif | ||
EndEvent | EndEvent | ||
</ | </syntaxhighlight> | ||
Ignore it once again. It will be explained in the section about objectives. | Ignore it once again. It will be explained in the section about objectives. | ||