fight.qsrc 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647
  1. # fight
  2. !! Variables to be set before fight - in brackets so you can copy/paste
  3. !!{
  4. $opp_name[0] = <<name of opponent>>
  5. $opp_image[0] = opponent image ie. '<img <<$set_imgh>> src="images/characters/city/tobi/tobi.jpg">'
  6. opp_def[0] = opponent defence
  7. opp_run[0] = Opponent running skill used for player escape
  8. opp_wrstlng[0] = Wrestling skill
  9. opp_kick[0] = Kicking
  10. opp_punch[0] = Power punch
  11. opp_jab[0] = Ligth punch
  12. opp_stren[0] = Strengh
  13. opp_agil[0] = Agility
  14. opp_vital[0] = vitality
  15. opp_react[0] = Reactions
  16. opp_health[0] = Health
  17. opp_willpwr[0] = willpower
  18. opp_shoot[0] = opponent marksmanship (only required if they are armed)
  19. opp_magik[0] = only if they have magic
  20. opp_mana[0] = only if they have magic
  21. opp_fog[0] = (tuman): Obscures vision, makes hitting harder.
  22. opp_clone[0] = (klon): Copies of the char that absorb 1 hit and disappear. A char may have some number of them.
  23. opp_shield[0] = (defence): Shielding that absorbs damage before hitpoints.
  24. opp_dambonus[0] = (magweapbonus): damage added to melee attacks
  25. opp_init[0] = (initBonus): attack faster/first
  26. opp_stun[0] = (stunner): make target unable to act for some amount of time
  27. }
  28. !! Use the above with [1] and [2] for extra opponents
  29. !! Use pcs_ prefix for Sveta and add [1] and [2] for allies. ie. $pcs_name[1] = 'Reinhold'
  30. if $ARGS[0] = 'initFight':
  31. !! Clear Opponents from previous battle
  32. killvar '$opp_name'
  33. killvar '$opp_image'
  34. killvar 'opp_def'
  35. killvar 'opp_run'
  36. killvar 'opp_wrstlng'
  37. killvar 'opp_kick'
  38. killvar 'opp_punch'
  39. killvar 'opp_jab'
  40. killvar 'opp_stren'
  41. killvar 'opp_agil'
  42. killvar 'opp_vital'
  43. killvar 'opp_react'
  44. killvar 'opp_health'
  45. killvar 'opp_willpwr'
  46. killvar 'opp_shoot'
  47. killvar 'opp_magik'
  48. killvar 'opp_mana'
  49. killvar 'opp_fog'
  50. killvar 'opp_clone'
  51. killvar 'opp_shield'
  52. killvar 'opp_dambonus'
  53. killvar 'opp_init'
  54. killvar 'opp_stun'
  55. killvar 'opp_timer'
  56. !! Clear any allies from previous battle
  57. i = arrsize('pcs_health')
  58. :ClearAllyLoop
  59. if i > 1:
  60. gs 'fight', 'clearPCSArray', i-1
  61. i -= 1
  62. jump 'ClearAllyLoop'
  63. end
  64. killvar 'i'
  65. !! Initialize $pcs_name for Sveta
  66. $pcs_name[0] = 'You'
  67. $pcs_image[0] = FUNC('$face_image')
  68. end
  69. if $ARGS[0] = 'clearPCSArray':
  70. !{ Delete an Ally from the pcs data arrays
  71. ARGS[1] = Which ally slot tot delete
  72. }
  73. i = ARGS[1]
  74. killvar '$pcs_name', i
  75. killvar '$pcs_image', i
  76. killvar 'pcs_def', i
  77. killvar 'pcs_run', i
  78. killvar 'pcs_wrstlng', i
  79. killvar 'pcs_kick', i
  80. killvar 'pcs_punch', i
  81. killvar 'pcs_jab', i
  82. killvar 'pcs_stren', i
  83. killvar 'pcs_agil', i
  84. killvar 'pcs_vital', i
  85. killvar 'pcs_react', i
  86. killvar 'pcs_health', i
  87. killvar 'pcs_willpwr', i
  88. killvar 'pcs_shoot', i
  89. killvar 'pcs_magik', i
  90. killvar 'pcs_mana', i
  91. killvar 'pcs_fog', i
  92. killvar 'pcs_clone', i
  93. killvar 'pcs_shield', i
  94. killvar 'pcs_dambonus', i
  95. killvar 'pcs_init', i
  96. killvar 'pcs_stun', i
  97. killvar 'pcs_timer', i
  98. killvar 'i'
  99. end
  100. if $ARGS[0] = 'randomOpp':
  101. !{ Generate a random Opponent
  102. ARGS[1] = Optional, raise difficulty of the attacker, 0 - 50
  103. }
  104. OppDiffBonus = ARGS[1]
  105. i = arrsize('opp_health')
  106. $opp_name[i] = 'Opponent 1'
  107. $opp_image[i] = 'images/locations/shared/street/mugger.jpg'
  108. opp_def[i] = rand(1,50) + OppDiffBonus
  109. opp_run[i] = rand(1,50) + OppDiffBonus
  110. opp_wrstlng[i] = rand(1,50) + OppDiffBonus
  111. opp_kick[i] = rand(1,50) + OppDiffBonus
  112. opp_punch[i] = rand(1,50) + OppDiffBonus
  113. opp_jab[i] = rand(1,50) + OppDiffBonus
  114. opp_stren[i] = rand(1,50) + OppDiffBonus
  115. opp_agil[i] = rand(1,50) + OppDiffBonus
  116. opp_vital[i] = rand(1,50) + OppDiffBonus
  117. opp_health[i] = (opp_vital * 10 + opp_stren * 5)
  118. opp_react[i] = rand(1,50) + OppDiffBonus
  119. opp_willpwr[i] = rand(1,50) + OppDiffBonus
  120. opp_shoot[i] = rand(1,50) + OppDiffBonus
  121. killvar 'OppDiffBonus'
  122. killvar 'i'
  123. end
  124. if $ARGS[0] = 'applyDamage':
  125. !{ Apply Damage to a participant taking into account clones and shields
  126. $ARGS[1] = Target Type ('opp','pcs')
  127. ARGS[2] = Target number
  128. ARGS[3] = damage to be applied
  129. }
  130. $fightAppDam['TargetType'] = $ARGS[1]
  131. fightAppDam['TargetNumber'] = ARGS[2]
  132. fightAppDam['Damage'] = ARGS[3]
  133. dynamic "
  134. !!If the target has clones, destroy one
  135. if <<$fightAppDam['TargetType']>>_clone[<<fightAppDam['TargetNumber']>>] > 0:
  136. <<$fightAppDam['TargetType']>>_clone[<<fightAppDam['TargetNumber']>>] -= 1
  137. 'Clone Destroyed!'
  138. !!if the target has enough shields to mitigate, remove some shields
  139. elseif <<$fightAppDam['TargetType']>>_shield[<<fightAppDam['TargetNumber']>>] >= fightAppDam['Damage']:
  140. <<$fightAppDam['TargetType']>>_shield[<<fightAppDam['TargetNumber']>>] -= fightAppDam['Damage']
  141. !!otherwise remove shields to 0 and the remainder comes from health
  142. else
  143. <<$fightAppDam['TargetType']>>_health -= (fightAppDam['Damage'] - <<$fightAppDam['TargetType']>>_shield[<<fightAppDam['TargetNumber']>>])
  144. <<$fightAppDam['TargetType']>>_shield[<<fightAppDam['TargetNumber']>>] = 0
  145. end"
  146. killvar '$fightAppDam'
  147. killvar 'fightAppDam'
  148. end
  149. if $ARGS[0] = 'start':
  150. menu_off = 1
  151. inFight = 1
  152. gs 'themes', 'indoors'
  153. cla
  154. if arrsize('pcs_health') > arrsize('opp_health'):
  155. tableSize = arrsize('pcs_health')
  156. else
  157. tableSize = arrsize('opp_health')
  158. end
  159. $HTMLText = '<table>
  160. <tr>
  161. <th align="right">Allies</td>
  162. <th align="center" valign="center" rowspan=<<tableSize*2+1>> >vs.</td>
  163. <th align="left">Opponents</td>
  164. </tr>'
  165. i = 0
  166. :FightPoster
  167. if i < tableSize:
  168. $HTMLText += '
  169. <tr>
  170. <td align="right"><img HEIGHT=400 src="<<$pcs_image[i]>>"></td>
  171. <td align="left"><img HEIGHT=400 src="<<$opp_image[i]>>"></td>
  172. </tr>
  173. <tr>
  174. <td align="right"><<$pcs_name[i]>></td>
  175. <td align="left"><<$opp_name[i]>></td>
  176. </tr>'
  177. i += 1
  178. jump 'FightPoster'
  179. end
  180. $HTMLText += '</table>'
  181. *pl func('cleanHTML',$HTMLText)
  182. i=0
  183. :PCSTimerInit
  184. if i < arrsize('pcs_health'):
  185. pcs_timer[i] = 100 - pcs_react[i]
  186. i +=1
  187. jump 'PCSTimerInit'
  188. end
  189. i=0
  190. :OppTimerInit
  191. if i < arrsize('opp_health'):
  192. opp_timer[i] = 100 - opp_react[i]
  193. i +=1
  194. jump 'OppTimerInit'
  195. end
  196. act 'Engage': gt 'fight', 'main'
  197. killvar '$HTMLText'
  198. killvar 'tableSize'
  199. killvar 'i'
  200. end
  201. if $ARGS[0] = 'findActiveTimer':
  202. !! Find the participant with the lowest Timer
  203. ! These values are passed back via two global variables.
  204. !
  205. ! $fightTimType = 'player' or 'opponent' depending on which group has the lowest member
  206. ! fightTimNum = the array number of the lowest participant
  207. $fightTimType = 'player'
  208. fightTimNum = 0
  209. !! set this to high so that everyone will be lower.
  210. fightTimLow = 99999
  211. !! Find lowest of pcs participants
  212. i = 0
  213. :LowTimerLoop1
  214. if i < arrsize('pcs_timer'):
  215. if pcs_timer[i] < fightTimLow:
  216. fightTimLow = pcs_timer[i]
  217. fightTimNum = i
  218. end
  219. i += 1
  220. jump 'LowTimerLoop1'
  221. end
  222. !!Find if any Opponents have lower than best PCS
  223. i = 0
  224. :LowTimerLoop2
  225. if i < arrsize('opp_timer'):
  226. if opp_timer[i] < fightTimLow:
  227. fightTimLow = opp_timer[i]
  228. fightTimNum = i
  229. $fightTimType = 'opponent'
  230. end
  231. i += 1
  232. jump 'LowTimerLoop2'
  233. end
  234. killvar 'i'
  235. end
  236. if $ARGS[0] = 'main':
  237. gs 'fight', 'result_check'
  238. gs 'fight', 'findActiveTimer'
  239. gt 'fight', $fightTimType, fightTimNum
  240. end
  241. if $ARGS[0] = 'printStats':
  242. !{ Print the stats for a character
  243. $ARGS[1] = The Type of char ('opp','pcs')
  244. ARGS[2] = The member of the party
  245. }
  246. $fightPStats['CharType'] = $ARGS[1]
  247. i = ARGS[2]
  248. if $fightPStats['CharType'] = 'opp':
  249. $fightPStats['Name'] = $opp_name[i]
  250. fightPStats['Health'] = opp_health[i]
  251. fightPStats['Mana'] = opp_mana[i]
  252. fightPStats['Willpower'] = opp_willpwr[i]
  253. fightPStats['Shield'] = opp_shield[i]
  254. fightPStats['Fog'] = opp_fog[i]
  255. fightPStats['Clone'] = opp_clone[i]
  256. else
  257. $fightPStats['Name'] = $pcs_name[i]
  258. fightPStats['Health'] = pcs_health[i]
  259. fightPStats['Mana'] = pcs_mana[i]
  260. fightPStats['Willpower'] = pcs_willpwr[i]
  261. fightPStats['Shield'] = pcs_shield[i]
  262. fightPStats['Fog'] = pcs_fog[i]
  263. fightPStats['Clone'] = pcs_clone[i]
  264. end
  265. '<b><<$fightPStats["Name"]>></b> life <b><font color = red><<fightPStats["Health"]>></font></b>, mana <b><font color = blue><<fightPStats["Mana"]>></font></b>, willpower <b><font color = green><<fightPStats["Willpower"]>></font></b>'
  266. if fightPStats['Shield'] > 0:'<b><font color = red>Protection <<fightPStats["Shield"]>> units</font></b>'
  267. if fightPStats['Clone'] > 0:'<b><font color = red>Clones active <<fightPStats["Clone"]>> </font></b>'
  268. if fightPStats['Fog'] > 0:'<b><font color = red>Obscuring Fog <<fightPStats["Fog"]>> units</font></b>'
  269. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  270. killvar 'i'
  271. killvar 'fightPStats'
  272. killvar '$fightPStats'
  273. end
  274. if $ARGS[0] = 'statDisplay':
  275. '<b>= = = = = = = = = = = O p p o n e n t s = = = = = = = = = = =</b>'
  276. i = 0
  277. :OppLoopRC1
  278. if i < arrsize('opp_health'):
  279. gs 'fight', 'printStats', 'opp', i
  280. i += 1
  281. jump 'OppLoopRC1'
  282. end
  283. *nl
  284. '<b>= = = = = = = = = = = = A l l i e s = = = = = = = = = = = = =</b>'
  285. i = 0
  286. :PCSLoopRC1
  287. if i < arrsize('pcs_health'):
  288. gs 'fight', 'printStats', 'pcs', i
  289. i += 1
  290. jump 'PCSLoopRC1'
  291. end
  292. end
  293. if $ARGS[0] = 'result_check':
  294. !!cheat to auto-win fights check
  295. if fight_cheat = 1:
  296. !xgt 'ender', 'win'
  297. gt $loc, $metka
  298. exit
  299. end
  300. !!win/lose conditions
  301. if pcs_health <= 0:
  302. '<b><font color = red> You lost!</font></b>'
  303. !xgt'ender','loss'
  304. gt $loc, $metka
  305. exit
  306. elseif opp_health[0] <= 0:
  307. '<b><font color = green><<$boydesc>> You won!</font></b>'
  308. !xgt'ender','win'
  309. gt $loc, $metka
  310. exit
  311. elseif pcs_willpwr <= 0:
  312. '<b><font color = red> You cannot summon the will to fight!</font></b>'
  313. !xgt'ender','loss'
  314. gt $loc, $metka
  315. exit
  316. end
  317. !gt 'fight', 'main'
  318. killvar 'i'
  319. end
  320. !! Kick
  321. $AttackType[0] = 'Kick'
  322. $AttackSkill[0] = 'kick'
  323. AttackMin[0] = 3
  324. AttackMax[0] = 4
  325. AttackTime[0] = 40
  326. !! Hard Punch
  327. $AttackType[1] = 'Hard Punch'
  328. $AttackSkill[1] = 'punch'
  329. AttackMin[1] = 2
  330. AttackMax[1] = 3
  331. AttackTime[1] = 30
  332. !! Jab
  333. $AttackType[2] = 'Jab'
  334. $AttackSkill[2] = 'jab'
  335. AttackMin[2] = 1
  336. AttackMax[2] = 2
  337. AttackTime[2] = 15
  338. !!{Attack a target
  339. $ARGS[0] = Attack Type
  340. $ARGS[1] = Target Type
  341. ARGS[2] = Which target
  342. ARGS[3] = Which Attacker
  343. }
  344. if $ARGS[0] = 'Attack':
  345. $fightAtk_Type = $ARGS[1]
  346. $fightAtk_TargetType = $ARGS[2]
  347. fightAtk_TargetNumber = ARGS[3]
  348. fightAtk_AttackerNumber = ARGS[4]
  349. if $fightAtk_TargetType = 'opp' and fightAtk_AttackerNumber = 0:
  350. $fightAtk['AttackerType'] = 'pcs'
  351. $fightAtk['AttackerName'] = 'You'
  352. elseif $fightAtk_TargetType = 'opp':
  353. $fightAtk['AttackerType'] = 'pcs'
  354. $fightAtk['AttackerName'] = $pcs_name['<<ARGS[3]>>']
  355. $fightAtk['DefenderName'] = $opp_name['<<ARGS[2]>>']
  356. $fightAtk['TargetPronoun'] = 'They'
  357. else
  358. $fightAtk['AttackerType'] = 'opp'
  359. $fightAtk['AttackerName'] = $opp_name['<<ARGS[3]>>']
  360. $fightAtk['DefenderName'] = $pcs_name['<<ARGS[2]>>']
  361. $fightAtk['TargetPronoun'] = 'You'
  362. end
  363. fightAtk_Type = arrpos('$AttackType',$fightAtk_Type)
  364. fightAtk['AttackerSkillValue'] = dyneval('result = <<$fightAtk_TargetType>>_<<$AttackSkill[fightAtk_Type]>>[<<fightAtk_TargetNumber>>]')
  365. fightAtk['TargetReactValue'] = dyneval('result = <<$fightAtk_TargetType>>_react[<<fightAtk_AttackerNumber>>]')
  366. fightAtk['TargetAgilValue'] = dyneval('result = <<$fightAtk_TargetType>>_agil[<<fightAtk_TargetNumber>>]')
  367. fightAtk['MinDamage'] = AttackMin[fightAtk_Type]
  368. fightAtk['MaxDamage'] = AttackMax[fightAtk_Type]
  369. if $fightAtk_TargetType = 'opp' and fightAtk_AttackerNumber = 0:
  370. 'You attempt to <<$fightAtk["Type"]>> <<$fightAtk["DefenderName"]>>!'
  371. else
  372. '<<$fightAtk["AttackerName"]>> attempts to <<$fightAtk["Type"]>> <<$fightAtk["DefenderName"]>>!'
  373. end
  374. *nl
  375. if fightAtk['AttackerSkillValue'] + rand(0,30) > fightAtk['TargetReactValue'] / 4 + 3 * fightAtk['TargetAgilValue'] / 4:
  376. !!Calculate Damage
  377. dynamic "fightAtk['Damage'] = <<$fightAtk['AttackerType']>>_stren[<<fightAtk_AttackerNumber>>] * rand(<<fightAtk['MinDamage']>>,<<fightAtk['MaxDamage']>>) / 15"
  378. !!Apply Damage
  379. gs 'fight', 'applyDamage', $fightAtk_TargetType, fightAtk_TargetNumber, fightAtk['Damage']
  380. if fightAtk['Damage'] > 10:
  381. if $fightAtk_TargetType = 'opp' and fightAtk_AttackerNumber = 0:
  382. 'The hit is hard and you reel in pain.'
  383. else
  384. 'The hit is hard and <<$fightAtk["AttackerName"]>> reels in pain.'
  385. end
  386. else
  387. 'Its a glancing blow, but still hurts.'
  388. end
  389. else
  390. if $fightAtk_TargetType = 'opp' and fightAtk_AttackerNumber = 0:
  391. 'You avoid the blow.'
  392. else
  393. '<<$fightAtk["AttackerName"]>> avoids the blow.'
  394. end
  395. end
  396. dynamic "<<$fightAtk['AttackerType']>>_timer += AttackTime[fightAtk_Type]"
  397. cla
  398. act 'Next': gt 'fight', 'main'
  399. killvar 'fightAtk'
  400. killvar '$fightAtk'
  401. killvar '$fightAtk_Type'
  402. killvar '$fightAtk_TargetType'
  403. killvar 'fightAtk_TargetNumber'
  404. killvar 'fightAtk_AttackerNumber'
  405. end
  406. if $ARGS[0] = 'opponent':
  407. gs 'fight', 'statDisplay'
  408. if pcs_health[0] > 0 and pcs_health[1] > 0 and pcs_health[2] > 0:
  409. TargetNumber = rand(0,2)
  410. elseif pcs_health[0] > 0 and pcs_health[1] > 0:
  411. TargetNumber = rand(0,1)
  412. elseif pcs_health[0] > 0 and pcs_health[2] > 0:
  413. if rand(0,1) = 0:
  414. TargetNumber = 0
  415. else
  416. TargetNumber = 2
  417. end
  418. elseif pcs_health[1] > 0 and pcs_health[2] > 0:
  419. TargetNumber = rand(1,2)
  420. elseif pcs_health[0] > 0:
  421. TargetNumber = 0
  422. elseif pcs_health[1] > 0:
  423. TargetNumber = 1
  424. else
  425. TargetNumber = 2
  426. end
  427. !! if opp_magik[0] > 0: gs 'fight', 'opp_spellcast'
  428. if rand(0,opp_kick[0]) > 40:
  429. gs 'fight', 'Attack', 'Kick', 'pcs', TargetNumber, ARGS[2]
  430. elseif rand(0,opp_punch[0]) > 40:
  431. gs 'fight', 'Attack', 'Hard Punch', 'pcs', TargetNumber, ARGS[2]
  432. else
  433. gs 'fight', 'Attack', 'Jab', 'pcs', TargetNumber, ARGS[2]
  434. end
  435. end
  436. if $ARGS[0] = 'player':
  437. gs 'fight', 'statDisplay'
  438. if opp_health[0] > 0 and opp_health[1] > 0 and opp_health[2] > 0:
  439. TargetNumber = rand(0,2)
  440. elseif opp_health[0] > 0 and opp_health[1] > 0:
  441. TargetNumber = rand(0,1)
  442. elseif opp_health[0] > 0 and opp_health[2] > 0:
  443. if rand(0,1) = 0:
  444. TargetNumber = 0
  445. else
  446. TargetNumber = 2
  447. end
  448. elseif opp_health[1] > 0 and opp_health[2] > 0:
  449. TargetNumber = rand(1,2)
  450. elseif opp_health[0] > 0:
  451. TargetNumber = 0
  452. elseif opp_health[1] > 0:
  453. TargetNumber = 1
  454. else
  455. TargetNumber = 2
  456. end
  457. if pcs_magik > 0:
  458. act 'Cast a Spell': gs 'fight', 'spellcast'
  459. end
  460. if opp_health[0] > 0:
  461. act 'Kick <<$opp_name[0]>>':
  462. gs 'fight', 'Attack', 'Kick', 'opp', 0, ARGS[2]
  463. end
  464. act 'Punch <<$opp_name[0]>> hard':
  465. gs 'fight', 'Attack', 'Hard Punch', 'opp', 0, ARGS[2]
  466. end
  467. act 'Jab <<$opp_name[0]>>':
  468. gs 'fight', 'Attack', 'Jab', 'opp', 0, ARGS[2]
  469. end
  470. end
  471. if opp_health[1] > 0:
  472. act 'Kick <<$opp_name[1]>>':
  473. gs 'fight', 'Attack', 'Kick', 'opp', 1, ARGS[2]
  474. end
  475. act 'Punch <<$opp_name[1]>> hard':
  476. gs 'fight', 'Attack', 'Hard Punch', 'opp', 1, ARGS[2]
  477. end
  478. act 'Jab <<$opp_name[1]>>':
  479. gs 'fight', 'Attack', 'Jab', 'opp', 1, ARGS[2]
  480. end
  481. end
  482. if opp_health[2] > 0:
  483. act 'Kick <<$opp_name[2]>>':
  484. gs 'fight', 'Attack', 'Kick', 'opp', 2, ARGS[2]
  485. end
  486. act 'Punch <<$opp_name[2]>> hard':
  487. gs 'fight', 'Attack', 'Hard Punch', 'opp', 2, ARGS[2]
  488. end
  489. act 'Jab <<$opp_name[2]>>':
  490. gs 'fight', 'Attack', 'Jab', 'opp', 2, ARGS[2]
  491. end
  492. end
  493. end
  494. if $ARGS[0] = 'opp_spellcast':
  495. end
  496. if $ARGS[0] = 'pcs_spellcast':
  497. end
  498. !!--------------------------------------------------old shit--------------------------------------------------
  499. if $ARGS[0] = 'sta':
  500. menu_off = 1
  501. cla
  502. damTip = 0
  503. damTipM = 0
  504. damTipV = 0
  505. damTipMV = 0
  506. magweapbonus = 0
  507. magweapbonusV = 0
  508. bonusSh = 0
  509. bonusShV = 0
  510. eleSh = 0
  511. eleShV = 0
  512. poisonAV = 0
  513. hidanAtk = 0
  514. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  515. '<b><<$boydesc>></b> life <b><font color = red><<healthV>></font></b>, mana <b><font color = blue><<manaV>></font></b>, willpower <b><font color = green><<willpowerV>></font></b>'
  516. if defenceV > 0:'<b><font color = red>Protection <<defenceV>> units</font></b>'
  517. if defenceMV > 0:'<b><font color = red>Mana protection <<defenceMV>> units</font></b>'
  518. if defenceWV > 0:'<b><font color = red>Will protection <<defenceWV>> units</font></b>'
  519. 'Your life <b><font color = red><<pcs_health>></font></b>, mana <b><font color = blue><<pcs_mana>></font></b>, willpower <b><font color = green><<pcs_willpwr>></font></b>'
  520. if defence > 0:'<b><font color = green>Protection <<defence>> units</font></b>'
  521. if defenceM > 0:'<b><font color = green>Mana impact protection <<defenceM>> units</font></b>'
  522. if defenceW > 0:'<b><font color = green>Will impact protection <<defenceW>> units</font></b>'
  523. if defenceAct > 0:'<b><font color = green><<defenceAct>> Regeneration</font></b>'
  524. if defenceActM > 0:'<b><font color = green><<defenceActM>> Mana recovery protection</font></b>'
  525. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  526. if autocombat_cheat = 0: act 'Continue':gt'fight','start'
  527. if autocombat_cheat = 1: gt'fight','start'
  528. end
  529. if $ARGS[0] = 'Wrestlergen':
  530. if nopornowrestling = 0:
  531. nopornowrestling = 1
  532. NPCnum = 30
  533. NPCnow = 1
  534. !!shag = 1
  535. gs 'npc'
  536. NoView = 1
  537. NPCrost = 30
  538. gs 'generation'
  539. NoView = 1
  540. NPCrost = 30
  541. gs 'generation'
  542. NoView = 1
  543. NPCrost = 30
  544. gs 'generation'
  545. NoView = 1
  546. NPCrost = 30
  547. gs 'generation'
  548. NoView = 1
  549. NPCrost = 30
  550. gs 'generation'
  551. $nikname[1] = 'schoolgirl'
  552. !!musle[0] = 100
  553. !!flex[0] = pcs_agil
  554. !!stamina[0] = pcs_vital * 3
  555. !!wipo[0] = pcs_sprt
  556. !!pcs_intel[0] = 10
  557. !!krasota[0] = pcs_apprnc
  558. !!pcs_hgt[0] = 165
  559. !!salo[0] = 100
  560. !!fat[0] = 100
  561. !!$nikname[1] = 'steel Virgo'
  562. !!musle[1] = 100
  563. !!flex[1] = 100
  564. !!stamina[1] = 300
  565. !!wipo[1] = 50
  566. !!pcs_intel[1] = 10
  567. !!krasota[1] = 10
  568. !!pcs_hgt[1] = 165
  569. !!salo[1] = 100
  570. !!fat[1] = 100
  571. end
  572. end
  573. --- fight ---------------------------------