drugs.qsrc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. !! Alcohol: gs 'drugs', 'alcohol', 'type', count
  8. !! Types: beer, champagne, moonshine, rum, scotch, vodka, wine, whiskey
  9. !! 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)
  10. !! Example 1: sveta drinks vodka gs 'drugs', 'alcohol', 'vodka' (or gs 'drugs', 'alcohol', 'vodka', 1)
  11. !! Example 2: sveta drinks 2 beer gs 'drugs', 'alcohol', 'beer', 2
  12. if $ARGS[0] = 'smoke':
  13. if NarkImmune = 0: smoker += 1
  14. siga -= 1
  15. smokeDay = daystart
  16. smokeHour = hour
  17. smokeminut = minut + 5
  18. smokerNeed = 0
  19. cumspclnt = 2
  20. gs 'cum_cleanup'
  21. pcs_breath = 0
  22. pcs_mood += 100
  23. wipo += 100
  24. if pcs_hydra >= 100:
  25. pcs_hydra -= 5
  26. else
  27. pcs_hydra -= 10
  28. end
  29. if pcs_energy < 80: pcs_energy += 4
  30. gs '$menu_obnovit'
  31. elseif $ARGS[0] = 'joint':
  32. if NarkImmune = 0: joint_smoked += 1
  33. joint -= 1
  34. jointday = daystart
  35. jointhour = hour
  36. jointminut = minut + 5
  37. if minut > 30:
  38. jointhigh = 2
  39. else
  40. jointhigh = 1
  41. end
  42. cumspclnt = 2
  43. gs 'cum_cleanup'
  44. pcs_breath = 0
  45. pcs_mood += 100
  46. if pcs_hydra >= 100:
  47. pcs_hydra -= 5
  48. else
  49. pcs_hydra -= 10
  50. end
  51. if pcs_energy > 20:
  52. pcs_energy -= 20
  53. else
  54. pcs_energy = 0
  55. end
  56. gs '$menu_obnovit'
  57. elseif $ARGS[0] = 'heroin':
  58. if NarkImmune = 0: SNarkTimes += 1
  59. StrongNarkota += 25
  60. pcs_mood = 100
  61. pcs_health -= 10
  62. gs '$menu_obnovit'
  63. elseif $ARGS[0] = 'cocaine':
  64. dur -= 1
  65. pcs_health = pcs_vital * 10 + pcs_stren * 5
  66. pcs_willpwr = pcs_intel * 5 + pcs_sprt * 5
  67. pcs_mood = 100
  68. pcs_horny = 100
  69. nark += 10
  70. elseif $ARGS[0] = 'alcohol':
  71. if ARGS[2] <= 1:
  72. alc_count = 1
  73. else
  74. alc_count = ARGS[2]
  75. end
  76. :alcohol_jump
  77. alc_count -= 1
  78. frost = 0
  79. pcs_health -= 5
  80. pcs_energy -= 5
  81. cumspclnt = 2
  82. gs 'cum_cleanup'
  83. pcs_breath = 0
  84. if $ARGS[1] = 'beer':
  85. alko += 1
  86. fat += 3
  87. pcs_mood += 10
  88. if pcs_hydra >= 100:
  89. pcs_hydra += 5
  90. else
  91. pcs_hydra += 10
  92. end
  93. elseif $ARGS[1] = 'wine' or $ARGS[1] = 'champagne':
  94. alko += 2
  95. fat += 4
  96. pcs_mood += 20
  97. if pcs_hydra >= 100:
  98. pcs_hydra += 5
  99. else
  100. pcs_hydra += 10
  101. end
  102. elseif $ARGS[1] = 'vodka' or $ARGS[1] = 'whiskey' or $ARGS[1] = 'scotch' or $ARGS[1] = 'rum':
  103. alko += 3
  104. fat += 6
  105. if pcs_hydra >= 100:
  106. pcs_hydra -= 5
  107. else
  108. pcs_hydra -= 10
  109. end
  110. elseif $ARGS[1] = 'moonshine':
  111. alko += 5
  112. fat += 6
  113. if pcs_hydra >= 100:
  114. pcs_hydra -= 5
  115. else
  116. pcs_hydra -= 10
  117. end
  118. else
  119. '<br><font color = red>Developer note: The type of alcohol is missing in this scene. Please report this and the following variable: $curloc = <<$curloc>> as a bug.</font>'
  120. end
  121. if alc_count > 0: jump 'alcohol_jump'
  122. killvar 'alc_count'
  123. else
  124. '<br><font color = red>Developer note: The type of drug is wrong or missing in this scene. Please report this and the following variable: $curloc = <<$curloc>> as a bug.</font>'
  125. end
  126. --- drugs ---------------------------------