spellList.qsrc 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  1. #spellList
  2. ! Information pertaining to PC for each spell
  3. ! spellKnown['spellname'] = 1 if the spell is known by the player
  4. ! spellLearn['spellname'] = 0-100, percentage of study that has occured to learn this spell. 100+ will learn it.
  5. !
  6. ! MetaData for Each Spell
  7. ! spellMana['spellname'] = Mana cost to cast this spell
  8. ! spellTime['spellname'] = How much time will pass in the casting of the spell
  9. ! spellDiff['spellname'] = Difficulty to learn and cast this spell
  10. ! $spellName['spellname'] = Pretty name for the spell
  11. ! $psellDesc['spellname'] = Description of what the spell does.
  12. ! $spellReq['spellname'] = Prerequisite Spell needed to learn this spell
  13. ! $spellOptDesc['spellname'] = name of an array of Option Descriptions for this spell
  14. ! $spellOptVal['spellname'] = name of an array of values to pass for Spell Options
  15. !
  16. ! There are also defined lists of spells grouped together
  17. ! $combatSpells = Spells that can be used in Combat
  18. ! $nonComSpells = Non-Combat Spells, ones that can be executed in any location.
  19. ! ---
  20. ! $basicSpells = basic spells that are taught by Tatiana
  21. ! $healSpells = Healing Spells
  22. ! $beautySpells = Beauty Spells
  23. ! $librarySpells = Spells Researchable in the Library
  24. ! $fireSpells = Fire-based spells
  25. ! $electSpells = Electricity based spells
  26. ! $earthSpells = Earth magic spells
  27. ! $airSpells = Air based spells
  28. ! $waterSpells = Water based spells
  29. !
  30. ! To create a new spell...
  31. ! 1) fill out the meta-data as listed above, this describes stats abotu the spell, cost, difficulty, desc, etc.
  32. ! 2) Typically, a spell will be in one of $combatSpells or $nonComSpells (this picks how the spell is executed
  33. ! by the user), andcalso in one other of the lists ($basicSpells, $fireSpells, etc.), which picks where you
  34. ! learn the spells.
  35. ! 3) Then create a matching section in the "spell" location for it. This function in "spell" describes what the
  36. ! spell actually does in game mechanics
  37. !teleport
  38. spellMana['teleport'] = 1000
  39. spellTime['teleport'] = 20
  40. spellDiff['teleport'] = 20
  41. $spellName['teleport'] = 'Teleport'
  42. $spellDesc['teleport'] = 'You can move from one Fairy Circle to another.'
  43. $spellOptDesc['teleport'] = '$treeCircName'
  44. $spellOptVal['teleport'] = '$tpLocations'
  45. !regenerate
  46. spellMana['regenerate'] = 500
  47. spellTime['regenerate'] = 1
  48. spellDiff['regenerate'] = 5
  49. $spellName['regenerate'] = 'Regenerate'
  50. $spellDesc['regenerate'] = 'Slowly regain health over time.'
  51. !curedisease
  52. spellMana['curedisease'] = 10000
  53. spellTime['curedisease'] = 30
  54. spellDiff['curedisease'] = 25
  55. $spellName['curedisease'] = 'Cure Disease'
  56. $spellDesc['curedisease'] = 'Your body will burn itself free of any diseases you may have.'
  57. !curewounds
  58. spellMana['curewounds'] = 10000
  59. spellTime['curewounds'] = 30
  60. spellDiff['curewounds'] = 25
  61. $spellName['curewounds'] = 'Cure Wounds'
  62. $spellDesc['curewounds'] = 'You feel your bodys wounds begin to heal.'
  63. !curewounds2
  64. spellMana['curewounds2'] = 100000
  65. spellTime['curewounds2'] = 60
  66. spellDiff['curewounds2'] = 75
  67. $spellName['curewounds2'] = 'Greater Cure Wounds'
  68. $spellDesc['curewounds2'] = 'You feel your body heal to perfection.'
  69. $spellReq['curewounds2'] = 'curewounds'
  70. !painblock
  71. spellMana['painblock'] = 1000
  72. spellTime['painblock'] = 1
  73. spellDiff['painblock'] = 8
  74. $spellName['painblock'] = 'Pain Block'
  75. $spellDesc['painblock'] = 'Block your pain for some time.'
  76. !berserk
  77. spellMana['berserk'] = 5000
  78. spellTime['berserk'] = 1
  79. spellDiff['berserk'] = 30
  80. $spellName['berserk'] = 'Berserker Rage'
  81. $spellDesc['berserk'] = 'Enrage yourself with supernatural strength, speed, and endurance.'
  82. !shower
  83. spellMana['shower'] = 500
  84. spellTime['shower'] = 1
  85. spellDiff['shower'] = 1
  86. $spellName['shower'] = 'Shower'
  87. $spellDesc['shower'] = 'Clean and refresh yourself as if you have taken a shower.'
  88. !makeup
  89. spellMana['makeup'] = 100
  90. spellTime['makeup'] = 5
  91. spellDiff['makeup'] = 15
  92. $spellName['makeup'] = 'Makeup'
  93. $spellDesc['makeup'] = 'Apply Makeup to yourself magically.'
  94. $spellOptDesc['makeup'] = '$MakeupSet'
  95. $spellOptVal['makeup'] = '$MakeupSetVal'
  96. if $routine1+$routine2+$routine3+$routine4 = '':
  97. killvar '$MakeupSet'
  98. killvar '$MakeupSetVal'
  99. $MakeupSet[0] = 'No Makeup'
  100. $MakeupSetVal[0] = '000'
  101. $MakeupSet[1] = 'Light Makeup'
  102. $makeupSetVal[1] = '110'
  103. $MakeupSet[2] = 'Vibrant Makeup'
  104. $makeupSetVal[2] = '210'
  105. $MakeupSet[3] = 'Heavy Makeup'
  106. $makeupSetVal[3] = '310'
  107. else
  108. killvar '$MakeupSet'
  109. killvar '$MakeupSetVal'
  110. $MakeupSet[0] = 'No Makeup'
  111. $MakeupSetVal[0] = '000'
  112. i=1
  113. if $routine1 ! '':
  114. $MakeupSet[i] = $routine1custname
  115. $MakeupSetVal[i] = $routine1
  116. i += 1
  117. end
  118. if $routine2 ! '':
  119. $MakeupSet[i] = $routine2custname
  120. $MakeupSetVal[i] = $routine2
  121. i += 1
  122. end
  123. if $routine3 ! '':
  124. $MakeupSet[i] = $routine3custname
  125. $MakeupSetVal[i] = $routine3
  126. i += 1
  127. end
  128. if $routine4 ! '':
  129. $MakeupSet[i] = $routine4custname
  130. $MakeupSetVal[i] = $routine4
  131. i += 1
  132. end
  133. killvar 'i'
  134. end
  135. !cosmetica
  136. spellMana['cosmetica'] = 10000
  137. spellTime['cosmetica'] = 5
  138. spellDiff['cosmetica'] = 50
  139. $spellName['cosmetica'] = 'Cosmetica'
  140. $spellDesc['cosmetica'] = 'Clean and tidy yourself, completely beautifying yourself; hair, makeup, grooming of all kinds.'
  141. $spellReq['cosmetica'] = 'makeup'
  142. !glamour
  143. spellMana['glamour'] = 500
  144. spellTime['glamour'] = 1
  145. spellDiff['glamour'] = 30
  146. $spellName['glamour'] = 'Glamour'
  147. $spellDesc['glamour'] = 'Change your appearance.'
  148. !bodymod
  149. spellMana['bodymod'] = 40
  150. spellTime['bodymod'] = 30
  151. spellDiff['bodymod'] = 0
  152. $spellName['bodymod'] = 'Body Modification'
  153. $spellDesc['bodymod'] = 'Change your appearance.'
  154. !fog
  155. spellMana['fog'] = 10
  156. spellTime['fog'] = 0
  157. spellDiff['fog'] = 1
  158. $spellName['fog'] = 'Fog'
  159. $spellDesc['fog'] = 'Create a fog on the battlefield, obscuring the view of the enemy.'
  160. !clone
  161. spellMana['clone'] = 15
  162. spellTime['clone'] = 0
  163. spellDiff['clone'] = 1
  164. $spellName['clone'] = 'Create Clone'
  165. $spellDesc['clone'] = 'You can create an exact clone of yourself, and slip out of sight of the enemy.'
  166. !stun
  167. spellMana['stun'] = 20
  168. spellTime['stun'] = 0
  169. spellDiff['stun'] = 2
  170. $spellName['stun'] = 'Stun'
  171. $spellDesc['stun'] = 'Paralyze the enemy with a touch.'
  172. !weapon
  173. spellMana['weapon'] = 20
  174. spellTime['weapon'] = 0
  175. spellDiff['weapon'] = 0
  176. $spellName['weapon'] = 'Empower Weapon'
  177. $spellDesc['weapon'] = 'Magically power a weapon causing greater damage.'
  178. !wind
  179. spellMana['wind'] = 40
  180. spellTime['wind'] = 0
  181. spellDiff['wind'] = 2
  182. $spellName['wind'] = 'Gust of Wind'
  183. $spellDesc['wind'] = 'Summon a gust of wind that will clear away fog.'
  184. !multiclone
  185. spellMana['multiclone'] = 45
  186. spellTime['multiclone'] = 0
  187. spellDiff['multiclone'] = 2
  188. $spellName['multiclone'] = 'Multi-Clone'
  189. $spellDesc['multiclone'] = 'Summon three clones of yourself and slip out of the enemys sight.'
  190. $spellReq['multiclone'] = 'clone'
  191. !energo
  192. spellMana['energo'] = 50
  193. spellTime['energo'] = 0
  194. spellDiff['energo'] = 3
  195. $spellName['energo'] = 'Energy Shield'
  196. $spellDesc['energo'] = 'Create an energy shield to absorb incoming damage. You gain 100 defense.'
  197. !haste
  198. spellMana['haste'] = 60
  199. spellTime['haste'] = 0
  200. spellDiff['haste'] = 3
  201. $spellName['haste'] = 'Haste'
  202. $spellDesc['haste'] = 'Hasten your passage through time to gain reaction speed to seize the initiative.'
  203. !heal
  204. spellMana['heal'] = 400
  205. spellTime['heal'] = 0
  206. spellDiff['heal'] = 4
  207. $spellName['heal'] = 'Heal'
  208. $spellDesc['heal'] = 'Exchange mana for health, healing your wounds and fortifying your body.'
  209. !hand
  210. spellMana['hand'] = 100
  211. spellTime['hand'] = 0
  212. spellDiff['hand'] = 0
  213. $spellName['hand'] = 'Quivering Palm'
  214. $spellDesc['hand'] = 'Add energy from your mana to your hand for a devistating strike.'
  215. !scaldingtouch
  216. spellMana['scaldingtouch'] = 10
  217. spellTime['scaldingtouch'] = 0
  218. spellDiff['scaldingtouch'] = 6
  219. $spellName['scaldingtouch'] = 'Scalding Touch'
  220. $spellDesc['scaldingtouch'] = 'Flames spring from your hands.'
  221. !burninghands
  222. spellMana['burninghands'] = 100
  223. spellTime['burninghands'] = 0
  224. spellDiff['burninghands'] = 7
  225. $spellName['burninghands'] = 'Burning Hands'
  226. $spellDesc['burninghands'] = 'A torrent of flames jets from your hands.'
  227. $spellReq['burninghands'] = 'scaldingtouch'
  228. !firebarrier
  229. spellMana['firebarrier'] = 150
  230. spellTime['firebarrier'] = 0
  231. spellDiff['firebarrier'] = 8
  232. $spellName['firebarrier'] = 'Fire Barrier'
  233. $spellDesc['firebarrier'] = 'You are shielded by a wall of flames. Adds 750 defense.'
  234. !firestorm
  235. spellMana['firestorm'] = 250
  236. spellTime['firestorm'] = 0
  237. spellDiff['firestorm'] = 9
  238. $spellName['firestorm'] = 'Fire Storm'
  239. $spellDesc['firestorm'] = 'Super heated embers rain down upon your enemies.'
  240. !flameshield
  241. spellMana['flameshield'] = 500
  242. spellTime['flameshield'] = 0
  243. spellDiff['flameshield'] = 10
  244. $spellName['flameshield'] = 'Flame Shield'
  245. $spellDesc['flameshield'] = 'A Shield made of Flames interposes itself between you and your enemy, absorbing 2500 damage to defend you.'
  246. !shock
  247. spellMana['shock'] = 10
  248. spellTime['shock'] = 0
  249. spellDiff['shock'] = 6
  250. $spellName['shock'] = 'Electric Shock'
  251. $spellDesc['shock'] = 'An electric spark shoots from your hand.'
  252. !lightning
  253. spellMana['lightning'] = 100
  254. spellTime['lightning'] = 0
  255. spellDiff['lightning'] = 7
  256. $spellName['lightning'] = 'Lightning'
  257. $spellDesc['lightning'] = 'A lightning bolt shoots from your hand.'
  258. !electricbarrier
  259. spellMana['electricbarrier'] = 150
  260. spellTime['electricbarrier'] = 0
  261. spellDiff['electricbarrier'] = 8
  262. $spellName['electricbarrier'] = 'Electric Barrier'
  263. $spellDesc['electricbarrier'] = 'A static electric field blocks incoming attacks from reaching you.'
  264. !1000birds
  265. spellMana['1000birds'] = 250
  266. spellTime['1000birds'] = 0
  267. spellDiff['1000birds'] = 9
  268. $spellName['1000birds'] = 'Dance of a Thousand Birds'
  269. $spellDesc['1000birds'] = 'The air is filled with small lightning bolts leaping through the air with shrieks.'
  270. $spellReq['1000birds'] = 'lightning'
  271. !dancingsphere
  272. spellMana['dancingsphere'] = 500
  273. spellTime['dancingsphere'] = 0
  274. spellDiff['dancingsphere'] = 10
  275. $spellName['dancingsphere'] = 'Dancing Sphere'
  276. $spellDesc['dancingsphere'] = 'Lightning dances around you blocking attacks coming toward you.'
  277. !quicksand
  278. spellMana['quicksand'] = 10
  279. spellTime['quicksand'] = 0
  280. spellDiff['quicksand'] = 6
  281. $spellName['quicksand'] = 'Quicksand'
  282. $spellDesc['quicksand'] = 'Opponent is caught in a quicksand trap.'
  283. !earthshield
  284. spellMana['earthshield'] = 100
  285. spellTime['earthshield'] = 0
  286. spellDiff['earthshield'] = 7
  287. $spellName['earthshield'] = 'Earth Shield'
  288. $spellDesc['earthshield'] = 'Tendrils of earth reach up to defend you. Some of the damage it absorbs is captured as mana and given to you.'
  289. !abyss
  290. spellMana['abyss'] = 150
  291. spellTime['abyss'] = 0
  292. spellDiff['abyss'] = 8
  293. $spellName['abyss'] = 'Abyss'
  294. $spellDesc['abyss'] = 'The Earth opens up beneath your opponents feet, slamming shut damaging him and depriving him of the ability to move.'
  295. !earthguardian
  296. spellMana['earthguardian'] = 250
  297. spellTime['earthguardian'] = 0
  298. spellDiff['earthguardian'] = 9
  299. $spellName['earthguardian'] = 'Earth Guardian'
  300. $spellDesc['earthguardian'] = 'The Earth itself comes alive defending you from attacks. It draws from the power of the land to regenerate itself every round.'
  301. !sando
  302. spellMana['sando'] = 500
  303. spellTime['sando'] = 0
  304. spellDiff['sando'] = 10
  305. $spellName['sando'] = 'Sando'
  306. $spellDesc['sando'] = 'Two huge plates of earth colapse together crushing the enemy and depriving him of the ability to move.'
  307. !windgust
  308. spellMana['windgust'] = 10
  309. spellTime['windgust'] = 0
  310. spellDiff['windgust'] = 6
  311. $spellName['windgust'] = 'Wind Gust'
  312. $spellDesc['windgust'] = 'a huge gust of wind rips past you killing clones and removing fog.'
  313. !pressure
  314. spellMana['pressure'] = 100
  315. spellTime['pressure'] = 0
  316. spellDiff['pressure'] = 7
  317. $spellName['pressure'] = 'Horrific Pressure'
  318. $spellDesc['pressure'] = 'Enormous air pressure surrounds your enemy causing damage as well as killing clones and removing fog.'
  319. !vacuum
  320. spellMana['vacuum'] = 150
  321. spellTime['vacuum'] = 0
  322. spellDiff['vacuum'] = 8
  323. $spellName['vacuum'] = 'Vacuum Sphere'
  324. $spellDesc['vacuum'] = 'A turbulent sphere of vacuum surrounds you blocking incoming attacks.'
  325. !vacuumshells
  326. spellMana['vacuumshells'] = 250
  327. spellTime['vacuumshells'] = 0
  328. spellDiff['vacuumshells'] = 9
  329. $spellName['vacuumshells'] = 'Vacuum Shells'
  330. $spellDesc['vacuumshells'] = 'Turbulent spheres of vacuum bombard your enemy destroying clones and removing fog.'
  331. !devouringvacuum
  332. spellMana['devouringvacuum'] = 500
  333. spellTime['devouringvacuum'] = 0
  334. spellDiff['devouringvacuum'] = 10
  335. $spellName['devouringvacuum'] = 'Devouring Vacuum'
  336. $spellDesc['devouringvacuum'] = 'A devouring vacuum sucks away your enemys defensive shields.'
  337. !leechmana
  338. spellMana['leechmana'] = 10
  339. spellTime['leechmana'] = 0
  340. spellDiff['leechmana'] = 6
  341. $spellName['leechmana'] = 'Leech Mana'
  342. $spellDesc['leechmana'] = 'Inflict 100 damage and absorb 100 mana from your foe.'
  343. !flood
  344. spellMana['flood'] = 100
  345. spellTime['flood'] = 0
  346. spellDiff['flood'] = 7
  347. $spellName['flood'] = 'Flood'
  348. $spellDesc['flood'] = 'Inflict 1000 damage and absorb 500 mana from your foe.'
  349. !blister
  350. spellMana['blister'] = 150
  351. spellTime['blister'] = 0
  352. spellDiff['blister'] = 8
  353. $spellName['blister'] = 'Blister'
  354. $spellDesc['blister'] = 'Create a protective sphere of water. Some of the damage absorbed is converted into mana for you.'
  355. !sharkrockets
  356. spellMana['sharkrockets'] = 250
  357. spellTime['sharkrockets'] = 0
  358. spellDiff['sharkrockets'] = 9
  359. $spellName['sharkrockets'] = 'Shark Rockets'
  360. $spellDesc['sharkrockets'] = 'Blobs of Water shaped like sharks fly towards your enemy stiking them for 1500 damage and abosorbing 2500 mana for you. Clones are destroyed'
  361. !greatflood
  362. spellMana['greatflood'] = 500
  363. spellTime['greatflood'] = 0
  364. spellDiff['greatflood'] = 10
  365. $spellName['greatflood'] = 'Great Flood'
  366. $spellDesc['greatflood'] = 'A huge flood of water fills the area absorbing mana from the enemy and giving you additional protection.'
  367. !-------------------------------------------------------------------------------------------
  368. ! Pick Execution points for the spells
  369. ! List Combat Spells for use in fight scenerios
  370. $combatSpells[0] = 'fog'
  371. $combatSpells[1] = 'clone'
  372. $combatSpells[2] = 'stun'
  373. $combatSpells[3] = 'weapon'
  374. $combatSpells[4] = 'wind'
  375. $combatSpells[5] = 'multiclone'
  376. $combatSpells[6] = 'energo'
  377. $combatSpells[7] = 'haste'
  378. $combatSpells[8] = 'heal'
  379. $combatSpells[9] = 'hand'
  380. $combatSpells[10] = 'scaldingtouch'
  381. $combatSpells[11] = 'burninghands'
  382. $combatSpells[12] = 'firebarrier'
  383. $combatSpells[13] = 'firestorm'
  384. $combatSpells[14] = 'flameshield'
  385. $combatSpells[15] = 'shock'
  386. $combatSpells[16] = 'lightning'
  387. $combatSpells[17] = 'electricbarrier'
  388. $combatSpells[18] = '1000birds'
  389. $combatSpells[19] = 'dancingsphere'
  390. $combatSpells[20] = 'quicksand'
  391. $combatSpells[21] = 'earthshield'
  392. $combatSpells[22] = 'abyss'
  393. $combatSpells[23] = 'earthguardian'
  394. $combatSpells[24] = 'sando'
  395. $combatSpells[25] = 'windgust'
  396. $combatSpells[26] = 'pressure'
  397. $combatSpells[27] = 'vacuum'
  398. $combatSpells[28] = 'vacuumshells'
  399. $combatSpells[29] = 'devouringvacuum'
  400. $combatSpells[30] = 'leechmana'
  401. $combatSpells[31] = 'flood'
  402. $combatSpells[32] = 'blister'
  403. $combatSpells[33] = 'sharkrockets'
  404. $combatSpells[34] = 'greatflood'
  405. ! List of Non-Combat Spells for use in Menu
  406. $nonComSpells[0] = 'heal'
  407. $nonComSpells[1] = 'regenerate'
  408. $nonComSpells[2] = 'curedisease'
  409. $nonComSpells[3] = 'curewounds'
  410. $nonComSpells[4] = 'curewounds2'
  411. $nonComSpells[5] = 'painblock'
  412. $nonComSpells[6] = 'berserk'
  413. $nonComSpells[7] = 'shower'
  414. $nonComSpells[8] = 'makeup'
  415. $nonComSpells[9] = 'cosmetica'
  416. !-------------------------------------------------------------------------------------
  417. ! Pick Learning Location for Spells
  418. ! Basic Spells
  419. $basicSpells[0] = 'fog'
  420. $basicSpells[1] = 'clone'
  421. $basicSpells[2] = 'stun'
  422. $basicSpells[3] = 'wind'
  423. $basicSpells[4] = 'multiclone'
  424. $basicSpells[5] = 'energo'
  425. $basicSpells[6] = 'haste'
  426. $basicSpells[7] = 'berserk'
  427. !Healing Spells
  428. $healSpells[0] = 'painblock'
  429. $healSpells[1] = 'curewounds'
  430. $healSpells[2] = 'curewounds2'
  431. $healSpells[3] = 'curedisease'
  432. $healSpells[4] = 'heal'
  433. $healSpells[5] = 'regenerate'
  434. ! Beauty Spells
  435. $beautySpells[0] = 'shower'
  436. $beautySpells[1] = 'makeup'
  437. $beautySpells[2] = 'cosmetica'
  438. ! Researchable Spells
  439. $librarySpells[0] = 'painblock'
  440. $librarySpells[1] = 'shower'
  441. $librarySpells[2] = 'makeup'
  442. $librarySpells[3] = 'cosmetica'
  443. ! Elemental Spell Groups
  444. $fireSpells[0] = 'scaldingtouch'
  445. $fireSpells[1] = 'burninghands'
  446. $fireSpells[2] = 'firebarrier'
  447. $fireSpells[3] = 'firestorm'
  448. $fireSpells[4] = 'flameshield'
  449. $electSpells[0] = 'shock'
  450. $electSpells[1] = 'lightning'
  451. $electSpells[2] = 'electricbarrier'
  452. $electSpells[3] = '1000birds'
  453. $electSpells[4] = 'dancingsphere'
  454. $earthSpells[0] = 'quicksand'
  455. $earthSpells[1] = 'earthshield'
  456. $earthSpells[2] = 'abyss'
  457. $earthSpells[3] = 'earthguardian'
  458. $earthSpells[4] = 'sando'
  459. $airSpells[0] = 'windgust'
  460. $airSpells[1] = 'pressure'
  461. $airSpells[2] = 'vacuum'
  462. $airSpells[3] = 'vacuumshells'
  463. $airSpells[4] = 'devouringvacuum'
  464. $waterSpells[0] = 'leechmana'
  465. $waterSpells[1] = 'flood'
  466. $waterSpells[2] = 'blister'
  467. $waterSpells[3] = 'sharkrockets'
  468. $waterSpells[4] = 'greatflood'
  469. !-------------------------------------------------------------------------------------------
  470. ! Helper procedure to build Action bar for Learning Spells.
  471. if $ARGS[0] = 'teacherActions':
  472. ! Make Actions for learning spells
  473. ! $ARGS[1] = the name of the array of spells
  474. ! $ARGS[2] = Exit Location
  475. ! $ARGS[3] = Arg for exit location
  476. ! Example:
  477. ! gs 'spellList', 'teacherActions', '$fireSpells', 'kakuzu', 'mansion1'
  478. $ThisArrayName = $ARGS[1]
  479. $ExitLocation = $ARGS[2]
  480. $ExitLocation2 = $ARGS[3]
  481. ThisArraySize = dyneval("result=arrsize('<<$ThisArrayName>>')")
  482. i = 0
  483. :LearnSpellLoop
  484. $ThisSpellName = dyneval("$result = <<$ThisArrayName>>[<<i>>]")
  485. spellDifficulty = $spellDiff[$ThisSpellName]
  486. if spellDifficulty = 0: spellDifficulty = 1
  487. if i < ThisArraySize:
  488. if pcs_magik >= spellDifficulty and spellKnown[$ThisSpellName] = 0 and ($spellReq[$ThisSpellName] = '' or spellKnown[$spellReq[$ThisSpellName]]):
  489. dynamic "act 'Learn <<$spellName[$ThisSpellName]>> (1:00)':
  490. cla
  491. if pcs_mana >= 1000:
  492. pcs_mana -= 1000
  493. minut += 60
  494. spellLearn['<<$ThisSpellName>>'] += rand(1, 100/<<spellDifficulty>>)
  495. if spellLearn['<<$ThisSpellName>>'] < 100:
  496. 'You diligently study the spell for an hour, but could not grasp it.'
  497. else
  498. spellKnown['<<$ThisSpellName>>'] = 1
  499. 'Finally you are able to grasp and learn the spell.'
  500. *nl
  501. '<<$spellName[$ThisSpellName]>>: <<$spellDesc[$ThisSpellName]>>'
  502. end
  503. else
  504. *pl ""You don't have enough mana to learn this spell.""
  505. end
  506. act 'Move away':gt '<<$ExitLocation>>', '<<$ExitLocation2>>'
  507. end"
  508. end
  509. i += 1
  510. jump 'LearnSpellLoop'
  511. end
  512. killvar 'i'
  513. killvar '$ThisSpellName'
  514. killvar 'ThisArraySize'
  515. killvar '$ThisArrayName'
  516. killvar '$ExitLocation'
  517. killvar '$ExitLocation2'
  518. killvar 'spellDifficulty'
  519. end
  520. --- spellList ---------------------------------