mod_bestmod.qsrc 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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(0, 100)
  4. if $loc = 'Gadsarai' and $metka = '' and menu_off = 0: '<br>Sitting near the barn is your grandparent''s <a href="exec:gt ''mod_bestmod_bandit''">large dog, named Bandit</a>'
  5. 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'
  6. if $loc = 'zoomagazine' and $metka = 'start' and menu_off = 0: gs 'mod_bestmod_petshop', 'buy_dog'
  7. 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.'
  8. 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>'
  9. if ($loc = 'sitr' or $loc = 'sitr2x') and menu_off = 0: gs 'mod_bestmod_sitr'
  10. if ($loc = 'kuhr' or $loc = 'kuhr2x') and menu_off = 0: gs 'mod_bestmod_kuhr'
  11. 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'
  12. !! Probably replace houserabrand with another random factor which takes into account PC''s
  13. !! beast exp and relationship with pet.
  14. 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'
  15. 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'
  16. if $locclass = 'park' and $loc ! 'parks' and $metka = 'start' and (hour >= 20 or hour < 6) and menu_off = 0:
  17. *nl
  18. if $loc = 'lug':
  19. 'You see a stray dog wandering around just behind the tree line.'
  20. else
  21. 'You see a stray dog sniffing around some trash.'
  22. end
  23. act 'Go up to the stray dog': gt 'mod_bestmod_park_dog', 'start', $loc
  24. end
  25. if $loc = 'postdeliveries' and $ARGS[0] = '10':
  26. if banditfrend = 1:
  27. act 'Try to calm the dog':
  28. cla
  29. *clr
  30. pcs_mood += 10
  31. gs 'stat'
  32. if temper > 0: '<center><img <<$set_imgh>> src="images/locations/shared/postoffice/happydog.jpg"></center>'
  33. if temper <= 0: '<center><img <<$set_imgh>> src="images/locations/shared/postoffice/happydogw.jpg"></center>'
  34. '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?"'
  35. '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..."'
  36. '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.'
  37. act 'Continue your round':gt 'postdeliveries', 'resume'
  38. end
  39. end
  40. end
  41. !!$mod_beast_var['StatText'] = $stattxt
  42. !!! this finds the begining of the arousal bar (could be any regex, though)
  43. !!mod_beast_var['StartPosition'] = strpos($mod_beast_var['StatText'],'<font face="courier new" size = 3>')
  44. !!
  45. !!! break stat win text into 2 part, before and after the token you found.
  46. !!$mod_beast_var['FrontStr'] = mid($mod_beast_var['StatText'],1,mod_beast_var['StartPosition']-1)
  47. !!$mod_beast_var['EndStr'] = mid($mod_beast_var['StatText'],mod_beast_var['StartPosition'],len($mod_beast_var['StatText']))
  48. !!
  49. !!! clear the text in the window
  50. !!clr
  51. !!
  52. !!! build the new window text with your addition
  53. !!$mod_beast_var['NewWindowText'] = $mod_beast_var['FrontStr'] + "Your New Text" + $mod_beast_var['EndStr']
  54. !!
  55. !!! write new out to the window
  56. !!p $mod_beast_var['NewWindowText']
  57. if $shoplocation = 'grocery':
  58. *pl '<center><table align="center" width=80%>'
  59. *p func ('$stock_item', 5, 'Dog treat', 100, 'bm_dog_treat', $curloc, '', iif(bag > 0, 0, 1), 'You need a handbag')
  60. *p '</table></center>'
  61. end
  62. if $curloc = 'din_bad' and $ARGS[0] = 'd_bag':
  63. if bm_dog_treat > 0: 'You have <b><<bm_dog_treat>></b> dog treat'+iif(bm_dog_treat > 1, 's ', ' ')+'left in your purse.'
  64. end
  65. !! Some of the variables used in this mod:
  66. !! bm_beast[''exp''] Beastiality experience. Incremented each act.
  67. !! bm_beast[''num''] Count of animal partners. Incremented once per individual.
  68. !! bm_beast[''dog_exp''] Experience with dogs. Incremented each act with dog.
  69. !! bm_beast[''dog_num''] Count of dog partners. Incremented once per individual dog.
  70. !! ...
  71. --- mod_bestmod ---------------------------------