mod_bestmod.qsrc 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 grandparents'' <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'', $loc"><<$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'', $loc"><<$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 (1:00)' and $clothingworntype = 'nude' and bm_beast['exp'] > 0 and rand(1,10) = 5: gt 'mod_bestmod_lake_dog', 'start'
  16. if $locclass = 'park' and $metka = 'start' and (hour >= 20 or hour < 6) and menu_off = 0:
  17. ''
  18. '<b>You see a stray dog sniffing around some trash.</b>'
  19. act 'Go up to the stray dog': gt 'mod_bestmod_park_dog', 'start', $loc
  20. end
  21. if $loc = 'postdeliveries' and $ARGS[0] = '10':
  22. if banditfrend = 1:
  23. act 'Try to calm the dog':
  24. cla
  25. *clr
  26. pcs_mood += 10
  27. gs 'stat'
  28. if temper > 0: '<center><img <<$set_imgh>> src="images/locations/shared/postoffice/happydog.jpg"></center>'
  29. if temper <= 0: '<center><img <<$set_imgh>> src="images/locations/shared/postoffice/happydogw.jpg"></center>'
  30. '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?"'
  31. '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..."'
  32. '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.'
  33. act 'Continue your round':gt 'postdeliveries', 'resume'
  34. end
  35. end
  36. end
  37. !!$mod_beast_var['StatText'] = $stattxt
  38. !!! this finds the begining of the arousal bar (could be any regex, though)
  39. !!mod_beast_var['StartPosition'] = strpos($mod_beast_var['StatText'],'<font face="courier new" size = 3>')
  40. !!
  41. !!! break stat win text into 2 part, before and after the token you found.
  42. !!$mod_beast_var['FrontStr'] = mid($mod_beast_var['StatText'],1,mod_beast_var['StartPosition']-1)
  43. !!$mod_beast_var['EndStr'] = mid($mod_beast_var['StatText'],mod_beast_var['StartPosition'],len($mod_beast_var['StatText']))
  44. !!
  45. !!! clear the text in the window
  46. !!clr
  47. !!
  48. !!! build the new window text with your addition
  49. !!$mod_beast_var['NewWindowText'] = $mod_beast_var['FrontStr'] + "Your New Text" + $mod_beast_var['EndStr']
  50. !!
  51. !!! write new out to the window
  52. !!p $mod_beast_var['NewWindowText']
  53. if $shoplocation = 'grocery':
  54. *pl '<center><table align="center" width=80%>'
  55. *p func ('$stock_item', 5, 'Dog treat', 100, 'bm_dog_treat', $curloc, '', iif(bag > 0, 0, 1), 'You need a handbag')
  56. *p '</table></center>'
  57. end
  58. if $curloc = 'din_bad' and $ARGS[0] = 'd_bag':
  59. if bm_dog_treat > 0: 'You have <b><<bm_dog_treat>></b> dog treat'+iif(bm_dog_treat > 1, 's ', ' ')+'left in your purse.'
  60. end
  61. !! Some of the variables used in this mod:
  62. !! bm_beast[''exp''] Beastiality experience. Incremented each act.
  63. !! bm_beast[''num''] Count of animal partners. Incremented once per individual.
  64. !! bm_beast[''dog_exp''] Experience with dogs. Incremented each act with dog.
  65. !! bm_beast[''dog_num''] Count of dog partners. Incremented once per individual dog.
  66. !! ...
  67. --- mod_bestmod ---------------------------------