Difference between revisions of "Quest and Dialogue Tutorial"

m
no edit summary
imported>Entom
m
imported>Entom
m
Line 804: Line 804:
=== Result scripts ===
=== Result scripts ===


Finally, we need some result scripts to manage the quest. The first one will be used when Player agrees to help Amanda. Left click on the aBHTopicAgree and in the Result Script (End) enter the following code:
Finally, we need some result scripts to manage the quest. The first one will be used when Player agrees to help Amanda. Left click on the '''aBHTopicAgree''' and in the '''Result Script (End)''' enter the following code:
<pre>SetStage aBHQuest 10
<pre>SetStage aBHQuest 10
</pre>
</pre>


Click on the Compile Scripts button to check if the code is correct and to compile it.
Click on the '''Compile Scripts''' button to check if the code is correct and to compile it.


I do very similar thing for the aBHTopicAgreeWithChallenge topic - this is the script:
I do a very similar thing for the '''aBHTopicAgreeWithChallenge''' topic - this is the script:
<pre>SetStage aBHQuest 30
<pre>SetStage aBHQuest 30
</pre>
</pre>


Second script is for aBHTopicHaveTeddyBear topic, when Player has aBHTeddyBear item and meets Amanda:
The last script is for '''aBHTopicHaveTeddyBear''' topic, when Player has aBHTeddyBear item and meets Amanda:
<pre>
<pre>
player.removeitem aBHTeddyBear 1
player.removeitem aBHTeddyBear 1
Anonymous user