Difference between revisions of "Bethesda Tutorial Dialogue"

12 bytes added ,  05:22, 27 February 2012
imported>AlexanderKenneth
(→‎Scripting Dialogue: I built a quest using this tutorial. It didn't work. It took me a week of pulling my hair out before I got the help I needed. I have amended the code to fix the problem I was having.)
imported>AlexanderKenneth
Line 128: Line 128:
At the bottom of this window, you see fields for Scripts marked "Begin" and "End." The Begin script runs when the NPC starts saying the line, and the End script will run when he finishes. (In scripting terminology, these little pieces of script are called "script fragments" - see [[Topic_Info_Fragments|Topic Info Fragments]] for more details.)
At the bottom of this window, you see fields for Scripts marked "Begin" and "End." The Begin script runs when the NPC starts saying the line, and the End script will run when he finishes. (In scripting terminology, these little pieces of script are called "script fragments" - see [[Topic_Info_Fragments|Topic Info Fragments]] for more details.)


In the End field, enter this script command:  
In the End field, enter this script command: <br />
<code>
<code>GetOwningQuest().SetObjectiveDisplayed(10) <br />
GetOwningQuest().SetObjectiveDisplayed(10)
GetOwningQuest().SetStage(10)</code>
GetOwningQuest().SetStage(10)</code>