willpower.qsrc 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642
  1. # willpower
  2. !!To use it call it with gs 'willpower', 'action', 'type'
  3. !!Action: Determines what action sveta is resisting, forcing somebody to do or forcing herself to do
  4. !!List of actions:
  5. !! 'voyeur', 'mast', 'hj', 'bj', 'cuni', 'sex', 'anal', 'group', 'gangbang', 'prostitution', 'swallow', 'cum_inside', 'cum_inside_anal', 'rape',
  6. !! 'drink', 'drugs', 'crime', 'exhib', 'sleep'
  7. !! and two special cases 'misc' and 'skill'
  8. !!Type: Determines what kind of willpower check sveta needs to do ('resist', 'force', 'self').
  9. !! -'resist' is used if sveta is resisting to do the 'action' somebody else wants her to do.
  10. !! -'force' is used if sveta forces somebody else to do the 'action'.
  11. !! -'self' should be used if sveta forces herself to do the 'action' (this should be used only in rare occasions)
  12. !!Example 1: Sveta is forcing somebody to perform a blowjob: gs 'willpower', 'bj', 'force'
  13. !!Example 2: Sveta is resisting doing drugs: gs 'willpower', 'drugs', 'resist'
  14. !!You can modify the difficulty of the check with adding an additional argument at the end. You can either add an 'easy' or a 'hard' to modify the difficulty.
  15. !!Example 1: Sveta is resisting doing drugs, a weak outcast is pressuring her to use them: gs 'willpower', 'drugs', 'resist', 'easy'
  16. !!Example 2: Sveta is resisting doing drugs, a group of gopniks are pressuring her to use them: gs 'willpower', 'drugs', 'resist', 'hard'
  17. !!There are two special cases: 'misc' and 'skill'
  18. !!'skill': Bridging a gap in skill for doing something, for succeeding when not quite meeting the required skill/attribute: gs 'willpower', '<skill>_lvl'
  19. !!Example for 'skill': gs 'willpower', 'skill', 'resist', 'pcs_makupskl_lvl' for a willpower check regarding something with pcs_makupskl_lvl (you can also apply 'easy' or 'hard' difficulty to a skill check)
  20. !!'misc': Use this 'action' if no other 'action' fits the scene. You can set three difficulty levels for this check 'easy', 'medium', 'hard' (Difficulty is only for 'misc' checks)
  21. !!To call 'misc' do the following: gs 'willpower', 'misc', 'type', 'difficulty'
  22. !!Example 1 for 'misc': Sveta wants to bring herself to slap a weak looking nerd: gs 'willpower', 'misc', 'self', 'easy'
  23. !!Example 2 for 'misc': Sveta wants to force Artem to go to Vitek and call him an asshole: gs 'willpower', 'misc', 'force', 'hard'
  24. !!After Sveta has taken the willpower action the cost must be paid with: gs 'willpower', 'pay', 'type'
  25. !!Example: Sveta has to pay for resisting to do a blowjob: gs 'willpower', 'pay', 'resist'
  26. !!WARNING: If you have two or more actions that need willpower at the same time, you have to recalculate the willpower cost before the costs are payed (see Code Example 2)
  27. !{ Code Example 1 (one action needs willpower)
  28. gs 'willpower', 'misc', 'self', 'hard'
  29. if will_cost <= pcs_willpwr:
  30. act 'Kick him in the balls (<<will_cost>> Willpower)':
  31. *clr & cla
  32. gs 'willpower', 'pay', 'self'
  33. gs 'stat'
  34. 'Event text'
  35. act 'Next action': gt 'farawayistan'
  36. end
  37. else
  38. act 'Kick him in the balls (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  39. end
  40. }
  41. !{ Code Example 2 (several actions need willpower)
  42. gs 'willpower', 'misc', 'self', 'hard'
  43. if will_cost <= pcs_willpwr:
  44. act 'Kick him in the balls (<<will_cost>> Willpower)':
  45. *clr & cla
  46. gs 'willpower', 'misc', 'self', 'medium' <-- recalculate the willpower cost here
  47. gs 'willpower', 'pay', 'self'
  48. gs 'stat'
  49. 'Event text'
  50. act 'Next action': gt 'farawayistan'
  51. end
  52. else
  53. act 'Kick him in the balls (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  54. end
  55. gs 'willpower', 'misc', 'self', 'medium'
  56. if will_cost <= pcs_willpwr:
  57. act 'Slap him across the face (<<will_cost>> Willpower)':
  58. *clr & cla
  59. gs 'willpower', 'misc', 'self', 'medium' <-- recalculate the willpower cost here
  60. gs 'willpower', 'pay', 'self'
  61. gs 'stat'
  62. 'Event text'
  63. act 'Next action': gt 'farawayistan'
  64. end
  65. else
  66. act 'Slap him across the face (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  67. end
  68. }
  69. if $ARGS[0] = 'calc':
  70. gs 'willpower', 'dnd'
  71. will_calc = will_dnd
  72. !!fatigue
  73. if pcs_sleep < 5:
  74. will_calc += 50
  75. elseif pcs_sleep < 10:
  76. will_calc += 25
  77. elseif pcs_sleep < 20:
  78. will_calc += 10
  79. elseif pcs_sleep < 30:
  80. will_calc += 5
  81. end
  82. !!hunger
  83. if pcs_energy < 5:
  84. will_calc += 50
  85. elseif pcs_energy < 10:
  86. will_calc += 25
  87. elseif pcs_energy < 20:
  88. will_calc += 10
  89. elseif pcs_energy < 30:
  90. will_calc += 5
  91. end
  92. !!thirst
  93. if pcs_hydra < 5:
  94. will_calc += 50
  95. elseif pcs_hydra < 10:
  96. will_calc += 25
  97. elseif pcs_hydra < 20:
  98. will_calc += 10
  99. elseif pcs_hydra < 30:
  100. will_calc += 5
  101. end
  102. !!Very horny
  103. if pcs_horny >= 90: will_calc += 10
  104. !!Bad syphilis, you is mental
  105. if Sifilis >= 50: will_calc += 100
  106. !!feeling sick
  107. if sick > 72:
  108. will_calc += 35
  109. elseif sick > 48:
  110. will_calc += 20
  111. elseif sick > 24:
  112. will_calc += 10
  113. elseif sick > 1:
  114. will_calc += 5
  115. end
  116. will_calc += pain['total']
  117. end
  118. if $ARGS[0] = 'voyeur':
  119. gs 'willpower', 'calc'
  120. if $ARGS[1] = 'self':
  121. if stat['voyeur'] <= 90:
  122. will_cost = (100 - stat['voyeur'] + will_calc)/10
  123. else
  124. will_cost = (10 + will_calc)/10
  125. end
  126. elseif $ARGS[1] = 'force':
  127. if stat['voyeur'] <= 40:
  128. will_cost = (110 - will_enforced - stat['voyeur'] + will_calc)/10
  129. else
  130. will_cost = (70 - will_enforced + will_calc)/10
  131. end
  132. else
  133. if stat['voyeur'] <= 90:
  134. will_cost = (10 + stat['voyeur'] + will_calc)/10
  135. else
  136. will_cost = (100 + will_calc)/10
  137. end
  138. end
  139. end
  140. if $ARGS[0] = 'mast':
  141. gs 'willpower', 'calc'
  142. if $ARGS[1] = 'self':
  143. if stat['mast'] <= 90:
  144. will_cost = (100 - stat['mast'] + will_calc)/10
  145. else
  146. will_cost = (10 + will_calc)/10
  147. end
  148. elseif $ARGS[1] = 'force':
  149. if stat['mast'] <= 40:
  150. will_cost = (110 - will_enforced - stat['mast'] + will_calc)/10
  151. else
  152. will_cost = (70 - will_enforced + will_calc)/10
  153. end
  154. else
  155. if stat['mast'] <= 90:
  156. will_cost = (10 + stat['mast'] + will_calc)/10
  157. else
  158. will_cost = (100 + will_calc)/10
  159. end
  160. end
  161. end
  162. if $ARGS[0] = 'hj':
  163. gs 'willpower', 'calc'
  164. if $ARGS[1] = 'self':
  165. if missCum >= timeTresh: will_calc = 0
  166. if stat['hj'] <= 90:
  167. will_cost = (100 - stat['hj'] + will_calc)/10
  168. else
  169. will_cost = (10 + will_calc)/10
  170. end
  171. elseif $ARGS[1] = 'force':
  172. if stat['hj'] <= 40:
  173. will_cost = (110 - will_enforced - stat['hj'] + will_calc)/10
  174. else
  175. will_cost = (70 - will_enforced + will_calc)/10
  176. end
  177. else
  178. if missCum >= timeTresh: will_calc += 100
  179. if stat['hj'] <= 90:
  180. will_cost = (10 + stat['hj'] + will_calc)/10
  181. else
  182. will_cost = (100 + will_calc)/10
  183. end
  184. end
  185. end
  186. if $ARGS[0] = 'bj':
  187. gs 'willpower', 'calc'
  188. if $ARGS[1] = 'self':
  189. if missCum >= timeTresh: will_calc = 0
  190. if stat['bj'] <= 90:
  191. will_cost = (100 - stat['bj'] + will_calc)/10
  192. else
  193. will_cost = (10 + will_calc)/10
  194. end
  195. elseif $ARGS[1] = 'force':
  196. if stat['bj'] <= 40:
  197. will_cost = (110 - will_enforced - stat['bj'] + will_calc)/10
  198. else
  199. will_cost = (70 - will_enforced + will_calc)/10
  200. end
  201. else
  202. if missCum >= timeTresh: will_calc += 100
  203. if stat['bj'] <= 90:
  204. will_cost = (10 + stat['bj'] + will_calc)/10
  205. else
  206. will_cost = (100 + will_calc)/10
  207. end
  208. end
  209. end
  210. if $ARGS[0] = 'cuni':
  211. gs 'willpower', 'calc'
  212. cuni_check = (stat['cuni'] + stat['cuni_give']) / 2
  213. if $ARGS[1] = 'self':
  214. if cuni_check <= 90:
  215. will_cost = (100 - cuni_check + will_calc)/10
  216. else
  217. will_cost = (10 + will_calc)/10
  218. end
  219. elseif $ARGS[1] = 'force':
  220. if cuni_check <= 40:
  221. will_cost = (110 - will_enforced - cuni_check + will_calc)/10
  222. else
  223. will_cost = (70 - will_enforced + will_calc)/10
  224. end
  225. else
  226. if cuni_check <= 90:
  227. will_cost = (10 + cuni_check + will_calc)/10
  228. else
  229. will_cost = (100 + will_calc)/10
  230. end
  231. end
  232. killvar 'cuni_check'
  233. end
  234. if $ARGS[0] = 'sex' or $ARGS[0] = 'vaginal':
  235. gs 'willpower', 'calc'
  236. if $ARGS[1] = 'self':
  237. if missCum >= timeTresh: will_calc = 0
  238. if stat['vaginal'] <= 90:
  239. will_cost = (100 - stat['vaginal'] + will_calc)/10
  240. else
  241. will_cost = (10 + will_calc)/10
  242. end
  243. elseif $ARGS[1] = 'force':
  244. if stat['vaginal'] <= 40:
  245. will_cost = (110 - will_enforced - stat['vaginal'] + will_calc)/10
  246. else
  247. will_cost = (70 - will_enforced + will_calc)/10
  248. end
  249. else
  250. if missCum >= timeTresh: will_calc += 100
  251. if stat['vaginal'] <= 90:
  252. will_cost = (10 + stat['vaginal'] + will_calc)/10
  253. else
  254. will_cost = (100 + will_calc)/10
  255. end
  256. end
  257. end
  258. if $ARGS[0] = 'anal':
  259. gs 'willpower', 'calc'
  260. if $ARGS[1] = 'self':
  261. if missCum >= timeTresh: will_calc = 0
  262. if stat['anal'] <= 90:
  263. will_cost = (100 - stat['anal'] + will_calc)/10
  264. else
  265. will_cost = (10 + will_calc)/10
  266. end
  267. elseif $ARGS[1] = 'force':
  268. if stat['anal'] <= 40:
  269. will_cost = (160 - will_enforced * 2 - stat['anal'] + will_calc)/10
  270. else
  271. will_cost = (120 - will_enforced * 2 + will_calc)/10
  272. end
  273. else
  274. if missCum >= timeTresh: will_calc += 100
  275. if stat['anal'] <= 90:
  276. will_cost = (10 + stat['anal'] + will_calc)/10
  277. else
  278. will_cost = (100 + will_calc)/10
  279. end
  280. end
  281. end
  282. if $ARGS[0] = 'gangbang' or $ARGS[0] = 'group':
  283. gs 'willpower', 'calc'
  284. if $ARGS[1] = 'self':
  285. if missCum >= timeTresh: will_calc = 0
  286. if gang <= 90:
  287. will_cost = (100 - gang + will_calc)/10
  288. else
  289. will_cost = (10 + will_calc)/10
  290. end
  291. elseif $ARGS[1] = 'force':
  292. if gang <= 40:
  293. will_cost = (160 - will_enforced * 2 - gang + will_calc)/10
  294. else
  295. will_cost = (120 - will_enforced * 2 + will_calc)/10
  296. end
  297. else
  298. if missCum >= timeTresh: will_calc += 100
  299. if gang <= 90:
  300. will_cost = (10 + gang + will_calc)/10
  301. else
  302. will_cost = (100 + will_calc)/10
  303. end
  304. end
  305. end
  306. if $ARGS[0] = 'prostitution':
  307. gs 'willpower', 'calc'
  308. if $ARGS[1] = 'self':
  309. if missCum >= timeTresh: will_calc = 0
  310. if slutty <= 90:
  311. will_cost = (100 - slutty + will_calc)/10
  312. else
  313. will_cost = (10 + will_calc)/10
  314. end
  315. elseif $ARGS[1] = 'force':
  316. if slutty <= 40:
  317. will_cost = (160 - will_enforced * 2 - slutty + will_calc)/10
  318. else
  319. will_cost = (120 - will_enforced * 2 + will_calc)/10
  320. end
  321. else
  322. if missCum >= timeTresh: will_calc += 100
  323. prost_will = pav_prostitute + city_prostitute + oldtown_prostitute + village_prostitute + slutty/2
  324. if prost_will <= 90:
  325. will_cost = (10 + prost_will + will_calc)/10
  326. else
  327. will_cost = (100 + will_calc)/10
  328. end
  329. killvar 'prost_will'
  330. end
  331. end
  332. if $ARGS[0] = 'humiliation':
  333. gs 'willpower', 'calc'
  334. if $ARGS[1] = 'self':
  335. if missCum >= timeTresh: will_calc = 0
  336. if stat['humiliation'] <= 90:
  337. will_cost = (100 - stat['humiliation'] + will_calc)/10
  338. else
  339. will_cost = (10 + will_calc)/10
  340. end
  341. elseif $ARGS[1] = 'force':
  342. will_cost = (120 - will_enforced * 2 + will_calc)/10
  343. else
  344. if missCum >= timeTresh: will_calc += 100
  345. if stat['humiliation'] <= 90:
  346. will_cost = (10 + stat['humiliation'] + will_calc)/10
  347. else
  348. will_cost = (100 + will_calc)/10
  349. end
  350. end
  351. end
  352. if $ARGS[0] = 'swallow':
  353. gs 'willpower', 'calc'
  354. if $ARGS[1] = 'self':
  355. if missCum >= timeTresh: will_calc = 0
  356. if trt_cumeater = 1 or cumloc[12] > 0:
  357. will_cost = (10 + will_calc)/10
  358. else
  359. will_cost = (100 + will_calc)/10
  360. end
  361. elseif $ARGS[1] = 'force':
  362. will_cost = (80 - will_enforced - trt_cumeater * 10 + will_calc)/10
  363. else
  364. if missCum >= timeTresh: will_calc += 100
  365. if trt_cumeater = 1 or cumloc[12] > 0:
  366. will_cost = (100 + will_calc)/10
  367. else
  368. will_cost = (10 + will_calc)/10
  369. end
  370. end
  371. end
  372. if $ARGS[0] = 'cum_inside':
  373. gs 'willpower', 'calc'
  374. creampie_count = pcs_cp_safe_unknown + pcs_cp_notsafe_unknown + pcs_cp_risky_unknown
  375. if $ARGS[1] = 'self':
  376. if missCum >= timeTresh: will_calc = 0
  377. if cumloc[0] > 0 or creampie_count > 90:
  378. will_cost = (10 + creampie_count + will_calc)/10
  379. else
  380. will_cost = (100 + will_calc)/10
  381. end
  382. elseif $ARGS[1] = 'force':
  383. will_cost = (120 - will_enforced * 2 + will_calc)/10
  384. else
  385. if missCum >= timeTresh: will_calc += 100
  386. if cumloc[0] > 0 or creampie_count > 90:
  387. will_cost = (100 + will_calc)/10
  388. else
  389. will_cost = (10 + creampie_count + will_calc)/10
  390. end
  391. end
  392. end
  393. if $ARGS[0] = 'cum_inside_anal':
  394. gs 'willpower', 'calc'
  395. if $ARGS[1] = 'self':
  396. if missCum >= timeTresh: will_calc = 0
  397. if cumloc[3] > 0 or pcs_acp_known > 90:
  398. will_cost = (10 + pcs_acp_known + will_calc)/10
  399. else
  400. will_cost = (100 + will_calc)/10
  401. end
  402. elseif $ARGS[1] = 'force':
  403. will_cost = (120 - will_enforced * 2 + will_calc)/10
  404. else
  405. if missCum >= timeTresh: will_calc += 100
  406. if cumloc[3] > 0 or pcs_acp_known > 90:
  407. will_cost = (100 + will_calc)/10
  408. else
  409. will_cost = (10 + pcs_acp_known + will_calc)/10
  410. end
  411. end
  412. end
  413. !! requires the skill to be named with the _lvl postfix
  414. if $ARGS[0] = 'skill':
  415. gs 'willpower', 'calc'
  416. if $ARGS[1] = 'resist' or $ARGS[1] = 'force' or $ARGS[1] = 'self':
  417. if $ARGS[2] = 'inhib_lvl':
  418. will_cost = (pcs_inhib + will_calc)/10
  419. else
  420. dynamic 'will_cost = (100 - <<$ARGS[2]>> + will_calc)/10'
  421. end
  422. else
  423. if $ARGS[1] = 'inhib_lvl':
  424. will_cost = (pcs_inhib + will_calc)/10
  425. else
  426. dynamic 'will_cost = (100 - <<$ARGS[1]>> + will_calc)/10'
  427. end
  428. end
  429. end
  430. if $ARGS[0] = 'rape':
  431. gs 'willpower', 'calc'
  432. if $ARGS[1] = 'self':
  433. if missCum >= timeTresh: will_calc = 0
  434. will_cost = (100 + will_calc)/10
  435. elseif $ARGS[1] = 'force':
  436. will_cost = (200 - will_enforced * 2 + will_calc)/10
  437. else
  438. if missCum >= timeTresh: will_calc += 100
  439. if rape = 0:
  440. will_cost = (10 + will_calc)/10
  441. else
  442. will_cost = (100 + rape + will_calc)/10
  443. end
  444. end
  445. end
  446. if $ARGS[0] = 'drink':
  447. gs 'willpower', 'calc'
  448. if $ARGS[1] = 'self':
  449. will_cost = (60 - alcohol_exp * 40 + will_calc)/10
  450. elseif $ARGS[1] = 'force':
  451. will_cost = (100 - will_enforced - alcohol_exp * 30 + will_calc)/10
  452. else
  453. if alko > 10:
  454. will_cost = (20 + alcohol_exp * 10 + will_calc)/10
  455. elseif alko > 6:
  456. will_cost = (80 + alcohol_exp * 40 + will_calc)/10
  457. elseif alko > 3:
  458. will_cost = (60 + alcohol_exp * 30 + will_calc)/10
  459. else
  460. will_cost = (10 + alcohol_exp * 20 + will_calc)/10
  461. end
  462. end
  463. end
  464. !!Drug needs already included in the will_calc so just a small base cost here
  465. if $ARGS[0] = 'drugs':
  466. gs 'willpower', 'calc'
  467. if $ARGS[1] = 'self':
  468. will_cost = (100 - addictive_trait_lvl * 30 + will_calc)/10
  469. elseif $ARGS[1] = 'force':
  470. will_cost = (100 - will_enforced - addictive_trait_lvl * 10 + will_calc)/10
  471. else
  472. if addictive_trait_lvl > 0:
  473. will_cost = (addictive_trait_lvl * 30 + will_calc)/10
  474. else
  475. will_cost = (10 + will_calc)/10
  476. end
  477. end
  478. end
  479. if $ARGS[0] = 'crime':
  480. gs 'willpower', 'calc'
  481. if $ARGS[0] = 'force':
  482. will_cost = (80 - will_enforced + will_calc)/10
  483. else
  484. will_cost = (60 + will_calc)/10
  485. end
  486. end
  487. if $ARGS[0] = 'exhib':
  488. gs 'willpower', 'calc'
  489. if $ARGS[1] = 'self':
  490. will_cost = (100 - Exhibitionist_lvl * 20 - pcs_inhib/5 + will_calc)/10
  491. elseif $ARGS[1] = 'force':
  492. will_cost = (100 - will_enforced - Exhibitionist_lvl * 10 + will_calc)/10
  493. else
  494. will_cost = (Exhibitionist_lvl * 25 + pcs_inhib/4 + will_calc)/10
  495. end
  496. end
  497. !!this is to force you to stay wake so will cost nothing if you have more than 5 sleep, it has no base cost as there will always be a sleep cost in calc
  498. if $ARGS[0] = 'sleep':
  499. gs 'willpower', 'calc'
  500. will_cost = 0
  501. if pcs_sleep <= 5: will_cost = will_calc/10
  502. end
  503. !!Choose this if nothing else fits
  504. if $ARGS[0] = 'misc':
  505. gs 'willpower', 'calc'
  506. if $ARGS[1] = 'force':
  507. if $ARGS[2] = 'easy':
  508. will_cost = (60 - will_enforced + will_calc)/10
  509. elseif $ARGS[2] = 'hard':
  510. will_cost = (90 - will_enforced + will_calc)/10
  511. else
  512. will_cost = (70 - will_enforced + will_calc)/10
  513. end
  514. else
  515. if $ARGS[2] = 'easy':
  516. will_cost = (10 + will_calc)/10
  517. elseif $ARGS[2] = 'hard':
  518. will_cost = (40 + will_calc)/10
  519. else
  520. will_cost = (20 + will_calc)/10
  521. end
  522. end
  523. end
  524. !!modifiers for drink an drugs
  525. if $ARGS[0] = 'dnd':
  526. will_dnd = 0
  527. if alko > 10:
  528. will_dnd += 80
  529. elseif alko > 6:
  530. will_dnd += 40
  531. elseif alko > 3:
  532. will_dnd += 20
  533. end
  534. !!cigarettes
  535. if smokerNeed > 10: will_dnd += 10
  536. !!weed
  537. if jointhigh > 0: will_dnd -= 10
  538. !!amphetamines
  539. if amphWithdrawl > 2:
  540. will_dnd += 40
  541. elseif amphHigh > 0:
  542. will_dnd += 60
  543. end
  544. !!heroine
  545. if SLomka > 0:
  546. will_dnd += 80
  547. elseif StrongNarkota > 0:
  548. will_dnd += 50
  549. end
  550. !!cocaine
  551. if narkoman = 1:
  552. will_dnd += 40
  553. elseif nark < 0:
  554. will_dnd -= 20
  555. end
  556. end
  557. if $ARGS[0] ! 'pay' and $ARGS[0] ! 'misc' and $ARGS[2] ! '':
  558. if $ARGS[2] = 'easy':
  559. will_cost = will_cost * 2/3
  560. elseif $ARGS[2] = 'hard':
  561. will_cost = will_cost * 3/2
  562. end
  563. elseif $ARGS[0] = 'pay':
  564. if will_cost < 1: will_cost = 1
  565. pcs_willpwr -= will_cost
  566. if $ARGS[1] = 'force':
  567. will_counter += 1
  568. if will_counter >= 5: will_counter = 0 & willpowermax += 1
  569. if will_enforced < 50: will_enforced += 1
  570. end
  571. end
  572. --- willpower ---------------------------------