pattest.qsrc 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # pattest
  2. !! It is called like "gs 'pattest','Kolka'", or "gs 'pattest',$boy"
  3. !! It needs some automatic call, usable when a named guy has cum in or on you, and only his cum is in/on the area (do not call this with "rapist", "unknown" or "gopnik")
  4. !! Calls should be done with unique IDs 'A34' for Kolka etc.
  5. !! $ChildFath : array for names of the childs biological father. This should be the absolute truth, not readily available information for the characters.
  6. !! $ChildFathDNA : array for the DNA of the childs father
  7. !! $ChildThFath : array for the IDs of the childs believed father (can be different from the biological father and should be in form of ID ie. 'A34' or 'unknown' if Sveta has no idea) Do not use for pregnancy events as it is only updated when going to labor. This is probably the variable you want to work with when doing paternity tests, or if father reacts to physical traits not matching despite Sveta claiming they are the dad.
  8. !! There needs to be an option to call it selectively when certain circumstances are met ($boy gives sample voluntarily).
  9. if ARGS[1] ! 1 and pattest > 0:
  10. j = 0
  11. p ''
  12. clr
  13. if kid > 0 and arrpos('surefather','0') ! kid:
  14. pl '<br>Select the child you want to compare with <<$ARGS[0]>>:<br>'
  15. $papa = $ARGS[0]
  16. :kiddieloop
  17. kidid[j] = j
  18. value = kidid[j]
  19. if surefather[j] = 0:pl ' <a href="exec:func(''pattest'', value, 1) & pattest -= 1 & gs ''stat''"><<$kidname[j]>></a>'
  20. if j < kid-1:j += 1 & jump 'kiddieloop'
  21. elseif kid = 0:
  22. msg 'You do not have children yet!'
  23. gs 'stat'
  24. else
  25. msg 'You are sure about the father of every one of your children!'
  26. gs 'stat'
  27. end
  28. killvar 'j'
  29. killvar 'kidid'
  30. elseif ARGS[1] ! 1:
  31. msg 'You do not have any paternity test to use!'
  32. gs 'stat'
  33. end
  34. if ARGS[1] = 1:
  35. testresDay[ARGS[0]] = 2147483647
  36. if $ChildFath[ARGS[0]] = $papa:testresRes[ARGS[0]] = 1 else testresRes[ARGS[0]] = 0
  37. $testresPotfath[ARGS[0]] = $papa
  38. testresKid[ARGS[0]] = ARGS[0]
  39. purse_pattest[ARGS[0]] = 1
  40. used_pattest += 1
  41. killvar 'papa'
  42. end
  43. !! Just shows the kid and the tested father
  44. $test_purse = {
  45. j = 0
  46. $msg = 'Tests in your purse:'
  47. :pursekid
  48. if purse_pattest[j] = 1:$msg += '<br><<$testresPotfath[j]>>''s test for fatherhood of <<$kidname[j]>>.'
  49. if j < kid-1:j += 1 & jump 'pursekid'
  50. msg $msg
  51. killvar 'msg'
  52. }
  53. !! used: dynamic $send_test, <kidnumber>
  54. $send_test = {
  55. j = 0
  56. :kloop
  57. kidid[j] = j
  58. if patpack[j] = 1:' <a href="exec: testresDay[kidid[j]] = daystart+rand(5,7) & patpack[kidid[j]] = 0 & used_pattest -= 1 & money -= 20000">$kidname[j]</a>'
  59. if j < kid-1:j += 1 & jump 'kloop'
  60. testresDay[ARGS[0]] = daystart+rand(5,7)
  61. purse_pattest[ARGS[0]] = 0
  62. used_pattest -= 1
  63. }
  64. $sms_testresult = {
  65. cyc = 0
  66. :testloop
  67. if testresKid[cyc] ! 1:cyc += 1 & jump 'testloop'
  68. if daystart >= testresDay[cyc]:
  69. c2 = arrsize('SMS_msg')
  70. $SMS_msg[c2] = 'Result of testing: <br>'
  71. if testresRes[cyc] = 1:$SMS_msg[c2] += 'matching DNA' else $SMS_msg[c2] += 'no DNA match'
  72. $SMS_msg[c2] += '<br>between <<$testresPotfath[cyc]>> and <<$kidname[testresKid[cyc]]>>.'
  73. $SMS_effect[c2] = {
  74. if testresRes[cyc] = 1:
  75. surefather[testresKid[cyc]] = 1
  76. $ChildThFath[testresKid[cyc]] = $ChildFath[testresKid[cyc]]
  77. else
  78. if $ChildThFath[testresKid[cyc]] = $testresPotfath[testresKid[cyc]]:$ChildThFath[testresKid[cyc]] = 'unknown'
  79. end
  80. }
  81. testresKid[cyc] = 0
  82. end
  83. if cyc < kid-1: cyc += 1 & jump 'testloop'
  84. killvar 'cyc'
  85. killvar 'c2'
  86. }
  87. --- pattest ---------------------------------