drugs.qsrc 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. # drugs
  2. !! How to use:
  3. !! Smoking: gs 'drugs', 'smoke' (if it isn''t svetas cigarette, you have to add siga += 1)
  4. !! Joint/Weed: gs 'drugs', 'joint' (if it isn''t svetas joint, you have to add joint += 1)
  5. !! Heroin: gs 'drugs', 'heroin'
  6. !! Cocaine: gs 'drugs', 'cocaine' (if it isn''t svetas cocaine, you have to add dur += 1)
  7. !! Amphetamine: gs 'drugs', 'amphetamine' (if it isn''t svetas amphetamine, you have to add amphetamine += 1)
  8. !! Alcohol: gs 'drugs', 'alcohol', 'type', count
  9. !! Types: beer, champagne, moonshine, rum, scotch, vodka, wine, whiskey
  10. !! Count: Number of drinks of the chosen type sveta drinks (if the number is 1, you don''t have add the count, but it isn''t a problem if you do)
  11. !! Example 1: sveta drinks vodka gs 'drugs', 'alcohol', 'vodka' (or gs 'drugs', 'alcohol', 'vodka', 1)
  12. !! Example 2: sveta drinks 2 beer gs 'drugs', 'alcohol', 'beer', 2
  13. if $ARGS[0] = 'smoke':
  14. if NarkImmune = 0:
  15. smoker += 1
  16. if smoker > 20 and smoke_exp = 0: smoke_exp = 1
  17. end
  18. siga -= 1
  19. smokeDay = daystart
  20. smokeHour = hour
  21. smokeminut = minut + 5
  22. smokerNeed = 0
  23. cumspclnt = 2
  24. gs 'cum_cleanup'
  25. pcs_breath = 0
  26. pcs_mood += 100
  27. wipo += 100
  28. if pcs_hydra >= 100:
  29. pcs_hydra -= 5
  30. else
  31. pcs_hydra -= 10
  32. end
  33. if pcs_energy < 80: pcs_energy += 4
  34. gs 'stat'
  35. elseif $ARGS[0] = 'joint':
  36. if NarkImmune = 0:
  37. joint_smoked += 1
  38. if joint_smoked > 5 and joint_exp = 0: joint_exp = 1
  39. end
  40. joint -= 1
  41. jointday = daystart
  42. jointhour = hour
  43. jointminut = minut + 5
  44. if minut > 30:
  45. jointhigh = 2
  46. else
  47. jointhigh = 1
  48. end
  49. cumspclnt = 2
  50. gs 'cum_cleanup'
  51. pcs_breath = 0
  52. pcs_mood += 100
  53. if pcs_hydra >= 100:
  54. pcs_hydra -= 5
  55. else
  56. pcs_hydra -= 10
  57. end
  58. if pcs_energy > 20:
  59. pcs_energy -= 20
  60. else
  61. pcs_energy = 0
  62. end
  63. gs 'stat'
  64. elseif $ARGS[0] = 'heroin':
  65. if NarkImmune = 0:
  66. SNarkTimes += 1
  67. if SNarkTimes > 1 and heroin_exp = 0: heroin_exp = 1
  68. end
  69. StrongNarkota += 25
  70. narkozakday = day
  71. pcs_mood = 100
  72. pcs_health -= 10
  73. gs 'stat'
  74. elseif $ARGS[0] = 'cocaine':
  75. if NarkImmune = 0:
  76. cocaine_count += 1
  77. if cocaine_count > 3 and cocaine_exp = 0: cocaine_exp = 1
  78. end
  79. dur -= 1
  80. pcs_health = pcs_vital * 10 + pcs_stren * 5
  81. pcs_willpwr = pcs_intel * 5 + pcs_sprt * 5
  82. pcs_mood = 100
  83. pcs_horny = 100
  84. nark += 10
  85. gs 'stat'
  86. elseif $ARGS[0] = 'amphetamine':
  87. if NarkImmune = 0:
  88. amphetamine_count += 1
  89. if amphetamine_count > 5 and amphetamine_exp = 0: amphetamine_exp = 1
  90. end
  91. if amphIntake < 2:
  92. '<font color= blue>You swallow the white pill.</font>'
  93. amphIntake += 1
  94. amphetamine -=1
  95. amphHigh = 12
  96. else
  97. 'Your heart is already beating uncontrollably in your chest, you should avoid taking anymore pills.'
  98. end
  99. gs 'stat'
  100. elseif $ARGS[0] = 'alcohol':
  101. if NarkImmune = 0:
  102. alcohol_count += 1
  103. if alcohol_count > 15 and alcohol_exp = 0: alcohol_exp = 1
  104. end
  105. if ARGS[2] <= 1:
  106. alc_count = 1
  107. else
  108. alc_count = ARGS[2]
  109. end
  110. :alcohol_jump
  111. alc_count -= 1
  112. frost = 0
  113. pcs_health -= 5
  114. pcs_energy -= 5
  115. cumspclnt = 2
  116. gs 'cum_cleanup'
  117. pcs_breath = 0
  118. if $ARGS[1] = 'beer':
  119. alko += 1
  120. fat += 3
  121. pcs_mood += 10
  122. if pcs_hydra >= 100:
  123. pcs_hydra += 5
  124. else
  125. pcs_hydra += 10
  126. end
  127. elseif $ARGS[1] = 'wine' or $ARGS[1] = 'champagne':
  128. alko += 2
  129. fat += 4
  130. pcs_mood += 20
  131. if pcs_hydra >= 100:
  132. pcs_hydra += 5
  133. else
  134. pcs_hydra += 10
  135. end
  136. elseif $ARGS[1] = 'vodka' or $ARGS[1] = 'whiskey' or $ARGS[1] = 'scotch' or $ARGS[1] = 'rum':
  137. alko += 3
  138. fat += 6
  139. if pcs_hydra >= 100:
  140. pcs_hydra -= 5
  141. else
  142. pcs_hydra -= 10
  143. end
  144. elseif $ARGS[1] = 'moonshine':
  145. alko += 5
  146. fat += 6
  147. if pcs_hydra >= 100:
  148. pcs_hydra -= 5
  149. else
  150. pcs_hydra -= 10
  151. end
  152. else
  153. '<br><font color = red>Developer note: The type of alcohol is missing in this scene. Please report this and a small part of the text of the current scene as a bug.</font>'
  154. end
  155. if alc_count > 0: jump 'alcohol_jump'
  156. killvar 'alc_count'
  157. gs 'stat'
  158. else
  159. '<br><font color = red>Developer note: The type of drug is wrong or missing in this scene. Please report this and a small part of the text of the current scene as a bug.</font>'
  160. end
  161. !!Addictive Personality Trait
  162. if addictive_cheat = 0:
  163. addictive_exp = smoke_exp + joint_exp + heroin_exp + cocaine_exp + alcohol_exp + amphetamine_exp
  164. if addictive_exp = 2 and addictive_trait_lvl < 1:
  165. addictive_trait_lvl = 1
  166. elseif addictive_exp = 3 and addictive_trait_lvl < 2:
  167. addictive_trait_lvl = 2
  168. elseif addictive_exp >= 4 or (heroin_exp = 1 and cocaine_exp = 1) and addictive_trait_lvl < 3:
  169. addictive_trait_lvl = 3
  170. end
  171. end
  172. --- drugs ---------------------------------