spell.qsrc 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  1. # spell
  2. ! This Location contains the meat of what each spell does to the PC, NPCs, and the environment. Mana costs are handled elsewhere.
  3. ! This location should not be called directly. Should only be called through the "castSpell" location.
  4. ! $ARGS[0] = the name of the spell being cast
  5. ! $ARGS[1] = Spell Success value
  6. ! 2 = Critical Success -> You can make something extra specail happen
  7. ! 1 = Success -> Normal spell effects
  8. ! 0 = Failure -> Spell doesn''t work, probably just fizzles out
  9. ! -1 = Critical Failure -> Spell backfires. Something bad (not terrible) should happen
  10. ! $ARGS[n >= 2] = Any extra parameters needed by the spell
  11. SuccessValue = $ARGS[1]
  12. if $ARGS[0] = 'teleport':
  13. ! Do the stuff of a Teleport
  14. ! ARGS[1] = Success/Failure level
  15. ! ARGS[2] = the Target Location
  16. $NewLocation = $ARGS[2]
  17. :RandLocLoop
  18. $randomLoc = $tpLocations[rand(0,arrsize('$tpLocations') - 1)]
  19. if $randomLoc = $NewLocation or $randomLoc = $EntryPoint:
  20. jump 'RandLocLoop'
  21. end
  22. if SuccessValue > 0:
  23. *nl
  24. "The blur you see just outside the ring seems to shift."
  25. wait 1000
  26. if $treeCircArg[$NewLocation] = "":
  27. gt $treeCircLoc[$NewLocation]
  28. else
  29. gt $treeCircLoc[$NewLocation], $treeCircArg[$NewLocation]
  30. end
  31. elseif SuccessValue < 0:
  32. *nl
  33. "The blur you see just outside the ring seems to shift. Something did not go right!"
  34. wait 1000
  35. if $treeCircArg[$randomLoc] = "":
  36. gt $treeCircLoc[$randomLoc]
  37. else
  38. gt $treeCircLoc[$randomLoc], $treeCircArg[$randomLoc]
  39. end
  40. else
  41. 'You feel drained, but the energy fizzles out and nothing happens'
  42. end
  43. killvar '$randomLoc'
  44. killvar '$NewLocation'
  45. result = ""
  46. end
  47. if $ARGS[0] = 'regenerate':
  48. if SuccessValue > 0:
  49. ! How much health is gained per minute
  50. regenVal = 5 * SuccessValue
  51. ! Immediate health gain
  52. pcs_health += regenVal
  53. ! If Regenerate is already running, we only extend.
  54. regenArrIdx = arrpos('$spellTimeName','regenerate')
  55. if regenArrIdx > -1:
  56. ! if it''s found, then update only
  57. spellComplete[regenArrIdx] = totminut + 120
  58. $spellCompExec[regenArrIdx] = 'pcs_health += (5 * <<regenVal>>)'
  59. $spellTickExec[regenArrIdx] = 'pcs_health += <<regenVal>>'
  60. else
  61. ! Add Timer:
  62. ! spellName = 'regenerate'
  63. ! duration = 120
  64. ! CompCode = 'pcs_health += (5 * <<regenVal>>)'
  65. ! TickCode = 'pcs_health += <<regenVal>>'
  66. gs 'spellTimer', 'add', 'regenerate', 120, 'pcs_health += (5 * <<regenVal>>)', 'pcs_health += <<regenVal>>'
  67. end
  68. '<b><font color = green>Your body surges with life. You feel better already.</font></b>'
  69. killvar 'regenVal'
  70. killvar 'regenArrIdx'
  71. else
  72. '<b>The spell fizzles. Nothing seems to happen.</b>'
  73. end
  74. end
  75. if $ARGS[0] = 'painblock':
  76. if SuccessValue > 0:
  77. pain['killer'] = 1
  78. '<b><font color = green>Your pain recedes into a dull throb.</font></b>'
  79. else
  80. '<b>The spell fizzles. Nothing seems to happen.</b>'
  81. end
  82. end
  83. if $ARGS[0] = 'curedisease':
  84. if SuccessValue > 0:
  85. ! Cure Diseses
  86. dynamic $cheatmenu['std_cure']
  87. ! Cause pain where diseases burned out
  88. pain['head'] += 10
  89. pain['nose'] += 10
  90. pain['mouth'] += 10
  91. pain['lips'] += 10
  92. pain['throat'] += 10
  93. pain['asshole'] += 10
  94. pain['chest'] += 10
  95. pain['tummy'] += 10
  96. pain['urethra'] += 10
  97. pain['vaginal'] += 10
  98. ! You do not feel good
  99. pcs_mood -= 30
  100. '<b><font color = green>You burst into a high fever. You feel terrible, but you know you are now healthy.</font></b>'
  101. else
  102. '<b>The spell fizzles. Nothing seems to happen.</b>'
  103. end
  104. end
  105. if $ARGS[0] = 'curewounds':
  106. if SuccessValue > 0:
  107. ! Remove some pain
  108. gs 'medical_din','healthTreatment'
  109. gs 'medical_din','healthTreatment'
  110. '<b><font color = green>You feel yourself coursing with life. You feel better already.</font></b>'
  111. else
  112. '<b>The spell fizzles. Nothing seems to happen.</b>'
  113. end
  114. end
  115. if $ARGS[0] = 'curewounds2':
  116. if SuccessValue > 0:
  117. ! Remove all pain
  118. killvar 'pain'
  119. pcs_health = pcs_vital * 10 + pcs_stren * 5 + 1000
  120. '<b><font color = green>You feel yourself coursing with life. All pain is gone.</font></b>'
  121. else
  122. '<b>The spell fizzles. Nothing seems to happen.</b>'
  123. end
  124. end
  125. if $ARGS[0] = 'berserk':
  126. if SuccessValue > 0:
  127. spellArrIdx = arrpos('$spellTimeName','berserk')
  128. pain['killer'] = 1
  129. if spellArrIdx > -1:
  130. ! if it''s found, then update only
  131. spellComplete[spellArrIdx] = totminut + 120
  132. else
  133. ! Save current Health percentage, since changing these stats will change healthmax
  134. healthPercent = pcs_health * 100 / healthmax
  135. staminPercent = pcs_stam * 100 / stammax
  136. ! Boost Stats
  137. stren_lvl += 200
  138. stren_lvlst += 200
  139. stren_muta += 4
  140. agil_lvl += 200
  141. agil_lvlst += 200
  142. agil_muta += 4
  143. vital_lvl += 200
  144. vital_lvlst += 200
  145. vital_muta += 4
  146. !gs 'stat_sklattrib'
  147. ! Run stats to recalculate max health
  148. gs 'stat'
  149. ! Update health to be appropiate percentage of new healthmax
  150. pcs_health = (healthPercent * healthmax / 100) + 1
  151. pcs_stam = (staminPercent * stammax) + 1
  152. ! Add Timer to remove this effect after tiem period
  153. $berserkCode={
  154. ! Return Stats to normal
  155. stren_lvl -= 200
  156. stren_lvlst -= 200
  157. stren_muta -= 4
  158. agil_lvl -= 200
  159. agil_lvlst -= 200
  160. agil_muta -= 4
  161. vital_lvl -= 200
  162. vital_lvlst -= 200
  163. vital_muta -= 4
  164. }
  165. gs 'spellTimer', 'add', 'berserk', 120, $berserkCode, ''
  166. end
  167. '<b><font color = green>You feel a huge adrenalin surge. You begin looking for someone to battle.</font></b>'
  168. else
  169. '<b>The spell fizzles. Nothing seems to happen.</b>'
  170. end
  171. killvar 'spellArrIdx'
  172. killvar 'berserkCode'
  173. killvar 'healthPercent'
  174. killvar 'staminPercent'
  175. end
  176. if $ARGS[0] = 'shower':
  177. if SuccessValue > 0:
  178. ! Take a Shower
  179. gs 'cum_cleanup'
  180. lactation['lactmess'] = 0
  181. pcs_sweat = 10
  182. ! Brush Teeth
  183. pcs_breath = 1
  184. '<b><font color = green>You feel clean and refreshed.</font></b>'
  185. else
  186. '<b>The spell fizzles. Nothing seems to happen.</b>'
  187. end
  188. end
  189. if $ARGS[0] = 'cosmetica':
  190. if SuccessValue > 0:
  191. ! Take a Shower
  192. gs 'cum_cleanup'
  193. lactation['lactmess'] = 0
  194. pcs_sweat = 10
  195. ! Brush Teeth
  196. pcs_breath = 1
  197. ! Remove graffiti from self
  198. body_write = 0
  199. face_write = 0
  200. ! Enema
  201. klismaday = daystart
  202. klismaday1 = 1
  203. ! Brush hair
  204. pcs_hairbsh = 1
  205. ! Apply Makeup
  206. pcs_makeup = 3
  207. !if shave_menu = 0:nothing
  208. !if shave_menu = 1:legs and pussy
  209. !if shave_menu = 2:pussy only
  210. !if shave_menu = 3:legs only
  211. if shave_menu = 1 or shave_menu = 3:
  212. ! Shave Legs
  213. pcs_leghair = 0
  214. end
  215. if shave_menu = 1 or shave_menu = 2:
  216. ! Shave Pubes
  217. if pubestyle = 1:
  218. pcs_pubes = 0
  219. elseif pubestyle >= 2 and pubestyle <= 7:
  220. pcs_pubes = 11
  221. elseif pubestyle = 8:
  222. pcs_pubes = 16
  223. elseif pubestyle = 9:
  224. pcs_pubes = 21
  225. elseif pubestyle = 10:
  226. pcs_pubes = 26
  227. end
  228. end
  229. '<b><font color = green>You feel beautiful.</font></b>'
  230. else
  231. '<b>The spell fizzles. Nothing seems to happen.</b>'
  232. end
  233. end
  234. if $ARGS[0] = 'reset':
  235. cla
  236. !Create mist
  237. 'Accumulated mana <<manaReset>> units.'
  238. act 'Absorb accumulated mana':
  239. cla
  240. *clr
  241. pcs_mana = pcs_mana + manaReset
  242. manaReset = 0
  243. xgt'fight','sta'
  244. end
  245. act 'Physical attacks':gt'boxing'
  246. if pcs_magik > 0:
  247. act 'Magic attacks':gt'magik'
  248. end
  249. end
  250. if $ARGS[0] = 'unmat':
  251. cla
  252. !Create mist
  253. 'You can become incorporeal at 30 moves, in exchange for 3000 Forces units Rikudo. This part of the power will be lost to you forever when you cast.'
  254. 'Do not allow to pass through the materiality of the body is not getting any impact damage, while slightly reduced longevity spells.'
  255. if rikudo >= 3000:
  256. act 'Become a disembodied':
  257. cla
  258. *clr
  259. unmaterial = 31
  260. rikudo = rikudo + 3000
  261. manaReset = 0
  262. xgt'fight','sta'
  263. end
  264. elseif rikudo < 3000:
  265. 'You have too little power Rikudo for this spell.'
  266. end
  267. act 'Physical attacks':gt'boxing'
  268. if pcs_magik > 0:
  269. act 'Magic attacks':gt'magik'
  270. end
  271. end
  272. if $ARGS[0] = 'fog':
  273. ! tuman = the amount of fog around you making you harder to hit
  274. ! tumanV = the amount of fog around your opponent making him harder to hit
  275. if tumanV > 0:
  276. 'It is not possible to call your fog when an existing opponent is already fogged.'
  277. else
  278. if SuccessValue > 0:
  279. tuman += (10 * SuccessValue)
  280. '<b><font color = green>A Fog materializes around, obscuring you from your enemies.</font></b>'
  281. elseif SuccessValue < 0:
  282. tumanV += 10
  283. '<b><font color = red>The spell backfires! A Fog materializes around your enemy, obscuring him from your view.</font></b>'
  284. else
  285. '<b>The spell fizzles. Nothing seems to happen.</b>'
  286. end
  287. end
  288. end
  289. if $ARGS[0] = 'clone':
  290. ! klon = the number of clones that the enemy must destroy before hitting you
  291. if SuccessValue > 0:
  292. klon += SuccessValue
  293. '<b><font color = green><<SuccessValue>> clone<<iif(SuccessValue>1,"s","")>> of you springs from you confusing the enemy.</font></b>'
  294. elseif SuccessValue < 0 and klon > 0:
  295. klon -= 1
  296. '<b><font color = red>The spell backfires! One of your clones disappears.</font></b>'
  297. else
  298. '<b>The spell fizzles. Nothing seems to happen.</b>'
  299. end
  300. end
  301. if $ARGS[0] = 'stun':
  302. ! stunner = 1 stuns the enemy for 3-6 rounds
  303. if SuccessValue > 0:
  304. stunner = 1
  305. '<b><font color = green>Your enemy is stunned.</font></b>'
  306. else
  307. '<b>The spell fizzles. Nothing seems to happen.</b>'
  308. end
  309. xgt'atak','player'
  310. end
  311. if $ARGS[0] = 'weapon':
  312. if SuccessValue > 0:
  313. magweapbonus = weapbonus * 4 * SuccessValue
  314. '<b><font color = green>Your Weapon now feels more powerful.</font></b>'
  315. elseif SuccessValue < 0:
  316. magweapbonus = weapbonus * -1
  317. '<b><font color = red>The spell backfires! Your weapon seems weaker.</font></b>'
  318. else
  319. '<b>The spell fizzles. Nothing seems to happen.</b>'
  320. end
  321. xgt'atak','player'
  322. end
  323. if $ARGS[0] = 'wind':
  324. ! tuman = the amount of fog around you making you harder to hit
  325. ! tumanV = the amount of fog around your opponent making him harder to hit
  326. if SuccessValue = 2:
  327. tumanV = 0
  328. '<b><font color = green>A wind blows through the area eliminating your enemys fog from the battlefield.</font></b>'
  329. elseif SuccessValue = 1:
  330. tumanV = 0
  331. tuman = 0
  332. '<b><font color = green>A wind blows through the area eliminating all fog on the battlefield.</font></b>'
  333. elseif SuccessValue = -1:
  334. tuman = 0
  335. '<b><font color = red>A wind blows through the area eliminating your fog from the battlefield.</font></b>'
  336. else
  337. '<b>The spell fizzles. Nothing seems to happen.</b>'
  338. end
  339. end
  340. if $ARGS[0] = 'multiclone':
  341. ! klon = the number of clones that the enemy must destroy before hitting you
  342. if SuccessValue > 0:
  343. klon += SuccessValue * 3
  344. '<b><font color = green><<SuccessValue * 3>> clone<<iif(SuccessValue>1,"s","")>> of you springs from you confusing the enemy.</font></b>'
  345. elseif SuccessValue < 0 and klon > 0:
  346. if klon < 3:
  347. klon = 0
  348. else
  349. klon -= 3
  350. end
  351. '<b><font color = red>The spell backfires! Some of your clones disappear.</font></b>'
  352. else
  353. '<b>The spell fizzles. Nothing seems to happen.</b>'
  354. end
  355. end
  356. if $ARGS[0] = 'energo':
  357. ! defence = absorbs damage before health begins to be removed
  358. if SuccessValue > 0:
  359. defence += (100 * SuccessValue)
  360. '<b><font color = green>An energy shield materializes around you, protecting you from your enemies.</font></b>'
  361. elseif SuccessValue < 0:
  362. defenceV += 100
  363. '<b><font color = red>The spell backfires! An energy shield materializes around your enemy, protecting him from you.</font></b>'
  364. else
  365. '<b>The spell fizzles. Nothing seems to happen.</b>'
  366. end
  367. end
  368. if $ARGS[0] = 'haste':
  369. if SuccessValue > 0:
  370. initBonus += (120 * SuccessValue)
  371. '<b><font color = green>Your mind and body seem to race though a sluggish world.</font></b>'
  372. elseif SuccessValue < 0:
  373. initBonusV += 120
  374. '<b><font color = red>The spell backfires! Your enemy seems to move faster.</font></b>'
  375. else
  376. '<b>The spell fizzles. Nothing seems to happen.</b>'
  377. end
  378. end
  379. if $ARGS[0] = 'heal':
  380. if SuccessValue > 0:
  381. pcs_health += (400 * SuccessValue)
  382. '<b><font color = green>Your body surges with life. You feel much stronger.</font></b>'
  383. else
  384. '<b>The spell fizzles. Nothing seems to happen.</b>'
  385. end
  386. end
  387. if $ARGS[0] = 'hand':
  388. if SuccessValue > 0:
  389. strenK = pcs_stren*20*SuccessValue/100
  390. magweapbonus = RAND(pcs_stren*10 - strenK,pcs_stren*10 + strenK)
  391. '<b><font color = green>Your hands now feel more powerful.</font></b>'
  392. elseif SuccessValue < 0:
  393. strenK = pcs_stren*20/100
  394. magweapbonus = 0 - RAND(pcs_stren*10 - strenK,pcs_stren*10 + strenK)
  395. '<b><font color = red>The spell backfires! Your hands seem weaker.</font></b>'
  396. else
  397. '<b>The spell fizzles. Nothing seems to happen.</b>'
  398. end
  399. xgt'atak','player'
  400. end
  401. if $ARGS[0] = 'scaldingtouch':
  402. if SuccessValue > 0:
  403. damTip = 250 * SuccessValue
  404. '<b><font color = green>Flames spring from your hands.</font></b>'
  405. else
  406. '<b>The spell fizzles. Nothing seems to happen.</b>'
  407. end
  408. xgt'atakA','atak'
  409. end
  410. if $ARGS[0] = 'burninghands':
  411. if SuccessValue > 0:
  412. damTip = 2500 * SuccessValue
  413. '<b><font color = green>A torrent of flames jets from your hands.</font></b>'
  414. else
  415. '<b>The spell fizzles. Nothing seems to happen.</b>'
  416. end
  417. xgt'atakA','atak'
  418. end
  419. if $ARGS[0] = 'firebarrier':
  420. if SuccessValue > 0:
  421. defence += (750 * SuccessValue)
  422. '<b><font color = green>A flaming barrier has sprung up between you and your opponent. You now have <<defence>> protection units.</font></b>'
  423. elseif SuccessValue < 0:
  424. defenceV += 750
  425. '<b><font color = red>The spell backfires! A flaming barrier has sprung up between you and your opponent. Your enemy now has <<defence>> protection units.</font></b>'
  426. else
  427. '<b>The spell fizzles. Nothing seems to happen.</b>'
  428. end
  429. end
  430. if $ARGS[0] = 'firestorm':
  431. if SuccessValue > 0:
  432. damTip = 4250 + (2000 * SuccessValue)
  433. bonusSh = 100
  434. '<b><font color = green>Uncountable glowing embers steak down upon your foes.</font></b>'
  435. elseif SuccessValue < 0:
  436. damTip = 2000
  437. pcs_health -= 200
  438. bonusSh = 100
  439. '<b><font color = red>The spell backfires! Uncountable glowing embers steak down upon the battlefield burning everyone.</font></b>'
  440. else
  441. '<b>The spell fizzles. Nothing seems to happen.</b>'
  442. end
  443. xgt'atakA','atak'
  444. end
  445. if $ARGS[0] = 'flameshield':
  446. if SuccessValue > 0:
  447. defence += (2500 * SuccessValue)
  448. '<b><font color = green>A Shield made of Flames interposes itself between you and your enemy. You now have <<defence>> protection units.</font></b>'
  449. elseif SuccessValue < 0:
  450. defenceV += 2500
  451. '<b><font color = red>The spell backfires! A Shield made of Flames interposes itself between you and your enemy. Your enemy now has <<defence>> protection units.</font></b>'
  452. else
  453. '<b>The spell fizzles. Nothing seems to happen.</b>'
  454. end
  455. end
  456. if $ARGS[0] = 'shock':
  457. if SuccessValue > 0:
  458. damTip = (150 * SuccessValue)
  459. eleSh = 1
  460. '<b><font color = green>You build a static electric charge in your hand and zap your opponent.</font></b>'
  461. elseif SuccessValue < 0:
  462. pcs_health -= 50
  463. '<b><font color = red>The spell backfires! You manage to zap yourself with a static charge.</font></b>'
  464. else
  465. '<b>The spell fizzles. Nothing seems to happen.</b>'
  466. end
  467. xgt'atakA','atak'
  468. end
  469. if $ARGS[0] = 'lightning':
  470. if SuccessValue > 0:
  471. damTip = (1500 * SuccessValue)
  472. eleSh = 1
  473. '<b><font color = green>You shoot a lightning bolt from your hand zapping your opponent.</font></b>'
  474. elseif SuccessValue < 0:
  475. pcs_health -= 300
  476. '<b><font color = red>The spell backfires! You manage to zap yourself with lightning.</font></b>'
  477. else
  478. '<b>The spell fizzles. Nothing seems to happen.</b>'
  479. end
  480. xgt'atakA','atak'
  481. end
  482. if $ARGS[0] = 'electricbarrier':
  483. if SuccessValue > 0:
  484. defence += (1500 * SuccessValue)
  485. '<b><font color = green>A wall of dancing lightning springs up around yourself. You now have <<defence>> protection units.</font></b>'
  486. elseif SuccessValue < 0:
  487. defenceV += 1500
  488. '<b><font color = red>The spell backfires! A wall of dancing lightning springs up around your enemy. Your enemy now has <<defence>> protection units.</font></b>'
  489. else
  490. '<b>The spell fizzles. Nothing seems to happen.</b>'
  491. end
  492. end
  493. if $ARGS[0] = '1000birds':
  494. if SuccessValue > 0:
  495. damTip = 2750 + (1000 * SuccessValue)
  496. bonusSh = 30
  497. eleSh = 1
  498. '<b><font color = green>You shoot hundreds of small lightning bolts toward your enemy.</font></b>'
  499. elseif SuccessValue < 0:
  500. damTip = 2000
  501. pcs_health -= 200
  502. bonusSh = 30
  503. eleSh = 1
  504. '<b><font color = red>The spell backfires! Hundreds of small lightning bolts curl toward the battlefield shocking everyone.</font></b>'
  505. else
  506. '<b>The spell fizzles. Nothing seems to happen.</b>'
  507. end
  508. end
  509. if $ARGS[0] = 'dancingsphere':
  510. if SuccessValue > 0:
  511. defence += (5000 * SuccessValue)
  512. '<b><font color = green>A large field of lightning dances around you blocking attacks. You now have <<defence>> protection units.</font></b>'
  513. elseif SuccessValue < 0:
  514. defenceV += 5000
  515. '<b><font color = red>The spell backfires! A large field of lightning dances around you blocking attacks. Your enemy now has <<defence>> protection units.</font></b>'
  516. else
  517. '<b>The spell fizzles. Nothing seems to happen.</b>'
  518. end
  519. end
  520. if $ARGS[0] = 'quicksand':
  521. if SuccessValue > 0:
  522. damTip = 100 * SuccessValue
  523. eleSh = 5
  524. '<b><font color = green>You have trapped your opponent in quicksand.</font></b>'
  525. elseif SuccessValue < 0:
  526. damTip = 100
  527. pcs_health -= 50
  528. eleSh = 5
  529. '<b><font color = red>The spell backfires! You are both trapped in quicksand.</font></b>'
  530. else
  531. '<b>The spell fizzles. Nothing seems to happen.</b>'
  532. end
  533. xgt'atakA','atak'
  534. end
  535. if $ARGS[0] = 'earthshield':
  536. if SuccessValue > 0:
  537. defence += 1500 + (1000 * SuccessValue)
  538. defenceM += 2500
  539. defenceActPar = 1000
  540. defenceActParM = 1000
  541. defenceAct = 10
  542. defenceActM = 10
  543. '<b><font color = green>Tendrils of Earth rise to defend you. You now have <<defence>> protection units.</font></b>'
  544. elseif SuccessValue < 0:
  545. defenceV += 2500
  546. '<b><font color = red>The spell backfires! Tendrils of Earth rise to defend your enemy. Your enemy now has <<defence>> protection units.</font></b>'
  547. else
  548. '<b>The spell fizzles. Nothing seems to happen.</b>'
  549. end
  550. end
  551. if $ARGS[0] = 'abyss':
  552. if SuccessValue > 0:
  553. damTip = 1500 * SuccessValue
  554. eleSh = 5
  555. '<b><font color = green>The Earth opens up beneath your opponents feet, slamming shut damaging him and depriving him of the ability to move.</font></b>'
  556. elseif SuccessValue < 0:
  557. damTip = 1500
  558. pcs_health -= 200
  559. eleSh = 5
  560. '<b><font color = red>The spell backfires! The Earth opens up beneath your opponents feet, slamming shut damaging him and depriving him of the ability to move. You are also caught.</font></b>'
  561. else
  562. '<b>The spell fizzles. Nothing seems to happen.</b>'
  563. end
  564. xgt'atakA','atak'
  565. end
  566. if $ARGS[0] = 'earthguardian':
  567. if SuccessValue > 0:
  568. defence += 5200 + (2000 * SuccessValue)
  569. defenceM += 6250
  570. defenceW += 6250
  571. defenceActPar = 1000
  572. defenceActParM = 1000
  573. defenceActParW = 1000
  574. defenceAct = 15
  575. defenceActM = 15
  576. defenceActW = 15
  577. defAtk = 15
  578. '<b><font color = green>The Earth itself comes alive defending you from attacks. It draws from the power of the land to regenerate itself every round. You now have <<defence>> protection units.</font></b>'
  579. elseif SuccessValue < 0:
  580. defenceV += 2500
  581. '<b><font color = red>The spell backfires! Tendrils of Earth rise to defend your enemy. Your enemy now has <<defence>> protection units.</font></b>'
  582. else
  583. '<b>The spell fizzles. Nothing seems to happen.</b>'
  584. end
  585. end
  586. if $ARGS[0] = 'sando':
  587. if SuccessValue > 0:
  588. damTip = 3000 + (2000 * SuccessValue)
  589. bonusSh = 50
  590. eleSh = 5
  591. '<b><font color = green>Two huge plates of earth colapse together crushing the enemy and depriving him of the ability to move.</font></b>'
  592. elseif SuccessValue < 0:
  593. pcs_health -= 200
  594. '<b><font color = red>The spell backfires! Two huge plates of earth colapse together with crushing force, but the enemy is missed and you are instead caught.</font></b>'
  595. else
  596. '<b>The spell fizzles. Nothing seems to happen.</b>'
  597. end
  598. xgt'atakA','atak'
  599. end
  600. if $ARGS[0] = 'windgust':
  601. if SuccessValue > 0:
  602. damTip = 100 * SuccessValue
  603. bonusSh = 50
  604. '<b><font color = green>You have created a gust of wind.</font></b>'
  605. if klonV > 0:klonV = 0 & '<b><font color = green>Enemy clones are vaporized.</font></b>'
  606. if tumanV > 0:tumanV = 0 & '<b><font color = green>Enemy Fog is torn to shreds by the wind.</font></b>'
  607. elseif SuccessValue < 0:
  608. pcs_health -= 50
  609. '<b><font color = red>The spell backfires! You have created a gust of wind, but the enemy is missed and you are instead caught.</font></b>'
  610. if klon > 0:klon = 0 & '<b><font color = green>Your clones are vaporized.</font></b>'
  611. if tuman > 0:tuman = 0 & '<b><font color = green>Your Fog is torn to shreds by the wind.</font></b>'
  612. else
  613. '<b>The spell fizzles. Nothing seems to happen.</b>'
  614. end
  615. xgt'atakA','atak'
  616. end
  617. if $ARGS[0] = 'pressure':
  618. if SuccessValue > 0:
  619. damTip = 1000 * SuccessValue
  620. bonusSh = 100
  621. '<b><font color = green>You dramatically raised the air pressure.</font></b>'
  622. if klonV > 0:klonV = 0 & '<b><font color = green>Enemy clones are vaporized.</font></b>'
  623. if tumanV > 0:tumanV = 0 & '<b><font color = green>Enemy Fog is torn to shreds by the wind.</font></b>'
  624. elseif SuccessValue < 0:
  625. pcs_health -= 200
  626. '<b><font color = red>The spell backfires! You dramatically raised the air pressure, but the enemy is missed and you are instead caught.</font></b>'
  627. if klon > 0:klon = 0 & '<b><font color = green>Your clones are vaporized.</font></b>'
  628. if tuman > 0:tuman = 0 & '<b><font color = green>Your Fog is torn to shreds by the wind.</font></b>'
  629. else
  630. '<b>The spell fizzles. Nothing seems to happen.</b>'
  631. end
  632. xgt'atakA','atak'
  633. end
  634. if $ARGS[0] = 'vacuum':
  635. if SuccessValue > 0:
  636. defence += (1500 * SuccessValue)
  637. '<b><font color = green>A turbulent sphere of vacuum surrounds you blocking incoming attacks. You now have <<defence>> protection units.</font></b>'
  638. elseif SuccessValue < 0:
  639. defenceV += 1500
  640. '<b><font color = red>The spell backfires! A turbulent sphere of vacuum surrounds your enemy blocking your attacks. Your enemy now has <<defence>> protection units.</font></b>'
  641. else
  642. '<b>The spell fizzles. Nothing seems to happen.</b>'
  643. end
  644. end
  645. if $ARGS[0] = 'vacuumshells':
  646. if SuccessValue > 0:
  647. damTip = 2500 * SuccessValue
  648. bonusSh = 100
  649. '<b><font color = green>Turbulent spheres of vacuum bombard your enemy. The air is full of whistling sounds as the spheres fly by at high speeds over the battlefield.</font></b>'
  650. if klonV > 0:klonV = 0 & '<b><font color = green>Enemy clones are vaporized.</font></b>'
  651. if tumanV > 0:tumanV = 0 & '<b><font color = green>Enemy Fog is torn to shreds by the wind.</font></b>'
  652. elseif SuccessValue < 0:
  653. pcs_health -= 200
  654. '<b><font color = red>The spell backfires! Turbulent spheres of vacuum bombard your enemy. The air is full of whistling sounds as the spheres fly by at high speeds over the battlefield, but the enemy is missed and you are instead caught.</font></b>'
  655. if klon > 0:klon = 0 & '<b><font color = green>Your clones are vaporized.</font></b>'
  656. if tuman > 0:tuman = 0 & '<b><font color = green>Your Fog is torn to shreds by the wind.</font></b>'
  657. else
  658. '<b>The spell fizzles. Nothing seems to happen.</b>'
  659. end
  660. xgt'atakA','atak'
  661. end
  662. if $ARGS[0] = 'devouringvacuum':
  663. if SuccessValue > 0:
  664. defenceV = 0
  665. defenceMV = 0
  666. defenceWV = 0
  667. defenceActParV = 0
  668. defenceActParMV = 0
  669. defenceActV = 0
  670. defenceActMV = 0
  671. defAtkMV = 0
  672. '<b><font color = green>A devouring vacuum sucks away your enemys defenses.</font></b>'
  673. elseif SuccessValue < 0:
  674. defence = 0
  675. defenceM = 0
  676. defenceW = 0
  677. defenceActPar = 0
  678. defenceActParM = 0
  679. defenceAct = 0
  680. defenceActM = 0
  681. defAtkM = 0
  682. '<b><font color = red>The spell backfires! A devouring vacuum sucks away your defenses.</font></b>'
  683. else
  684. '<b>The spell fizzles. Nothing seems to happen.</b>'
  685. end
  686. end
  687. if $ARGS[0] = 'leechmana':
  688. if SuccessValue > 0:
  689. damTip = 100 * SuccessValue
  690. damTipM = 1000
  691. '<b><font color = green>You leech mana from your enemy.</font></b>'
  692. elseif SuccessValue < 0:
  693. pcs_health -= 50
  694. '<b><font color = red>The spell backfires! Ouch!</font></b>'
  695. else
  696. '<b>The spell fizzles. Nothing seems to happen.</b>'
  697. end
  698. xgt'atakA','atak'
  699. end
  700. if $ARGS[0] = 'flood':
  701. if SuccessValue > 0:
  702. damTip = 1000 * SuccessValue
  703. damTipM = 500
  704. '<b><font color = green>A surge of water rises towards your enemy.</font></b>'
  705. elseif SuccessValue < 0:
  706. pcs_health -= 100
  707. '<b><font color = red>The spell backfires! A surge of water rises towards your enemy, but missed and hits you.</font></b>'
  708. else
  709. '<b>The spell fizzles. Nothing seems to happen.</b>'
  710. end
  711. xgt'atakA','atak'
  712. end
  713. if $ARGS[0] = 'blister':
  714. if SuccessValue > 0:
  715. defence += 1500
  716. defenceM += 1500
  717. defenceW += 1500
  718. defenceActPar = 500
  719. defenceActParM = 500
  720. defenceAct = 10
  721. defenceActM = 10
  722. '<b><font color = green>A protective sphere of water surrounds you.</font></b>'
  723. elseif SuccessValue < 0:
  724. defenceV += 1500
  725. '<b><font color = red>The spell backfires! A protective sphere of water surrounds your enemy.</font></b>'
  726. else
  727. '<b>The spell fizzles. Nothing seems to happen.</b>'
  728. end
  729. end
  730. if $ARGS[0] = 'sharkrockets':
  731. if SuccessValue > 0:
  732. damTip = 1500 * SuccessValue
  733. damTipM = 2500
  734. bonusSh = 50
  735. '<b><font color = green>Blobs of Water shaped like sharks fly towards your enemy stiking them.</font></b>'
  736. if klonV > 0:klonV = 0 & '<b><font color = green>Enemy clones are eliminated.</font></b>'
  737. elseif SuccessValue < 0:
  738. pcs_health -= 100
  739. '<b><font color = red>The spell backfires! Blobs of Water shaped like sharks fly towards your enemy, but missed and hits you.</font></b>'
  740. if klon > 0:klon = 0 & '<b><font color = green>Your clones are eliminated.</font></b>'
  741. else
  742. '<b>The spell fizzles. Nothing seems to happen.</b>'
  743. end
  744. xgt'atakA','atak'
  745. end
  746. if $ARGS[0] = 'greatflood':
  747. if SuccessValue > 0:
  748. defence += 5000
  749. defenceM += 5000
  750. defenceW += 5000
  751. defenceActPar = 500
  752. defenceActParM = 500
  753. defenceAct = 10
  754. defenceActM = 10
  755. defAtkM = 10
  756. '<b><font color = green>You have filled the whole neighborhood with water protecting you and devouring enemy mana.</font></b>'
  757. if klonV > 0:klonV = 0 & '<b><font color = green>Clones enemy disappeared.</font></b>'
  758. elseif SuccessValue < 0:
  759. defenceV += 1500
  760. '<b><font color = red>The spell backfires! A huge flood of water surrounds your enemy protecting him.</font></b>'
  761. if klon > 0:klon = 0 & '<b><font color = green>Clones enemy disappeared.</font></b>'
  762. else
  763. '<b>The spell fizzles. Nothing seems to happen.</b>'
  764. end
  765. end
  766. killvar 'SuccessValue'
  767. --- spell ---------------------------------