Difference between revisions of "Quest and Dialogue Tutorial"

925 bytes removed ,  11:34, 12 November 2012
m
imported>Reapper77
imported>Oblq
 
(7 intermediate revisions by 4 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 492: Line 492:
BEGIN onTriggerEnter player
BEGIN onTriggerEnter player


   if getStage aBHMainQuest == 10
   if getStage aBHQuest == 10
       setStage aBHMainQuest 20
       setStage aBHQuest 20
   endif
   endif


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.




Line 567: 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 584:




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, and add Player's choice text in the '''Prompt''' field. Click in this field and enter:
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.  
* ''Hello young lady. What can I do for you?''


 
Now create another new Info with the response text:
As '''Response Text''' add the following:
* ''Could you find my teddy bear please?''
* ''Could you find my teddy bear please?''


and add Player's choice text in the '''Prompt''' field. Click in this field and enter:
* ''Hello young lady. What can I do for you?''


This is what Amanda will say, 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 Springvale School while I was escaping with my mother.''
* ''I lost it in Springdale School while I was escaping with my mother.''




Line 638: 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 645: 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 652: 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 769: 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 ===
Line 806: Line 803:


  Images will be added and sample plugin file will be available for download soon.
  Images will be added and sample plugin file will be available for download soon.
=== Voice Result [Question] ===
I would Like to know if the kid's voi ce come out clean, also if it is already preselected, (For Example, If I picked up a female NPC, a female voice would be already with it) and if it is changeable, if it is... how?
Respond only if you can... it doesn't really matter, thanks for any help provided...
=== NPC Given Reward [Question] ===
Another thing... It's not a bit tricky. It is about the perk reward, you didn't really mention how to make the perk and how to receive it through Dialog...
But Nevertheless, Besides the hard part, here comes an easier question that I REALLY would like to know: How could I make her give me an object after the quest completion dialog topic??? PLEASE answer... I'm Puttin' some sweat into my plugin' and I'll post it as soon as done, so the quicker the help the faster and better the result. Anyway, Thank You Really for any help that can be provided...
Anonymous user