mod_wlife_rex.qsrc 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. # mod_wlife_rex
  2. if $ARGS[0] = 'gadukino':
  3. *clr & cla
  4. minut += 1
  5. menu_off = 1
  6. gs 'stat'
  7. '<center><img <<$set_imgh>> src="mod/wlife/images/animals/rex_gadukino_'+iif(month > 3 and month < 11, 'summer', 'winter')+'.jpg"></center>'
  8. 'Rex is running around '+iif(month > 3 and month < 11, 'sniffing everything', 'playing in the snow')+'. Your grandmother loves to take care of him, that''s why you don''t have to worry about him while you''re in Gadukino.'
  9. act 'Continue': gt $loc, $loc_arg
  10. end
  11. if $ARGS[0] = 'start':
  12. *clr & cla
  13. minut += 1
  14. menu_off = 1
  15. $location_type = 'private'
  16. gs 'stat'
  17. if objects['chew'] > 0 and rand(1,10) > 5 and rex['chew_day'] ! daystart:
  18. rex['relationship'] += 1
  19. objects['chew'] -= 1
  20. rex['chew_day'] = daystart
  21. '<center><img <<$set_imgh>> src="mod/wlife/images/animals/rex_chew.jpg"></center>'
  22. else
  23. '<center><img <<$set_imgh>> src="mod/wlife/images/animals/rex.jpg"></center>'
  24. end
  25. 'Your dog''s name is <<$rex[''name'']>> and taking care of him is your responsibility. He needs to be fed and walked two times per day and bathed once per week.'+iif((rex['count_walk'] + rex['count_feed'] + rex['count_bath']) = 0, ' You have done all necessary chores.', '')
  26. *nl
  27. if (rex['count_walk'] + rex['count_feed'] + rex['count_bath']) > 0:
  28. '<b>Chores:</b>'
  29. if rex['count_walk'] > 0: '- You have to walk him <<rex[''count_walk'']>>x today.'
  30. if rex['count_feed'] > 0: '- You have to feed him <<rex[''count_feed'']>>x today.'
  31. if rex['count_bath'] > 0: '- You have to bath him <<rex[''count_bath'']>>x this week.'
  32. *nl
  33. end
  34. if rex['temp'] = 1:
  35. rex['temp'] = 0
  36. '<<$rex[''name'']>> jumps up and'+iif(rex['relationship'] > 80, ' happily ', ' ')+'wags his tail, when you approach him. He gives you a wet doggy kiss with his tongue, when you squat down next to him. "Oh, I love you too buddy," you say, softly put your hands on his face and return the kiss.'
  37. elseif rex['relationship'] < 10:
  38. '<<$rex[''name'']>> ignores you, when you approach him. '+iif(objects['chew'] = 0, 'His old chew toy next to him looks horrible. Maybe it''s time to buy him a new one?', '')
  39. elseif rex['relationship'] < 30:
  40. '<<$rex[''name'']>> looks up, when you approach him. '+iif(objects['chew'] = 0, 'His old chew toy next to him looks horrible. Maybe it''s time to buy him a new one?', '')
  41. elseif rex['relationship'] < 60:
  42. '<<$rex[''name'']>> looks up and wags his tail'+iif(rex['relationship'] > 45, ',', ' a bit,')+' when you approach him. '+iif(objects['chew'] = 0, 'His old chew toy next to him looks horrible. Maybe it''s time to buy him a new one?', '')
  43. else
  44. '<<$rex[''name'']>> jumps up and'+iif(rex['relationship'] > 80, ' happily ', ' ')+'wags his tail, when you approach him. '+iif(objects['chew'] = 0, 'His old chew toy next to him looks horrible. Maybe it''s time to buy him a new one?', '')
  45. end
  46. act 'Leave': gt 'mod_wlife_rex', 'end'
  47. if rex['status'] < 3:
  48. gs 'mod_wlife_rex', 'activities_normal'
  49. elseif wl_status['apartment_empty'] = 1 or ($loc ! 'korrPar' and $loc ! 'mod_BroMod_korrPar'):
  50. act 'Choose a normal activity':
  51. cla
  52. act 'Go back': gt 'mod_wlife_rex', 'start'
  53. gs 'mod_wlife_rex', 'activities_normal'
  54. end
  55. act 'Have sex with him':
  56. cla
  57. act 'Go back': gt 'mod_wlife_rex', 'start'
  58. gs 'mod_wlife_rex', 'activities_sexual'
  59. end
  60. else
  61. '<br>You can only ''play'' with your dog, when everybody else is away.'
  62. gs 'mod_wlife_rex', 'activities_normal'
  63. end
  64. end
  65. !!--- Activities: Actions ---
  66. if $ARGS[0] = 'activities_normal':
  67. wl_lives_with_parents = func('homes_properties', 'is_current_home', 'parents_home')
  68. if rex['count_feed'] > 0 and hour > (rex['timer_feed'] + 3) and (wl_lives_with_parents ! 0 or (wl_lives_with_parents = 0 and objects['dog_food'] > 0)):
  69. act 'Feed him (0:03)': gt 'mod_wlife_rex', 'feed'
  70. elseif rex['count_feed'] > 0 and hour > (rex['timer_feed'] + 3) and wl_lives_with_parents = 0 and objects['dog_food'] <= 0:
  71. '<br>You don''t have dog food to feed him.'
  72. end
  73. if objects['treats'] > 0 and rex['timer_treat'] ! daystart:
  74. act 'Give him a treat (0:01)': gt 'mod_wlife_rex', 'treat'
  75. elseif objects['treats'] = 0 and rex['timer_treat'] ! daystart:
  76. '<br>You don''t have any treats to give him.'
  77. end
  78. if $clothingworntype = 'nude':
  79. '<br>You should put on some clothes if you want to go for a walk with <<$rex[''name'']>>.'
  80. else
  81. if rex['count_walk'] > 0 and hour > (rex['timer_walk'] + 3):
  82. act 'Go for a walk with him '+iif(daystage = 5 or sunWeather = 0, '(0:10)', '(0:15)')+' ': gt 'mod_wlife_rex', 'exercise', 'walk'
  83. if rex['count_run'] = 0 and $clothingworntype = 'danilovich_outfits' and $shoeworntype = 'danilovich' and hour > 6 and hour < 22:
  84. act 'Go for a run with him (1:00)': gt 'pet_dog', 'exercise', 'run'
  85. elseif rex['count_run'] = 0 and $clothingworntype = 'danilovich_outfits' and $shoeworntype = 'danilovich' and (hour < 7 or hour > 22):
  86. '<br>It''s too '+iif(hour < 7, 'early', 'late')+' to go for a run with him.'
  87. end
  88. end
  89. end
  90. if rex['count_bath'] > 0: act 'Bath <<$rex[''name'']>> (0:25)': gt 'mod_wlife_rex', 'bath'
  91. if rex['play_inside'] ! daystart and hour < 23 and objects['toys'] = 1: act 'Play with him inside (0:20)': gt 'mod_wlife_rex', 'play_inside'
  92. killvar 'wl_lives_with_parents'
  93. end
  94. !!--- Activities ---
  95. if $ARGS[0] = 'feed':
  96. *clr & cla
  97. minut += 3
  98. rex['relationship'] += 1
  99. rex['timer_feed'] = hour
  100. rex['count_feed'] -= 1
  101. if func('homes_properties', 'is_current_home', 'parents_home') = 0: objects['dog_food'] -= 1
  102. gs 'stat'
  103. '<center><img <<$set_imgh>> src="mod/wlife/images/activities/feeding_'+rand(0,1)+'.jpg"></center>'
  104. '"Come '+iif(rand(0,1) = 0, 'boy', '<<$rex[''name'']>>')+' let''s get you something to eat," you say and go into the kitchen. He '+iif(rand(0,1) = 0, 'follows you and watches you fill his bowl with big thankful eyes,', 'runs into the kitchen the second he hears you filling his bowl,')+' before he eagerly digs in.'
  105. *nl
  106. if func('homes_properties', 'is_current_home', 'parents_home') = 0: 'You have enough dog food for <<objects[''dog_food'']>> meals.'
  107. act 'Let him eat': gt 'mod_wlife_rex', 'end'
  108. end
  109. if $ARGS[0] = 'treat':
  110. *clr & cla
  111. minut += 1
  112. rex['relationship'] += 2
  113. objects['treats'] -= 1
  114. rex['timer_treat'] = daystart
  115. gs 'stat'
  116. '<center><img <<$set_imgh>> src="mod/wlife/images/activities/treat.jpg"></center>'
  117. '"Who is a good boy?" you ask him with a smile and pull one of his favorite treats out of your pocket. He sniffs and his tail wags back and forth. "Who is a good boy?" you ask again. He barks. "Yes you are," you agree and hold out the treat. He snatches it right out of your hand and happily goes back to his dog basked chewing enthusiastically.'
  118. act 'Continue': gt 'mod_wlife_rex', 'start'
  119. end
  120. if $ARGS[0] = 'exercise':
  121. *clr & cla
  122. rex['count_walk'] -= 1
  123. $location_type = 'public_outside'
  124. if $ARGS[1] = 'walk':
  125. rex['timer_walk'] = hour
  126. rex['relationship'] += 1
  127. minut += iif(daystage = 5 or sunWeather = 0, 10, 15)
  128. act 'Return home': gt 'mod_wlife_rex', 'end'
  129. if daystage = 5:
  130. '<center><img <<$set_imgh>> src="mod/wlife/images/activities/walk_night_'+rand(0,2)+'.jpg"></center>'
  131. 'It''s too '+iif(hour < 9, 'early', 'late')+' to go for a long walk or play with him. You only take him around the neighborhood until he has finished his business.'
  132. elseif sunWeather = 0:
  133. '<center><img <<$set_imgh>> src="mod/wlife/images/activities/walk_rain.jpg"></center>'
  134. 'The weather is horrible and a long walk is out of the question. You only walk with him around the neighborhood until he has finished his business.'
  135. else
  136. '<center><img <<$set_imgh>> src="mod/wlife/images/activities/walk_day_'+rand(0,4)+'.jpg"></center>'
  137. 'He stops every few meters to sniff something interesting, happily greet another dog or mark his territory. Sometimes you stay and chat with another dog owner for a minute or two before you finally reach the park. You untie his leash, when you reach the area marked for dogs, and let him roam free for a while.'
  138. act 'Play with him (0:10)':
  139. *clr & cla
  140. minut += 10
  141. pcs_mood += 10
  142. rex['relationship'] += iif(objects['toys'] = 1, 2, 1)
  143. gs 'stat'
  144. '<center><img <<$set_imgh>> src="mod/wlife/images/activities/play_outside_'+rand(0,3)+'.jpg"></center>'
  145. 'You '+iif(objects['toys'] = 1, 'pull out one of your balls', 'pick up a branch')+'. He wags his tail happily knowing what''s going to happen next. "Catch," you say and throw the '+iif(objects['toys'] = 1, 'balls', 'branch')+' as far as you can. He barks and runs after it, picking it up from the ground and proudly returns it to you. '+iif(objects['toys'] = 1, 'He seems to enjoy playing fetch even more with his toy balls. ', '')+'You continue this for ten minutes before you finally...'
  146. act '... return home': gt 'mod_wlife_rex', 'end'
  147. end
  148. end
  149. else
  150. rex['timer_walk'] = hour
  151. rex['relationship'] += 3
  152. pcs_mood += 20
  153. sunWeather = 1
  154. gs 'sweat', 'add', 20
  155. gs 'exercise', 'tier1', 60, 'run_exp'
  156. fat -= rand(1,3)
  157. '<center><img <<$set_imgh>> src="mod/wlife/images/activities/run_'+iif(daystage = 1 or daystage = 3 or daystage = 4 or daystage = 6, 'sunset', rand(0,1))+'.jpg"></center>'
  158. '<<$rex[''name'']>> runs around you excitingly as you put on your running shoes. He really loves to go on a run with you. "Yes," you say with a smile. "We''re going for a run. Are you ready?" He wags his tail. "Alright, let''s go <<$rex[''name'']>>."'
  159. 'You head out and start your run. Most of the time <<$rex[''name'']>> follows obediently, sometimes he stops to sniff or mark his territory, but he always returns to your side, when you''re too far away.'
  160. 'An hour later you return home exhausted and sweaty.'
  161. act 'Continue': gt 'mod_wlife_rex', 'end'
  162. end
  163. gs 'stat'
  164. end
  165. if $ARGS[0] = 'play_inside':
  166. *clr & cla
  167. minut += 20
  168. pcs_mood += 20
  169. rex['relationship'] += 2
  170. rex['play_inside'] = daystart
  171. gs 'stat'
  172. '<center><img <<$set_imgh>> src="mod/wlife/images/activities/play_inside_'+rand(0,3)+'.jpg"></center>'
  173. 'You cavort with <<$rex[''name'']>> in '+iif($loc = 'mod_wlife_hotelroom', 'your hotel room', 'the apartment')+' and lavish him with all the attention a good boy like him deserves. You get one of his toy balls and roll it around the apartment playing a safe version of indoor catch. He still loves it or to be more accurate he loves the attention he gets. At the end you two cuddle up on the couch and you spend the last few minutes casually stroking his soft fur.'
  174. act 'Stop playing': gt 'mod_wlife_rex', 'end'
  175. end
  176. if $ARGS[0] = 'bath':
  177. *clr & cla
  178. minut += 25
  179. rex['count_bath'] -= 1
  180. rex['relationship'] += 3
  181. gs 'stat'
  182. '<center><img <<$set_imgh>> src="mod/wlife/images/activities/bath.jpg"></center>'
  183. '"Come <<$rex[''name'']>>, time to take a bath," you say and open the door to the bathroom. <<$rex[''name'']>> looks a bit confused. "Come on boy," you say clicking your fingers and he finally follows you inside.'
  184. 'The first step is brushing his fur, because matted hair holds water which could result in irritated skin. Afterwards you try to get him inside the '+iif($loc = 'mod_wlife_hotelroom', 'shower.', 'tub.')+' It takes a few tries to convince him, but he follows you inside after you have taken of your '+iif(CloSkirtShortness > 0, 'skirt.', 'pants.')
  185. '"Stay," you say in a calm and reassuring voice and only use lukewarm water and a gentle dog shampoo.'
  186. act 'Continue': gt 'mod_wlife_rex', 'end'
  187. end
  188. !!--- Name ---
  189. if $ARGS[0] = 'name':
  190. *clr & cla
  191. menu_off = 1
  192. rex['status'] = 1
  193. rex['count_walk_base'] = 2
  194. rex['count_feed_base'] = 2
  195. rex['count_bath_base'] = 1
  196. rex['count_walk'] = rex['count_walk_base']
  197. rex['count_feed'] = rex['count_feed_base']
  198. rex['count_bath'] = rex['count_bath_base']
  199. gs 'stat'
  200. '<center><img <<$set_imgh>> src="mod/wlife/images/animals/rex.jpg"></center>'
  201. $rex['name'] = input("What is the name of your dog? (Leave blank for Rex)")
  202. if $rex['name'] = '': $rex['name'] = 'Rex'
  203. act 'Continue': $status['dog'] = 'active' & gt 'mod_wlife_rex', 'end'
  204. act 'Remove the dog (can be restored later in the cheatmenu)': $status['dog'] = 'blocked' & gt 'mod_wlife_rex', 'end'
  205. end
  206. !!--- End ---
  207. if $ARGS[0] = 'end':
  208. gt $loc, $loc_arg
  209. end
  210. --- mod_wlife_rex ---------------------------------