Difference between revisions of "Quest and Dialogue Tutorial"

m
imported>Henning
imported>Oblq
 
(3 intermediate revisions by 3 users not shown)
Line 183: Line 183:




After this modifications I click on the OK button. Editor asks if I want to create a new form – yes, this is what I want, so my answer is Yes.
After these modifications I click on the OK button. Editor asks if I want to create a new form – yes, this is what I want, so my answer is Yes.


This object is flagged as a [[Quest Item]], and if Player takes it, he/she will not be able to remove it from the inventory. That is why quest objects usually have a Weight of 0.0000. Teddy Bear will be removed by result script, that we will set up at the end of tutorial.
This object is flagged as a [[Quest Item]], and if Player takes it, he/she will not be able to remove it from the inventory. That is why quest objects usually have a Weight of 0.0000. Teddy Bear will be removed by result script, that we will set up at the end of tutorial.
Line 317: Line 317:
=== Quest Targets ===
=== Quest Targets ===


Quest Targets are defined in the [[Quest Objectives Tab]]. You can add them to any objective, first by left clicking on an item of the objectives list, and then adding a Target Ref on the list below. You can choose any reference to the object in the world, but it must a persistent reference.
Quest Targets are defined in the [[Quest Objectives Tab]]. You can add them to any objective, first by left clicking on an item of the objectives list, and then adding a Target Ref on the list below. You can choose any reference to the object in the world, but it must be a persistent reference.




Line 434: Line 434:
</pre>
</pre>


When the object is taken by the player and the quest stage is smaller than 5, we set up stage #5. We want to set this stage only once, that is why we check if the quest stage if less than 5.  
When the object is taken by the player and the quest stage is smaller than 5, we set up stage #5. We want to set this stage only once, that is why we check if the quest stage is less than 5.  


<blockquote><center>
<blockquote><center>
Line 510: Line 510:


These stages will be set in a dialogue. But before we can do it, we must add some dialogue topics.
These stages will be set in a dialogue. But before we can do it, we must add some dialogue topics.


== Dialogue Topics ==
== Dialogue Topics ==
Line 565: Line 566:




This text can be repeated many times, while doing the quest Player can always speak with Amanda, so I do not tick the Say Once checkbox.
This text can be repeated many times, while doing the quest Player can always speak with Amanda, so I do not tick the "Say Once" checkbox.


<blockquote><center>
<blockquote><center>
Line 636: Line 637:




'''Topic ID:''' aBHTopicHaveTeadyBear<br>
'''Topic ID:''' aBHTopicHaveTeddyBear<br>
'''Prompt:''' Yes, I have found a toy with your name on it. Here it is.<br>
'''Prompt:''' Yes, I have found a toy with your name on it. Here it is.<br>
'''Response:''' Thank you.<br>
'''Response:''' Thank you.<br>
Line 643: Line 644:




'''Topic ID:''' aBHTopicHaveTeadyBear<br>
'''Topic ID:''' aBHTopicHaveTeddyBear<br>
'''Prompt:''' Yes, I have this toy. Here it is.<br>
'''Prompt:''' Yes, I have this toy. Here it is.<br>
'''Response:''' Thank you.<br>
'''Response:''' Thank you.<br>
Line 650: Line 651:




There are two different Prompts for aBHTopicHaveTeadyBear topic, because there are also two different ways for Player to do the quest: finding the teddy bear and then speaking with Amanda or speaking with Amanda first, and finding the quest item.
There are two different Prompts for aBHTopicHaveTeddyBear topic, because there are also two different ways for Player to do the quest: finding the teddy bear and then speaking with Amanda or speaking with Amanda first, and finding the quest item.


=== Linking the topics ===
=== Linking the topics ===
Line 766: Line 767:


*'''aBHTopicNotYet''':<br>
*'''aBHTopicNotYet''':<br>
- quest stage index must be greaten than or equal to 10 (AND)<br>
- quest stage index must be greater than or equal to 10 (AND)<br>
- quest stage index must be less than 50 (AND)<br>
- quest stage index must be less than 50 (AND)<br>


=== Result scripts ===
=== Result scripts ===
Anonymous user