natbel_init.qsrc 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. # natbel_init
  2. !! Natasha Quest Initiator - This is the trigger file for all quests and events associated with Natasha
  3. !! Set up apartment variable calls and trackers
  4. !! Events concerning Natasha Belova (and her mother)
  5. !!Natasha Schedule - a new one needed at a later time but for now this will work - Alaratt
  6. !!NatashaLoc tells us where Natasha is located
  7. !!----------------------------------------------
  8. !!NatashaLoc = 0 (Natasha not home)
  9. !!NatashaLoc = 1 (Natasha in the hallway)
  10. !!NatashaLoc = 2 (Natasha in her room)
  11. !!NatashaLoc = 3 (Natasha in the kitchen)
  12. !!NatashaLoc = 4 (Natasha in the livingroom)
  13. !!NatashaLoc = 5 (Natasha in her mother''s room)
  14. !!NatashaLoc = 6 (Natasha in the bathroom)
  15. !!NatashaLoc = 7 (Natasha in the laundry room)
  16. !!---------------------------------------------
  17. !! Migrated variables
  18. !! disco_invite = NatbelQW['disco_invite']
  19. if $ARGS[0] = 'trackers':
  20. gs 'natbel_init', 'nat_schedule'
  21. gs 'natbel_init', 'nat_debt_timer'
  22. gs 'stat'
  23. if NatashaHomeDay ! daystart:
  24. NatashaHomeDay = daystart
  25. NatashaLoc = 0
  26. end
  27. !Natasha''s pregnancy status
  28. if NatbelQW['pregday'] > 0 and (daystart-NatbelQW['pregday']) > (280 + rand(-2,2)):
  29. !!baby born
  30. NatbelQW['babycount'] += 1
  31. NatbelQW['pregday'] = 0
  32. end
  33. !! If Natasha will be in her room if she is wearing the seethrough clothes and her mother is home.
  34. if NatbelQW['seethroughwearing'] = 1 and NatbelQW['MotherHome'] = 1:
  35. NatbelQW['MotherDoor'] = 1
  36. NatashaLoc = 2
  37. $NatashaLocMsg = 'Natasha is in her room. She has been there since your visit earlier today.'
  38. end
  39. end
  40. if $ARGS[0] = 'nat_debt_timer':
  41. if NatbelQW['QWstage'] >= 2 and NatbelQW['Debt'] > 0:
  42. *nl
  43. NatbelQW['DebtTimeLeft'] = NatbelQW['DebtDay'] - daystart
  44. if NatbelQW['DebtTimeLeft'] > 0:
  45. $StatusM = 'Natasha owes you <<func(''agentned'', ''format_price_string'', NatbelQW[''Debt''])>><b>₽</b> and is due in <<NatbelQW[''DebtTimeLeft'']>> day(s) '
  46. else
  47. $StatusM = 'Natasha promised to pay you back by now, maybe you should talk to her about it.'
  48. end
  49. end
  50. end
  51. if $ARGS[0] = 'nat_schedule':
  52. NatashaShower = 0
  53. NatashaLoc = rand(0,7)
  54. if NatashaLoc = 0:
  55. $NatashaLocMsg = 'Natasha isn''t home right now.'
  56. elseif NatashaLoc = 1:
  57. $NatashaLocMsg = 'Oh, here''s Natasha. I''ll leave you two to it.'
  58. elseif NatashaLoc = 2:
  59. $NatashaLocMsg = 'Natasha is in her room. You know the way.'
  60. elseif NatashaLoc = 3:
  61. $NatashaLocMsg = 'Natasha is in the kitchen. You know the way.'
  62. elseif NatashaLoc = 4:
  63. $NatashaLocMsg = 'Natasha is in the living room. You know the way.'
  64. elseif NatashaLoc = 5:
  65. $NatashaLocMsg = 'Natasha was in her room just a little while ago. You''ll have to go and look for her.'
  66. elseif NatashaLoc = 6:
  67. NatashaShower = 1
  68. $NatashaLocMsg = 'Natasha is busy taking a shower at the moment. You can wait in her room or come sit with me in the living room if you''d like.'
  69. elseif NatashaLoc = 7:
  70. $NatashaLocMsg = 'Natasha is doing some laundry. You know the way.'
  71. end
  72. end
  73. !! Set up door greeting and images.
  74. if $ARGS[0] = 'door_setup':
  75. if NatbelQW['pregday'] = 0 or (NatbelQW['pregday'] > 0 and (daystart-NatbelQW['pregday']) <= 90):
  76. '<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big16.jpg"></center>'
  77. elseif NatbelQW['pregday'] > 0 and (daystart-NatbelQW['pregday']) > 90 and (daystart-NatbelQW['pregday']) < 200:
  78. '<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/natasha/16(2).jpg" width="356"></center>'
  79. elseif NatbelQW['pregday'] > 0 and (daystart-NatbelQW['pregday']) >= 200:
  80. '<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/natasha/16(3).jpg" width="356"></center>'
  81. end
  82. 'You stand outside the Belova household, knocking on the door. After a few moments, Natasha opens the door.'
  83. if NatbelQW['pregday'] > 0 and (daystart-NatbelQW['pregday']) > 90 and (daystart-NatbelQW['pregday']) < 200:
  84. 'Looking at Natasha, her pregnant belly is starting to show. You have a strong suspicion that she carries your niece or nephew.'
  85. elseif NatbelQW['pregday'] > 0 and (daystart-NatbelQW['pregday']) >= 200:
  86. 'Looking at Natasha, it is clear that she is pregnant. You have a strong suspicion that she carries your niece or nephew.'
  87. end
  88. if NatbelQW['QWstage'] > 10:
  89. 'Natasha sees it''s you at the door, and she immediately lowers her head slightly, not quite looking you in the eye, but you notice she''s pleased to see you.'
  90. '"Oh, hi <<$pcs_nickname>>. Come in."'
  91. elseif NatbelQW['QWstage'] > 5:
  92. 'Natasha sees it''s you at the door and you see her shoulders slump a little as she starts looking at your feet rather than at your face.'
  93. '"Oh, uhm, hi <<$pcs_nickname>>. Come in."'
  94. else
  95. 'Natasha sees it''s you at the door and greets you with a warm hug.'
  96. '"Hi <<$pcs_nickname>>. Come in."'
  97. end
  98. !! Quest Checks:
  99. end
  100. !! Quest checks
  101. !! Init Branch
  102. if $ARGS[0] ='quests':
  103. if $loc_arg = 'natroom':
  104. if NatbelQW['pregday'] > 0 and daystart-NatbelQW['pregday'] > 90 and NatbelQW['askedbaby'] ! daystart:
  105. gs 'natbel_init'. 'pregnancy'
  106. end
  107. if $loc_arg = 'natroom' and NatbelQW['QWstage'] > 1 :
  108. if lernHome > 0: act 'Study together': gs 'natbelEv', 'study_together'
  109. act 'Talk with her': gs 'natbel_chat', 'chat'
  110. end
  111. !! check for quest divergence
  112. if NatbelQW['corruption'] = 0 or NatbelQW['love'] = 0:
  113. If NatbelQW['QWstage'] = 0:
  114. gs 'natbel_init', 'stage_0'
  115. end
  116. !! Stage 1
  117. If NatbelQW['QWstage'] = 1:
  118. gs 'natbel_init', 'stage_1'
  119. end
  120. !! Stage 2
  121. If NatbelQW['QWstage'] = 2:
  122. gs 'natbel_init', 'stage_2'
  123. end
  124. !! Stage 3
  125. If NatbelQW['QWstage'] = 3:
  126. gs 'natbel_init', 'stage_3'
  127. end
  128. !! Stage 4 - Breakpoint this is where the content splits for Natasha depending on choices made by player.
  129. If NatbelQW['QWstage'] = 4:
  130. gs 'natbel_init', 'stage_4'
  131. end
  132. end
  133. !! Corruption path events
  134. if NatbelQW['corruption'] >= 1:
  135. gs 'natbel_init', 'corrupted'
  136. end
  137. !! Love Path events
  138. if NatbelQW['love'] >= 1: gs 'natbel_init', 'lovers'
  139. gs 'natbel_init', 'lovers'
  140. end
  141. end
  142. !! Stage 0 - Introit
  143. if $ARGS[0]='stage_0':
  144. end
  145. if $ARGS[0]='stage_2':
  146. gs 'natbelEv', 'debt_forgive'
  147. end
  148. !! Define Natasha''s fate
  149. if $ARGS[0]='stage_4':
  150. !! Set quest tracker to MC chosen path
  151. !! NatbelQW['QWstage'] = -1
  152. !!if corrupted:
  153. !! use 4 to main legacy code
  154. !! NatbelQW['corruption'] = 1
  155. !!if bff:
  156. !! NatbelQW['lover'] = 1
  157. !!end
  158. end
  159. !! Stage 1 - Corruption
  160. !!
  161. if $ARGS[0] = 'corrupted':
  162. if $loc = 'korrPar':
  163. if week < 6 and (hour = 6 or hour = 7) and kanikuli = 0 and SchoolAtestat = 0 and SchoolBlock = 0 and (PCloStyle2 = 4 or Enable_sforma = 1):
  164. *nl
  165. 'You could go to Natasha''s apartment and get her to carry your books to school.'
  166. act 'Go to Natasha''s apartment': gt 'natbel_cp_1', 'carrybooks'
  167. end
  168. end
  169. if $loc_arg = 'natroom':
  170. gs 'natbel_cp_1', 'make_her_do_homework'
  171. gs 'natbel_cp_1', 'corrupt_choices'
  172. end
  173. if NatbelQW['corruption'] = 1:
  174. NatbelQW['QWstage'] = 99
  175. gs 'natbel_cp_1', 'stage1'
  176. end
  177. if NatbelQW['corruption'] = 2:
  178. end
  179. if NatbelQW['corruption'] = 3:
  180. end
  181. if NatbelQW['corruption'] = 4:
  182. end
  183. if NatbelQW['corruption'] = 5:
  184. end
  185. if NatbelQW['corruption'] = 6:
  186. end
  187. if NatbelQW['corruption'] = 7:
  188. end
  189. if NatbelQW['corruption'] = 8:
  190. end
  191. if NatbelQW['corruption'] = 9:
  192. end
  193. if NatbelQW['corruption'] = 10:
  194. end
  195. end
  196. !! Stage 1 - Companion
  197. if $ARGS[0] = 'lovers':
  198. if NatbelQW['love'] = 1:
  199. NatbelQW['QWstage'] = 99
  200. end
  201. if NatbelQW['love'] = 2:
  202. end
  203. if NatbelQW['love'] = 3:
  204. end
  205. if NatbelQW['love'] = 4:
  206. end
  207. if NatbelQW['love'] = 5:
  208. end
  209. if NatbelQW['love'] = 6:
  210. end
  211. if NatbelQW['love'] = 7:
  212. end
  213. if NatbelQW['love'] = 8:
  214. end
  215. if NatbelQW['love'] = 9:
  216. end
  217. if NatbelQW['love'] = 10:
  218. end
  219. end
  220. !! Journal Entries.
  221. if $ARGS[0] ='journal':
  222. if NatbelQW['qwstage'] <= 4 or (NatbelQW['corrupt'] = 0 or NatbelQW['love'] = 0):
  223. if NatbelQW['QWstage'] = 1:
  224. 'Natasha agreed to help me with my homework. I just need to visit her in her apartment after school. I should chat with her a few times before bringing up anything involving money though.'
  225. elseif NatbelQW['QWstage'] = 2:
  226. 'Natasha has borrowed money from me. In return, she has to do my homework whenever I tell her. Once her 30 days are up, I should ask for my money back and see where it goes because I don''t actually expect her to be able to pay it back.'
  227. end
  228. elseif NatbelQW['corrupt'] > 0 and NatbelQW['qwstage'] = 99:
  229. elseif NatbelQW['love'] > 0 and NatbelQW['qwstage'] = 99:
  230. end
  231. end
  232. !! Quest variabes reset or deletion
  233. if $ARGS[0] = 'delvar':
  234. if $ARGS[1] = 'reset':
  235. end
  236. if $ARGS[1] = 'corruption':
  237. end
  238. if $ARGS[1] = 'love':
  239. end
  240. end
  241. --- natbel_init ---------------------------------