Difference between revisions of "Bethesda Tutorial Basic Quest Scripting"

imported>AlexanderKenneth
(→‎Writing the Script: Adding code that should have been there.)
imported>AlexanderKenneth
Line 105: Line 105:
Event OnContainerChanged(ObjectReference newContainer, ObjectReference oldContainer)
Event OnContainerChanged(ObjectReference newContainer, ObjectReference oldContainer)
if (newContainer == Game.GetPlayer())
if (newContainer == Game.GetPlayer())
                GSQ01.SetObjectivedisplayed(30)
GSQ01.SetStage(30)
GSQ01.SetStage(30)
endif
endif
EndEvent
EndEvent
</source>
</source>
Ignore it once again. It will be explained in the section about objectives.


There a few things to note in this script:
There a few things to note in this script: