drugs.qsrc 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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. pcs_mood = 100
  71. pcs_health -= 10
  72. gs 'stat'
  73. elseif $ARGS[0] = 'cocaine':
  74. if NarkImmune = 0:
  75. cocaine_count += 1
  76. if cocaine_count > 3 and cocaine_exp = 0: cocaine_exp = 1
  77. end
  78. dur -= 1
  79. pcs_health = pcs_vital * 10 + pcs_stren * 5
  80. pcs_willpwr = pcs_intel * 5 + pcs_sprt * 5
  81. pcs_mood = 100
  82. pcs_horny = 100
  83. nark += 10
  84. gs 'stat'
  85. elseif $ARGS[0] = 'amphetamine':
  86. if NarkImmune = 0:
  87. amphetamine_count += 1
  88. if amphetamine_count > 5 and amphetamine_exp = 0: amphetamine_exp = 1
  89. end
  90. if amphIntake < 2:
  91. '<font color= blue>You swallow the white pill.</font>'
  92. amphIntake += 1
  93. amphetamine -=1
  94. amphHigh = 12
  95. else
  96. 'Your heart is already beating uncontrollably in your chest, you should avoid taking anymore pills.'
  97. end
  98. gs 'stat'
  99. elseif $ARGS[0] = 'alcohol':
  100. if NarkImmune = 0:
  101. alcohol_count += 1
  102. if alcohol_count > 15 and alcohol_exp = 0: alcohol_exp = 1
  103. end
  104. if ARGS[2] <= 1:
  105. alc_count = 1
  106. else
  107. alc_count = ARGS[2]
  108. end
  109. :alcohol_jump
  110. alc_count -= 1
  111. frost = 0
  112. pcs_health -= 5
  113. pcs_energy -= 5
  114. cumspclnt = 2
  115. gs 'cum_cleanup'
  116. pcs_breath = 0
  117. if $ARGS[1] = 'beer':
  118. alko += 1
  119. fat += 3
  120. pcs_mood += 10
  121. if pcs_hydra >= 100:
  122. pcs_hydra += 5
  123. else
  124. pcs_hydra += 10
  125. end
  126. elseif $ARGS[1] = 'wine' or $ARGS[1] = 'champagne':
  127. alko += 2
  128. fat += 4
  129. pcs_mood += 20
  130. if pcs_hydra >= 100:
  131. pcs_hydra += 5
  132. else
  133. pcs_hydra += 10
  134. end
  135. elseif $ARGS[1] = 'vodka' or $ARGS[1] = 'whiskey' or $ARGS[1] = 'scotch' or $ARGS[1] = 'rum':
  136. alko += 3
  137. fat += 6
  138. if pcs_hydra >= 100:
  139. pcs_hydra -= 5
  140. else
  141. pcs_hydra -= 10
  142. end
  143. elseif $ARGS[1] = 'moonshine':
  144. alko += 5
  145. fat += 6
  146. if pcs_hydra >= 100:
  147. pcs_hydra -= 5
  148. else
  149. pcs_hydra -= 10
  150. end
  151. else
  152. '<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>'
  153. end
  154. if alc_count > 0: jump 'alcohol_jump'
  155. killvar 'alc_count'
  156. gs 'stat'
  157. else
  158. '<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>'
  159. end
  160. !!Addictive Personality Trait
  161. if addictive_cheat = 0:
  162. addictive_exp = smoke_exp + joint_exp + heroin_exp + cocaine_exp + alcohol_exp + amphetamine_exp
  163. if addictive_exp = 2 and addictive_trait_lvl < 1:
  164. addictive_trait_lvl = 1
  165. elseif addictive_exp = 3 and addictive_trait_lvl < 2:
  166. addictive_trait_lvl = 2
  167. elseif addictive_exp >= 4 or (heroin_exp = 1 and cocaine_exp = 1) and addictive_trait_lvl < 3:
  168. addictive_trait_lvl = 3
  169. end
  170. end
  171. --- drugs ---------------------------------