Advertisement
Guest User

Untitled

a guest
Jul 25th, 2013
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. //This is eric.jdf (Dialog file)
  2. //--------------------------------------------------------------------
  3. /*
  4. * EVENTS
  5. *
  6. * 0 - Start quest, "Find out whats going on"
  7. * 1 -
  8. *
  9. * Entry points
  10. *
  11. * 0 - Path to picking up "Find out whats going on"
  12. * 5 - Dialog if above quest is in progress
  13. *
  14. */
  15.  
  16.  
  17. text/0:Hey Jeremy, did you hear that?;
  18. text/1:Nope;
  19. text/2:Yeah what the fuck was that?;
  20. text/3:This place is starting to creep me out, and with all those scientists down there I wonder what they're doing.;
  21. text/4:Scientists? Do you know why we're deployed here?;
  22. text/5:Nah, our captin hasn't said anything about it. I doubt he even knows. All I know is that they're directing some sort of experiment down there...;
  23. text/6:Curious... Speaking of our captin, he seems to be asleep.;
  24. text/7:Heh. Hey, tell me if you figure anything out, will yah?;
  25. text/8:Sure;
  26. text/9:You picked up a new quest "What Are We Doing?" You can access your quest log by right-clicking on your character and selecting Quests;
  27. text/10:Start Quest;
  28. text/11:Hey, did you discover anything new?;
  29.  
  30. //Query takes argument list:
  31. //(text index, event id [optional])
  32.  
  33. //Answer takes argument list:
  34. //(textIndex, nextNode[optional], event id[optional])
  35. //Next node can be omitted, if eventid does not redirect (or missing event argument) then ends dialog.
  36.  
  37. //Entrypoint 0 - picking up "Find out whats going on"
  38. query/0:("0");
  39. query/0/answer/0:("1", "1");
  40. query/0/answer/1:("2", "1");
  41.  
  42. query/1:("3");
  43. query/1/answer/0:("4", "2");
  44.  
  45. query/2:("5");
  46. query/2/answer/0:("6", "3");
  47.  
  48. query/3:("7");
  49. query/3/answer/0:("8", "4");
  50.  
  51. query/4:("9");
  52. query/4/answer/0:("10", "-1", "0");
  53.  
  54. //Entrypoint 5 - During What is going on?
  55. query/5:("11");
  56. query/5/answer/0:("1");
  57.  
  58.  
  59.  
  60. //This is eric.js (Script file)
  61. //--------------------------------------------------------------------
  62. function onInteract()
  63. {
  64. if(game.getQuest('quests/whatarewedoing.jqf').getState() == quest_notStarted)
  65. me.dialog(0);
  66. else if(game.getQuest('quests/whatarewedoing.jqf').getState() == quest_inProgress)
  67. me.dialog(5);
  68. }
  69.  
  70. function onDialogEvent(eventId)
  71. {
  72. switch(eventId)
  73. {
  74. case 0:
  75. game.getQuest('quests/whatarewedoing.jqf').getTask('initial').setState(quest_inProgress);
  76. break;
  77. }
  78.  
  79. return -1;
  80. }
  81.  
  82. //This is whatarewedoing.jqf
  83. //--------------------------------------------------------------------
  84.  
  85. name:What are we doing?;
  86. description:Figure out what we're doing;
  87.  
  88. task/0/id:initial;
  89. task/0/name:What are we doing?;
  90. task/0/description:You've just been deployed here and have been informed to contact Eric and inform him that you've arrived;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement