Difference between revisions of "HowTo:Add Conversations"
(→ADDING CONVERSATIONS) |
|||
Line 10: | Line 10: | ||
Conversation files are found in your communications directory. In a perfect world, there would be one xml file named for each major faction. But there isn't, so the conversation is taken from the neutral.xml file if the factionname.xml file is not found. ''Add link to CVS'' | Conversation files are found in your communications directory. In a perfect world, there would be one xml file named for each major faction. But there isn't, so the conversation is taken from the neutral.xml file if the factionname.xml file is not found. ''Add link to CVS'' | ||
− | + | A quick sample file; | |
+ | * [[HowTo:Add_Conversations:Xml|communications/neutral.xml]] | ||
The file begins and ends with '''<comm>''' and '''</comm>''' | The file begins and ends with '''<comm>''' and '''</comm>''' | ||
Line 70: | Line 71: | ||
* Don't make more than 9 edges for a node, or else one may run out of keys on his/her keyboard, which is not good. | * Don't make more than 9 edges for a node, or else one may run out of keys on his/her keyboard, which is not good. | ||
* Never reference the starting node (node 0). | * Never reference the starting node (node 0). | ||
− | * Do not make single choices have large effect on the other person (for example having a relationship of -1 so that a friendly guy terns into an angry guy. by saying one wrong thing of pressing the wrong key. | + | * Do not make single choices have large effect on the other person (for example having a relationship of -1 so that a friendly guy terns into an angry guy. by saying one wrong thing of pressing the wrong key. |
=See also= | =See also= |
Revision as of 06:08, 24 March 2005
none | HowTo | Edit Missions |
ADDING CONVERSATIONS
Conversation files are found in your communications directory. In a perfect world, there would be one xml file named for each major faction. But there isn't, so the conversation is taken from the neutral.xml file if the factionname.xml file is not found. Add link to CVS
A quick sample file;
The file begins and ends with <comm> and </comm>
From then on are <node>'s and <edge>'s. Nodes have two attributes: text and relationship. relationship is the amount that your freindliness with the other person/alien that you are talking to increases or decreases. Text is what you say. Inside the <node>s are <edge> tags. They have an index attribute which gives an index to the other nodes that the conversation goes to. Nodes may also have a <sound> tag which gives a file for the sound filename and a sex attribute for the type of picture.
Notice all of the comments in the file. There is one starting node where conversations begin. Then the starting node has edges which go the starting points, and the one closest to the current relationship is started at. The starting points go to Other Nodes, which can reference Starting Points or other Other Nodes., but the starting node is never actually used in a conversation. There is another set of nodes which must be at the end. They are built-in, so will always be the same, but you may want to change what they say when one, for example wants to request clearence. You may also want to change where they point to.
How does it work?
I'll go through a sample conversation to show how this works.
You are PERSON A (aera), who meets PERSON B (confed), the computer. B is a carrier. A targets B and, since you hate aera, you start with three choices on your comm screen:
1) I hate you! <Node 5> 2) Prepare to die! <Node 6>
PRESS 1 The relationship lowers .5 points.
B gets now two choices: 1) All systems are nominal. <Node 1> 2) I'm going to kill everyone you know, you traitor! <Node 3>
CHOOSE 1 Relationship does not change.
A sees two choices on his screen: 1) It is a good day indeed for such heros to meet one another in space. <Node 2> 2) I'm going to kill everyone you know, you traitor! <Node 3>
PRESS 2 Relationship lowers .2 points.
B now has two choices (do they look familiar?): 1) I hate you! <Node 5> 2) Prepare to die! <Node 6>
CHOOSE 2 Relationship lowers 1 point.
A sees two choices: 1) I'm going to kill everyone you know, you traitor! <Node 3> 2) All systems are nominal. <Node 1>
press 0 to request clearence B declines and says "You are not authorized to land here!" <Node 10>
Now A has two more choices. 1) I'm going to kill everyone you know, you traitor! <Node 3> 2) Prepare to die! <Node 6>
Summary
I hope that you now see how the conversations works. Please edit this wiki page to make the stuff clearer because it isn't actually very descriptive. Here are a few rules to go by:
- Use the same amount of choices in each faction conversation tree.
- Use the same node numbers for each XML file so they make sense (Don't make node 5 in confed.xml say, "I love you," and node 5 in neutral say, "I'm going to kill everyone you know, you traitor!"
- Make the better choices first and worse choices last (this makes it easier for people to quickly decide what to say.
- Don't make more than 9 edges for a node, or else one may run out of keys on his/her keyboard, which is not good.
- Never reference the starting node (node 0).
- Do not make single choices have large effect on the other person (for example having a relationship of -1 so that a friendly guy terns into an angry guy. by saying one wrong thing of pressing the wrong key.
See also
none | HowTo | Edit Missions |