kid.qsrc 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. # kid
  2. $breastfeed = {
  3. cla
  4. *clr
  5. gs 'stat'
  6. '<center><b><font color="maroon"><<$kidname[ks]>> <<$pcs_lastname>></font></b></center>'
  7. '<center><img <<$set_imgh>> src="images/pc/body/tits/breast_feed.jpg"></center>'
  8. 'You pick up <<$kidname[ks]>> from <<$kidPosPro[ks]>> crib and cuddle for a moment before exposing your breast.'
  9. if rand(1,10) = 10:
  10. 'You lift <<$kidname[ks]>> to your breast but your <<$sdtext[ks]>> doesn''t latch on.'
  11. mood -= 5
  12. minut += 5
  13. else
  14. minut += 15
  15. breastcounter += 1
  16. milkedvolume = func('lact_lib','$get_breastmilk', 2, 15)
  17. if milkedvolume < 800:
  18. 'You lift <<$kidname[ks]>> to your breast and feed your baby <<$polreb[ks]>>. Your baby doesn''t seem to be satisfied with the amount of milk.'
  19. else
  20. 'You lift <<$kidname[ks]>> to your breast and feed your baby <<$polreb[ks]>>. Your baby seems satisfied with the amount of your milk.'
  21. end
  22. end
  23. 'You gently lay <<$kidname[ks]>> back <<$babyloc>>.'
  24. act 'Done':
  25. gt 'kid', 'start'
  26. end
  27. }
  28. $play = {
  29. cla
  30. *clr
  31. gs 'stat'
  32. '<center><b><font color="maroon"><<$kidname[ks]>> <<$pcs_lastname>></font></b></center>'
  33. '<center><img <<$set_imgh>> src="images/pc/activities/baby_play.jpg"></center>'
  34. 'You get down on the floor with your <<$sdtext[ks]>> and begin to make face and noises to your little <<$polreb[ks]>>.'
  35. '<<$kidname[ks]>> giggles in delight and squirms on the floor in response to you.'
  36. 'After a while you get up and straighten your clothes before going on with your day.'
  37. pcs_mood += 20
  38. minut += 20
  39. act 'Done':
  40. gt 'kid', 'start'
  41. end
  42. }
  43. $totplay = {
  44. cla
  45. *clr
  46. gs 'stat'
  47. '<center><b><font color="maroon"><<$kidname[ks]>> <<$pcs_lastname>></font></b></center>'
  48. '<center><img <<$set_imgh>> src="images/pc/activities/tot_play.jpg"></center>'
  49. '"Mom! Mom! Mom! Mom!" Yells <<$kidname[ks]>>, "Come play with me!"'
  50. '"Ok <<$kidname[ks]>>!" You reply.'
  51. 'You pull out a bin of blocks and spend a period of time playing and building with your child.'
  52. 'After a short time, <<$kidname[ks]>> pushes over the small tower you have built, snickers and runs off'
  53. 'You get up, straighten up your clothes, laugh, and move on with your day'
  54. pcs_mood += 20
  55. minut += 20
  56. act 'Done':
  57. gt 'kid', 'start'
  58. end
  59. }
  60. $tottv = {
  61. cla
  62. *clr
  63. gs 'stat'
  64. '<center><b><font color="maroon"><<$kidname[ks]>> <<$pcs_lastname>></font></b></center>'
  65. '<center><img <<$set_imgh>> src="images/shared/home/tv/kid_tv.jpg"></center>'
  66. 'You pull <<$kidname[ks]>> up onto the couch with you and cuddle up to watch TV'
  67. 'You watch a cartoon featuring a Rabbit, a Duck, and a Pig that is quite silly'
  68. mood += 10
  69. minut += 60
  70. act 'Done':
  71. gt 'kid', 'start'
  72. end
  73. }
  74. $kidtv = {
  75. cla
  76. *clr
  77. gs 'stat'
  78. '<center><b><font color="maroon"><<$kidname[ks]>> <<$pcs_lastname>></font></b></center>'
  79. '<center><img <<$set_imgh>> src="images/shared/home/tv/kid_tv2.jpg"></center>'
  80. 'You attempt to curl up on the couch with <<$kidname[ks]>>'
  81. '"Mom! I''m trying to watch TV!" <<$kidname[ks]>> says.'
  82. '"Well I am gonna watch with you." You reply, followed by tickling <<$kidname[ks]>> to open up a spot on the couch for you to sit.'
  83. 'You watch a kids TV show about two American teenagers that barely catches your interest.'
  84. minut += 60
  85. act 'Done':
  86. gt 'kid', 'start'
  87. end
  88. }
  89. $homework = {
  90. cla
  91. *clr
  92. if polkid[k] = 0:
  93. $kidPosPronn[ks] = 'her'
  94. else
  95. $kidPosPronn[ks] = 'him'
  96. end
  97. gs 'stat'
  98. '<center><b><font color="maroon"><<$kidname[ks]>> <<$pcs_lastname>></font></b></center>'
  99. '<center><img <<$set_imgh>> src="images/characters/pavlovsk/resident/kolka/event/homework/homework1.jpg"></center>'
  100. 'You see that <<$kidname[ks]>> is working on a pile of homework. They give kids so much homework now days.'
  101. '"Can mommy help you with some of that?" you ask'
  102. '<<$kidname[ks]>> replies, "Mommy?!... Mom stop treating me like a baby... but yes, I would like some help."'
  103. '<br>'
  104. 'You sit down at the table next to <<$kidname[ks]>> and begin to help <<$kidPosPronn[ks]>> with the homework'
  105. if pcs_grades > 50:
  106. 'The homework is completed quickly thanks to the attention you payed in school. An A should be an easy achievement.'
  107. else
  108. 'You really wish you had payed more attention in school. The homework is not overly complex but is still not the easiest thing for you.'
  109. end
  110. homework[ks] = daystart
  111. minut += rand(30,80)
  112. act 'Done':
  113. gt 'kid', 'start'
  114. end
  115. }
  116. if $ARGS[0] = 'start':
  117. gs 'stat'
  118. if kid > 0:
  119. k = 0
  120. end
  121. if lactate > 0 and pain['nipples'] > 60:
  122. 'You cannot breast feed right now. Your nipples are too sore.'
  123. end
  124. :loop
  125. if k < kid:
  126. gs 'kid','kidlist'
  127. k += 1
  128. jump 'loop'
  129. end
  130. 'Child Selected: <<$kidname[ks]>>'
  131. if ks > 0:'<a href="exec:ks -= 1& gt ''kid'', ''start'' ">Select Previous Child</a>'
  132. if ks < (kid - 1):'<a href="exec:ks += 1& gt ''kid'', ''start'' ">Select Next Child</a>'
  133. act 'Leave':
  134. cla
  135. killvar 'ks'
  136. gt $loc, $metka
  137. end
  138. end
  139. if $ARGS[0] = 'kidlist':
  140. if kidage[k] < 1:
  141. if (month - monthkid[k]) < 1 and (day-daykid[k]) < 7:
  142. kiddaycalc[k] = day - daykid[k]
  143. if kiddaycalc[k] = 1:
  144. $kidagetext[k] = '<<kiddaycalc[k]>> day old'
  145. else
  146. $kidagetext[k] = '<<kiddaycalc[k]>> days old'
  147. end
  148. elseif (month - monthkid[k]) < 1 :
  149. kiddaycalc[k] = (day - daykid[k]) / 7
  150. if kiddaycalc[k] = 1:
  151. $kidagetext[k] = '<<kiddaycalc[k]>> week old'
  152. else
  153. $kidagetext[k] = '<<kiddaycalc[k]>> weeks old'
  154. end
  155. else
  156. kidmonthcalc[k] = (month - monthkid[k])
  157. if kidmonthcalc[k] = 1:
  158. $kidagetext[k] = '<<kidmonthcalc[k]>> month old'
  159. else
  160. $kidagetext[k] = '<<kidmonthcalc[k]>> months old'
  161. end
  162. end
  163. else
  164. if kidage[k] = 1:
  165. $kidagetext[k] = '<<kidage[k]>> year old'
  166. else
  167. $kidagetext[k] = '<<kidage[k]>> years old'
  168. end
  169. end
  170. if $polreb[k] = 'girl':
  171. $sdtext[k] = 'daughter'
  172. elseif $polreb[k] = 'boy':
  173. $sdtext[k] = 'son'
  174. end
  175. if polkid[k] = 0:
  176. $kidPosPro[k] = 'her'
  177. else
  178. $kidPosPro[k] = 'his'
  179. end
  180. if polkid[k] = 0:
  181. $kidPosProC[k] = 'Her'
  182. else
  183. $kidPosProC[k] = 'His'
  184. end
  185. if polkid[k] = 0:
  186. $kidPosProPN[k] = 'She'
  187. else
  188. $kidPosProPN[k] = 'He'
  189. end
  190. if ks = k:
  191. '<font color= #06992D>Your <<$sdtext[k]>> <<$kidname[k]>> is <<$kidagetext[k]>>. <<$kidposproC[k]>> date of birth is <<monthkid[k]>>/<<daykid[k]>>/<<yearkid[k]>>.</font>'
  192. else:
  193. 'Your <<$sdtext[k]>> <<$kidname[k]>> is <<$kidagetext[k]>>. <<$kidposproC[k]>> date of birth is <<monthkid[k]>>/<<daykid[k]>>/<<yearkid[k]>>.'
  194. end
  195. if kidage[k] < 1:
  196. if hour >= 12 and hour < 18:
  197. $babyloc = 'onto the blanket'
  198. '<<$kidname[k]>></a> is laying on a blanket'
  199. else:
  200. $babyloc = 'into the crib'
  201. '<<$kidname[k]>> is asleep, lying in <<$kidPosPro[k]>> crib.'
  202. end
  203. elseif kidage[k] >= 1 and kidage[k] < 7:
  204. if hour >= 9 and hour < 21 and rkidloc < 8:
  205. $totloc = 'playing with toys on the floor'
  206. '<<$kidname[k]>> is playing with toys.'
  207. elseif hour < 9 or hour >= 21:
  208. '<<$kidname[k]>> is asleep in <<$kidPosPro[k]>> bed.'
  209. else
  210. $totloc = 'watching TV'
  211. '<<$kidname[k]>> is watching TV.'
  212. end
  213. elseif kidage[k] >= 7 and kidage[k] < 18:
  214. if hour >= 21 or hour < 8:
  215. '<<$kidname[k]>> is asleep in <<$kidPosPro[k]>> bed.'
  216. elseif hour >= 8 and hour < 9:
  217. '<<$kidname[k]>> is getting ready for school.'
  218. elseif hour >= 9 and hour < 16:
  219. '<<$kidname[k]>> is at school.'
  220. elseif hour >= 16 and hour < 18 and homework[k] < daystart:
  221. $kidloc = 'working on homework'
  222. '<<$kidname[k]>> is working on homework.'
  223. else
  224. $kidloc = 'watching TV'
  225. '<<$kidname[k]>> is watching TV.'
  226. end
  227. end
  228. if kid > 0 and kidage[ks] < 1:
  229. if lactate > 0:
  230. act 'Breast Feed <<$kidname[ks]>>':dyneval($breastfeed)
  231. end
  232. if $babyloc = 'onto the blanket':
  233. act 'Play with <<$kidname[ks]>> (0:20)': dyneval($play)
  234. end
  235. end
  236. if kid > 0 and kidage[ks] >=1 and kidage[ks] <7:
  237. if $totloc = 'playing with toys on the floor':
  238. act 'Play with <<$kidname[ks]>>(0:30)':dyneval($totplay)
  239. elseif $totloc = 'watching tv':
  240. act 'Watch TV with <<$kidname[ks]>>(1:00)':dyneval($tottv)
  241. end
  242. end
  243. if kid > 0 and kidage[ks] >=7 and kidage[ks] < 18:
  244. if $kidloc = 'watching TV':
  245. act 'Watch TV with <<$kidname[ks]>> (1:00)':dyneval($kidtv)
  246. elseif $kidloc = 'working on homework':
  247. act 'Help <<$kidname[ks]>> with homework.':dyneval($homework)
  248. end
  249. end
  250. "<hr>"
  251. end
  252. --- kid ---------------------------------