pet_dog.qsrc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. # pet_dog
  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 = 'privat'
  16. gs 'stat'
  17. if wl_objects['chew'] > 0 and rand(1,10) > 5 and wl_rex['chew_day'] ! daystart:
  18. wl_rex['relationship'] += 1
  19. wl_objects['chew'] -= 1
  20. wl_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 <<$wl_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((wl_rex['count_walk'] + wl_rex['count_feed'] + wl_rex['count_bath']) = 0, ' You have done all necessary chores.', '')
  26. *nl
  27. if (wl_rex['count_walk'] + wl_rex['count_feed'] + wl_rex['count_bath']) > 0:
  28. '<b>Chores:</b>'
  29. if wl_rex['count_walk'] > 0: '- You have to walk him <<wl_rex[''count_walk'']>>x today.'
  30. if wl_rex['count_feed'] > 0: '- You have to feed him <<wl_rex[''count_feed'']>>x today.'
  31. if wl_rex['count_bath'] > 0: '- You have to bath him <<wl_rex[''count_bath'']>>x this week.'
  32. *nl
  33. end
  34. if wl_rex['relationship'] < 10:
  35. '<<$wl_rex[''name'']>> ignores you, when you approach him. '+iif(wl_objects['chew'] = 0, 'His old chew toy next to him looks horrible. Maybe it''s time to buy him a new one?', '')
  36. elseif wl_rex['relationship'] < 30:
  37. '<<$wl_rex[''name'']>> looks up, when you approach him. '+iif(wl_objects['chew'] = 0, 'His old chew toy next to him looks horrible. Maybe it''s time to buy him a new one?', '')
  38. elseif wl_rex['relationship'] < 60:
  39. '<<$wl_rex[''name'']>> looks up and wags his tail'+iif(wl_rex['relationship'] > 45, ',', ' a bit,')+' when you approach him. '+iif(wl_objects['chew'] = 0, 'His old chew toy next to him looks horrible. Maybe it''s time to buy him a new one?', '')
  40. else
  41. '<<$wl_rex[''name'']>> jumps up and'+iif(wl_rex['relationship'] > 80, ' happily ', ' ')+'wags his tail, when you approach him. '+iif(wl_objects['chew'] = 0, 'His old chew toy next to him looks horrible. Maybe it''s time to buy him a new one?', '')
  42. end
  43. act 'Leave': gt $loc, $loc_arg
  44. end
  45. end
  46. end
  47. !!--- Activities: Actions ---
  48. if $ARGS[0] = 'activities_normal':
  49. if wl_rex['count_feed'] > 0 and hour > (wl_rex['timer_feed'] + 3) and (curr_home = 2 or (curr_home ! 2 and wl_objects['dog_food'] > 0)):
  50. act 'Feed him (0:03)': gt 'pet_dog', 'feed'
  51. elseif wl_rex['count_feed'] > 0 and hour > (wl_rex['timer_feed'] + 3) and curr_home ! 2 and wl_objects['dog_food'] <= 0:
  52. '<br>You don''t have dog food to feed him.'
  53. end
  54. if wl_objects['treats'] > 0 and wl_rex['timer_treat'] ! daystart:
  55. act 'Give him a treat (0:01)': gt 'pet_dog', 'treat'
  56. elseif wl_objects['treats'] = 0 and wl_rex['timer_treat'] ! daystart:
  57. '<br>You don''t have any treats to give him.'
  58. end
  59. if $clothingworntype = 'nude':
  60. '<br>You should put on some clothes if you want to go for a walk with <<§wl_rex[''name'']>>.'
  61. else
  62. if wl_rex['count_walk'] > 0 and hour > (wl_rex['timer_walk'] + 3):
  63. act 'Go for a walk with him '+iif(daystage = 5 or sunWeather = 0, '(0:10)', '(0:15)')+' ': gt 'pet_dog', 'exercise', 'walk'
  64. if wl_rex['count_run'] = 0 and $clothingworntype = 'danilovich' and $shoeworntype = 'danilovich' and daystage ! 5:
  65. act 'Go for a run with him (1:00)': gt 'pet_dog', 'exercise', 'run'
  66. elseif wl_rex['count_run'] = 0 and $clothingworntype = 'exercise' and $shoeworntype = 'trainers' and hour > 6 and hour < 22:
  67. '<br>It''s too '+iif(hour < 7, 'early', 'late')+' to go for a run with him.'
  68. end
  69. end
  70. end
  71. if wl_rex['count_bath'] > 0: act 'Bath <<$wl_rex[''name'']>> (0:25)': gt 'pet_dog', 'bath'
  72. if wl_rex['play_inside'] ! daystart and hour < 23 and wl_objects['toys'] = 1: act 'Play with him inside (0:20)': gt 'pet_dog', 'play_inside'
  73. end
  74. !!--- Activities ---
  75. if $ARGS[0] = 'feed':
  76. *clr & cla
  77. minut += 3
  78. wl_rex['relationship'] += 1
  79. wl_rex['timer_feed'] = hour
  80. wl_rex['count_feed'] -= 1
  81. if curr_home ! 2: wl_objects['dog_food'] -= 1
  82. gs 'stat'
  83. '<center><img <<$set_imgh>> src="mod/wlife/images/activities/feeding_'+rand(0,1)+'.jpg"></center>'
  84. '"Come '+iif(rand(0,1) = 0, 'boy', '<<$wl_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.'
  85. *nl
  86. if curr_home ! 2: 'You have enough dog food for <<wl_objects[''dog_food'']>> meals.'
  87. act 'Let him eat': gt $loc, $loc_arg
  88. end
  89. if $ARGS[0] = 'treat':
  90. *clr & cla
  91. minut += 1
  92. wl_rex['relationship'] += 2
  93. wl_objects['treats'] -= 1
  94. wl_rex['timer_treat'] = daystart
  95. gs 'stat'
  96. '<center><img <<$set_imgh>> src="mod/wlife/images/activities/treat.jpg"></center>'
  97. '"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.'
  98. act 'Continue': gt 'pet_dog', 'start'
  99. end
  100. if $ARGS[0] = 'exercise':
  101. *clr & cla
  102. wl_rex['count_walk'] -= 1
  103. $location_type = 'public_outside'
  104. if $ARGS[1] = 'walk':
  105. wl_rex['timer_walk'] = hour
  106. wl_rex['relationship'] += 1
  107. minut += iif(daystage = 5 or sunWeather = 0, 10, 15)
  108. act 'Return home': gt $loc, $loc_arg, 'check'
  109. if daystage = 5:
  110. '<center><img <<$set_imgh>> src="mod/wlife/images/activities/walk_night_'+rand(0,2)+'.jpg"></center>'
  111. '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.'
  112. elseif sunWeather = 0:
  113. '<center><img <<$set_imgh>> src="mod/wlife/images/activities/walk_rain.jpg"></center>'
  114. '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.'
  115. else
  116. '<center><img <<$set_imgh>> src="mod/wlife/images/activities/walk_day_'+rand(0,4)+'.jpg"></center>'
  117. '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.'
  118. act 'Play with him (0:10)':
  119. *clr & cla
  120. minut += 10
  121. pcs_mood += 10
  122. wl_rex['relationship'] += iif(wl_objects['toys'] = 1, 2, 1)
  123. gs 'stat'
  124. '<center><img <<$set_imgh>> src="mod/wlife/images/activities/play_outside_'+rand(0,3)+'.jpg"></center>'
  125. 'You '+iif(wl_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(wl_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(wl_objects['toys'] = 1, 'He seems to enjoy playing fetch even more with his toy balls. ', '')+'You continue this for ten minutes before you finally...'
  126. act '... return home': gt $loc, $loc_arg
  127. end
  128. end
  129. else
  130. wl_rex['timer_walk'] = hour
  131. wl_rex['relationship'] += 3
  132. pcs_mood += 20
  133. sunWeather = 1
  134. gs 'sweat', 'add', 20
  135. gs 'exercise', 'tier1', 60, 'run_exp'
  136. fat -= rand(1,3)
  137. '<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>'
  138. '<<$wl_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 <<$wl_rex[''name'']>>."'
  139. 'You head out and start your run. Most of the time <<$wl_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.'
  140. 'An hour later you return home exhausted and sweaty.'
  141. act 'Continue': gt $loc, $loc_arg
  142. end
  143. gs 'stat'
  144. end
  145. if $ARGS[0] = 'play_inside':
  146. *clr & cla
  147. minut += 20
  148. pcs_mood += 20
  149. wl_rex['relationship'] += 2
  150. wl_rex['play_inside'] = daystart
  151. gs 'stat'
  152. '<center><img <<$set_imgh>> src="mod/wlife/images/activities/play_inside_'+rand(0,3)+'.jpg"></center>'
  153. 'You cavort with <<$wl_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.'
  154. act 'Stop playing': gt $loc, $loc_arg
  155. end
  156. if $ARGS[0] = 'bath':
  157. *clr & cla
  158. minut += 25
  159. wl_rex['count_bath'] -= 1
  160. wl_rex['relationship'] += 3
  161. gs 'stat'
  162. '<center><img <<$set_imgh>> src="mod/wlife/images/activities/bath.jpg"></center>'
  163. '"Come <<$wl_rex[''names'']>>, time to take a bath," you say and open the door to the bathroom. <<$wl_rex[''name'']>> looks a bit confused. "Come on boy," you say clicking your fingers and he finally follows you inside.'
  164. '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.')
  165. '"Stay," you say in a calm and reassuring voice and only use lukewarm water and a gentle dog shampoo.'
  166. act 'Continue': gt $loc, $loc_arg
  167. end
  168. !!--- Name ---
  169. if $ARGS[0] = 'name':
  170. *clr & cla
  171. menu_off = 1
  172. wl_rex['status'] = 1
  173. wl_rex['count_walk_base'] = 2
  174. wl_rex['count_feed_base'] = 2
  175. wl_rex['count_bath_base'] = 1
  176. wl_rex['count_walk'] = wl_rex['count_walk_base']
  177. wl_rex['count_feed'] = wl_rex['count_feed_base']
  178. wl_rex['count_bath'] = wl_rex['count_bath_base']
  179. gs 'stat'
  180. '<center><img <<$set_imgh>> src="mod/wlife/images/animals/rex.jpg"></center>'
  181. $wl_rex['name'] = input("What is the name of your dog? (Leave blank for Rex)")
  182. if $wl_rex['name'] = '': $wl_rex['name'] = 'Rex'
  183. act 'Continue': $wl_status['dog'] = 'active' & gt $loc, $loc_arg
  184. act 'Remove the dog (can be restored later in the cheatmenu)': $wl_status['dog'] = 'blocked' & gt $loc, $loc_arg
  185. end
  186. --- pet_dog ---------------------------------