Difference between revisions of "HowTo:Add Conversations:Xml"

From VsWiki
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{parent_link|parent=[[HowTo:Add_Conversations|Add Conversations]]}}
+
{{parent_link|parent=[[HowTo:Add Conversations|Add Conversations]]}}
 
+
----
 
==Sample Neutral.xml file==
 
==Sample Neutral.xml file==
  
Line 119: Line 119:
 
</pre>
 
</pre>
  
[[Category:HowTo|Add_Conversations:Xml]]
+
[[Category:HowTos|Add Conversations:Xml]]
[[Category:Development|Add_Conversations:Xml]]
+
[[Category:Development|Add Conversations:Xml]]

Latest revision as of 18:58, 28 May 2005

thumb_arrow_up.png Add Conversations

Sample Neutral.xml file

<comm>
 <!-- Starting Node -->
        <node text="startingNode" relationship="0"><!-- node 0 (starting node: Don't link here)-->
                <edge index="1"/>
                <edge index="2"/>
                <edge index="3"/>
        </node>
 <!-- End of Starting Node -->
 <!-- Starting Points -->
        <node text="All systems are nominal." relationship="0"><!-- node 1-->
                <edge index="2"/>
 ...
                <edge index="3"/>
        </node>
        <node text="It is a good day indeed for such heros to meet one another in space." relationship=".2"><!-- node 2-->
                <edge index="4"/>
 ...
                <edge index="1"/>
        </node>
        <node text="I'm going to kill everyone you know, you traitor!" relationship="-.2"><!-- node 3-->
                <edge index="5"/>
 ...
                <edge index="6"/>
        </node>
 <!-- End of Starting Points -->
 <!-- Other Nodes -->
        <node text="Nice to see you!" relationship=".4"><!-- node 4-->
                <edge index="2"/>
 ...
                <edge index="3"/>
        </node>
        <node text="I hate you!" relationship="-.5"><!-- node 5-->
                <edge index="1"/>
 ...
                <edge index="3"/>
        </node>
        <node text="Prepare to die!" relationship="-1"><!-- node 6-->
                <edge index="3"/>
 ...
                <edge index="1"/>
        </node>
 ... ... ...
 ... ... ...
 <!--End of Other Nodes -->
 <!-- Built-in Conversations -->
        <node text="Docking operation complete. You're free of the docking clamps." relationship="0.01">
                <edge index="2"/>
 ...
                <edge index="17"/>
        </node>
        <node text="You are not in docking clamps. Move into one of the white guide boxes and try to dock again." relationship="-.005">
                <edge index="4"/>
 ...
                <edge index="22"/>
        </node>
        <node text="Docking operation begun; press 0 to step into our starship." relationship="0.01">
                <edge index="8"/>
 ...
                <edge index="17"/>
        </node>
        <node text="You are not authorized to land here!" relationship="-.005">
                <edge index="3"/>
 ...
                <edge index="6"/>
        </node>
        <node text="Clearence code acknowledged; move into landing pattern and dock at the white indicators." relationship="0.01">
                <edge index="1"/>
 ...
                <edge index="2"/>
        </node>
        <node text="Unable to comply." relationship="-.005">
                <edge index="4"/>
 ...
                <edge index="22"/>
        </node>
        <node text="Acknowledged." relationship="0.01">
                <edge index="8"/>
 ...
                <edge index="17"/>
        </node>
        <node text="Prepare To Be Searched. Maintain Speed and Course." relationship="0">
        <sound file="communications/sounds/contraband.wav" sex="0"/>
                <edge index="8"/>
 ...
                <edge index="22"/>
        </node>
        <node text="No contraband detected: You may proceed." relationship="0">
                <edge index="4"/>
 ...
                <edge index="22"/>
        </node>
        <node text="Contraband Detected! All Units Close And Engage!" relationship="-.1">
                <edge index="18"/>
 ...
                <edge index="3"/>
        </node>
        <node text="Your course is deviating. Maintain course!" relationship="0">
                <edge index="8"/>
 ...
                <edge index="22"/>
        </node>
        <node text="Request Clearence To Land." relationship="0">
                <edge index="1"/>
 ...
                <edge index="2"/>
        </node>
        <node text="hit" relationship="-.1">
                <edge index="18"/>
 ...
                <edge index="25"/>
        </node>
 <!-- End of Built-in Conversations -->
 </comm>