spell.qsrc 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  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. ! Time when spell ends (totminut is right now, in minutes)
  54. spellComplete = totminut + 120
  55. ! Code that is executed when spell completes
  56. $spellCompExec = 'pcs_health += (5 * <<regenVal>>)'
  57. ! Code that is executed each minute the spell is running
  58. $spellTickExec = 'pcs_health += <<regenVal>>'
  59. ! Name of spell for reportinig purposes
  60. $spellTimeName = 'regenerate'
  61. '<b><font color = green>Your body surges with life. You feel better already.</font></b>'
  62. killvar 'regenVal'
  63. else
  64. '<b>The spell fizzles. Nothing seems to happen.</b>'
  65. end
  66. end
  67. if $ARGS[0] = 'reset':
  68. cla
  69. !Create mist
  70. 'Accumulated mana <<manaReset>> units.'
  71. act 'Absorb accumulated mana':
  72. cla
  73. *clr
  74. pcs_mana = pcs_mana + manaReset
  75. manaReset = 0
  76. xgt'fight','sta'
  77. end
  78. act 'Physical attacks':gt'boxing'
  79. if pcs_magik > 0:
  80. act 'Magic attacks':gt'magik'
  81. end
  82. end
  83. if $ARGS[0] = 'unmat':
  84. cla
  85. !Create mist
  86. '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.'
  87. 'Do not allow to pass through the materiality of the body is not getting any impact damage, while slightly reduced longevity spells.'
  88. if rikudo >= 3000:
  89. act 'Become a disembodied':
  90. cla
  91. *clr
  92. unmaterial = 31
  93. rikudo = rikudo + 3000
  94. manaReset = 0
  95. xgt'fight','sta'
  96. end
  97. elseif rikudo < 3000:
  98. 'You have too little power Rikudo for this spell.'
  99. end
  100. act 'Physical attacks':gt'boxing'
  101. if pcs_magik > 0:
  102. act 'Magic attacks':gt'magik'
  103. end
  104. end
  105. if $ARGS[0] = 'fog':
  106. ! tuman = the amount of fog around you making you harder to hit
  107. ! tumanV = the amount of fog around your opponent making him harder to hit
  108. if tumanV > 0:
  109. 'It is not possible to call your fog when an existing opponent is already fogged.'
  110. else
  111. if SuccessValue > 0:
  112. tuman += (10 * SuccessValue)
  113. '<b><font color = green>A Fog materializes around, obscuring you from your enemies.</font></b>'
  114. elseif SuccessValue < 0:
  115. tumanV += 10
  116. '<b><font color = red>The spell backfires! A Fog materializes around your enemy, obscuring him from your view.</font></b>'
  117. else
  118. '<b>The spell fizzles. Nothing seems to happen.</b>'
  119. end
  120. end
  121. end
  122. if $ARGS[0] = 'clone':
  123. ! klon = the number of clones that the enemy must destroy before hitting you
  124. if SuccessValue > 0:
  125. klon += SuccessValue
  126. '<b><font color = green><<SuccessValue>> clone<<iif(SuccessValue>1,"s","")>> of you springs from you confusing the enemy.</font></b>'
  127. elseif SuccessValue < 0 and klon > 0:
  128. klon -= 1
  129. '<b><font color = red>The spell backfires! One of your clones disappears.</font></b>'
  130. else
  131. '<b>The spell fizzles. Nothing seems to happen.</b>'
  132. end
  133. end
  134. if $ARGS[0] = 'stun':
  135. ! stunner = 1 stuns the enemy for 3-6 rounds
  136. if SuccessValue > 0:
  137. stunner = 1
  138. '<b><font color = green>Your enemy is stunned.</font></b>'
  139. else
  140. '<b>The spell fizzles. Nothing seems to happen.</b>'
  141. end
  142. xgt'atak','player'
  143. end
  144. if $ARGS[0] = 'weapon':
  145. if SuccessValue > 0:
  146. magweapbonus = weapbonus * 4 * SuccessValue
  147. '<b><font color = green>Your Weapon now feels more powerful.</font></b>'
  148. elseif SuccessValue < 0:
  149. magweapbonus = weapbonus * -1
  150. '<b><font color = red>The spell backfires! Your weapon seems weaker.</font></b>'
  151. else
  152. '<b>The spell fizzles. Nothing seems to happen.</b>'
  153. end
  154. xgt'atak','player'
  155. end
  156. if $ARGS[0] = 'wind':
  157. ! tuman = the amount of fog around you making you harder to hit
  158. ! tumanV = the amount of fog around your opponent making him harder to hit
  159. if SuccessValue = 2:
  160. tumanV = 0
  161. '<b><font color = green>A wind blows through the area eliminating your enemys fog from the battlefield.</font></b>'
  162. elseif SuccessValue = 1:
  163. tumanV = 0
  164. tuman = 0
  165. '<b><font color = green>A wind blows through the area eliminating all fog on the battlefield.</font></b>'
  166. elseif SuccessValue = -1:
  167. tuman = 0
  168. '<b><font color = red>A wind blows through the area eliminating your fog from the battlefield.</font></b>'
  169. else
  170. '<b>The spell fizzles. Nothing seems to happen.</b>'
  171. end
  172. end
  173. if $ARGS[0] = 'multiclone':
  174. ! klon = the number of clones that the enemy must destroy before hitting you
  175. if SuccessValue > 0:
  176. klon += SuccessValue * 3
  177. '<b><font color = green><<SuccessValue * 3>> clone<<iif(SuccessValue>1,"s","")>> of you springs from you confusing the enemy.</font></b>'
  178. elseif SuccessValue < 0 and klon > 0:
  179. if klon < 3:
  180. klon = 0
  181. else
  182. klon -= 3
  183. end
  184. '<b><font color = red>The spell backfires! Some of your clones disappear.</font></b>'
  185. else
  186. '<b>The spell fizzles. Nothing seems to happen.</b>'
  187. end
  188. end
  189. if $ARGS[0] = 'energo':
  190. ! defence = absorbs damage before health begins to be removed
  191. if SuccessValue > 0:
  192. defence += (100 * SuccessValue)
  193. '<b><font color = green>An energy shield materializes around you, protecting you from your enemies.</font></b>'
  194. elseif SuccessValue < 0:
  195. defenceV += 100
  196. '<b><font color = red>The spell backfires! An energy shield materializes around your enemy, protecting him from you.</font></b>'
  197. else
  198. '<b>The spell fizzles. Nothing seems to happen.</b>'
  199. end
  200. end
  201. if $ARGS[0] = 'haste':
  202. if SuccessValue > 0:
  203. initBonus += (120 * SuccessValue)
  204. '<b><font color = green>Your mind and body seem to race though a sluggish world.</font></b>'
  205. elseif SuccessValue < 0:
  206. initBonusV += 120
  207. '<b><font color = red>The spell backfires! Your enemy seems to move faster.</font></b>'
  208. else
  209. '<b>The spell fizzles. Nothing seems to happen.</b>'
  210. end
  211. end
  212. if $ARGS[0] = 'heal':
  213. if SuccessValue > 0:
  214. pcs_health += (400 * SuccessValue)
  215. '<b><font color = green>Your body surges with life. You feel much stronger.</font></b>'
  216. else
  217. '<b>The spell fizzles. Nothing seems to happen.</b>'
  218. end
  219. end
  220. if $ARGS[0] = 'hand':
  221. if SuccessValue > 0:
  222. strenK = pcs_stren*20*SuccessValue/100
  223. magweapbonus = RAND(pcs_stren*10 - strenK,pcs_stren*10 + strenK)
  224. '<b><font color = green>Your hands now feel more powerful.</font></b>'
  225. elseif SuccessValue < 0:
  226. strenK = pcs_stren*20/100
  227. magweapbonus = 0 - RAND(pcs_stren*10 - strenK,pcs_stren*10 + strenK)
  228. '<b><font color = red>The spell backfires! Your hands seem weaker.</font></b>'
  229. else
  230. '<b>The spell fizzles. Nothing seems to happen.</b>'
  231. end
  232. xgt'atak','player'
  233. end
  234. if $ARGS[0] = 'scaldingtouch':
  235. if SuccessValue > 0:
  236. damTip = 250 * SuccessValue
  237. '<b><font color = green>Flames spring from your hands.</font></b>'
  238. else
  239. '<b>The spell fizzles. Nothing seems to happen.</b>'
  240. end
  241. xgt'atakA','atak'
  242. end
  243. if $ARGS[0] = 'burninghands':
  244. if SuccessValue > 0:
  245. damTip = 2500 * SuccessValue
  246. '<b><font color = green>A torrent of flames jets from your hands.</font></b>'
  247. else
  248. '<b>The spell fizzles. Nothing seems to happen.</b>'
  249. end
  250. xgt'atakA','atak'
  251. end
  252. if $ARGS[0] = 'firebarrier':
  253. if SuccessValue > 0:
  254. defence += (750 * SuccessValue)
  255. '<b><font color = green>A flaming barrier has sprung up between you and your opponent. You now have <<defence>> protection units.</font></b>'
  256. elseif SuccessValue < 0:
  257. defenceV += 750
  258. '<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>'
  259. else
  260. '<b>The spell fizzles. Nothing seems to happen.</b>'
  261. end
  262. end
  263. if $ARGS[0] = 'firestorm':
  264. if SuccessValue > 0:
  265. damTip = 4250 + (2000 * SuccessValue)
  266. bonusSh = 100
  267. '<b><font color = green>Uncountable glowing embers steak down upon your foes.</font></b>'
  268. elseif SuccessValue < 0:
  269. damTip = 2000
  270. pcs_health -= 200
  271. bonusSh = 100
  272. '<b><font color = red>The spell backfires! Uncountable glowing embers steak down upon the battlefield burning everyone.</font></b>'
  273. else
  274. '<b>The spell fizzles. Nothing seems to happen.</b>'
  275. end
  276. xgt'atakA','atak'
  277. end
  278. if $ARGS[0] = 'flameshield':
  279. if SuccessValue > 0:
  280. defence += (2500 * SuccessValue)
  281. '<b><font color = green>A Shield made of Flames interposes itself between you and your enemy. You now have <<defence>> protection units.</font></b>'
  282. elseif SuccessValue < 0:
  283. defenceV += 2500
  284. '<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>'
  285. else
  286. '<b>The spell fizzles. Nothing seems to happen.</b>'
  287. end
  288. end
  289. if $ARGS[0] = 'shock':
  290. if SuccessValue > 0:
  291. damTip = (150 * SuccessValue)
  292. eleSh = 1
  293. '<b><font color = green>You build a static electric charge in your hand and zap your opponent.</font></b>'
  294. elseif SuccessValue < 0:
  295. pcs_health -= 50
  296. '<b><font color = red>The spell backfires! You manage to zap yourself with a static charge.</font></b>'
  297. else
  298. '<b>The spell fizzles. Nothing seems to happen.</b>'
  299. end
  300. xgt'atakA','atak'
  301. end
  302. if $ARGS[0] = 'lightning':
  303. if SuccessValue > 0:
  304. damTip = (1500 * SuccessValue)
  305. eleSh = 1
  306. '<b><font color = green>You shoot a lightning bolt from your hand zapping your opponent.</font></b>'
  307. elseif SuccessValue < 0:
  308. pcs_health -= 300
  309. '<b><font color = red>The spell backfires! You manage to zap yourself with lightning.</font></b>'
  310. else
  311. '<b>The spell fizzles. Nothing seems to happen.</b>'
  312. end
  313. xgt'atakA','atak'
  314. end
  315. if $ARGS[0] = 'electricbarrier':
  316. if SuccessValue > 0:
  317. defence += (1500 * SuccessValue)
  318. '<b><font color = green>A wall of dancing lightning springs up around yourself. You now have <<defence>> protection units.</font></b>'
  319. elseif SuccessValue < 0:
  320. defenceV += 1500
  321. '<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>'
  322. else
  323. '<b>The spell fizzles. Nothing seems to happen.</b>'
  324. end
  325. end
  326. if $ARGS[0] = '1000birds':
  327. if SuccessValue > 0:
  328. damTip = 2750 + (1000 * SuccessValue)
  329. bonusSh = 30
  330. eleSh = 1
  331. '<b><font color = green>You shoot hundreds of small lightning bolts toward your enemy.</font></b>'
  332. elseif SuccessValue < 0:
  333. damTip = 2000
  334. pcs_health -= 200
  335. bonusSh = 30
  336. eleSh = 1
  337. '<b><font color = red>The spell backfires! Hundreds of small lightning bolts curl toward the battlefield shocking everyone.</font></b>'
  338. else
  339. '<b>The spell fizzles. Nothing seems to happen.</b>'
  340. end
  341. end
  342. if $ARGS[0] = 'dancingsphere':
  343. if SuccessValue > 0:
  344. defence += (5000 * SuccessValue)
  345. '<b><font color = green>A large field of lightning dances around you blocking attacks. You now have <<defence>> protection units.</font></b>'
  346. elseif SuccessValue < 0:
  347. defenceV += 5000
  348. '<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>'
  349. else
  350. '<b>The spell fizzles. Nothing seems to happen.</b>'
  351. end
  352. end
  353. if $ARGS[0] = 'quicksand':
  354. if SuccessValue > 0:
  355. damTip = 100 * SuccessValue
  356. eleSh = 5
  357. '<b><font color = green>You have trapped your opponent in quicksand.</font></b>'
  358. elseif SuccessValue < 0:
  359. damTip = 100
  360. pcs_health -= 50
  361. eleSh = 5
  362. '<b><font color = red>The spell backfires! You are both trapped in quicksand.</font></b>'
  363. else
  364. '<b>The spell fizzles. Nothing seems to happen.</b>'
  365. end
  366. xgt'atakA','atak'
  367. end
  368. if $ARGS[0] = 'earthshield':
  369. if SuccessValue > 0:
  370. defence += 1500 + (1000 * SuccessValue)
  371. defenceM += 2500
  372. defenceActPar = 1000
  373. defenceActParM = 1000
  374. defenceAct = 10
  375. defenceActM = 10
  376. '<b><font color = green>Tendrils of Earth rise to defend you. You now have <<defence>> protection units.</font></b>'
  377. elseif SuccessValue < 0:
  378. defenceV += 2500
  379. '<b><font color = red>The spell backfires! Tendrils of Earth rise to defend your enemy. Your enemy now has <<defence>> protection units.</font></b>'
  380. else
  381. '<b>The spell fizzles. Nothing seems to happen.</b>'
  382. end
  383. end
  384. if $ARGS[0] = 'abyss':
  385. if SuccessValue > 0:
  386. damTip = 1500 * SuccessValue
  387. eleSh = 5
  388. '<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>'
  389. elseif SuccessValue < 0:
  390. damTip = 1500
  391. pcs_health -= 200
  392. eleSh = 5
  393. '<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>'
  394. else
  395. '<b>The spell fizzles. Nothing seems to happen.</b>'
  396. end
  397. xgt'atakA','atak'
  398. end
  399. if $ARGS[0] = 'earthguardian':
  400. if SuccessValue > 0:
  401. defence += 5200 + (2000 * SuccessValue)
  402. defenceM += 6250
  403. defenceW += 6250
  404. defenceActPar = 1000
  405. defenceActParM = 1000
  406. defenceActParW = 1000
  407. defenceAct = 15
  408. defenceActM = 15
  409. defenceActW = 15
  410. defAtk = 15
  411. '<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>'
  412. elseif SuccessValue < 0:
  413. defenceV += 2500
  414. '<b><font color = red>The spell backfires! Tendrils of Earth rise to defend your enemy. Your enemy now has <<defence>> protection units.</font></b>'
  415. else
  416. '<b>The spell fizzles. Nothing seems to happen.</b>'
  417. end
  418. end
  419. if $ARGS[0] = 'sando':
  420. if SuccessValue > 0:
  421. damTip = 3000 + (2000 * SuccessValue)
  422. bonusSh = 50
  423. eleSh = 5
  424. '<b><font color = green>Two huge plates of earth colapse together crushing the enemy and depriving him of the ability to move.</font></b>'
  425. elseif SuccessValue < 0:
  426. pcs_health -= 200
  427. '<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>'
  428. else
  429. '<b>The spell fizzles. Nothing seems to happen.</b>'
  430. end
  431. xgt'atakA','atak'
  432. end
  433. if $ARGS[0] = 'windgust':
  434. if SuccessValue > 0:
  435. damTip = 100 * SuccessValue
  436. bonusSh = 50
  437. '<b><font color = green>You have created a gust of wind.</font></b>'
  438. if klonV > 0:klonV = 0 & '<b><font color = green>Enemy clones are vaporized.</font></b>'
  439. if tumanV > 0:tumanV = 0 & '<b><font color = green>Enemy Fog is torn to shreds by the wind.</font></b>'
  440. elseif SuccessValue < 0:
  441. pcs_health -= 50
  442. '<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>'
  443. if klon > 0:klon = 0 & '<b><font color = green>Your clones are vaporized.</font></b>'
  444. if tuman > 0:tuman = 0 & '<b><font color = green>Your Fog is torn to shreds by the wind.</font></b>'
  445. else
  446. '<b>The spell fizzles. Nothing seems to happen.</b>'
  447. end
  448. xgt'atakA','atak'
  449. end
  450. if $ARGS[0] = 'pressure':
  451. if SuccessValue > 0:
  452. damTip = 1000 * SuccessValue
  453. bonusSh = 100
  454. '<b><font color = green>You dramatically raised the air pressure.</font></b>'
  455. if klonV > 0:klonV = 0 & '<b><font color = green>Enemy clones are vaporized.</font></b>'
  456. if tumanV > 0:tumanV = 0 & '<b><font color = green>Enemy Fog is torn to shreds by the wind.</font></b>'
  457. elseif SuccessValue < 0:
  458. pcs_health -= 200
  459. '<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>'
  460. if klon > 0:klon = 0 & '<b><font color = green>Your clones are vaporized.</font></b>'
  461. if tuman > 0:tuman = 0 & '<b><font color = green>Your Fog is torn to shreds by the wind.</font></b>'
  462. else
  463. '<b>The spell fizzles. Nothing seems to happen.</b>'
  464. end
  465. xgt'atakA','atak'
  466. end
  467. if $ARGS[0] = 'vacuum':
  468. if SuccessValue > 0:
  469. defence += (1500 * SuccessValue)
  470. '<b><font color = green>A turbulent sphere of vacuum surrounds you blocking incoming attacks. You now have <<defence>> protection units.</font></b>'
  471. elseif SuccessValue < 0:
  472. defenceV += 1500
  473. '<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>'
  474. else
  475. '<b>The spell fizzles. Nothing seems to happen.</b>'
  476. end
  477. end
  478. if $ARGS[0] = 'vacuumshells':
  479. if SuccessValue > 0:
  480. damTip = 2500 * SuccessValue
  481. bonusSh = 100
  482. '<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>'
  483. if klonV > 0:klonV = 0 & '<b><font color = green>Enemy clones are vaporized.</font></b>'
  484. if tumanV > 0:tumanV = 0 & '<b><font color = green>Enemy Fog is torn to shreds by the wind.</font></b>'
  485. elseif SuccessValue < 0:
  486. pcs_health -= 200
  487. '<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>'
  488. if klon > 0:klon = 0 & '<b><font color = green>Your clones are vaporized.</font></b>'
  489. if tuman > 0:tuman = 0 & '<b><font color = green>Your Fog is torn to shreds by the wind.</font></b>'
  490. else
  491. '<b>The spell fizzles. Nothing seems to happen.</b>'
  492. end
  493. xgt'atakA','atak'
  494. end
  495. if $ARGS[0] = 'devouringvacuum':
  496. if SuccessValue > 0:
  497. defenceV = 0
  498. defenceMV = 0
  499. defenceWV = 0
  500. defenceActParV = 0
  501. defenceActParMV = 0
  502. defenceActV = 0
  503. defenceActMV = 0
  504. defAtkMV = 0
  505. '<b><font color = green>A devouring vacuum sucks away your enemys defenses.</font></b>'
  506. elseif SuccessValue < 0:
  507. defence = 0
  508. defenceM = 0
  509. defenceW = 0
  510. defenceActPar = 0
  511. defenceActParM = 0
  512. defenceAct = 0
  513. defenceActM = 0
  514. defAtkM = 0
  515. '<b><font color = red>The spell backfires! A devouring vacuum sucks away your defenses.</font></b>'
  516. else
  517. '<b>The spell fizzles. Nothing seems to happen.</b>'
  518. end
  519. end
  520. if $ARGS[0] = 'leechmana':
  521. if SuccessValue > 0:
  522. damTip = 100 * SuccessValue
  523. damTipM = 1000
  524. '<b><font color = green>You leech mana from your enemy.</font></b>'
  525. elseif SuccessValue < 0:
  526. pcs_health -= 50
  527. '<b><font color = red>The spell backfires! Ouch!</font></b>'
  528. else
  529. '<b>The spell fizzles. Nothing seems to happen.</b>'
  530. end
  531. xgt'atakA','atak'
  532. end
  533. if $ARGS[0] = 'flood':
  534. if SuccessValue > 0:
  535. damTip = 1000 * SuccessValue
  536. damTipM = 500
  537. '<b><font color = green>A surge of water rises towards your enemy.</font></b>'
  538. elseif SuccessValue < 0:
  539. pcs_health -= 100
  540. '<b><font color = red>The spell backfires! A surge of water rises towards your enemy, but missed and hits you.</font></b>'
  541. else
  542. '<b>The spell fizzles. Nothing seems to happen.</b>'
  543. end
  544. xgt'atakA','atak'
  545. end
  546. if $ARGS[0] = 'blister':
  547. if SuccessValue > 0:
  548. defence += 1500
  549. defenceM += 1500
  550. defenceW += 1500
  551. defenceActPar = 500
  552. defenceActParM = 500
  553. defenceAct = 10
  554. defenceActM = 10
  555. '<b><font color = green>A protective sphere of water surrounds you.</font></b>'
  556. elseif SuccessValue < 0:
  557. defenceV += 1500
  558. '<b><font color = red>The spell backfires! A protective sphere of water surrounds your enemy.</font></b>'
  559. else
  560. '<b>The spell fizzles. Nothing seems to happen.</b>'
  561. end
  562. end
  563. if $ARGS[0] = 'sharkrockets':
  564. if SuccessValue > 0:
  565. damTip = 1500 * SuccessValue
  566. damTipM = 2500
  567. bonusSh = 50
  568. '<b><font color = green>Blobs of Water shaped like sharks fly towards your enemy stiking them.</font></b>'
  569. if klonV > 0:klonV = 0 & '<b><font color = green>Enemy clones are eliminated.</font></b>'
  570. elseif SuccessValue < 0:
  571. pcs_health -= 100
  572. '<b><font color = red>The spell backfires! Blobs of Water shaped like sharks fly towards your enemy, but missed and hits you.</font></b>'
  573. if klon > 0:klon = 0 & '<b><font color = green>Your clones are eliminated.</font></b>'
  574. else
  575. '<b>The spell fizzles. Nothing seems to happen.</b>'
  576. end
  577. xgt'atakA','atak'
  578. end
  579. if $ARGS[0] = 'greatflood':
  580. if SuccessValue > 0:
  581. defence += 5000
  582. defenceM += 5000
  583. defenceW += 5000
  584. defenceActPar = 500
  585. defenceActParM = 500
  586. defenceAct = 10
  587. defenceActM = 10
  588. defAtkM = 10
  589. '<b><font color = green>You have filled the whole neighborhood with water protecting you and devouring enemy mana.</font></b>'
  590. if klonV > 0:klonV = 0 & '<b><font color = green>Clones enemy disappeared.</font></b>'
  591. elseif SuccessValue < 0:
  592. defenceV += 1500
  593. '<b><font color = red>The spell backfires! A huge flood of water surrounds your enemy protecting him.</font></b>'
  594. if klon > 0:klon = 0 & '<b><font color = green>Clones enemy disappeared.</font></b>'
  595. else
  596. '<b>The spell fizzles. Nothing seems to happen.</b>'
  597. end
  598. end
  599. killvar 'SuccessValue'
  600. --- spell ---------------------------------