Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2012
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.05 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-16"?>
  2. <Conversation>
  3.   <!-- Conditions allow for non-interactive checks; in this case, if the player has already talked to Dude, we should skip ahead a bit -->
  4.   <Condition id="0" checkToken="Dude.Talked" false="1" true="7"/>
  5.  
  6.   <!-- Lines are simple pieces of speech from an actor -->
  7.   <Line id="1" speaker="Player" text="Sup!" next="2"/>
  8.  
  9.   <!-- Actions allow designers to do things mid-conversation; in this case, we set a token that's read by the first node in subsequent conversations -->
  10.   <Action id="2" setToken="Dude.Talked" next="3"/>
  11.  
  12.   <!-- Choices are decisions that the player can make -->
  13.   <Choice id="3" speaker="Dude" text="Hello there stranger! How are you?">
  14.     <Option text="I'm fine thanks." next="4"/>
  15.     <Option text="I hate my life!" next="5"/>
  16.   </Choice>
  17.  
  18.   <Line id="4" speaker="Dude" text="Good to hear." next="6"/>
  19.   <Line id="5" speaker="Dude" text="Well that's a damned shame." next="6"/>
  20.  
  21.   <Choice id="6" speaker="Dude" text="Do you have a heavy cube I could borrow?">
  22.     <!-- Options can have conditions which are required to unlock the option; here, if the player doesn't currently have a Heavy Cube in their inventory, this option will not be shown -->
  23.     <Option text="Here you go!" hasItem="Heavy Cube" next="8"/>
  24.     <Option text="Sorry, I don't have one." next="10"/>
  25.   </Choice>
  26.  
  27.   <Choice id="7" speaker="Dude" text="Have you found the cube yet?">
  28.     <Option text="Here you go!" hasItem="Heavy Cube" next="8"/>
  29.     <Option text="Still haven't found one." next="10"/>
  30.   </Choice>
  31.  
  32.   <Action id="8" removeItem="Heavy Cube" next="9"/>
  33.   <Line id="9" speaker="Dude" text="Thank you! I'll put this to good use." next="11"/>
  34.   <Line id="10" speaker="Dude" text="Let me know if you find one." next="-1"/>
  35.  
  36.   <Line id="11" speaker="Dude" text="Here! Have this generic valuable item as a token of my gratitude!" next="12"/>
  37.  
  38.   <!-- If a node targets -1, that signals the end of the conversation -->
  39.   <Action id="12" giveItem="Generic Valuable Item" next="-1"/>
  40. </Conversation>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement