Difference between revisions of "Quest and Dialogue Tutorial"
→Quest Stages
imported>Entom |
imported>Entom |
||
Line 346: | Line 346: | ||
=== Quest Stages === | === Quest Stages === | ||
[[Quest Stages Tab|It is second tab]] in the Quest Window. You can find here the Log Entries for each | [[Quest Stages Tab|It is second tab]] in the Quest Window. You can find here the '''Log Entries''' for each stage index and '''Result Scripts'''. There are also two very useful checkboxes: '''Complete Quest''' and '''Fail Quest'''. But let's start from the beginning. | ||
In Oblivion the Log Entries | In Oblivion the Log Entries were used to make Player's journal updates, when Player made some progress in a quest. In Fallout 3 there is no journal, only quest objectives with some information about current quest status and quest targets. It means that you can put in Log Entry whatever you want, it will not be displayed to Player in the game. In general: | ||
* quest stage indexes can be the same as for quest objectives, | * quest stage indexes can be the same as for quest objectives, | ||
* result scripts can be used to set objectives displayed or completed, | * result scripts can be used to set objectives displayed or completed, | ||
Line 357: | Line 357: | ||
First fill in the list of Indexes by right clicking in the list and choosing New. Index numbers are the same as in Quest Objectives: 0, 5, 10, 20, 30, 50, 200 and on the end I add 210 as a final quest stage, so I also | First fill in the list of Indexes by right clicking in the list and choosing New. Index numbers are the same as in Quest Objectives: 0, 5, 10, 20, 30, 50, 200 and on the end I add 210 as a final quest stage, so I also tick the Complete Quest checkbox. For each of stages, except #0, I right click on the list of Log Entries and add an EMPTY text. | ||
For each quest stage I want to display a message about objectives to Player. To show current objective I can use [[SetObjectiveDisplayed]] script function, and [[SetObjectiveCompleted]] to show that previous objective is completed. I can do it | For each quest stage I want to display a message about objectives to Player. To show current objective I can use [[SetObjectiveDisplayed]] script function, and [[SetObjectiveCompleted]] to show that previous objective is completed. I can do it by adding them to the Result Script of each stage – this is full list: | ||
{| | {|border="1" cellspacing="0" cellpadding="3" | ||
| align="center" style="background:#f0f0f0;"|'''Quest Stage''' | | align="center" style="background:#f0f0f0;"|'''Quest Stage''' | ||
| align="center" style="background:#f0f0f0;"|'''Result Script''' | | align="center" style="background:#f0f0f0;"|'''Result Script''' | ||
Line 372: | Line 372: | ||
| 10||SetObjectiveDisplayed aBHQuest 10 1 | | 10||SetObjectiveDisplayed aBHQuest 10 1 | ||
|- | |- | ||
| 20||SetObjectiveCompleted aBHQuest 10 1<br> | | 20||SetObjectiveCompleted aBHQuest 10 1<br>SetObjectiveDisplayed aBHQuest 20 1 | ||
|- | |- | ||
| 30||SetObjectiveCompleted aBHQuest 20 1<br>SetObjectiveDisplayed aBHQuest 30 1 | |||
| 30||SetObjectiveCompleted aBHQuest 20 1 | |||
|- | |- | ||
| 50||SetObjectiveDisplayed aBHQuest 50 1 | | 50||SetObjectiveDisplayed aBHQuest 50 1 | ||
|- | |- | ||
| 200||SetObjectiveCompleted aBHQuest 200 1 | | 200||SetObjectiveCompleted aBHQuest 200 1<br>SetStage aBHQuest 210 | ||
|- | |- | ||
| 210|| | | 210|| | ||
Line 390: | Line 384: | ||
<blockquote><center> | <blockquote><center> | ||
Remember to compile each result script by clicking on the '''Compile Result''' button, just after adding it to the stage. | Remember to '''compile''' each result script by clicking on the '''Compile Result''' button, just after adding it to the stage. | ||
</center></blockquote> | </center></blockquote> | ||
As you can see, these result scripts refer to each quest objective and the quest itself. The last stage #210 do not have any script, because it is flagged as Complete Quest. This means that even if it had a result script, this script wouldn't be processed. I am using stage #210 only to finish the quest. | As you can see, these result scripts refer to each quest objective and the quest itself. The last stage #210 do not have any script, because it is flagged as Complete Quest. This means that even if it had a result script, this script wouldn't be processed. I am using stage #210 only to finish the quest. | ||
<blockquote><center> | <blockquote><center> | ||
Line 402: | Line 393: | ||
</center></blockquote> | </center></blockquote> | ||
That's all for now, we can save the data and close the Quest Window. | |||
=== Switching between quest stages === | === Switching between quest stages === |