Advertisement
Guest User

RPG Dialog System

a guest
Dec 3rd, 2014
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.56 KB | None | 0 0
  1. <?xml version="1.0" ?>
  2. <!--Valid checks:
  3.    HasQuest
  4.    AttribLess
  5.    AttribGreat
  6.    DiscLess
  7.    DiscGreat
  8.    HasItem
  9. -->
  10.  
  11. <!--The root node is the entry point to the dialog.
  12. It is quite complex, because it is like the trunk of the tree.
  13. -->
  14. <dialog>
  15. <node id="root">
  16.     <!--First line matching check will be displayed -->
  17.     <line check="HasQuest" value="defend-getgear" eval="no" replies="1">Hey! What side are you?</line>
  18.     <line check="HasQuest" value="defend-getgear" eval="active" replies="1">What are you waiting for! Get the stuff and report to me!</line>
  19.     <line check="HasQuest" value="defend-getgear" eval="complete" replies="1">Great, you got the stuff! Now you need some healing pots. Go with Bubbles, our alchemist. He is right there in front of me.</line>
  20.  </node>
  21. <replies id="1">
  22.     <!--If an option doesnt passes check, it is not displayed -->
  23.     <option link="side1">Side? didnt knew I had to choose a side.</option>
  24.     <option link="side2">Im with the winner side.</option>
  25. </replies>
  26.  
  27. <node id="side1">
  28.     <line replies="s1-rep">We are about to be attacked by demons. Are you with us or with them?</line>
  29. </node>
  30.  
  31. <replies id="s1-rep">
  32. <option link="side1">Im with myself.</option>
  33. <option link="side1">As Im inside the castle, I suppose that means Im against them, dont you think?</option>
  34. </replies>
  35.  
  36. <node id="side2">
  37.     <line replies="s2-rep">Strong spirit... I am the winning side.</line>
  38. </node>
  39.  
  40. <replies id="s2-rep">
  41. <option link="side-accept">Then we are in the same team.</option>
  42. </replies>
  43.  
  44. </dialog>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement