Difference between revisions of "Dialogue Tutorial"
Jump to navigation
Jump to search
m
no edit summary
imported>Elessar VPR (adding category) |
imported>Nixlplix m |
||
|
When the window opens you will notice a few things. First is the list of tabs across the top. By default the quest window opens at the Quest Data tab
Also before we go much farther, save!
==The Quest Begins==
Once that's done, you need to set the priority of the quest. This tells the game how important your dialogue is compared to the other stuff in the game. Quests with a high priority have precedence over quests with lower priorities. For example, the greetings that NPCs give you if you are a wanted criminal and those for the main quest are very high and as such will be used over most other quests. Generic greetings and such
Once that's done you may notice the Script drop
===A new topic of conversation!===
Now we have the NPC greeting sorted, but what about other lines and topics we want to speak to them about? For that we need to create a new topic. To do this go back to the Add Topic window (where you found GREETING), then right click in there and select new. Name your topic (I'll use MObFGAboutCrabs), select it and hit OK and we have a nice new topic. Now, let's add a few bits of info in there, eg. say we have a
[[Image:DialogTute-New_topics.jpg|thumb|right|Making our new topic]]
Now we have two different lines for the topic, but which one will the NPC say? First of all let's ensure that only the NPC we want says the lines, so add the ''GetIsID'' condition to both lines. Now, when determining which line to play, the game starts at the top of the list of info lines and proceeds done until it finds one that satisfies current conditions (If a topic has no lines in it that have all their conditions met, then the topic will not appear in the list of options presented to the player.) In this case, only the top line will ever play
created topics should work fine though. Now you may be thinking how do we add our topic to the game then? We use the result script box, found to the left of the checkboxes.
The Result Script box is used for scripting commands
[[:Category: Scripting_Tutorials| Scripting Tutorials]]). For our purposes at the moment we only need one simple function. In the result script box enter the line:
==Moving On...==
Now we have a basic understanding of how to do things and what most things are in the topics tab, we are going to make a very simple quest line for the player that will show what most of the other bits of the topics tab are for. The quest we are going to make will involve going to kill a few mudcrabs for their meat, or at least getting
==My NPC's are mute!==
===The silent type===
So your NPC's can translate their facial into text, but what if it flies by
===The vocal type===
Of course you may decide you want to have your NPC's fully vocal and screaming in your ears about
free program with which to record
to keep the extension as it is!).
[[Image:DialogTute-Response.jpg|thumb|100px|right|Finding The path and name for our file]]
| |||