Advertisement
xBawX

Untitled

Nov 10th, 2020
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.60 KB | None | 0 0
  1. --[[
  2. Script converted by DarkShadow44's MobTalkerScript Converter (v1.1)
  3. ]]
  4.  
  5. Lucy = Character.ForCreature()
  6. Lucy:SetName("Lucy")
  7.  
  8. function WaitTomorrow()
  9. WaitSet(10000);
  10. TableSave["Waiting"] = true;
  11. end
  12.  
  13. function WaitSet(ticks)
  14. TableSave["Wait_TimeStart"] = DCLib.World.GetTime();
  15. TableSave["Wait_TimeTicks"] = ticks;
  16. end
  17.  
  18. function WaitReady()
  19. if(TableSave["Wait_TimeTicks"] == nil) then
  20. return true;
  21. end
  22.  
  23. if(DCLib.World.GetTime() < TableSave["Wait_TimeStart"]) then
  24. SAY("<ScriptWarning>", "Invalid Time - Resetting wait timer to keep things running. Did you change the world time ?");
  25. WaitSet(TableSave["Wait_TimeTicks"]);
  26. return false;
  27. end
  28. return DCLib.World.GetTime() >= TableSave["Wait_TimeStart"] + TableSave["Wait_TimeTicks"];
  29. end
  30.  
  31. function LoveInc(num)
  32. DCLib.Player.LoveSet(DCLib.Player.LoveGet() + num);
  33. end
  34.  
  35. function LoveDec(num)
  36. DCLib.Player.LoveSet(DCLib.Player.LoveGet() - num);
  37. end
  38.  
  39. function LoveGet()
  40. return DCLib.Player.LoveGet();
  41. end
  42.  
  43. function Start()
  44. player = DCLib.Player.GetName();
  45. love = LoveGet();
  46. if(TableSave["Waiting"] == true) then
  47. if(WaitReady() == true) then
  48. TableSave["Day"] = TableSave["Day"] + 1;
  49. TableSave["Waiting"] = false;
  50. else
  51. love = -1; --force default response
  52. end
  53. end
  54. day = TableSave["Day"];
  55. if(TableDays[day] == nil) then
  56. day = -1;
  57. end
  58. if(TableDays[day][love] == nil) then
  59. love = -1;
  60. end
  61. TableDays[day][love]();
  62. end
  63.  
  64. function Load()
  65. if(TableSave == nil) then
  66. TableSave = {};
  67. TableSave["Day"] = -2;
  68. end
  69. makeTableDays();
  70. end
  71.  
  72. function Story_init_default()
  73. SHOW(_CurrentMob, "Normal");
  74. SAY("Female Wither Skeleton", "Hello there.");
  75. DCLib.Player.LoveSet(0);
  76. TableSave["Day"] = 1;
  77. end
  78. function Story_day1_default()
  79. SHOW(_CurrentMob, "Normal");
  80. SHOW(_CurrentMob, "Happy");
  81. SAY("Lucy", "Thanks for bringing me here.");
  82. end
  83.  
  84. function Story_day1_love0()
  85. SHOW(_CurrentMob, "Normal");
  86. SAY("Female Wither Skeleton", "Hello, sir.");
  87. SAY(""..player.."", "Hello there. What's your name?");
  88. SHOW(_CurrentMob, "Happy");
  89. SAY("Lucy", "It's Lucy. Lucy the Wither Skeleton. Nice to meet you.");
  90. SAY("Lucy", "What's yours?");
  91. SAY(""..player.."", "It's "..player..". Nice to meet you too.");
  92. SAY("Lucy", "Well then "..player..", how have you been?");
  93. SAY(""..player.."", "I'm doing good. How about you?");
  94. SAY("Lucy", "I'm doing just fine.");
  95. SAY(""..player.."", "That's good to hear.");
  96. SAY(""..player.."", "I got some questions...");
  97. SAY("Lucy", "Alright then. Hehe...");
  98. SAY(""..player.."", "Are you related to the Skeletons by any chance?");
  99. SAY("Lucy", "Well, I'm related to my cousin, Suzie. She lives somewhere in the Overworld.");
  100. SAY(""..player.."", "Why are you two in different worlds?");
  101. SHOW(_CurrentMob, "Shy");
  102. SAY("Lucy", "I have no idea...");
  103. SHOW(_CurrentMob, "Happy");
  104. SAY("Lucy", "But at least I visit her from time to time.");
  105. SAY(""..player.."", "That's good to hear.");
  106. SHOW(_CurrentMob, "Normal");
  107. SAY(""..player.."", "Are you and the Spider friends?");
  108. SAY("Lucy", "No... Suzie has never introduced me to her spider friends...");
  109. SAY("Lucy", "But she has talked about them from time to time...");
  110. SAY(""..player.."", "I see...");
  111. SAY(""..player.."", "So, how'd you learn how to use a sword?");
  112. SHOW(_CurrentMob, "Happy");
  113. SAY("Lucy", "Experience, I guess?");
  114. SHOW(_CurrentMob, "Normal");
  115. SAY("Lucy", "How did you learn how to use a sword?");
  116. SAY(""..player.."", "I taught myself how to use one.");
  117. SHOW(_CurrentMob, "Happy");
  118. SAY("Lucy", "That sounds interesting!");
  119. SAY(""..player.."", "Yeah...");
  120. SAY(""..player.."", "Does your cousin know how to use a sword?");
  121. SHOW(_CurrentMob, "Shy");
  122. SAY("Lucy", "No... Sadly she only knows how to use a bow.");
  123. SHOW(_CurrentMob, "Happy");
  124. SAY("Lucy", "But hey, I don't mind that. I'm glad she knows how to use it.");
  125. SAY("Lucy", "Heck, it's hard for me to use one.");
  126. SAY(""..player.."", "That's good to hear, I guess.");
  127. SAY(""..player.."", "Well, that's all I got.");
  128. SAY("Lucy", "Very well, then.");
  129. SAY(""..player.."", "Hey, would you like to come to my place? I have a room for you.");
  130. SHOW(_CurrentMob, "Happy");
  131. SAY("Lucy", "Sure, why not? I need to cool down anyways.");
  132. SAY("Lucy", "Let's go, "..player..".");
  133. SAY(""..player.."", "Alright. Let's go, Lucy.");
  134. LoveInc(1);
  135. DCLib.Entity.SetFollow(true);
  136. end
  137.  
  138. function Story_day1_love1()
  139. SHOW(_CurrentMob, "Normal");
  140. SAY(""..player.."", "Here we are...");
  141. SAY("Lucy", "It's not a bad place. Pretty cool, though.");
  142. SAY(""..player.."", "Make yourself at home. If you need anything, tell me.");
  143. SAY("Lucy", "Will do.");
  144. SAY("Lucy", "I'll see you in the morning then.");
  145. SAY(""..player.."", "Yeah. See you in the morning.");
  146. LoveInc(1);
  147. DCLib.Entity.SetFollow(false);
  148. WaitTomorrow();
  149. end
  150.  
  151. function Story_day2_default()
  152. SHOW(_CurrentMob, "Normal");
  153. SHOW(_CurrentMob, "Scared");
  154. SAY("Lucy", "Wh-What is it?!");
  155. end
  156.  
  157. function Story_day2_love2()
  158. SHOW(_CurrentMob, "Normal");
  159. SAY(""..player.."", "Good evening, Lucy.");
  160. SAY("Lucy", "Evening, "..player.."...");
  161. SAY(""..player.."", "Say, you wanna go out on a walk?");
  162. SAY(""..player.."", "Maybe we can see who's good at using a sword.");
  163. SAY("Lucy", "Sure, that seems really fun that way.");
  164. SAY("Lucy", "It's on, "..player..".");
  165. SAY(""..player.."", "Great, let's go.");
  166. LoveInc(1);
  167. DCLib.Entity.SetFollow(true);
  168. end
  169.  
  170. function Story_day2_love3()
  171. SHOW(_CurrentMob, "Normal");
  172. SHOW(_CurrentMob, "Happy");
  173. SAY("Lucy", "That was fun.");
  174. SAY(""..player.."", "Yeah. You put up a challenge, Lucy.");
  175. SAY("Lucy", "Yeah, likewise.");
  176. SHOW(_CurrentMob, "Shy");
  177. SAY("Lucy", "...");
  178. SAY(""..player.."", "Uh, Lucy. Why are you looking at me like that?");
  179. SAY("Lucy", "You face is so red right now.");
  180. SAY(""..player.."", "Why are you so close?");
  181. SHOW(_CurrentMob, "Normal");
  182. SAY("Lucy", "Oh? Is it wrong to admire how cute you are?");
  183. SAY(""..player.."", "Uhh... Lucy?");
  184. SAY("Lucy", "What is it?");
  185. SAY(""..player.."", "I think this is a bit embarrasing to say but...");
  186. SAY(""..player.."", "Do you have a crush on me?");
  187. SAY("Lucy", "...");
  188. SHOW(_CurrentMob, "Scared");
  189. SAY("Lucy", "Huh? What? Oh my... Don't be ridiculous.");
  190. SAY("Lucy", "I was just trying to teasing you, that's all.");
  191. SAY(""..player.."", "I dunno, and I'm not sure myself...");
  192. SAY(""..player.."", "Just tell me, Lucy.");
  193. SHOW(_CurrentMob, "Shy");
  194. SAY("Lucy", "...");
  195. SAY("Lucy", "Err... I guess I do, but err...");
  196. SAY("Lucy", "Well, I guess I can say...");
  197. SAY("Lucy", "I like you a lot...");
  198. SAY("Lucy", "I mean, since I met you... I-");
  199. SAY(""..player.."", "That's ok, I understand.");
  200. SHOW(_CurrentMob, "Happy");
  201. SAY("Lucy", "Really? Thanks.");
  202. SHOW(_CurrentMob, "Shy");
  203. SAY("Lucy", "...");
  204. SAY(""..player.."", "So you really like me, huh?");
  205. SHOW(_CurrentMob, "Scared");
  206. SAY("Lucy", "Huh?! Don't be ridiculous...");
  207. SAY("Lucy", "...");
  208. SAY("Lucy", "I'm sorry... I don't know what got into me...");
  209. SAY(""..player.."", "It's fine. Don't worry about it.");
  210. SAY(""..player.."", "I hope you enjoy your stay. I'll come by to see you tomorrow, ok?");
  211. SHOW(_CurrentMob, "Happy");
  212. SAY("Lucy", "Ok. See you tomorrow, "..player..".");
  213. SHOW(_CurrentMob, "Shy");
  214. SAY("Lucy", "...");
  215. SAY("Lucy", "I love you, "..player..".");
  216. SAY(""..player.."", "Uh... Yeah... Love you too.");
  217. SAY(""..player.."", "See you tomorrow, Lucy.");
  218. LoveInc(97);
  219. WaitTomorrow();
  220. end
  221.  
  222. function Story_default_default()
  223. SHOW(_CurrentMob, "Normal");
  224. SHOW(_CurrentMob, "Happy");
  225. SAY("Lucy", "Hi, "..player..". How's it going?");
  226. end
  227.  
  228. function makeTableDays()
  229. TableDays = {};
  230. TableDays[-2] = {};
  231. TableDays[-2][-1]= Story_init_default;
  232. TableDays[1] = {};
  233. TableDays[1][-1]= Story_day1_default;
  234. TableDays[1][0]= Story_day1_love0;
  235. TableDays[1][1]= Story_day1_love1;
  236. TableDays[2] = {};
  237. TableDays[2][-1]= Story_day2_default;
  238. TableDays[2][2]= Story_day2_love2;
  239. TableDays[2][3]= Story_day2_love3;
  240. TableDays[-1] = {};
  241. TableDays[-1][-1]= Story_default_default;
  242. end
  243.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement