spell.qsrc 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863
  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] = 'makeup':
  190. if SuccessValue > 0:
  191. ! Argument should be 3 digit string representing Makeup to apply
  192. $MakeupArg = $ARGS[2]
  193. if $MakeupArg = '': $MakeupArg = '210'
  194. ! Arg[0] = Makeup Amount (0-3)
  195. MakeupArg[0] = val(mid($MakeupArg,1,1))
  196. ! Arg[1] = Lip Balm application (0-1)
  197. MakeupArg[1] = val(mid($MakeupArg,2,1))
  198. ! Arg[2] = False lash Application (0-2)
  199. MakeupArg[2] = val(mid($MakeupArg,3,1))
  200. ! Brush hair
  201. pcs_hairbsh = 1
  202. ! Apply Makeup
  203. pcs_makeup = MakeupArg[0]
  204. ! Apply Lipbalm
  205. pcs_lipbalm += 8*MakeupArg[1]
  206. ! Apply False Lashes
  207. if MakeupArg[2] = 1 and pcs_lashes < 3:
  208. pcs_lashes = 3
  209. elseif MakeupArg[2] = 2 and pcs_lashes < 4:
  210. pcs_lashes = 4
  211. end
  212. killvar 'MakeupArg'
  213. killvar '$MakeupArg'
  214. '<b><font color = green>makeup is applied to your face.</font></b>'
  215. else
  216. '<b>The spell fizzles. Nothing seems to happen.</b>'
  217. end
  218. end
  219. if $ARGS[0] = 'cosmetica':
  220. if SuccessValue > 0:
  221. ! Take a Shower
  222. gs 'cum_cleanup'
  223. lactation['lactmess'] = 0
  224. pcs_sweat = 10
  225. ! Brush Teeth
  226. pcs_breath = 1
  227. ! Remove graffiti from self
  228. body_write = 0
  229. face_write = 0
  230. ! Enema
  231. klismaday = daystart
  232. klismaday1 = 1
  233. ! Brush hair
  234. pcs_hairbsh = 1
  235. ! Apply Makeup
  236. pcs_makeup = 3
  237. !if shave_menu = 0:nothing
  238. !if shave_menu = 1:legs and pussy
  239. !if shave_menu = 2:pussy only
  240. !if shave_menu = 3:legs only
  241. if shave_menu = 1 or shave_menu = 3:
  242. ! Shave Legs
  243. pcs_leghair = 0
  244. end
  245. if shave_menu = 1 or shave_menu = 2:
  246. ! Shave Pubes
  247. if pubestyle = 1:
  248. pcs_pubes = 0
  249. elseif pubestyle >= 2 and pubestyle <= 7:
  250. pcs_pubes = 11
  251. elseif pubestyle = 8:
  252. pcs_pubes = 16
  253. elseif pubestyle = 9:
  254. pcs_pubes = 21
  255. elseif pubestyle = 10:
  256. pcs_pubes = 26
  257. end
  258. end
  259. '<b><font color = green>You feel beautiful.</font></b>'
  260. else
  261. '<b>The spell fizzles. Nothing seems to happen.</b>'
  262. end
  263. end
  264. if $ARGS[0] = 'reset':
  265. cla
  266. !Create mist
  267. 'Accumulated mana <<manaReset>> units.'
  268. act 'Absorb accumulated mana':
  269. cla
  270. *clr
  271. pcs_mana = pcs_mana + manaReset
  272. manaReset = 0
  273. xgt'fight','sta'
  274. end
  275. act 'Physical attacks':gt'boxing'
  276. if pcs_magik > 0:
  277. act 'Magic attacks':gt'magik'
  278. end
  279. end
  280. if $ARGS[0] = 'unmat':
  281. cla
  282. !Create mist
  283. '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.'
  284. 'Do not allow to pass through the materiality of the body is not getting any impact damage, while slightly reduced longevity spells.'
  285. if rikudo >= 3000:
  286. act 'Become a disembodied':
  287. cla
  288. *clr
  289. unmaterial = 31
  290. rikudo = rikudo + 3000
  291. manaReset = 0
  292. xgt'fight','sta'
  293. end
  294. elseif rikudo < 3000:
  295. 'You have too little power Rikudo for this spell.'
  296. end
  297. act 'Physical attacks':gt'boxing'
  298. if pcs_magik > 0:
  299. act 'Magic attacks':gt'magik'
  300. end
  301. end
  302. if $ARGS[0] = 'fog':
  303. ! tuman = the amount of fog around you making you harder to hit
  304. ! tumanV = the amount of fog around your opponent making him harder to hit
  305. if tumanV > 0:
  306. 'It is not possible to call your fog when an existing opponent is already fogged.'
  307. else
  308. if SuccessValue > 0:
  309. tuman += (10 * SuccessValue)
  310. '<b><font color = green>A Fog materializes around, obscuring you from your enemies.</font></b>'
  311. elseif SuccessValue < 0:
  312. tumanV += 10
  313. '<b><font color = red>The spell backfires! A Fog materializes around your enemy, obscuring him from your view.</font></b>'
  314. else
  315. '<b>The spell fizzles. Nothing seems to happen.</b>'
  316. end
  317. end
  318. end
  319. if $ARGS[0] = 'clone':
  320. ! klon = the number of clones that the enemy must destroy before hitting you
  321. if SuccessValue > 0:
  322. klon += SuccessValue
  323. '<b><font color = green><<SuccessValue>> clone<<iif(SuccessValue>1,"s","")>> of you springs from you confusing the enemy.</font></b>'
  324. elseif SuccessValue < 0 and klon > 0:
  325. klon -= 1
  326. '<b><font color = red>The spell backfires! One of your clones disappears.</font></b>'
  327. else
  328. '<b>The spell fizzles. Nothing seems to happen.</b>'
  329. end
  330. end
  331. if $ARGS[0] = 'stun':
  332. ! stunner = 1 stuns the enemy for 3-6 rounds
  333. if SuccessValue > 0:
  334. stunner = 1
  335. '<b><font color = green>Your enemy is stunned.</font></b>'
  336. else
  337. '<b>The spell fizzles. Nothing seems to happen.</b>'
  338. end
  339. xgt'atak','player'
  340. end
  341. if $ARGS[0] = 'weapon':
  342. if SuccessValue > 0:
  343. magweapbonus = weapbonus * 4 * SuccessValue
  344. '<b><font color = green>Your Weapon now feels more powerful.</font></b>'
  345. elseif SuccessValue < 0:
  346. magweapbonus = weapbonus * -1
  347. '<b><font color = red>The spell backfires! Your weapon seems weaker.</font></b>'
  348. else
  349. '<b>The spell fizzles. Nothing seems to happen.</b>'
  350. end
  351. xgt'atak','player'
  352. end
  353. if $ARGS[0] = 'wind':
  354. ! tuman = the amount of fog around you making you harder to hit
  355. ! tumanV = the amount of fog around your opponent making him harder to hit
  356. if SuccessValue = 2:
  357. tumanV = 0
  358. '<b><font color = green>A wind blows through the area eliminating your enemys fog from the battlefield.</font></b>'
  359. elseif SuccessValue = 1:
  360. tumanV = 0
  361. tuman = 0
  362. '<b><font color = green>A wind blows through the area eliminating all fog on the battlefield.</font></b>'
  363. elseif SuccessValue = -1:
  364. tuman = 0
  365. '<b><font color = red>A wind blows through the area eliminating your fog from the battlefield.</font></b>'
  366. else
  367. '<b>The spell fizzles. Nothing seems to happen.</b>'
  368. end
  369. end
  370. if $ARGS[0] = 'multiclone':
  371. ! klon = the number of clones that the enemy must destroy before hitting you
  372. if SuccessValue > 0:
  373. klon += SuccessValue * 3
  374. '<b><font color = green><<SuccessValue * 3>> clone<<iif(SuccessValue>1,"s","")>> of you springs from you confusing the enemy.</font></b>'
  375. elseif SuccessValue < 0 and klon > 0:
  376. if klon < 3:
  377. klon = 0
  378. else
  379. klon -= 3
  380. end
  381. '<b><font color = red>The spell backfires! Some of your clones disappear.</font></b>'
  382. else
  383. '<b>The spell fizzles. Nothing seems to happen.</b>'
  384. end
  385. end
  386. if $ARGS[0] = 'energo':
  387. ! defence = absorbs damage before health begins to be removed
  388. if SuccessValue > 0:
  389. defence += (100 * SuccessValue)
  390. '<b><font color = green>An energy shield materializes around you, protecting you from your enemies.</font></b>'
  391. elseif SuccessValue < 0:
  392. defenceV += 100
  393. '<b><font color = red>The spell backfires! An energy shield materializes around your enemy, protecting him from you.</font></b>'
  394. else
  395. '<b>The spell fizzles. Nothing seems to happen.</b>'
  396. end
  397. end
  398. if $ARGS[0] = 'haste':
  399. if SuccessValue > 0:
  400. initBonus += (120 * SuccessValue)
  401. '<b><font color = green>Your mind and body seem to race though a sluggish world.</font></b>'
  402. elseif SuccessValue < 0:
  403. initBonusV += 120
  404. '<b><font color = red>The spell backfires! Your enemy seems to move faster.</font></b>'
  405. else
  406. '<b>The spell fizzles. Nothing seems to happen.</b>'
  407. end
  408. end
  409. if $ARGS[0] = 'heal':
  410. if SuccessValue > 0:
  411. pcs_health += (400 * SuccessValue)
  412. '<b><font color = green>Your body surges with life. You feel much stronger.</font></b>'
  413. else
  414. '<b>The spell fizzles. Nothing seems to happen.</b>'
  415. end
  416. end
  417. if $ARGS[0] = 'hand':
  418. if SuccessValue > 0:
  419. strenK = pcs_stren*20*SuccessValue/100
  420. magweapbonus = RAND(pcs_stren*10 - strenK,pcs_stren*10 + strenK)
  421. '<b><font color = green>Your hands now feel more powerful.</font></b>'
  422. elseif SuccessValue < 0:
  423. strenK = pcs_stren*20/100
  424. magweapbonus = 0 - RAND(pcs_stren*10 - strenK,pcs_stren*10 + strenK)
  425. '<b><font color = red>The spell backfires! Your hands seem weaker.</font></b>'
  426. else
  427. '<b>The spell fizzles. Nothing seems to happen.</b>'
  428. end
  429. xgt'atak','player'
  430. end
  431. if $ARGS[0] = 'scaldingtouch':
  432. if SuccessValue > 0:
  433. damTip = 250 * SuccessValue
  434. '<b><font color = green>Flames spring from your hands.</font></b>'
  435. else
  436. '<b>The spell fizzles. Nothing seems to happen.</b>'
  437. end
  438. xgt'atakA','atak'
  439. end
  440. if $ARGS[0] = 'burninghands':
  441. if SuccessValue > 0:
  442. damTip = 2500 * SuccessValue
  443. '<b><font color = green>A torrent of flames jets from your hands.</font></b>'
  444. else
  445. '<b>The spell fizzles. Nothing seems to happen.</b>'
  446. end
  447. xgt'atakA','atak'
  448. end
  449. if $ARGS[0] = 'firebarrier':
  450. if SuccessValue > 0:
  451. defence += (750 * SuccessValue)
  452. '<b><font color = green>A flaming barrier has sprung up between you and your opponent. You now have <<defence>> protection units.</font></b>'
  453. elseif SuccessValue < 0:
  454. defenceV += 750
  455. '<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>'
  456. else
  457. '<b>The spell fizzles. Nothing seems to happen.</b>'
  458. end
  459. end
  460. if $ARGS[0] = 'firestorm':
  461. if SuccessValue > 0:
  462. damTip = 4250 + (2000 * SuccessValue)
  463. bonusSh = 100
  464. '<b><font color = green>Uncountable glowing embers steak down upon your foes.</font></b>'
  465. elseif SuccessValue < 0:
  466. damTip = 2000
  467. pcs_health -= 200
  468. bonusSh = 100
  469. '<b><font color = red>The spell backfires! Uncountable glowing embers steak down upon the battlefield burning everyone.</font></b>'
  470. else
  471. '<b>The spell fizzles. Nothing seems to happen.</b>'
  472. end
  473. xgt'atakA','atak'
  474. end
  475. if $ARGS[0] = 'flameshield':
  476. if SuccessValue > 0:
  477. defence += (2500 * SuccessValue)
  478. '<b><font color = green>A Shield made of Flames interposes itself between you and your enemy. You now have <<defence>> protection units.</font></b>'
  479. elseif SuccessValue < 0:
  480. defenceV += 2500
  481. '<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>'
  482. else
  483. '<b>The spell fizzles. Nothing seems to happen.</b>'
  484. end
  485. end
  486. if $ARGS[0] = 'shock':
  487. if SuccessValue > 0:
  488. damTip = (150 * SuccessValue)
  489. eleSh = 1
  490. '<b><font color = green>You build a static electric charge in your hand and zap your opponent.</font></b>'
  491. elseif SuccessValue < 0:
  492. pcs_health -= 50
  493. '<b><font color = red>The spell backfires! You manage to zap yourself with a static charge.</font></b>'
  494. else
  495. '<b>The spell fizzles. Nothing seems to happen.</b>'
  496. end
  497. xgt'atakA','atak'
  498. end
  499. if $ARGS[0] = 'lightning':
  500. if SuccessValue > 0:
  501. damTip = (1500 * SuccessValue)
  502. eleSh = 1
  503. '<b><font color = green>You shoot a lightning bolt from your hand zapping your opponent.</font></b>'
  504. elseif SuccessValue < 0:
  505. pcs_health -= 300
  506. '<b><font color = red>The spell backfires! You manage to zap yourself with lightning.</font></b>'
  507. else
  508. '<b>The spell fizzles. Nothing seems to happen.</b>'
  509. end
  510. xgt'atakA','atak'
  511. end
  512. if $ARGS[0] = 'electricbarrier':
  513. if SuccessValue > 0:
  514. defence += (1500 * SuccessValue)
  515. '<b><font color = green>A wall of dancing lightning springs up around yourself. You now have <<defence>> protection units.</font></b>'
  516. elseif SuccessValue < 0:
  517. defenceV += 1500
  518. '<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>'
  519. else
  520. '<b>The spell fizzles. Nothing seems to happen.</b>'
  521. end
  522. end
  523. if $ARGS[0] = '1000birds':
  524. if SuccessValue > 0:
  525. damTip = 2750 + (1000 * SuccessValue)
  526. bonusSh = 30
  527. eleSh = 1
  528. '<b><font color = green>You shoot hundreds of small lightning bolts toward your enemy.</font></b>'
  529. elseif SuccessValue < 0:
  530. damTip = 2000
  531. pcs_health -= 200
  532. bonusSh = 30
  533. eleSh = 1
  534. '<b><font color = red>The spell backfires! Hundreds of small lightning bolts curl toward the battlefield shocking everyone.</font></b>'
  535. else
  536. '<b>The spell fizzles. Nothing seems to happen.</b>'
  537. end
  538. end
  539. if $ARGS[0] = 'dancingsphere':
  540. if SuccessValue > 0:
  541. defence += (5000 * SuccessValue)
  542. '<b><font color = green>A large field of lightning dances around you blocking attacks. You now have <<defence>> protection units.</font></b>'
  543. elseif SuccessValue < 0:
  544. defenceV += 5000
  545. '<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>'
  546. else
  547. '<b>The spell fizzles. Nothing seems to happen.</b>'
  548. end
  549. end
  550. if $ARGS[0] = 'quicksand':
  551. if SuccessValue > 0:
  552. damTip = 100 * SuccessValue
  553. eleSh = 5
  554. '<b><font color = green>You have trapped your opponent in quicksand.</font></b>'
  555. elseif SuccessValue < 0:
  556. damTip = 100
  557. pcs_health -= 50
  558. eleSh = 5
  559. '<b><font color = red>The spell backfires! You are both trapped in quicksand.</font></b>'
  560. else
  561. '<b>The spell fizzles. Nothing seems to happen.</b>'
  562. end
  563. xgt'atakA','atak'
  564. end
  565. if $ARGS[0] = 'earthshield':
  566. if SuccessValue > 0:
  567. defence += 1500 + (1000 * SuccessValue)
  568. defenceM += 2500
  569. defenceActPar = 1000
  570. defenceActParM = 1000
  571. defenceAct = 10
  572. defenceActM = 10
  573. '<b><font color = green>Tendrils of Earth rise to defend you. You now have <<defence>> protection units.</font></b>'
  574. elseif SuccessValue < 0:
  575. defenceV += 2500
  576. '<b><font color = red>The spell backfires! Tendrils of Earth rise to defend your enemy. Your enemy now has <<defence>> protection units.</font></b>'
  577. else
  578. '<b>The spell fizzles. Nothing seems to happen.</b>'
  579. end
  580. end
  581. if $ARGS[0] = 'abyss':
  582. if SuccessValue > 0:
  583. damTip = 1500 * SuccessValue
  584. eleSh = 5
  585. '<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>'
  586. elseif SuccessValue < 0:
  587. damTip = 1500
  588. pcs_health -= 200
  589. eleSh = 5
  590. '<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>'
  591. else
  592. '<b>The spell fizzles. Nothing seems to happen.</b>'
  593. end
  594. xgt'atakA','atak'
  595. end
  596. if $ARGS[0] = 'earthguardian':
  597. if SuccessValue > 0:
  598. defence += 5200 + (2000 * SuccessValue)
  599. defenceM += 6250
  600. defenceW += 6250
  601. defenceActPar = 1000
  602. defenceActParM = 1000
  603. defenceActParW = 1000
  604. defenceAct = 15
  605. defenceActM = 15
  606. defenceActW = 15
  607. defAtk = 15
  608. '<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>'
  609. elseif SuccessValue < 0:
  610. defenceV += 2500
  611. '<b><font color = red>The spell backfires! Tendrils of Earth rise to defend your enemy. Your enemy now has <<defence>> protection units.</font></b>'
  612. else
  613. '<b>The spell fizzles. Nothing seems to happen.</b>'
  614. end
  615. end
  616. if $ARGS[0] = 'sando':
  617. if SuccessValue > 0:
  618. damTip = 3000 + (2000 * SuccessValue)
  619. bonusSh = 50
  620. eleSh = 5
  621. '<b><font color = green>Two huge plates of earth colapse together crushing the enemy and depriving him of the ability to move.</font></b>'
  622. elseif SuccessValue < 0:
  623. pcs_health -= 200
  624. '<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>'
  625. else
  626. '<b>The spell fizzles. Nothing seems to happen.</b>'
  627. end
  628. xgt'atakA','atak'
  629. end
  630. if $ARGS[0] = 'windgust':
  631. if SuccessValue > 0:
  632. damTip = 100 * SuccessValue
  633. bonusSh = 50
  634. '<b><font color = green>You have created a gust of wind.</font></b>'
  635. if klonV > 0:klonV = 0 & '<b><font color = green>Enemy clones are vaporized.</font></b>'
  636. if tumanV > 0:tumanV = 0 & '<b><font color = green>Enemy Fog is torn to shreds by the wind.</font></b>'
  637. elseif SuccessValue < 0:
  638. pcs_health -= 50
  639. '<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>'
  640. if klon > 0:klon = 0 & '<b><font color = green>Your clones are vaporized.</font></b>'
  641. if tuman > 0:tuman = 0 & '<b><font color = green>Your Fog is torn to shreds by the wind.</font></b>'
  642. else
  643. '<b>The spell fizzles. Nothing seems to happen.</b>'
  644. end
  645. xgt'atakA','atak'
  646. end
  647. if $ARGS[0] = 'pressure':
  648. if SuccessValue > 0:
  649. damTip = 1000 * SuccessValue
  650. bonusSh = 100
  651. '<b><font color = green>You dramatically raised the air pressure.</font></b>'
  652. if klonV > 0:klonV = 0 & '<b><font color = green>Enemy clones are vaporized.</font></b>'
  653. if tumanV > 0:tumanV = 0 & '<b><font color = green>Enemy Fog is torn to shreds by the wind.</font></b>'
  654. elseif SuccessValue < 0:
  655. pcs_health -= 200
  656. '<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>'
  657. if klon > 0:klon = 0 & '<b><font color = green>Your clones are vaporized.</font></b>'
  658. if tuman > 0:tuman = 0 & '<b><font color = green>Your Fog is torn to shreds by the wind.</font></b>'
  659. else
  660. '<b>The spell fizzles. Nothing seems to happen.</b>'
  661. end
  662. xgt'atakA','atak'
  663. end
  664. if $ARGS[0] = 'vacuum':
  665. if SuccessValue > 0:
  666. defence += (1500 * SuccessValue)
  667. '<b><font color = green>A turbulent sphere of vacuum surrounds you blocking incoming attacks. You now have <<defence>> protection units.</font></b>'
  668. elseif SuccessValue < 0:
  669. defenceV += 1500
  670. '<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>'
  671. else
  672. '<b>The spell fizzles. Nothing seems to happen.</b>'
  673. end
  674. end
  675. if $ARGS[0] = 'vacuumshells':
  676. if SuccessValue > 0:
  677. damTip = 2500 * SuccessValue
  678. bonusSh = 100
  679. '<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>'
  680. if klonV > 0:klonV = 0 & '<b><font color = green>Enemy clones are vaporized.</font></b>'
  681. if tumanV > 0:tumanV = 0 & '<b><font color = green>Enemy Fog is torn to shreds by the wind.</font></b>'
  682. elseif SuccessValue < 0:
  683. pcs_health -= 200
  684. '<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>'
  685. if klon > 0:klon = 0 & '<b><font color = green>Your clones are vaporized.</font></b>'
  686. if tuman > 0:tuman = 0 & '<b><font color = green>Your Fog is torn to shreds by the wind.</font></b>'
  687. else
  688. '<b>The spell fizzles. Nothing seems to happen.</b>'
  689. end
  690. xgt'atakA','atak'
  691. end
  692. if $ARGS[0] = 'devouringvacuum':
  693. if SuccessValue > 0:
  694. defenceV = 0
  695. defenceMV = 0
  696. defenceWV = 0
  697. defenceActParV = 0
  698. defenceActParMV = 0
  699. defenceActV = 0
  700. defenceActMV = 0
  701. defAtkMV = 0
  702. '<b><font color = green>A devouring vacuum sucks away your enemys defenses.</font></b>'
  703. elseif SuccessValue < 0:
  704. defence = 0
  705. defenceM = 0
  706. defenceW = 0
  707. defenceActPar = 0
  708. defenceActParM = 0
  709. defenceAct = 0
  710. defenceActM = 0
  711. defAtkM = 0
  712. '<b><font color = red>The spell backfires! A devouring vacuum sucks away your defenses.</font></b>'
  713. else
  714. '<b>The spell fizzles. Nothing seems to happen.</b>'
  715. end
  716. end
  717. if $ARGS[0] = 'leechmana':
  718. if SuccessValue > 0:
  719. damTip = 100 * SuccessValue
  720. damTipM = 1000
  721. '<b><font color = green>You leech mana from your enemy.</font></b>'
  722. elseif SuccessValue < 0:
  723. pcs_health -= 50
  724. '<b><font color = red>The spell backfires! Ouch!</font></b>'
  725. else
  726. '<b>The spell fizzles. Nothing seems to happen.</b>'
  727. end
  728. xgt'atakA','atak'
  729. end
  730. if $ARGS[0] = 'flood':
  731. if SuccessValue > 0:
  732. damTip = 1000 * SuccessValue
  733. damTipM = 500
  734. '<b><font color = green>A surge of water rises towards your enemy.</font></b>'
  735. elseif SuccessValue < 0:
  736. pcs_health -= 100
  737. '<b><font color = red>The spell backfires! A surge of water rises towards your enemy, but missed and hits you.</font></b>'
  738. else
  739. '<b>The spell fizzles. Nothing seems to happen.</b>'
  740. end
  741. xgt'atakA','atak'
  742. end
  743. if $ARGS[0] = 'blister':
  744. if SuccessValue > 0:
  745. defence += 1500
  746. defenceM += 1500
  747. defenceW += 1500
  748. defenceActPar = 500
  749. defenceActParM = 500
  750. defenceAct = 10
  751. defenceActM = 10
  752. '<b><font color = green>A protective sphere of water surrounds you.</font></b>'
  753. elseif SuccessValue < 0:
  754. defenceV += 1500
  755. '<b><font color = red>The spell backfires! A protective sphere of water surrounds your enemy.</font></b>'
  756. else
  757. '<b>The spell fizzles. Nothing seems to happen.</b>'
  758. end
  759. end
  760. if $ARGS[0] = 'sharkrockets':
  761. if SuccessValue > 0:
  762. damTip = 1500 * SuccessValue
  763. damTipM = 2500
  764. bonusSh = 50
  765. '<b><font color = green>Blobs of Water shaped like sharks fly towards your enemy stiking them.</font></b>'
  766. if klonV > 0:klonV = 0 & '<b><font color = green>Enemy clones are eliminated.</font></b>'
  767. elseif SuccessValue < 0:
  768. pcs_health -= 100
  769. '<b><font color = red>The spell backfires! Blobs of Water shaped like sharks fly towards your enemy, but missed and hits you.</font></b>'
  770. if klon > 0:klon = 0 & '<b><font color = green>Your clones are eliminated.</font></b>'
  771. else
  772. '<b>The spell fizzles. Nothing seems to happen.</b>'
  773. end
  774. xgt'atakA','atak'
  775. end
  776. if $ARGS[0] = 'greatflood':
  777. if SuccessValue > 0:
  778. defence += 5000
  779. defenceM += 5000
  780. defenceW += 5000
  781. defenceActPar = 500
  782. defenceActParM = 500
  783. defenceAct = 10
  784. defenceActM = 10
  785. defAtkM = 10
  786. '<b><font color = green>You have filled the whole neighborhood with water protecting you and devouring enemy mana.</font></b>'
  787. if klonV > 0:klonV = 0 & '<b><font color = green>Clones enemy disappeared.</font></b>'
  788. elseif SuccessValue < 0:
  789. defenceV += 1500
  790. '<b><font color = red>The spell backfires! A huge flood of water surrounds your enemy protecting him.</font></b>'
  791. if klon > 0:klon = 0 & '<b><font color = green>Clones enemy disappeared.</font></b>'
  792. else
  793. '<b>The spell fizzles. Nothing seems to happen.</b>'
  794. end
  795. end
  796. killvar 'SuccessValue'
  797. --- spell ---------------------------------