Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.61 KB | None | 0 0
  1. waypoint ShedDoor
  2. {
  3. 19, 24, 0
  4. }
  5.  
  6. waypoint InsideTutBedroomDoor
  7. {
  8. 43, 22, 1
  9. }
  10.  
  11. /*******************************************************************************************
  12. ** Triggers added to start of game to launch tutorial.
  13. ********************************************************************************************/
  14. trigger GameStart
  15. {
  16. call CreateTendWifeQuest,
  17. call CreateBarricadeQuest,
  18. /* call OpeningConversation*/
  19. call RadioWorks
  20. }
  21.  
  22. /*******************************************************************************************
  23. ** Barricade quest... called after you've given Kate pills and bandages.
  24. ********************************************************************************************/
  25. script CreateBarricadeQuest
  26. {
  27. Quest.CreateQuest("BarricadeQuest", "Secure the Safehouse" );
  28. Quest.RunScriptOnComplete("SleepBeforeSupplies");
  29. Quest.AddGotoLocationTask("tutorial2A", "Go to the shed", ShedDoor);
  30. Quest.Unlock();
  31. Quest.UnlockNextTasksOnComplete(3);
  32. Quest.AddFindItemTask( "tutorial2B", "Find a hammer", Hammer, 1 );
  33. Quest.UnlockTaskOnComplete( "tutorial2D" );
  34. Quest.AddFindItemTask( "tutorial2E", "Find some wood", Plank, 1 );
  35. Quest.AddFindItemTask( "tutorial2F", "Find some nails", Nails, 1 );
  36. Quest.AddEquipItemTask( "tutorial2D", "Equip hammer", Hammer );
  37. Quest.UnlockNextTasksOnComplete(1);
  38. Quest.AddHardCodedTask("tutorial2G", "Barricade the safehouse doors and windows", "barricadeTutorial");
  39. Quest.UnlockNextTasksOnComplete(1);
  40. Quest.AddGotoLocationTask( "tutorial2ZZQ", "Return to Kate", InsideTutBedroomDoor );
  41.  
  42. }
  43.  
  44. /*******************************************************************************************
  45. ** Opening quest. Make bandages, find pills. Give them to Kate.
  46. ********************************************************************************************/
  47. script CreateTendWifeQuest
  48. {
  49. Quest.CreateQuest("TendWifeQuest", "Tend to Kate's Broken Leg");
  50. Quest.RunScriptOnComplete("BobBarricade");
  51. Quest.AddFindItemTask("tutorial1B", "Find something to make bandanges", Sheet, 1);
  52. Quest.Unlock();
  53. Quest.UnlockNextTasksOnComplete(1);
  54. Quest.AddFindItemTask("tutorial1C", "Craft some bandages", RippedSheets, 8);
  55. Quest.UnlockNextTasksOnComplete(1);
  56. Quest.AddUseItemOnTask("tutorial1E", "Bandage Kate's leg", RippedSheets, Kate);
  57. Quest.AddFindItemTask("tutorial1Z", "Check the adjoining bathroom for painkillers", "Pills", 1 );
  58. Quest.Unlock();
  59. Quest.AddUseItemOnTask("tutorial1ZZ", "Give Kate a pill", Pills, Kate);
  60. Quest.Unlock();
  61. Quest.RunScriptOnComplete("TakeThesePills");
  62.  
  63.  
  64. }
  65. /*******************************************************************************************
  66. ** Script where Kate says to sleep before hunting for supplies.
  67. ********************************************************************************************/
  68. script SleepBeforeSupplies
  69. {
  70. Player.Say("Okay, we're safe.");
  71. Kate.Say("My hero!");
  72.  
  73. if(IsNight())
  74. {
  75. Kate.Say("It's pitch black out there, hon.");
  76. }
  77. else
  78. {
  79. Kate.Say("It's going to be dark soon, hon.");
  80. }
  81.  
  82. Kate.Say("You won't see the neighbors till they've taken chunks from you.");
  83. Kate.Say("We'll sleep hungry.");
  84. Hook.RegisterOneTime("OnPlayerWake", "WokeUpInTutorialBed");
  85. Player.Sleep(9.0);
  86. /*
  87. Script follows on from opening2.txt with "WokeUpInTutorialBed" next time the player wakes up.
  88. */
  89.  
  90. }
  91.  
  92. /*******************************************************************************************
  93. ** Script called after giving pills / bandages to Kate.
  94. ********************************************************************************************/
  95. script BobBarricade
  96. {
  97. /* Needed to allow for time to say TakeThesePills if pills quest is done last.*/
  98. if(Player.IsSpeaking())
  99. {
  100. Wait(3.0);
  101. }
  102.  
  103. Kate.Say("I'm sorry I fucked up hon.");
  104. Kate.Say("I screwed everything.");
  105. Quest.UnlockQuest("BarricadeQuest");
  106. }
  107.  
  108. /*******************************************************************************************
  109. ** Short dialogue once given Kate pills for player feedback if they do it first.
  110. *******************************************************************************************/
  111. script TakeThesePills
  112. {
  113. Player.Say("Here, take one of these...");
  114.  
  115. }
  116.  
  117. /*******************************************************************************************
  118. ** Opening script
  119. *******************************************************************************************/
  120. script OpeningConversation
  121. {
  122. LockHud(true);
  123. Wait(2.0);
  124. Kate.Say("I'm sorry. I'm sorry.");
  125. Player.Say("It's fine. We can deal with this. Just...");
  126. LockHud(false);
  127. Quest.UnlockQuest("TendWifeQuest");
  128. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement