drugs.tw 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. :: drugs
  2. <<set $here = 'drugs'>>
  3. <<set $ARGS = $location_var[$here]>>
  4. <!-- !! How to use:-->
  5. <!-- !! Smoking: gs 'drugs', 'smoke' (if it isn''t svetas cigarette, you have to add siga += 1)-->
  6. <!-- !! Joint/Weed: gs 'drugs', 'joint' (if it isn''t svetas joint, you have to add joint += 1)-->
  7. <!-- !! Heroin: gs 'drugs', 'heroin'-->
  8. <!-- !! Cocaine: gs 'drugs', 'cocaine' (if it isn''t svetas cocaine, you have to add dur += 1)-->
  9. <!-- !! Amphetamine: gs 'drugs', 'amphetamine' (if it isn''t svetas amphetamine, you have to add amphetamine += 1)-->
  10. <!-- !! Neurobooster: gs 'drugs', 'mentats' (if it isn''t svetas mentats, you have to add mentats_have += 1)-->
  11. <!-- !! Aphrodisiac: gs 'drugs', 'aphrodisiac' (if it isn''t svetas aphrodisiac, you have to add aphrodisiac_have += 1)-->
  12. <!-- !! Alcohol: gs 'drugs', 'alcohol', 'type', count-->
  13. <!-- !! Types: beer, champagne, moonshine, rum, scotch, vodka, wine, whiskey-->
  14. <!-- !! 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)-->
  15. <!-- !! Example 1: sveta drinks vodka gs 'drugs', 'alcohol', 'vodka' (or gs 'drugs', 'alcohol', 'vodka', 1)-->
  16. <!-- !! Example 2: sveta drinks 2 beer gs 'drugs', 'alcohol', 'beer', 2-->
  17. <<if $location_var[$here][0] == 'smoke'>>
  18. <<if getvar("$NarkImmune") == 0>>
  19. <<set $smoker += 1>>
  20. <<if getvar("$smoker") > 20 and getvar("$smoke_exp") == 0>>
  21. <<set $smoke_exp = 1>>
  22. <</if>>
  23. <</if>>
  24. <<set $siga -= 1>>
  25. <<set $smokeDay = $time.daystart>>
  26. <<set $smokeHour = $time.hour>>
  27. <<set $smokeminut = $time.minutes + 3>>
  28. <<set $smokerNeed = 0>>
  29. <<set $cumspclnt = 2>>
  30. <<setinit $pc.teeth['smoked'] += 1>>
  31. <<gs 'cum_cleanup'>>
  32. <<set $pc.pcs_breath = 0>>
  33. <<set $pc.mood += 100>>
  34. <<if $pc.pcs_hydra >= 100>>
  35. <<set $pc.pcs_hydra -= 5>>
  36. <<else>>
  37. <<set $pc.pcs_hydra -= 10>>
  38. <</if>>
  39. <<if $pc.pcs_energy < 80>>
  40. <<setn $pc.pcs_energy += 4>>
  41. <</if>>
  42. <<if getvar("$siga_bum") == 1>>
  43. <<set $siga_bum = 0>>
  44. <<elseif getvar("$siga") == 0>>
  45. <<msg 'That was your last cigarette.'>>
  46. <</if>>
  47. <<elseif $location_var[$here][0] == 'joint'>>
  48. <<set $time.minutes += 10>>
  49. <<if getvar("$NarkImmune") == 0>>
  50. <<set $joint_smoked += 1>>
  51. <<if getvar("$joint_smoked") > 5 and getvar("$joint_exp") == 0>>
  52. <<set $joint_exp = 1>>
  53. <</if>>
  54. <</if>>
  55. <<set $joint -= 1>>
  56. <<set $jointday = $time.daystart>>
  57. <<set $jointhour = $time.hour>>
  58. <<set $jointminut = $time.minutes + 2>>
  59. <<if $time.minutes > 30>>
  60. <<set $jointhigh = 2>>
  61. <<else>>
  62. <<set $jointhigh = 1>>
  63. <</if>>
  64. <<set $cumspclnt = 2>>
  65. <<gs 'cum_cleanup'>>
  66. <<set $pc.pcs_breath = 0>>
  67. <<set $pc.mood += 100>>
  68. <<if $pc.pcs_hydra >= 100>>
  69. <<set $pc.pcs_hydra -= 5>>
  70. <<else>>
  71. <<set $pc.pcs_hydra -= 10>>
  72. <</if>>
  73. <<if $pc.pcs_energy > 20>>
  74. <<set $pc.pcs_energy -= 20>>
  75. <<else>>
  76. <<set $pc.pcs_energy = 0>>
  77. <</if>>
  78. <<elseif $location_var[$here][0] == 'heroin'>>
  79. <<if getvar("$NarkImmune") == 0>>
  80. <<set $SNarkTimes += 1>>
  81. <<if getvar("$SNarkTimes") > 1 and getvar("$heroin_exp") == 0>>
  82. <<set $heroin_exp = 1>>
  83. <</if>>
  84. <</if>>
  85. <<set $pc.strongNarkota += 25>>
  86. <<set $pc.narkozakday = $time.day>>
  87. <<set $pc.mood = 100>>
  88. <<set $pc.pcs_health -= 10>>
  89. <<elseif $location_var[$here][0] == 'cocaine'>>
  90. <<if getvar("$NarkImmune") == 0>>
  91. <<set $cocaine_count += 1>>
  92. <<if getvar("$cocaine_count") > 3 and getvar("$cocaine_exp") == 0>>
  93. <<set $cocaine_exp = 1>>
  94. <</if>>
  95. <</if>>
  96. <<set $dur -= 1>>
  97. <<set $pc.pcs_health = $pc.vitality * 10 + $pc.skillLevel("strength") * 5>>
  98. <<if $willday_cocaine != $time.daystart>>
  99. <<set $willday_cocaine = $time.daystart>> <<setn $pc.willpower += 10>>
  100. <</if>>
  101. <<set $pc.mood = 100>>
  102. <<set $pc.horny = 100>>
  103. <<set $pc.nark += 10>>
  104. <<elseif $location_var[$here][0] == 'amphetamine'>>
  105. <<if getvar("$NarkImmune") == 0>>
  106. <<set $amphetamine_count += 1>>
  107. <<if getvar("$amphetamine_count") > 5 and getvar("$amphetamine_exp") == 0>>
  108. <<set $amphetamine_exp = 1>>
  109. <</if>>
  110. <</if>>
  111. <<if getvar("$amphIntake") < 2>>
  112. <font color= blue>You swallow the white pill.</font>
  113. <<set $amphIntake += 1>>
  114. <<set $amphetamine -= 1>>
  115. <<set $amphHigh = 12>>
  116. <<else>>
  117. Your heart is already beating uncontrollably in your chest, you should avoid taking anymore pills.
  118. <</if>>
  119. <<elseif $location_var[$here][0] == 'alcohol'>>
  120. <<if getvar("$NarkImmune") == 0>>
  121. <<set $alcohol_count += 1>>
  122. <<if getvar("$alcohol_count") > 15 and getvar("$alcohol_exp") == 0>>
  123. <<set $alcohol_exp = 1>>
  124. <</if>>
  125. <</if>>
  126. <<if $location_var[$here][2] <= 1>>
  127. <<set $alc_count = 1>>
  128. <<else>>
  129. <<set $alc_count = $ARGS[2]>>
  130. <</if>>
  131. <<warn 'JUMP MARKER ENCOUNTERED: :alcohol_jump'>>
  132. <<set $alc_count -= 1>>
  133. <<set $pc.frost = 0>>
  134. <<set $pc.pcs_health -= 5>>
  135. <<set $pc.pcs_energy -= 5>>
  136. <<set $cumspclnt = 2>>
  137. <<gs 'cum_cleanup'>>
  138. <<set $pc.pcs_breath = 0>>
  139. <<if $location_var[$here][1] == 'beer'>>
  140. <<if $pc.trait('alko_status') == -1>>
  141. <<set $pc.alko += rand(1,2)>>
  142. <<elseif $pc.trait('alko_status') == 1>>
  143. <<set $pc.alko += rand(0,1)>>
  144. <<else>>
  145. <<set $pc.alko += 1>>
  146. <</if>>
  147. <<set $pc.fat += 3>>
  148. <<set $pc.mood += 10>>
  149. <<if $pc.pcs_hydra >= 100>>
  150. <<set $pc.pcs_hydra += 5>>
  151. <<else>>
  152. <<set $pc.pcs_hydra += 10>>
  153. <</if>>
  154. <<run $pc.traitInc('alko_day',1)>>
  155. <<elseif $location_var[$here][1] == 'wine' or $location_var[$here][1] == 'champagne'>>
  156. <<if $pc.trait('alko_status') == -1>>
  157. <<set $pc.alko += 3>>
  158. <<elseif $pc.trait('alko_status') == 1>>
  159. <<set $pc.alko += 1>>
  160. <<else>>
  161. <<set $pc.alko += 2>>
  162. <</if>>
  163. <<set $pc.fat += 4>>
  164. <<set $pc.mood += 20>>
  165. <<if $pc.pcs_hydra >= 100>>
  166. <<set $pc.pcs_hydra += 5>>
  167. <<else>>
  168. <<set $pc.pcs_hydra += 10>>
  169. <</if>>
  170. <<run $pc.traitInc('alko_day',2)>>
  171. <<elseif $location_var[$here][1] == 'vodka' or $location_var[$here][1] == 'whiskey' or $location_var[$here][1] == 'scotch' or $location_var[$here][1] == 'rum'>>
  172. <<if $pc.trait('alko_status') == -1>>
  173. <<set $pc.alko += rand(4,5)>>
  174. <<elseif $pc.trait('alko_status') == 1>>
  175. <<set $pc.alko += rand(1,2)>>
  176. <<else>>
  177. <<set $pc.alko += 3>>
  178. <</if>>
  179. <<set $pc.fat += 6>>
  180. <<if $pc.pcs_hydra >= 100>>
  181. <<set $pc.pcs_hydra -= 5>>
  182. <<else>>
  183. <<set $pc.pcs_hydra -= 10>>
  184. <</if>>
  185. <<run $pc.traitInc('alko_day',3)>>
  186. <<elseif $location_var[$here][1] == 'moonshine'>>
  187. <<if $pc.trait('alko_status') == -1>>
  188. <<set $pc.alko += rand(7,8)>>
  189. <<elseif $pc.trait('alko_status') == 1>>
  190. <<set $pc.alko += rand(2,3)>>
  191. <<else>>
  192. <<set $pc.alko += 5>>
  193. <</if>>
  194. <<set $pc.fat += 6>>
  195. <<if $pc.pcs_hydra >= 100>>
  196. <<set $pc.pcs_hydra -= 5>>
  197. <<else>>
  198. <<set $pc.pcs_hydra -= 10>>
  199. <</if>>
  200. <<run $pc.traitInc('alko_day',5)>>
  201. <<else>>
  202. <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>
  203. <</if>>
  204. <<if getvar("$alc_count") > 0>>
  205. <<warn 'JUMP COMMAND ENCOUNTERED: jump alcohol_jump'>>
  206. <</if>>
  207. <<set $alc_count to null>>
  208. <<elseif $location_var[$here][0] == 'mentats'>>
  209. <<set $mentats_dose += 1>>
  210. <<set $mentats_have -= 1>>
  211. <<elseif $location_var[$here][0] == 'aphrodisiac'>>
  212. <<if getvar("$aphrodisiac_overdose") == 1>>
  213. <<set $aphrodisiac_msg = '<br>You`ve had enough aphrodisiac for today.'>>
  214. <<elseif getvar("$aphrodisiac_timer") == 0>>
  215. <<set $aphrodisiac_msg = '<font color = #DB7093><br>You take a gum and chew it. It tastes like strawberry, but is also kind of spicy.</font>'>>
  216. <<set $aphrodisiac_have -= 1>>
  217. <<set $aphrodisiac_timer += 8>>
  218. <<set $pc.horny = 80>>
  219. <<elseif getvar("$aphrodisiac_timer") > 0 and getvar("$aphrodisiac_timer") <= 8>>
  220. <<set $aphrodisiac_msg = '<font color = #DB7093><br>You take another gum and chew it. It makes your mouth feel kinda tingly.</font>'>>
  221. <<set $aphrodisiac_have -= 1>>
  222. <<set $aphrodisiac_timer += 8>>
  223. <<set $pc.horny = 100>>
  224. <<elseif getvar("$aphrodisiac_timer") > 8 and $pc.min_arousal < 60>>
  225. <<set $aphrodisiac_msg = '<font color = red><b><br>You take yet another gum and start chewing it. Suddenly you find yourself in grip of an intense orgasm!<br>It goes on and on and you sink to the ground and do your best to endure it.</b></font>'>>
  226. <<set $aphrodisiac_have -= 1>>
  227. <<set $orgasm += 1>>
  228. <<set $pc.mood = 100>>
  229. <<set $pc.min_arousal += 10>>
  230. <<set $aphrodisiac_overdose = 1>>
  231. <<if $pc.min_arousal == 10>>
  232. <<set $pc.horny = $pc.min_arousal>>
  233. <<set $pc.min_arousal_msg = '<font color = #DB7093>That was intense! You can still feel the tingles.</font>'>>
  234. <<elseif $pc.min_arousal == 20>>
  235. <<set $pc.horny = $pc.min_arousal>>
  236. <<set $pc.min_arousal_msg = '<font color = #DB7093>You are really starting to enjoy these! Your crotch still feels kinda hot though.</font>'>>
  237. <<elseif $pc.min_arousal == 30>>
  238. <<set $pc.horny = $pc.min_arousal>>
  239. <<set $pc.min_arousal_msg = '<font color = #DB7093>As you are trying to get back to your feet you notice that you are still horny. What is happening to you?</font>'>>
  240. <<elseif $pc.min_arousal == 40>>
  241. <<set $pc.horny = $pc.min_arousal>>
  242. <<set $pc.min_arousal_msg = '<font color = #DB7093>You are certain of it. Every time those gums give you an orgasm they also increase your libido.</font>'>>
  243. <<elseif $pc.min_arousal == 50>>
  244. <<set $pc.horny = $pc.min_arousal>>
  245. <<set $pc.min_arousal_msg = '<font color = #DB7093>You run a finger across your slit and shudder. You really should stop chewing these gums while you can still think of something other than sex.</font>'>>
  246. <<elseif $pc.min_arousal == 60>>
  247. <<set $pc.horny = $pc.min_arousal>>
  248. <<set $pc.min_arousal_msg = '<font color = #DB7093>You are burning up. You feel like you could fuck anything and everything all day long.</font>'>>
  249. <</if>>
  250. <<else>>
  251. <<set $aphrodisiac_msg = '<font color = #DB7093>You chew another gum with trepidation, looking forward to more orgasms but nothing happens. Huh. Have you become immune?</font>'>>
  252. <<set $aphrodisiac_have -= 1>>
  253. <</if>>
  254. <<else>>
  255. <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>
  256. <</if>>
  257. <<gs 'traits' 'addictive_personality'>>