IntroductionToMaze.dl.ts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. // File created automatically by custom Dialogger on 4/4/2019, 2:23:22 AM
  2. // Do not tamper with this file.
  3. // It will be replaced automatically by Dialogger and all changes will be lost.
  4. // Instead change IntroductionToMaze.dl.
  5. module DialogueTrees {
  6. export let IntroductionToMaze = (function () {
  7. let tree : DialogueTree = new DialogueTree("IntroductionToMaze");
  8. let node : DialogueNode;
  9. let text : DialogueText;
  10. let choice : DialogueChoice;
  11. let set : DialogueSet;
  12. let branch : DialogueBranch;
  13. node = new DialogueNode("ad3f7d0b-5e6d-4eec-8db0-6ddcb2e28c1b");
  14. node.setNext("41004f47-b46c-4e85-98a5-b03f599423f4");
  15. tree.addStartNode(node);
  16. AI.talktoRules.createAndAddRule({
  17. name : "AIHook for IntroductionToMaze",
  18. conditions : (runner : RulebookRunner<TalkingHeads>) => {
  19. // @ts-ignore
  20. let player = WorldState.player, greeter = runner.noun.greeter, answerer = runner.noun.answerer;
  21. return (answerer == Forest.MazeMinotaurGuard && !tree.hasRan());
  22. },
  23. priority : Rule.PRIORITY_HIGHEST,
  24. firstPriority : Rule.PRIORITY_HIGHEST,
  25. code : (runner : RulebookRunner<TalkingHeads>) => {
  26. runner.noun.runAndStop.push(tree);
  27. },
  28. });
  29. text = new DialogueText("41004f47-b46c-4e85-98a5-b03f599423f4");
  30. text.setSay(() => { return new Say(Say.Speak("Minotaur", "Halt!"), Say.PARAGRAPH_BREAK, "The minotaur speaks with a deep, strong voice.", Say.PARAGRAPH_BREAK, Say.Speak("Minotaur", "If you intend to enter this place, I must ask that you do not. It is a wretched place and you'd surely meet your end in there."));});
  31. text.setNext("96681f54-8355-453d-b5e2-d6c465f7ce1f");
  32. tree.addNode(text);
  33. choice = new DialogueChoice("4685c1b8-e0df-466d-97b9-a8048b21a99b");
  34. choice.setSay(() => { return new Say("Why shouldn't I go in there?");});
  35. choice.setNext("00b7fa85-b95c-4611-94b8-2366b9532b56");
  36. tree.addNode(choice);
  37. choice = new DialogueChoice("b2e85332-4f2e-4def-9663-332289609e91");
  38. choice.setSay(() => { return new Say("I'm going in there.");});
  39. choice.setNext("80ff3aca-2a62-44d4-91f2-480c6c6fc4ad");
  40. tree.addNode(choice);
  41. node = new DialogueNode("96681f54-8355-453d-b5e2-d6c465f7ce1f");
  42. node.setName("Investigate");
  43. node.setChoices(["4685c1b8-e0df-466d-97b9-a8048b21a99b","b2e85332-4f2e-4def-9663-332289609e91","9ae561cd-56d5-4443-896a-c761425edaf3"]);
  44. tree.addNode(node);
  45. choice = new DialogueChoice("9ae561cd-56d5-4443-896a-c761425edaf3");
  46. choice.setSay(() => { return new Say("Ok.");});
  47. tree.addNode(choice);
  48. text = new DialogueText("00b7fa85-b95c-4611-94b8-2366b9532b56");
  49. text.setSay(() => { return new Say(Say.Speak("Minotaur", "This is the entrance to the maze. That which is too dangerous to remain free is stuck forever inside. It is too dangerous. Please, go away."));});
  50. text.setNext("d657cef5-2b0d-44cb-987e-1b10c1e5893a");
  51. tree.addNode(text);
  52. node = new DialogueNode("d657cef5-2b0d-44cb-987e-1b10c1e5893a");
  53. node.setNext("Investigate");
  54. tree.addNode(node);
  55. text = new DialogueText("80ff3aca-2a62-44d4-91f2-480c6c6fc4ad");
  56. text.setSay(() => { return new Say(Say.Speak("Minotaur", "I will not allow you to kill yourself in such manner. If you truly wish to enter the maze, then you must prove you are strong enough to survive it."));});
  57. text.setNext("c2d03477-b9a2-4c99-8c1b-f661cbf8dcf1");
  58. tree.addNode(text);
  59. choice = new DialogueChoice("05f466b3-e0fe-4adc-9abc-c1129b950677");
  60. choice.setSay(() => { return new Say("What do you care what I do?");});
  61. choice.setNext("44467380-9432-40b6-a385-040ce0cb6fba");
  62. tree.addNode(choice);
  63. choice = new DialogueChoice("636603ef-21ee-4b92-822a-208ae90d259c");
  64. choice.setSay(() => { return new Say("I am strong enough. Let me in.");});
  65. choice.setNext("3df07df1-5da1-495a-b612-5a239c289c44");
  66. tree.addNode(choice);
  67. choice = new DialogueChoice("63d167f2-1622-4e0f-948d-3839920f13fb");
  68. choice.setSay(() => { return new Say("How can I prove I am strong enough?");});
  69. choice.setNext("3df07df1-5da1-495a-b612-5a239c289c44");
  70. tree.addNode(choice);
  71. choice = new DialogueChoice("f37c041f-4836-4d4d-88e6-8a69fd9eeeab");
  72. choice.setSay(() => { return new Say("Fine, I'll leave.");});
  73. tree.addNode(choice);
  74. node = new DialogueNode("c2d03477-b9a2-4c99-8c1b-f661cbf8dcf1");
  75. node.setName("GoingIn");
  76. node.setChoices(["05f466b3-e0fe-4adc-9abc-c1129b950677","636603ef-21ee-4b92-822a-208ae90d259c","63d167f2-1622-4e0f-948d-3839920f13fb","f37c041f-4836-4d4d-88e6-8a69fd9eeeab"]);
  77. tree.addNode(node);
  78. text = new DialogueText("44467380-9432-40b6-a385-040ce0cb6fba");
  79. text.setSay(() => { return new Say(Say.Speak("Minotaur", "It is my mission to guard this place, so that no one ever suffers from the evil that is inside.") );});
  80. text.setNext("d0493826-1ea6-4d36-be3e-0befc7470c50");
  81. tree.addNode(text);
  82. node = new DialogueNode("d0493826-1ea6-4d36-be3e-0befc7470c50");
  83. node.setNext("GoingIn");
  84. tree.addNode(node);
  85. text = new DialogueText("3df07df1-5da1-495a-b612-5a239c289c44");
  86. text.setSay(() => { return new Say(Say.Speak("Minotaur", "If you are strong enough, you should easily be able to fend for yourself in combat. With me."));});
  87. text.setChoices(["88271bd0-8c0e-4097-b9e1-026c8f57c26e","ffc04d84-54c1-418b-834f-e7bbc4901201","e048adac-4290-4d1e-91ae-11b6e200c68b","c6d917c3-54b6-4499-84a3-798b9b02f814"]);
  88. tree.addNode(text);
  89. choice = new DialogueChoice("88271bd0-8c0e-4097-b9e1-026c8f57c26e");
  90. choice.setSay(() => { return new Say("Fighting it is.");});
  91. choice.setNext("9a04f53e-be4f-4208-988f-af4ad9735ae0");
  92. tree.addNode(choice);
  93. choice = new DialogueChoice("c6d917c3-54b6-4499-84a3-798b9b02f814");
  94. choice.setSay(() => { return new Say("I don't want to fight you.");});
  95. choice.setNext("487ff733-21e5-481b-80fe-7bda86530905");
  96. tree.addNode(choice);
  97. choice = new DialogueChoice("e048adac-4290-4d1e-91ae-11b6e200c68b");
  98. choice.setSay(() => { return new Say("But you're too strong!");});
  99. choice.setNext("b82390ba-7dd1-4b6b-b812-9a9bb9771bae");
  100. tree.addNode(choice);
  101. choice = new DialogueChoice("ffc04d84-54c1-418b-834f-e7bbc4901201");
  102. choice.setSay(() => { return new Say("Is there no other way?");});
  103. choice.setNext("22bbf7fe-3d7e-46f6-b041-57638f097d0a");
  104. tree.addNode(choice);
  105. set = new DialogueSet("64876420-f6c1-434c-b9b8-c4cd017ef329");
  106. set.setFunction(() => {
  107. // TODO: If the player has done something that the minotaur should respect, add it as an option here.
  108. });
  109. tree.addNode(set);
  110. set = new DialogueSet("9a04f53e-be4f-4208-988f-af4ad9735ae0");
  111. set.setFunction(() => {
  112. MinotaurGuard.AgreedToDuel.value = true;
  113. });
  114. set.setNext("e3705614-9e9a-42b5-b747-d2fa8c5a1b0c");
  115. tree.addNode(set);
  116. branch = new DialogueBranch("22bbf7fe-3d7e-46f6-b041-57638f097d0a");
  117. branch.setVariable(() => { return 1;});
  118. branch.addBranch("69bc261f-9c69-4401-933c-ac76b45b095d", () => { return 2;});
  119. branch.setNext("0dbb4cb6-c6df-4587-838d-4193ac54de45");
  120. tree.addNode(branch);
  121. set = new DialogueSet("69bc261f-9c69-4401-933c-ac76b45b095d");
  122. set.setFunction(() => {
  123. MinotaurGuard. BestedMinotaur.value = true;
  124. });
  125. tree.addNode(set);
  126. text = new DialogueText("0dbb4cb6-c6df-4587-838d-4193ac54de45");
  127. text.setSay(() => { return new Say(Say.Speak("Minotaur", "Well...", new SayAction("the big man sighs"), "All I need is to test your endurance, find out if you're strong enough to survive in there.", new SayAction("he lifts his loincloth suggestively")), Say.LINE_BREAK, "The Minotaur's balls are bigger than your hands, and his cock is as wide as your arm, probably half as long when hard as well. Truly a test of endurance. Could you handle it? Would you even want to? He lets go of his loincloth, letting it cover that huge tool once again, then awaits your answer.");});
  128. text.setNext("c6807e4e-2dae-49b5-b423-ae0ecca7cd47");
  129. tree.addNode(text);
  130. text = new DialogueText("b82390ba-7dd1-4b6b-b812-9a9bb9771bae");
  131. text.setSay(() => { return new Say(Say.Speak("Minotaur", "And so are the dangers inside, perhaps even more so — I have no desire to hurt you, but I will if that will save your life."));});
  132. text.setNext("1c3b1dc2-7862-4614-a54d-aaabd8dab3f1");
  133. tree.addNode(text);
  134. node = new DialogueNode("1c3b1dc2-7862-4614-a54d-aaabd8dab3f1");
  135. node.setNext("GoingIn");
  136. tree.addNode(node);
  137. text = new DialogueText("e3705614-9e9a-42b5-b747-d2fa8c5a1b0c");
  138. text.setSay(() => { return new Say(Say.Speak("Minotaur", "I will wait until you are prepared. Tell me when you are ready to challenge me, and we will find out what you're made of."));});
  139. tree.addNode(text);
  140. text = new DialogueText("487ff733-21e5-481b-80fe-7bda86530905");
  141. text.setSay(() => { return new Say(Say.Speak("Minotaur", "Then leave. You wouldn't want to see the horrors inside."));});
  142. tree.addNode(text);
  143. choice = new DialogueChoice("9d13ac84-af56-4a1f-a4a6-f499b96d92de");
  144. choice.setSay(() => { return new Say("Fine. I'll do it.");});
  145. choice.setNext("21b64a86-657b-43b8-a591-5eb87b49d084");
  146. tree.addNode(choice);
  147. choice = new DialogueChoice("45ac3006-6fb1-4785-bc4e-76116a5f1eec");
  148. choice.setSay(() => { return new Say("No.");});
  149. choice.setNext("d7a424c5-d590-4402-b67c-02d1571da8c2");
  150. tree.addNode(choice);
  151. choice = new DialogueChoice("db40825e-2ccb-4dd9-a032-924f95ea8643");
  152. choice.setSay(() => { return new Say("How would that prove anything?!?");});
  153. choice.setNext("a84be8e1-a957-43ab-99e5-11c00bc44e68");
  154. tree.addNode(choice);
  155. text = new DialogueText("d7a424c5-d590-4402-b67c-02d1571da8c2");
  156. text.setSay(() => { return new Say(Say.Speak("Minotaur", "Suit yourself. But there is only one way I'm letting you in: once you've proven you're strong."));});
  157. tree.addNode(text);
  158. node = new DialogueNode("c6807e4e-2dae-49b5-b423-ae0ecca7cd47");
  159. node.setName("SexOffered");
  160. node.setChoices(["9d13ac84-af56-4a1f-a4a6-f499b96d92de","45ac3006-6fb1-4785-bc4e-76116a5f1eec","db40825e-2ccb-4dd9-a032-924f95ea8643"]);
  161. tree.addNode(node);
  162. text = new DialogueText("a84be8e1-a957-43ab-99e5-11c00bc44e68");
  163. text.setSay(() => { return new Say(Say.Speak("Minotaur", "Look, if you're tough enough to handle this without fainting, then you can at least survive long enough to escape, if you get stuck in the maze."));});
  164. text.setNext("b5a467e8-b55b-479f-97c2-2847123e5c79");
  165. tree.addNode(text);
  166. node = new DialogueNode("b5a467e8-b55b-479f-97c2-2847123e5c79");
  167. node.setNext("SexOffered");
  168. tree.addNode(node);
  169. set = new DialogueSet("21b64a86-657b-43b8-a591-5eb87b49d084");
  170. set.setFunction(() => {
  171. MinotaurGuard.AgreedToSex.value = true;
  172. });
  173. set.setNext("ae29f9fa-570f-4aca-a29f-3900db84db31");
  174. tree.addNode(set);
  175. text = new DialogueText("ae29f9fa-570f-4aca-a29f-3900db84db31");
  176. text.setSay(() => { return new Say(Say.Speak("Minotaur", "I will wait until you are prepared. Tell me when you are ready to do the trial, and we will find out what you're made of."));});
  177. tree.addNode(text);
  178. AI.talktoRules.createAndAddRule({
  179. name : "AIHook for IntroductionToMaze",
  180. conditions : (runner : RulebookRunner<TalkingHeads>) => {
  181. // @ts-ignore
  182. let player = WorldState.player, greeter = runner.noun.greeter, answerer = runner.noun.answerer;
  183. return (answerer == Forest.MazeMinotaurGuard && MinotaurGuard.isMadeNoChoice());
  184. },
  185. priority : Rule.PRIORITY_MEDIUM,
  186. firstPriority : Rule.PRIORITY_MEDIUM,
  187. code : (runner : RulebookRunner<TalkingHeads>) => {
  188. runner.noun.options.push({
  189. tree: tree,
  190. text : new Say("About the crypt...")
  191. })
  192. },
  193. });
  194. return tree;
  195. })();
  196. }