Difference between revisions of "Quest and Dialogue Tutorial"
m
→Conditions
imported>Henning |
imported>Oblq m (→Conditions) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 183: | Line 183: | ||
After | 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 | 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 585: | Line 586: | ||
We have our custom topic on the list. As you can see in the upper side of the quest window, the Topic Text is the same as topic ID: aBHTopicWelcome. Let's leave it as is. | We have our custom topic on the list. As you can see in the upper side of the quest window, the Topic Text is the same as topic ID: aBHTopicWelcome. Let's leave it as is. | ||
Now create another new | Now create another new Info with the response text: | ||
* ''Could you find my teddy bear please?'' | * ''Could you find my teddy bear please?'' | ||
Line 592: | Line 593: | ||
Amanda will say this response after she greets Player and when Player clicks on Hello young lady. What can I do for you? dialog choice in dialog menu. Easy, isn't it? Right click once again on an empty line in Response Texts list and add another entry: | Amanda will say this response after she greets Player and when Player clicks on Hello young lady. What can I do for you? dialog choice in dialog menu. Easy, isn't it? Right click once again on an empty line in Response Texts list and add another entry: | ||
* ''I lost it in | * ''I lost it in Springdale School while I was escaping with my mother.'' | ||
Line 636: | Line 637: | ||
'''Topic ID:''' | '''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:''' | '''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 | 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 | - 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 === |