pet_dog.qsrc 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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="images/characters/shared/rex/rex_gadukino_'+iif(month > 3 and month < 11, 'summer', 'winter')+'.jpg"></center>'
  8. '<<$rex[''name'']>> is running around '+iif(month > 3 and month < 11, 'sniffing everything', 'playing in the snow')+'. Your grandmother loves taking care of him, so 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 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="images/characters/shared/rex/rex_chew.jpg"></center>'
  22. else
  23. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/mall/pet shop/pets/dog.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['relationship'] < 10:
  35. '<<$rex[''name'']>> ignores you when you approach. '+iif(objects['chew'] = 0, 'His old chew toy has seen better days. Maybe it''s time to buy him a new one?', '')
  36. elseif rex['relationship'] < 30:
  37. '<<$rex[''name'']>> looks up when you approach. '+iif(objects['chew'] = 0, 'His old chew toy has seen better days. Maybe it''s time to buy him a new one?', '')
  38. elseif rex['relationship'] < 60:
  39. '<<$rex[''name'']>> looks up and wags his tail'+iif(rex['relationship'] > 45, ',', ' a bit')+' when you approach. '+iif(objects['chew'] = 0, 'His old chew toy has seen better days. Maybe it''s time to buy him a new one?', '')
  40. else
  41. '<<$rex[''name'']>> jumps up and'+iif(rex['relationship'] > 80, ' happily ', ' ')+'wags his tail when you approach. '+iif(objects['chew'] = 0, 'His old chew toy has seen better days. Maybe it''s time to buy him a new one?', '')
  42. end
  43. act 'Leave': gt $loc, $loc_arg
  44. end
  45. !!--- Activities: Actions ---
  46. if $ARGS[0] = 'activities_normal':
  47. if rex['count_feed'] > 0 and hour > (rex['timer_feed'] + 3) and (curr_home = 2 or (curr_home ! 2 and objects['dog_food'] > 0)):
  48. act 'Feed him (0:03)': gt 'pet_dog', 'feed'
  49. elseif rex['count_feed'] > 0 and hour > (rex['timer_feed'] + 3) and curr_home ! 2 and objects['dog_food'] <= 0:
  50. '<br>You don''t have dog food to feed him.'
  51. end
  52. if objects['treats'] > 0 and rex['timer_treat'] ! daystart:
  53. act 'Give him a treat (0:01)': gt 'pet_dog', 'treat'
  54. elseif objects['treats'] = 0 and rex['timer_treat'] ! daystart:
  55. '<br>You don''t have any treats to give him.'
  56. end
  57. if $clothingworntype = 'nude':
  58. '<br>You should put some clothes on if you want to go for a walk with <<$rex[''name'']>>.'
  59. else
  60. if rex['count_walk'] > 0 and hour > (rex['timer_walk'] + 3):
  61. act 'Go for a walk with him '+iif(daystage = 5 or sunWeather = 0, '(0:10)', '(0:15)')+' ': gt 'pet_dog', 'exercise', 'walk'
  62. if rex['count_run'] = 0 and $clothingworntype = 'danilovich' and $shoeworntype = 'danilovich' and daystage ! 5:
  63. act 'Go for a run with him (1:00)': gt 'pet_dog', 'exercise', 'run'
  64. elseif rex['count_run'] = 0 and $clothingworntype = 'exercise' and $shoeworntype = 'trainers' and hour > 6 and hour < 22:
  65. '<br>It''s too '+iif(hour < 7, 'early', 'late')+' to go for a run with him.'
  66. end
  67. end
  68. end
  69. if rex['count_bath'] > 0: act 'Bath <<$rex[''name'']>> (0:25)': gt 'pet_dog', 'bath'
  70. if rex['play_inside'] ! daystart and hour < 23 and objects['toys'] = 1: act 'Play with him inside (0:20)': gt 'pet_dog', 'play_inside'
  71. end
  72. !!--- Activities ---
  73. if $ARGS[0] = 'feed':
  74. *clr & cla
  75. minut += 3
  76. rex['relationship'] += 1
  77. rex['timer_feed'] = hour
  78. rex['count_feed'] -= 1
  79. if curr_home ! 2: objects['dog_food'] -= 1
  80. gs 'stat'
  81. '<center><img <<$set_imgh>> src="images/characters/shared/rex/feeding_'+rand(0,1)+'.jpg"></center>'
  82. '"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 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.'
  83. *nl
  84. if curr_home ! 2: 'You have enough dog food for <<objects[''dog_food'']>> meals.'
  85. act 'Let him eat': gt $loc, $loc_arg
  86. end
  87. if $ARGS[0] = 'treat':
  88. *clr & cla
  89. minut += 1
  90. rex['relationship'] += 2
  91. objects['treats'] -= 1
  92. rex['timer_treat'] = daystart
  93. gs 'stat'
  94. '<center><img <<$set_imgh>> src="images/characters/shared/rex/treat.jpg"></center>'
  95. '"Who''s a good boy?" you ask with a smile and pull one of his favorite treats out of your pocket. He sniffs and his tail wags back and forth. "Who''s a good boy?" you ask again and he barks in response. "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 basket.'
  96. act 'Continue': gt 'pet_dog', 'start'
  97. end
  98. if $ARGS[0] = 'exercise':
  99. *clr & cla
  100. rex['count_walk'] -= 1
  101. $location_type = 'public_outside'
  102. if $ARGS[1] = 'walk':
  103. rex['timer_walk'] = hour
  104. rex['relationship'] += 1
  105. minut += iif(daystage = 5 or sunWeather = 0, 10, 15)
  106. act 'Return home': gt $loc, $loc_arg, 'check'
  107. if daystage = 5:
  108. '<center><img <<$set_imgh>> src="images/characters/shared/rex/walk_night_'+rand(0,2)+'.jpg"></center>'
  109. '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.'
  110. elseif sunWeather = 0:
  111. '<center><img <<$set_imgh>> src="images/characters/shared/rex/walk_rain.jpg"></center>'
  112. 'The weather is horrible and a long walk is out of the question. You only walk him around the neighborhood until he has finished his business.'
  113. else
  114. '<center><img <<$set_imgh>> src="images/characters/shared/rex/walk_day_'+rand(0,4)+'.jpg"></center>'
  115. 'He stops every few meters to sniff something interesting, happily greet another dog or mark his territory and you occasionally 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.'
  116. act 'Play with him (0:10)':
  117. *clr & cla
  118. minut += 10
  119. pcs_mood += 10
  120. rex['relationship'] += iif(objects['toys'] = 1, 2, 1)
  121. gs 'stat'
  122. '<center><img <<$set_imgh>> src="images/characters/shared/rex/play_outside_'+rand(0,3)+'.jpg"></center>'
  123. 'You '+iif(objects['toys'] = 1, 'pull out one of the rubber balls', 'pick up a branch')+' and he happily wags his tail, knowing what''s going to happen next. "Catch!" you say and throw the '+iif(objects['toys'] = 1, 'ball', 'branch')+' as far as you can. He barks and runs after it before picking it up and proudly returning it to you. '+iif(objects['toys'] = 1, 'He seems to enjoy playing fetch even more with his toy ball. ', '')+'You continue this for ten minutes before you finally...'
  124. act '... return home': gt $loc, $loc_arg
  125. end
  126. end
  127. else
  128. rex['timer_walk'] = hour
  129. rex['relationship'] += 3
  130. pcs_mood += 20
  131. sunWeather = 1
  132. gs 'sweat', 'add', 20
  133. gs 'exercise', 'tier1', 60, 'run'
  134. fat -= rand(1,3)
  135. '<center><img <<$set_imgh>> src="images/characters/shared/rex/run_'+iif(daystage = 1 or daystage = 3 or daystage = 4 or daystage = 6, 'sunset', rand(0,1))+'.jpg"></center>'
  136. '<<$rex[''name'']>> excitedly runs around you as you put on your running shoes. He loves going on runs 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 boy!"'
  137. 'You head out and start your run. <<$rex[''name'']>> follows obediently, sometimes stopping to sniff or mark his territory, but he always returns to your side before you get too far away.'
  138. 'You return home an hour later, exhausted and sweaty.'
  139. act 'Continue': gt $loc, $loc_arg
  140. end
  141. gs 'stat'
  142. end
  143. if $ARGS[0] = 'play_inside':
  144. *clr & cla
  145. minut += 20
  146. pcs_mood += 20
  147. rex['relationship'] += 2
  148. rex['play_inside'] = daystart
  149. gs 'stat'
  150. '<center><img <<$set_imgh>> src="images/characters/shared/rex/play_inside_'+rand(0,3)+'.jpg"></center>'
  151. 'You cavort with <<$rex[''name'']>> and lavish him with all the attention he deserves. You get one of his toy balls and roll it around the apartment, playing a safe version of indoor catch. You cuddle up on the couch with him and spend the last few minutes stroking his soft fur.'
  152. act 'Stop playing': gt $loc, $loc_arg
  153. end
  154. if $ARGS[0] = 'bath':
  155. *clr & cla
  156. minut += 25
  157. rex['count_bath'] -= 1
  158. rex['relationship'] += 3
  159. gs 'stat'
  160. '<center><img <<$set_imgh>> src="images/characters/shared/rex/bath.jpg"></center>'
  161. '"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.'
  162. 'You brush his fur before trying to get him into the tub. It takes a few tries to convince him, but he eventually listens.'
  163. '"Stay," you say in a calm and reassuring voice and gently start scrubbing him with dog shampoo before rinsing and drying his fur. Once you''re finished, you let him leave the bathroom.'
  164. act 'Continue': gt $loc, $loc_arg
  165. end
  166. !!--- Name ---
  167. if $ARGS[0] = 'name':
  168. *clr & cla
  169. menu_off = 1
  170. rex['status'] = 1
  171. rex['count_walk_base'] = 2
  172. rex['count_feed_base'] = 2
  173. rex['count_bath_base'] = 1
  174. rex['count_walk'] = rex['count_walk_base']
  175. rex['count_feed'] = rex['count_feed_base']
  176. rex['count_bath'] = rex['count_bath_base']
  177. gs 'stat'
  178. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/mall/pet shop/pets/dog.jpg"></center>'
  179. $rex['name'] = input("What is the name of your dog? (Leave blank for Rex)")
  180. if $rex['name'] = '': $rex['name'] = 'Rex'
  181. act 'Continue': $status['dog'] = 'active' & gt $loc, $loc_arg
  182. act 'Remove the dog (can be restored later in the cheat menu)': $status['dog'] = 'blocked' & gt $loc, $loc_arg
  183. end
  184. --- pet_dog ---------------------------------