MinotaurCommonReadyToFuck.dl.ts 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. // File created automatically by custom Dialogger on 4/4/2019, 2:13:19 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 MinotaurCommonReadyToFuck.dl.
  5. module DialogueTrees {
  6. export let MinotaurCommonReadyToFuck = (function () {
  7. let tree : DialogueTree = new DialogueTree("MinotaurCommonReadyToFuck");
  8. let node : DialogueNode;
  9. let text : DialogueText;
  10. let choice : DialogueChoice;
  11. let set : DialogueSet;
  12. AI.talktoRules.createAndAddRule({
  13. name : "AIHook for MinotaurCommonReadyToFuck",
  14. conditions : (runner : RulebookRunner<TalkingHeads>) => {
  15. // @ts-ignore
  16. let player = WorldState.player, greeter = runner.noun.greeter, answerer = runner.noun.answerer;
  17. return (MinotaurGuard.AgreedToSex.value == true);
  18. },
  19. priority : Rule.PRIORITY_MEDIUM,
  20. firstPriority : Rule.PRIORITY_MEDIUM,
  21. code : (runner : RulebookRunner<TalkingHeads>) => {
  22. runner.noun.options.push({
  23. tree: tree,
  24. text : new Say("About the sex thing...")
  25. })
  26. },
  27. });
  28. node = new DialogueNode("e62b60c7-2661-4410-9f1f-64375f1232f8");
  29. node.setNext("17f60364-ac93-4390-937f-13a7dc1fc581");
  30. tree.addStartNode(node);
  31. text = new DialogueText("17f60364-ac93-4390-937f-13a7dc1fc581");
  32. text.setSay(() => { return new Say("He lifts one eyebrow, as if surprised you're actually chosing this path.", Say.LINE_BREAK, Say.Speak("Minotaur", "Are you sure you want to do it?"));});
  33. text.setChoices(["c401e92e-2c9e-4dd2-a24e-0c53eee83836","cba3584d-4596-4f14-b95f-9cdc767dd3d9","e18d2e5d-ff5a-4d22-9598-581920d9bbdb"]);
  34. tree.addNode(text);
  35. choice = new DialogueChoice("c401e92e-2c9e-4dd2-a24e-0c53eee83836");
  36. choice.setSay(() => { return new Say("Yes.");});
  37. choice.setNext("84ae1903-3f14-44cc-ad97-8fd7d1bbc5ff");
  38. tree.addNode(choice);
  39. choice = new DialogueChoice("cba3584d-4596-4f14-b95f-9cdc767dd3d9");
  40. choice.setSay(() => { return new Say("Not now.");});
  41. choice.setNext("17d34627-7214-42af-b1f4-06a120ed5f95");
  42. tree.addNode(choice);
  43. choice = new DialogueChoice("e18d2e5d-ff5a-4d22-9598-581920d9bbdb");
  44. choice.setSay(() => { return new Say("I've changed my mind.");});
  45. choice.setNext("02d1870b-6ea5-47bf-801e-67442627d165");
  46. tree.addNode(choice);
  47. text = new DialogueText("84ae1903-3f14-44cc-ad97-8fd7d1bbc5ff");
  48. text.setSay(() => { return new Say(Say.Speak("Minotaur", "Very well. Let's get started."), Say.LINE_BREAK, "He says as he lets his loincloth fall to the groung.", Say.LINE_BREAK, Say.Speak("Minotaur", "Best get to it, then."));});
  49. text.setNext("c9d5f889-37ae-4da1-b810-447dfffaa238");
  50. tree.addNode(text);
  51. text = new DialogueText("17d34627-7214-42af-b1f4-06a120ed5f95");
  52. text.setSay(() => { return new Say(Say.Speak("Minotaur", "No problem. I'll keep waiting until you're sure."));});
  53. tree.addNode(text);
  54. text = new DialogueText("02d1870b-6ea5-47bf-801e-67442627d165");
  55. text.setSay(() => { return new Say(Say.Speak("Minotaur", "No problem. I don't even understand how you agreed to it in the first place. You're still not going inside, though."));});
  56. text.setNext("0a432af8-243f-4be7-af8c-a069dbe5e2e7");
  57. tree.addNode(text);
  58. set = new DialogueSet("0a432af8-243f-4be7-af8c-a069dbe5e2e7");
  59. set.setFunction(() => {
  60. MinotaurGuard.AgreedToSex.value = false;
  61. });
  62. tree.addNode(set);
  63. set = new DialogueSet("c9d5f889-37ae-4da1-b810-447dfffaa238");
  64. set.setFunction(() => {
  65. // TODO: Initiate sex with the minotaur
  66. });
  67. tree.addNode(set);
  68. return tree;
  69. })();
  70. }