Difference between revisions of "Talk:OnContainerChanged - ObjectReference"
Jump to navigation
Jump to search
Talk:OnContainerChanged - ObjectReference (edit)
Revision as of 17:47, 27 April 2012
, 17:47, 27 April 2012Sample script added.
imported>Chesko |
imported>David Brasher (Sample script added.) |
||
Line 2: | Line 2: | ||
Does anyone have any suggestions as to how to summarize that for the wiki page? - [[User:Chesko|Chesko]] | Does anyone have any suggestions as to how to summarize that for the wiki page? - [[User:Chesko|Chesko]] | ||
== Script for Quest-Coding == | |||
Here is a script that can use an Event OnActivate block instead of an Event OnContainerChanged block: | |||
<source lang="papyrus"> | |||
; Quest stage advances when the player finds the quest item: | |||
Scriptname AAFoundTheObject extends ObjectReference | |||
Event OnActivate (ObjectReference akActionRef) | |||
AAQuest.SetStage (15) | |||
EndEvent | |||
Quest Property AAQuest Auto | |||
</source> | |||
Note that the quest stage advances when the player activates the item, not when the player takes it and adds it to inventory. The player could forget to take an item like a book and could leave it in the dungeon. Then the player would walk all the way back to the quest-giver and realize that he or she didn't have the item and needed to go back to the dungeon and get it. | |||
--[[User:David Brasher|David Brasher]] 18:47, 27 April 2012 (EDT) |