mod_public_WC_rab_tryrun.qsrc 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  1. # mod_public_WC_rab_tryrun
  2. if $ARGS[0] = 'start':
  3. CLOSE ALL
  4. menu_off = 0
  5. $location_type = 'secluded'
  6. *clr & cla
  7. temp = rand(1,3)
  8. '<center><img <<$set_imgh>> src="mod/public_WC/lisrab/tryrun/run<<temp>>.jpg"></center>'
  9. 'Am I sure?'
  10. gs 'willpower', 'misc', 'self', 'hard'
  11. if will_cost <= pcs_willpwr:
  12. act 'Run! (<<will_cost>> Willpower)':
  13. *clr & cla
  14. gs 'willpower', 'pay', 'self'
  15. gs 'stat'
  16. act 'Continue': gt 'mod_public_WC_rab_tryrun', 'run'
  17. end
  18. else
  19. act 'Run! (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  20. end
  21. act 'No!':
  22. if $metka = 'viranda':
  23. gt 'mod_public_WC_rab', 'viranda'
  24. else
  25. gt 'mod_public_WC_rab', 'dvir'
  26. end
  27. end
  28. if VaniaMayster >= 100:
  29. cla
  30. '<i>I obey Vania for so long...</i>'
  31. '<i>I can''t run from Vania anymore</i>'
  32. act 'Go back!':
  33. if $metka = 'viranda':
  34. gt 'mod_public_WC_rab', 'viranda'
  35. else
  36. gt 'mod_public_WC_rab', 'dvir'
  37. end
  38. end
  39. end
  40. end
  41. if $ARGS[0] = 'run':
  42. CLOSE ALL
  43. menu_off = 0
  44. $location_type = 'secluded'
  45. *clr & cla
  46. minut += 5
  47. gs 'stat'
  48. 'I hear someone running after me!!!'
  49. if ktemp = 105: 'Obviously it''s Vania'
  50. killvar 'ktemp'
  51. if month <= 4 or month >= 10:
  52. '<center><video autoplay loop src="mod/public_WC/lisrab/tryrun/runrun10.mp4"></video></center>'
  53. else
  54. temp = rand(1,3)
  55. '<center><video autoplay loop src="mod/public_WC/lisrab/tryrun/runrun<<temp>>.mp4"></video></center>'
  56. end
  57. if gun = 1:
  58. ztemp = 0
  59. act 'use gun': gt 'mod_public_WC_rab_gun_run', 'run'
  60. end
  61. act 'Run with all my strength!':
  62. if ktemp = 105:
  63. killvar 'ktemp'
  64. gt 'mod_public_WC_rab_tryrun', 'k100'
  65. end
  66. if week <= 5:
  67. gt 'mod_public_WC_rab_tryrun', 'runweek15'
  68. end
  69. if week = 6:
  70. gt 'mod_public_WC_rab_tryrun', 'runweek6'
  71. end
  72. if week = 7:
  73. gt 'mod_public_WC_rab_tryrun', 'runweek7'
  74. end
  75. end
  76. end
  77. if $ARGS[0] = 'runweek15':
  78. CLOSE ALL
  79. menu_off = 0
  80. $location_type = 'secluded'
  81. *clr & cla
  82. gs 'stat'
  83. if hour >= 0 and hour <= 5:
  84. 'I was immediately spotted'
  85. if pcs_run >= rand (85, 111):
  86. 'I was able to break away!'
  87. minut += rand (10, 40)
  88. vtecha = 1
  89. Artem = 0 & Tolik = 0 & Vania = 0
  90. brak += 10
  91. act 'Continue': gt 'gadforestlost', 'forest_center'
  92. else
  93. 'I was caught and broke'
  94. brak += 5
  95. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  96. end
  97. elseif hour >= 14 and hour <= 19:
  98. 'I was immediately spotted'
  99. if pcs_run >= rand (85, 111):
  100. 'I was able to break away!'
  101. minut += rand (10, 40)
  102. vtecha = 1
  103. Artem = 0 & Tolik = 0 & Vania = 0
  104. brak += 10
  105. act 'Continue': gt 'gadforestlost', 'forest_center'
  106. else
  107. 'I was caught and broke'
  108. brak += 5
  109. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  110. end
  111. elseif hour >= 21 and hour <= 24:
  112. 'I was immediately spotted'
  113. if pcs_run >= rand (85, 111):
  114. 'I was able to break away!'
  115. minut += rand (10, 40)
  116. vtecha = 1
  117. Artem = 0 & Tolik = 0 & Vania = 0
  118. brak += 10
  119. act 'Continue': gt 'gadforestlost', 'forest_center'
  120. else
  121. 'I was caught and broke'
  122. brak += 5
  123. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  124. end
  125. elseif hour >= 11 and hour <= 12:
  126. 'It seems I ran away unnoticed'
  127. if pcs_run >= rand (80, 90):
  128. 'I ran away!'
  129. minut += rand (10, 40)
  130. vtecha = 1
  131. Artem = 0 & Tolik = 0 & Vania = 0
  132. brak += 10
  133. act 'Continue': gt 'gadforestlost', 'forest_center'
  134. elseif pcs_agil + pcs_sprt + pcs_run + pcs_ftbll >= rand (180, 270):
  135. 'I was able to escape!'
  136. minut += rand (10, 40)
  137. vtecha = 1
  138. Artem = 0 & Tolik = 0 & Vania = 0
  139. brak += 10
  140. act 'Continue': gt 'gadforestlost', 'forest_center'
  141. else
  142. 'Nope...I was caught up and broke!'
  143. brak += 5
  144. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  145. end
  146. else
  147. 'Soon they will notice my disappearance'
  148. if pcs_run >= rand (80, 90):
  149. 'I managed to break away'
  150. minut += rand (10, 40)
  151. vtecha = 1
  152. Artem = 0 & Tolik = 0 & Vania = 0
  153. brak += 10
  154. act 'Continue': gt 'gadforestlost', 'forest_center'
  155. else
  156. 'I was caught and broke'
  157. brak += 5
  158. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  159. end
  160. end
  161. end
  162. if $ARGS[0] = 'runweek6':
  163. CLOSE ALL
  164. menu_off = 0
  165. $location_type = 'secluded'
  166. *clr & cla
  167. gs 'stat'
  168. if hour >= 0 and hour <=5:
  169. 'I was immediately spotted'
  170. if pcs_run >= rand (85, 111):
  171. 'I managed to break away'
  172. minut += rand (10, 40)
  173. vtecha = 1
  174. Artem = 0 & Tolik = 0 & Vania = 0
  175. brak += 10
  176. act 'Continue': gt 'gadforestlost', 'forest_center'
  177. else
  178. 'I was caught and broke'
  179. brak += 5
  180. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  181. end
  182. elseif hour >= 21 and hour <= 24:
  183. 'I was immediately spotted'
  184. if pcs_run >= rand (85, 111):
  185. 'I managed to break away'
  186. minut += rand (10, 40)
  187. vtecha = 1
  188. Artem = 0 & Tolik = 0 & Vania = 0
  189. brak += 10
  190. act 'Continue': gt 'gadforestlost', 'forest_center'
  191. else
  192. 'I was caught and broke'
  193. brak += 5
  194. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  195. end
  196. elseif hour >= 16 and hour <=19 and $metka ! 'viranda':
  197. 'I was immediately spotted'
  198. if pcs_run >= rand (85, 111):
  199. 'I managed to break away'
  200. minut += rand (10, 40)
  201. vtecha = 1
  202. Artem = 0 & Tolik = 0 & Vania = 0
  203. brak += 10
  204. act 'Continue': gt 'gadforestlost', 'forest_center'
  205. else
  206. 'I was caught and broke'
  207. brak += 5
  208. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  209. end
  210. elseif hour >= 16 and hour <=19 and $metka = 'viranda':
  211. 'It seems I ran away unnoticed'
  212. if pcs_run >= rand (80, 90):
  213. 'I ran away!'
  214. minut += rand (10, 40)
  215. vtecha = 1
  216. Artem = 0 & Tolik = 0 & Vania = 0
  217. brak += 10
  218. act 'Continue': gt 'gadforestlost', 'forest_center'
  219. elseif pcs_agil + pcs_sprt + pcs_run + pcs_ftbll >= rand (180, 270):
  220. 'I was able to escape!'
  221. minut += rand (10, 40)
  222. vtecha = 1
  223. Artem = 0 & Tolik = 0 & Vania = 0
  224. brak += 10
  225. act 'Continue': gt 'gadforestlost', 'forest_center'
  226. else
  227. 'I was caught up and broke!'
  228. brak += 5
  229. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  230. end
  231. elseif hour >= 8 and hour <=9 and $metka ! 'viranda':
  232. 'I was immediately spotted'
  233. if pcs_run >= rand (85, 111):
  234. 'I managed to break away'
  235. minut += rand (10, 40)
  236. vtecha = 1
  237. Artem = 0 & Tolik = 0 & Vania = 0
  238. brak += 10
  239. act 'Continue': gt 'gadforestlost', 'forest_center'
  240. else
  241. 'I was caught and broke'
  242. brak += 5
  243. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  244. end
  245. elseif hour >= 8 and hour <=9 and $metka = 'viranda':
  246. 'It seems I ran away unnoticed'
  247. if pcs_run >= rand (80, 90):
  248. 'I ran away!'
  249. minut += rand (10, 40)
  250. vtecha = 1
  251. Artem = 0 & Tolik = 0 & Vania = 0
  252. brak += 10
  253. act 'Continue': gt 'gadforestlost', 'forest_center'
  254. elseif pcs_agil + pcs_sprt + pcs_run + pcs_ftbll >= rand (180, 270):
  255. 'I was able to escape!'
  256. minut += rand (10, 40)
  257. vtecha = 1
  258. Artem = 0 & Tolik = 0 & Vania = 0
  259. brak += 10
  260. act 'Continue': gt 'gadforestlost', 'forest_center'
  261. else
  262. 'I was caught up and broke!'
  263. brak += 5
  264. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  265. end
  266. elseif hour >= 11 and hour <= 12:
  267. 'It seems I ran away unnoticed'
  268. if pcs_run >= rand (80, 90):
  269. 'I ran away!'
  270. minut += rand (10, 40)
  271. vtecha = 1
  272. Artem = 0 & Tolik = 0 & Vania = 0
  273. brak += 10
  274. act 'Continue': gt 'gadforestlost', 'forest_center'
  275. elseif pcs_agil + pcs_sprt + pcs_run + pcs_ftbll >= rand (180, 270):
  276. 'I was able to escape!'
  277. minut += rand (10, 40)
  278. vtecha = 1
  279. Artem = 0 & Tolik = 0 & Vania = 0
  280. brak += 10
  281. act 'Continue': gt 'gadforestlost', 'forest_center'
  282. else
  283. 'I was caught up and broke!'
  284. brak += 5
  285. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  286. end
  287. elseif hour >= 14 and hour <= 15:
  288. 'It seems I ran away unnoticed'
  289. if pcs_run >= rand (80, 90):
  290. 'I ran away!'
  291. minut += rand (10, 40)
  292. vtecha = 1
  293. Artem = 0 & Tolik = 0 & Vania = 0
  294. brak += 10
  295. act 'Continue': gt 'gadforestlost', 'forest_center'
  296. elseif pcs_agil + pcs_sprt + pcs_run + pcs_ftbll >= rand (180, 270):
  297. 'I was able to escape!'
  298. minut += rand (10, 40)
  299. vtecha = 1
  300. Artem = 0 & Tolik = 0 & Vania = 0
  301. brak += 10
  302. act 'Continue': gt 'gadforestlost', 'forest_center'
  303. else
  304. 'I was caught up and broke!'
  305. brak += 5
  306. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  307. end
  308. else
  309. 'Soon they will notice my disappearance'
  310. if pcs_run >= rand (80, 90):
  311. 'I managed to break away'
  312. minut += rand (10, 40)
  313. vtecha = 1
  314. Artem = 0 & Tolik = 0 & Vania = 0
  315. brak += 10
  316. act 'Continue': gt 'gadforestlost', 'forest_center'
  317. else
  318. 'I was caught and broke'
  319. brak += 5
  320. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  321. end
  322. end
  323. end
  324. if $ARGS[0] = 'runweek7':
  325. CLOSE ALL
  326. menu_off = 0
  327. $location_type = 'secluded'
  328. *clr & cla
  329. gs 'stat'
  330. if hour >= 0 and hour <=5:
  331. 'I was immediately spotted'
  332. if pcs_run >= rand (85, 111):
  333. 'I managed to break away'
  334. minut += rand(10, 40)
  335. vtecha = 1
  336. Artem = 0 & Tolik = 0 & Vania = 0
  337. brak += 10
  338. act 'Continue': gt 'gadforestlost', 'forest_center'
  339. else
  340. 'I was caught and broke'
  341. brak += 5
  342. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  343. end
  344. elseif hour >= 17 and hour <= 19:
  345. 'I was immediately spotted'
  346. if pcs_run >= rand (85, 111):
  347. 'I managed to break away'
  348. minut += rand(10, 40)
  349. vtecha = 1
  350. Artem = 0 & Tolik = 0 & Vania = 0
  351. brak += 10
  352. act 'Continue': gt 'gadforestlost', 'forest_center'
  353. else
  354. 'I was caught and broke'
  355. brak += 5
  356. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  357. end
  358. elseif hour >= 21 and hour <= 24:
  359. 'I was immediately spotted'
  360. if pcs_run >= rand (85, 111):
  361. 'I managed to break away'
  362. minut += rand(10, 40)
  363. vtecha = 1
  364. Artem = 0 & Tolik = 0 & Vania = 0
  365. brak += 10
  366. act 'Continue': gt 'gadforestlost', 'forest_center'
  367. else
  368. 'I was caught and broke'
  369. brak += 5
  370. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  371. end
  372. elseif hour >= 8 and hour <= 12 and $metka ! 'viranda':
  373. 'It seems I ran away unnoticed'
  374. if pcs_run >= rand(80, 90):
  375. 'I ran away!'
  376. minut += rand(10, 40)
  377. vtecha = 1
  378. Artem = 0 & Tolik = 0 & Vania = 0
  379. brak += 10
  380. act 'Continue': gt 'gadforestlost', 'forest_center'
  381. elseif pcs_agil + pcs_sprt + pcs_run + pcs_ftbll >= rand(180, 270):
  382. 'I was able to escape!'
  383. minut += rand (10, 40)
  384. vtecha = 1
  385. Artem = 0 & Tolik = 0 & Vania = 0
  386. brak += 10
  387. act 'Continue': gt 'gadforestlost', 'forest_center'
  388. else
  389. 'I was caught up and broke!'
  390. brak += 5
  391. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  392. end
  393. elseif hour >= 8 and hour <= 12 and $metka = 'viranda':
  394. 'I was immediately spotted'
  395. if pcs_run >= rand (85, 111):
  396. 'I managed to break away'
  397. minut += rand (10, 40)
  398. vtecha = 1
  399. Artem = 0 & Tolik = 0 & Vania = 0
  400. brak += 10
  401. act 'Continue': gt 'gadforestlost', 'forest_center'
  402. else
  403. 'I was caught and broke'
  404. brak += 5
  405. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  406. end
  407. else
  408. 'Soon they will notice my disappearance'
  409. if pcs_run >= rand (80, 90):
  410. 'I managed to break away'
  411. minut += rand (10, 40)
  412. vtecha = 1
  413. Artem = 0 & Tolik = 0 & Vania = 0
  414. brak += 10
  415. act 'Continue': gt 'gadforestlost', 'forest_center'
  416. else
  417. 'I was caught and broke'
  418. brak += 5
  419. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  420. end
  421. end
  422. end
  423. if $ARGS[0] = 'k100':
  424. CLOSE ALL
  425. menu_off = 0
  426. $location_type = 'secluded'
  427. *clr & cla
  428. gs 'stat'
  429. if pcs_run >= rand (65, 91):
  430. 'I was able to break away!'
  431. minut += rand (10, 40)
  432. vtecha = 1
  433. Artem = 0 & Tolik = 0 & Vania = 0
  434. brak += 10
  435. act 'Continue': gt 'gadforestlost', 'forest_center'
  436. else
  437. 'I was caught and broke'
  438. brak += 5
  439. act 'Continue': gt 'mod_public_WC_kara', 'vtecha'
  440. end
  441. end
  442. --- mod_public_WC_rab_tryrun ---------------------------------