mod_bestmod.qsrc 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # mod_bestmod
  2. !input mod entry point here. this will be checked on every location, please keep it clean and brief to avoid game lag
  3. bm_rand = rand(1, 100)
  4. if $loc = 'Gadsarai' and $metka = '' and menu_off = 0:
  5. !! Random values here multiplied from original so I can use bm_rand
  6. if bm_rand <= 15:
  7. gt 'mod_bestmod_gadsarai', 'bandit'
  8. elseif mirabandit > 0 and bm_rand >= 70:
  9. gt 'mod_bestmod_gadsarai', 'mira'
  10. elseif npc_horny['A800'] >= 20 and banditfrend >= 10:
  11. gt 'mod_bestmod_bandit'
  12. else
  13. *nl
  14. 'Sitting near the barn is your grandparent''s <a href="exec:gt ''mod_bestmod_bandit''">large dog, named Bandit</a>'
  15. end
  16. end
  17. if $loc = 'Miroslava' and npc_QW['A60'] >= 30 and hour < 19 and month >= 5 and month <= 9 and MiraLoc ! 3: gs 'mod_bestmod_mira', 'third_wish'
  18. if $loc = 'zoomagazine' and $metka = 'start' and menu_off = 0: gs 'mod_bestmod_petshop', 'buy_dog'
  19. if $loc = 'korr' and $metka = '' and sobaka = 1 and menu_off = 0:'Your dog, <a href="exec:gt ''mod_bestmod_petdog'', ''start''"><<$namesob>></a>, is lying on the floor near the entrance.'
  20. if $loc = 'korr2x' and $metka = '' and sobaka = 1 and menu_off = 0:'Near the entrance to the bedroom is your dog, <a href="exec:gt ''mod_bestmod_petdog'',''start''"><<$namesob>></a>'
  21. if ($loc = 'sitr' or $loc = 'sitr2x') and menu_off = 0: gs 'mod_bestmod_sitr'
  22. if ($loc = 'kuhr' or $loc = 'kuhr2x') and menu_off = 0: gs 'mod_bestmod_kuhr'
  23. if $loc = 'kafe' and metka = 'start' and menu_off = 0 and QWdogReiq = 3 and week = 7 and hour >= 12: act 'Sit down and wait for Margaret': gt 'mod_bestmod_margo', 'margo'
  24. !! Probably replace houserabrand with another random factor which takes into account PC''s
  25. !! beast exp and relationship with pet.
  26. if $curloc = 'bed' and ((bm_pet_dog_rel > 10 and pcs_horny > 60) or (pcs_horny > 80 and alko > 3) or bm_beast['exp'] > 6) and housrA = 1 and bm_dog_once_day ! daystart and rand(0, 100) < 4: gt 'mod_bestmod_bed', 'sog1'
  27. if $loc = 'glake' and $selact = 'Go sunbathing (30 minutes)' and $clothingworntype = 'nude' and bm_beast['exp'] > 0 and rand(1,10) = 5: gt 'mod_bestmod_lake_dog', 'start'
  28. if $locclass = 'park' and $loc ! 'parks' and $metka = 'start' and (hour >= 20 or hour < 6) and menu_off = 0:
  29. *nl
  30. if $loc = 'lug':
  31. 'You see a stray dog wandering around just behind the tree line.'
  32. else
  33. 'You see a stray dog sniffing around some trash.'
  34. end
  35. act 'Go up to the stray dog': gt 'mod_bestmod_park_dog', 'start', $loc
  36. end
  37. if $loc = 'postdeliveries' and $ARGS[0] = '10':
  38. if banditfrend = 1:
  39. act 'Try to calm the dog':
  40. cla
  41. *clr
  42. pcs_mood += 10
  43. gs 'stat'
  44. if temper > 0: '<center><img <<$set_imgh>> src="images/locations/shared/postoffice/happydog.jpg"></center>'
  45. if temper <= 0: '<center><img <<$set_imgh>> src="images/locations/shared/postoffice/happydogw.jpg"></center>'
  46. 'Your encounters with Bandit have taught you a thing or two about dogs, and somewhat to your own surprise the dog responds very well to your soothing voice: "Shhh! Who''s a good boy?"'
  47. 'The dog quiets down almost immediately, and when you enter the yard it comes at you wagging its tail. You give it a soft pat on the head, just as the owner comes out of his house: "Wha... how di..."'
  48. 'He looks at his dog, and back to you, completely baffled. After you collect his signature, you give the dog another pat on the head and continue your round with a smile on your face.'
  49. act 'Continue your round':gt 'postdeliveries', 'resume'
  50. end
  51. end
  52. end
  53. !!$mod_beast_var['StatText'] = $stattxt
  54. !!! this finds the begining of the arousal bar (could be any regex, though)
  55. !!mod_beast_var['StartPosition'] = strpos($mod_beast_var['StatText'],'<font face="courier new" size = 3>')
  56. !!
  57. !!! break stat win text into 2 part, before and after the token you found.
  58. !!$mod_beast_var['FrontStr'] = mid($mod_beast_var['StatText'],1,mod_beast_var['StartPosition']-1)
  59. !!$mod_beast_var['EndStr'] = mid($mod_beast_var['StatText'],mod_beast_var['StartPosition'],len($mod_beast_var['StatText']))
  60. !!
  61. !!! clear the text in the window
  62. !!clr
  63. !!
  64. !!! build the new window text with your addition
  65. !!$mod_beast_var['NewWindowText'] = $mod_beast_var['FrontStr'] + "Your New Text" + $mod_beast_var['EndStr']
  66. !!
  67. !!! write new out to the window
  68. !!p $mod_beast_var['NewWindowText']
  69. if $shoplocation = 'grocery':
  70. *pl '<center><table align="center" width=80%>'
  71. *p func ('$stock_item', 5, 'Dog treat', 100, 'bm_dog_treat', $curloc, '', iif(bag > 0, 0, 1), 'You need a handbag')
  72. *p '</table></center>'
  73. end
  74. if $curloc = 'din_bad' and $ARGS[0] = 'd_bag':
  75. if bm_dog_treat > 0: 'You have <b><<bm_dog_treat>></b> dog treat'+iif(bm_dog_treat > 1, 's ', ' ')+'left in your purse.'
  76. end
  77. !! Some of the variables used in this mod
  78. !! Edit: Use stat['beast'] instead of bm_beast['exp']:
  79. !! bm_beast[''exp''] Beastiality experience. Incremented each act.
  80. !! bm_beast[''num''] Count of animal partners. Incremented once per individual.
  81. !! bm_beast[''dog_exp''] Experience with dogs. Incremented each act with dog.
  82. !! bm_beast[''dog_num''] Count of dog partners. Incremented once per individual dog.
  83. !! ...
  84. --- mod_bestmod ---------------------------------