Difference between revisions of "Talk:OnContainerChanged - ObjectReference"
Talk:OnContainerChanged - ObjectReference (edit)
Revision as of 18:17, 27 April 2012
, 18:17, 27 April 2012Added a sample script.
imported>David Brasher (Sample script added.) |
imported>David Brasher (Added a sample script.) |
||
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]] | ||
== Sample Script for Quest-Coding == | |||
Here is a sample script using the OnContainerChanged block type: | |||
<source lang="papyrus"> | |||
; Quest stage advances when the player finds the quest item: | |||
Scriptname AAFoundTheQuestItem extends ObjectReference | |||
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer) | |||
if (akNewContainer == Game.GetPlayer()) | |||
AAQuest.SetStage (15) | |||
endif | |||
EndEvent | |||
Quest Property AAQuest Auto | |||
</source> | |||
--[[User:David Brasher|David Brasher]] 19:17, 27 April 2012 (EDT) | |||
== Script for Quest-Coding == | == Script for Quest-Coding == |