fight.qsrc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. # fight
  2. if $ARGS[0] = 'start':
  3. menu_off = 1
  4. cla
  5. inFight = 1
  6. if night_mode = 1:
  7. fcolor = rgb(255, 255, 255)
  8. bcolor = rgb(0, 0, 0)
  9. lcolor = rgb(106, 90, 205)
  10. else
  11. fcolor = rgb(0, 0, 0)
  12. bcolor = rgb(255, 255, 255)
  13. lcolor = rgb(106, 90, 205)
  14. end
  15. gs'defence'
  16. gs'statBat'
  17. if SasoriBody > 2 and healthV <= 0 or SasoriBody > 2 and mannaV <= 0 or SasoriBody > 2 and willpowerV <= 0:
  18. SasoriBody = SasoriBody - 1
  19. gs'priziv','sasori'
  20. '<b><font color = red>The doll parts scatter all over and immediately head into battle mode.</font></b>'
  21. '<b><font color = red>You hear the sonorous voice of Sasori, "I have a lots of dolls, you can''t beat me."</font></b>'
  22. elseif SasoriBody = 2 and healthV <= 0 or SasoriBody = 2 and mannaV <= 0 or SasoriBody = 2 and willpowerV <= 0:
  23. SasoriBody = SasoriBody - 1
  24. gs'priziv','sasori1'
  25. '<b><font color = red>The last doll crumbles into pieces and you''ve finally reached Sasori.</font></b>'
  26. end
  27. if stunV > 0 and SasoriBody > 1:
  28. stunV = 0
  29. '<b><font color = red>The doll began to move again.</font></b>'
  30. end
  31. if stunV > 0 and SasoriBody = 1:
  32. stunV = 0
  33. '<b><font color = red>Sasori moves again.</font></b>'
  34. end
  35. if GedoMazo = 1 and healthV <= 0 or GedoMazo = 1 and mannaV <= 0 or GedoMazo = 1 and willpowerV <= 0:
  36. GedoMazo = 2
  37. barierV = 0
  38. '<b><font color = green><<$boydesc>> He fell to the ground and turned to dust.</font></b>'
  39. gs'priziv','tobi'
  40. '<b><font color = green><<$boydesc>>Attack</font></b>'
  41. end
  42. if pcs_health <= 0 and heart = 0 and izanagi = 0:
  43. '<b><font color = red>You lost!</font></b>'
  44. xgt'ender','loss'
  45. exit
  46. elseif healthV <= 0 and heartV = 0 and izanagiV = 0:
  47. '<b><font color = green><<$boydesc>>You won!</font></b>'
  48. xgt'ender','win'
  49. exit
  50. elseif pcs_manna <= 0 and heart = 0 and izanagi = 0:
  51. '<b><font color = red>You won!</font></b>'
  52. xgt'ender','loss'
  53. exit
  54. elseif mannaV <= 0 and heartV = 0 and izanagiV = 0:
  55. '<b><font color = green><<$boydesc>> lost!</font></b>'
  56. xgt'ender','win'
  57. exit
  58. elseif pcs_willpwr <= 0 and heart = 0 and izanagi = 0:
  59. '<b><font color = red>You lost!</font></b>'
  60. xgt'ender','loss'
  61. exit
  62. elseif willpowerV <= 0 and heartV = 0 and izanagiV = 0:
  63. '<b><font color = green><<$boydesc>> won!</font></b>'
  64. xgt'ender','win'
  65. exit
  66. end
  67. if izanagiV > 0 and healthV <= 0 or izanagiV > 0 and mannaV <= 0 or izanagiV > 0 and willpowerV <= 0:
  68. izanagiV = izanagiV - 1
  69. '<b><font color = red><<$boydesc>> disappeared.</font></b>'
  70. healthV = vitalV*10 + strenV*5
  71. mannaV = intelV*magikV + magikV*100 + vitalV*10
  72. willpowerV = willV*10
  73. stunV = 0
  74. if program = 6 and izanagiOnce = 0:izanagiOnce = 1 & unmaterialV = 40 & tobizanagi = 0
  75. '<b><font color = red><<$boydesc>> appeared in front of you, completely healthy. He folded his arms and made the magic sign for Izanagi, the perfect illusion.</font></b>'
  76. '<b><font color = red>The price for this spell was to sacrifice one of my eyes.</font></b>'
  77. elseif heartV > 0 and healthV <= 0 or heartV > 0 and mannaV <= 0 or heartV > 0 and willpowerV <= 0:
  78. heartV = heartV - 1
  79. '<b><font color = red><<$boydesc>> staggered, as his heart burst.</font></b>'
  80. healthV = vitalV*10 + strenV*5
  81. mannaV = intelV*magikV + magikV*100 + vitalV*10
  82. willpowerV = willV*10
  83. stunV = 0
  84. '<b><font color = red><<$boydesc>> stood up and got in a frenzy. He must have another heart.</font></b>'
  85. elseif izanagi > 0 and pcs_health <= 0 or izanagi > 0 and pcs_manna <= 0 or izanagi > 0 and pcs_willpwr <= 0:
  86. izanagi = izanagi - 1
  87. '<b><font color = green>He vanishes.</font></b>'
  88. pcs_health = pcs_vital*10 + pcs_stren*5
  89. pcs_willpwr = pcs_intel*5 + pcs_sprt*5
  90. pcs_manna = (pcs_intel*pcs_magik) + pcs_magik*100 + pcs_vital*10 + rikudo
  91. stun = 0
  92. zerkaloV = 0
  93. poisonV = 0
  94. bloodV = 0
  95. '<b><font color = green>All of a sudden he appears in front of you completely healthy.</font></b>'
  96. elseif heart > 0 and pcs_health <= 0 or heart > 0 and pcs_manna <= 0 or heart > 0 and pcs_willpwr <= 0:
  97. heart = heart - 1
  98. zerkaloV = 0
  99. poisonV = 0
  100. bloodV = 0
  101. '<b><font color = green>Your heart took too much of a beating and gave up.</font></b>'
  102. pcs_health = pcs_vital*10 + pcs_stren*5
  103. pcs_willpwr = pcs_intel*5 + pcs_sprt*5
  104. pcs_manna = (pcs_intel*pcs_magik) + pcs_magik*100 + pcs_vital*10 + rikudo
  105. stun = 0
  106. '<b><font color = green>You open your eyes as you''re not dead...</font></b>'
  107. end
  108. gs'before'
  109. '<b>= = = = = = = = = = = = = (ROUND <<round>>) = = = = = = = = = = = = =</b>'
  110. '<b><<$boydesc>></b> life <b><font color = red><<healthV>></font></b>, manna <b><font color = blue><<mannaV>></font></b>, willpower <b><font color = green><<willpowerV>></font></b>'
  111. if defenceV > 0:'<b><font color = red>Protection <<defenceV>> units</font></b>'
  112. if defenceMV > 0:'<b><font color = red>Mana protection <<defenceMV>> units</font></b>'
  113. if defenceWV > 0:'<b><font color = red>Will protection <<defenceWV>> units</font></b>'
  114. 'Your life <b><font color = red><<pcs_health>></font></b>, manna <b><font color = blue><<pcs_manna>></font></b>, willpower <b><font color = green><<pcs_willpwr>></font></b>'
  115. if defence > 0:'<b><font color = green>Protection <<defence>> units</font></b>'
  116. if defenceM > 0:'<b><font color = green>Mana impact protection <<defenceM>> units</font></b>'
  117. if defenceW > 0:'<b><font color = green>Will impact protection <<defenceW>> units</font></b>'
  118. if defenceAct > 0:'<b><font color = green><<defenceAct>> Regeneration</font></b>'
  119. if defenceActM > 0:'<b><font color = green><<defenceActM>> Mana recovery protection</font></b>'
  120. if unmaterial > 0:'<b><font color = green>You''re <<unmaterial>> strokes are not material.</font></b>'
  121. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  122. gs'init'
  123. if hod = 0:
  124. !player attacks
  125. '<font color = green>Choose your attack</font>'
  126. if gun > 0:
  127. !Boomstick
  128. if bulletIn > 0:
  129. 'You have <<bulletIn>> bullets loaded in the gun.'
  130. act 'Pistol shot':
  131. cla
  132. bulletIn -= 1
  133. gunpower = 150
  134. buu = 1
  135. gunpricel = 1
  136. Gcrime += 1
  137. gt'strelba'
  138. end
  139. elseif bulletIn <= 0:
  140. if bullet = 0:
  141. 'You''re out of ammunition.'
  142. elseif bullet>0:
  143. 'You have <<bullet>> left.'
  144. act 'Reload':
  145. cla
  146. if bullet < 7:
  147. bulletIn = bullet
  148. bullet = 0
  149. 'You reload the empty gun.'
  150. end
  151. if bullet >= 7:
  152. bullet -= 7
  153. bulletIn = 7
  154. 'You reload all the 7 bullets in the gun.'
  155. end
  156. act 'Further':gt'fight','sta'
  157. end
  158. end
  159. end
  160. end
  161. if Mgun > 0:
  162. !Boomstick
  163. if mbulletIn > 0:
  164. 'You have <<mbulletIn>> bullets left in the machine gun.'
  165. act 'Single shot':
  166. cla
  167. mbulletIn -= 1
  168. buu = 1
  169. gunpower = 300
  170. gunpricel = 2
  171. Gcrime += 1
  172. gt'strelba'
  173. end
  174. if mbulletIn >= 3:
  175. act 'Burst shot':
  176. cla
  177. mbulletIn -= 3
  178. buu = 3
  179. gunpower = 300
  180. gunpricel = 1
  181. Gcrime += buu
  182. gt'strelba'
  183. end
  184. act 'Automatic shot':
  185. cla
  186. buu = mbulletIn
  187. mbulletIn = 0
  188. gunpower = 300
  189. gunpricel = 0
  190. Gcrime += buu
  191. gt'strelba'
  192. end
  193. end
  194. elseif mbulletIn <= 0:
  195. if mbullet = 0:
  196. 'You''ve run out of ammunition.'
  197. elseif mbullet > 0:
  198. 'You have <<mbullet>> bullets left in the machine gun.'
  199. act 'Reload':
  200. cla
  201. if mbullet < 7:
  202. mbulletIn = mbullet
  203. mbullet = 0
  204. 'You reload the empty gun.'
  205. end
  206. if mbullet >= 30:
  207. mbullet -= 30
  208. mbulletIn = 30
  209. 'You''ve reloaded 30 bullets for the machine gun.'
  210. end
  211. act 'Further':gt'fight','sta'
  212. end
  213. end
  214. end
  215. end
  216. if tragun > 0:
  217. !travmatik
  218. if tbulletIn > 0:
  219. 'You have <<mbulletIn>> bullets left in the non-lethal gun.'
  220. act 'Pistol shot':
  221. cla
  222. tbulletIn -= 1
  223. gunpower = 50
  224. buu = 1
  225. gunpricel = 0
  226. gt'strelba'
  227. end
  228. elseif tbulletIn <= 0:
  229. if tbullet = 0:
  230. 'You''ve run out of ammunition.'
  231. elseif tbullet > 0:
  232. 'You have <<mbullet>> bullets left in the non-lethal gun.'
  233. act 'Charge':
  234. cla
  235. if tbullet >= 1:
  236. tbullet -= 1
  237. tbulletIn = 1
  238. 'You reload the empty gun.'
  239. end
  240. act 'Further':gt'fight','sta'
  241. end
  242. end
  243. end
  244. end
  245. act 'Physical Attack':xgt'boxing'
  246. if pcs_magik > 0:
  247. act 'Magical Attack':gt'magik'
  248. end
  249. elseif hod = 1:
  250. !enemy attacks
  251. '<font color = red><<$boydesc>> attacks</font>'
  252. act 'Further':xgt'enemy','start'
  253. end
  254. end
  255. if $ARGS[0] = 'sta':
  256. menu_off = 1
  257. cla
  258. damTip = 0
  259. damTipM = 0
  260. damTipV = 0
  261. damTipMV = 0
  262. magweapbonus = 0
  263. magweapbonusV = 0
  264. bonusSh = 0
  265. bonusShV = 0
  266. eleSh = 0
  267. eleShV = 0
  268. poisonAV = 0
  269. hidanAtk = 0
  270. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  271. '<b><<$boydesc>></b> life <b><font color = red><<healthV>></font></b>, manna <b><font color = blue><<mannaV>></font></b>, willpower <b><font color = green><<willpowerV>></font></b>'
  272. if defenceV > 0:'<b><font color = red>Protection <<defenceV>> units</font></b>'
  273. if defenceMV > 0:'<b><font color = red>Mana protection <<defenceMV>> units</font></b>'
  274. if defenceWV > 0:'<b><font color = red>Will protection <<defenceWV>> units</font></b>'
  275. 'Your life <b><font color = red><<pcs_health>></font></b>, manna <b><font color = blue><<pcs_manna>></font></b>, willpower <b><font color = green><<pcs_willpwr>></font></b>'
  276. if defence > 0:'<b><font color = green>Protection <<defence>> units</font></b>'
  277. if defenceM > 0:'<b><font color = green>Mana impact protection <<defenceM>> units</font></b>'
  278. if defenceW > 0:'<b><font color = green>Will impact protection <<defenceW>> units</font></b>'
  279. if defenceAct > 0:'<b><font color = green><<defenceAct>> Regeneration</font></b>'
  280. if defenceActM > 0:'<b><font color = green><<defenceActM>> Mana recovery protection</font></b>'
  281. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  282. act 'Further':gt'fight','start'
  283. end
  284. if $ARGS[0] = 'Wrestlergen':
  285. if nopornowrestling = 0:
  286. nopornowrestling = 1
  287. NPCnum = 30
  288. NPCnow = 1
  289. !!shag = 1
  290. gs 'npc'
  291. NoView = 1
  292. NPCrost = 30
  293. gs 'generation'
  294. NoView = 1
  295. NPCrost = 30
  296. gs 'generation'
  297. NoView = 1
  298. NPCrost = 30
  299. gs 'generation'
  300. NoView = 1
  301. NPCrost = 30
  302. gs 'generation'
  303. NoView = 1
  304. NPCrost = 30
  305. gs 'generation'
  306. $nikname[1] = 'schoolgirl'
  307. !!musle[0] = 100
  308. !!flex[0] = pcs_agil
  309. !!stamina[0] = pcs_vital * 3
  310. !!wipo[0] = pcs_sprt
  311. !!pcs_intel[0] = 10
  312. !!krasota[0] = pcs_apprnc
  313. !!pcs_hgt[0] = 165
  314. !!salo[0] = 100
  315. !!fat[0] = 100
  316. !!$nikname[1] = 'steel Virgo'
  317. !!musle[1] = 100
  318. !!flex[1] = 100
  319. !!stamina[1] = 300
  320. !!wipo[1] = 50
  321. !!pcs_intel[1] = 10
  322. !!krasota[1] = 10
  323. !!pcs_hgt[1] = 165
  324. !!salo[1] = 100
  325. !!fat[1] = 100
  326. end
  327. end
  328. --- fight ---------------------------------