1
0

dina.qsrc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. # dina
  2. !! Dynamic code has been translated to static code for performance and savegame size reasons.
  3. !! The dynamic variables still exist for compatibility reasons.
  4. !! Whenever possible, don''t use dynamic code (use "gs 'dina', 'xxx'" instead of "dynamic $xxx").
  5. $brodila = "gs 'dina', 'brodila'"
  6. if $ARGS[0] = 'brodila':
  7. sexpartkno = 0
  8. if accessible_property['city_apartment'] > 0:
  9. gt 'korr', 'start'
  10. elseif accessible_property['old_town_apartment'] = 1:
  11. gt 'korr2x', 'start'
  12. else
  13. gt'city_residential', 'start'
  14. end
  15. end
  16. $brodilr = "gs 'dina', 'brodilr'"
  17. if $ARGS[0] = 'brodilr':
  18. if mid($start_type,1,2) = 'sg' and accessible_property['parents_home'] = 4:
  19. gt 'pav_residential'
  20. elseif accessible_property['old_town_apartment'] = 1:
  21. gt'pushkin_sq'
  22. else
  23. gt 'city_residential', 'start'
  24. end
  25. end
  26. $brodilk = "gs 'dina', 'brodilk'"
  27. if $ARGS[0] = 'brodilk':
  28. if accessible_property['city_apartment'] > 0:
  29. gt 'kuhr', 'start'
  30. elseif accessible_property['old_town_apartment']= 1:
  31. gt 'kuhr2x', 'start'
  32. else
  33. gt'city_residential', 'start'
  34. end
  35. end
  36. $brodils = "gs 'dina', 'brodils'"
  37. if $ARGS[0] = 'brodils':
  38. if accessible_property['city_apartment'] > 0:
  39. gt 'sitr', 'start'
  40. elseif accessible_property['old_town_apartment'] = 1:
  41. gt 'sitr2x', 'start'
  42. elseif mid($start_type,1,2) = 'sg' and accessible_property['parents_home'] = 4:
  43. gt 'sitrPar'
  44. else
  45. gt'city_residential', 'start'
  46. end
  47. end
  48. $dogpot = "gs 'dina', 'dogpot'"
  49. if $ARGS[0] = 'dogpot':
  50. gs 'boyStat', 'A191'
  51. end
  52. $rexpot = "gs 'dina', 'rexpot'"
  53. if $ARGS[0] = 'rexpot':
  54. gs 'boyStat', 'A166'
  55. end
  56. $hypnoDaychange = "gs 'dina', 'hypnoDaychange'"
  57. if $ARGS[0] = 'hypnoDaychange':
  58. !!if for some reason hypnoTime is too high
  59. if hypnoTime > 15:hypnoTime = 15
  60. timeTresh = 76 - 4*hypnoTime
  61. !!Withdrawal effect begings if too strong influence and no visitation
  62. if daystart-hypnoDay > 7:
  63. if hypnoAddict = 1:
  64. hypnoWithdrawal = 1
  65. elseif hypnoAddict = 2:
  66. hypnoWithdrawal = 2
  67. end
  68. end
  69. !!daily weaning of therapist influence
  70. if hypnoStrength > 0: hypnoStrength -= 1
  71. if hypnoTime > 0 and hypnoStrength = 0:
  72. if hypnoAddict = 0:
  73. hypnoStrength = 19
  74. hypnoTime -= 1
  75. elseif hypnoAddict = 1:
  76. if rand(0,1) = 0:
  77. hypnoStrength = 19
  78. hypnoTime -= 1
  79. if hypnoTime < 7:hypnoAddict = 0 & hypnoWithdrawal = 0
  80. end
  81. else
  82. if rand(0,4) = 0:
  83. hypnoStrength = 19
  84. hypnoTime -= 1
  85. if hypnoTime < 10:hypnoAddict = 1 & hypnoWithdrawal = 1
  86. end
  87. end
  88. end
  89. end
  90. $hypnoAddiction = "gs 'dina', 'hypnoAddiction'"
  91. if $ARGS[0] = 'hypnoAddiction':
  92. if cumloc[0] = 1 or cumloc[3] = 1:
  93. killvar 'missCum'
  94. if hypnoAddict = 1:
  95. pcs_mood += 5
  96. else
  97. pcs_mood += 10
  98. end
  99. else
  100. missCum += 1
  101. end
  102. if missCum > timeTresh:
  103. if hypnoAddict = 1:
  104. pcs_mood -= 5
  105. pcs_horny += 10
  106. else
  107. pcs_mood -= 10
  108. pcs_horny += 20
  109. end
  110. end
  111. if hypnoWithdrawal > 0:
  112. if hypnoWithdrawal = 1:
  113. if missCum >= timeTresh:
  114. sprt_deg -= 2*hypnoAddict
  115. pcs_mood -= 10
  116. else
  117. if rand(0,1) = 0:sprt_deg -= hypnoAddict
  118. pcs_mood -= 5
  119. end
  120. end
  121. end
  122. end
  123. !!---------------
  124. $prezik = "gs 'dina', 'prezik'"
  125. if $ARGS[0] = 'prezik':
  126. if mc_inventory['equipped_condoms'] > 0:
  127. if mc_inventory['bad_condoms'] > 0:
  128. if rand(1,mc_inventory['equipped_condoms']) <= mc_inventory['bad_condoms']: mc_inventory['bad_condoms'] -= 1 & noprotect = 1
  129. else
  130. noprotect = 0
  131. end
  132. mc_inventory['equipped_condoms'] -= 1
  133. elseif mc_inventory['equipped_condoms'] < 0:
  134. mc_inventory['equipped_condoms'] = 0
  135. end
  136. end
  137. $ferteggfather = "gs 'dina', 'ferteggfather'"
  138. if $ARGS[0] = 'ferteggfather':
  139. if fertegg > 0:
  140. if thinkpreg = 0 and knowpreg = 0 and sparrppt[sparrtemp] > 0:
  141. if cumarrkno[cumarrtemp] = 1:
  142. if arrcomp('$cumfthname',$boy) = -1:
  143. i = arrsize('$cumfthname')
  144. $cumfthname[i] = $boy
  145. cumtime[i] = 1
  146. else
  147. i = arrpos('$cumfthname', $boy)
  148. cumtime[i] += 1
  149. end
  150. elseif cumarrkno[cumarrtemp] = 0:
  151. cumtime[0] += 1
  152. end
  153. end
  154. end
  155. end
  156. --- dina ---------------------------------