spellList.qsrc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  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. ! $sellDesc['spellname'] = Description of what the spell does.
  12. !
  13. ! There are also defined lists of spells grouped together
  14. ! $combatSpells = Spells that can be used in Combat
  15. ! $nonComSpells = Non-Combat Spells, ones that can be executed in any location.
  16. ! $basicSpells = basic spells that are taught by Tatiana
  17. ! $fireSpells = Fire-based spells
  18. ! $electSpells = Electricity based spells
  19. ! $earthSpells = Earth magic spells
  20. ! $airSpells = Air based spells
  21. ! $waterSpells = Water based spells
  22. !
  23. ! To create a new spell, fill out the meta-data as listed above, then create a matching section in the "spell" location for it
  24. !teleport
  25. spellMana['teleport'] = 1000
  26. spellTime['teleport'] = 20
  27. spellDiff['teleport'] = 20
  28. $spellName['teleport'] = "Teleport"
  29. $spellDesc['teleport'] = "You can move from one Fairy Circle to another."
  30. !regenerate
  31. spellMana['regenerate'] = 500
  32. spellTime['regenerate'] = 1
  33. spellDiff['regenerate'] = 5
  34. $spellName['regenerate'] = "Regenerate"
  35. $spellDesc['regenerate'] = "Slowly regain health over time."
  36. !glamour
  37. spellMana['glamour'] = 500
  38. spellTime['glamour'] = 1
  39. spellDiff['glamour'] = 30
  40. $spellName['glamour'] = "Glamour"
  41. $spellDesc['glamour'] = "Change your appearance."
  42. !bodymod
  43. spellMana['bodymod'] = 40
  44. spellTime['bodymod'] = 30
  45. spellDiff['bodymod'] = 0
  46. $spellName['bodymod'] = "Body Modification"
  47. $spellDesc['bodymod'] = "Change your appearance."
  48. !fog
  49. spellMana['fog'] = 10
  50. spellTime['fog'] = 0
  51. spellDiff['fog'] = 1
  52. $spellName['fog'] = "Fog"
  53. $spellDesc['fog'] = "Create a fog on the battlefield, obscuring the view of the enemy."
  54. !clone
  55. spellMana['clone'] = 15
  56. spellTime['clone'] = 0
  57. spellDiff['clone'] = 1
  58. $spellName['clone'] = "Create Clone"
  59. $spellDesc['clone'] = "You can create an exact clone of yourself, and slip out of sight of the enemy."
  60. !stun
  61. spellMana['stun'] = 20
  62. spellTime['stun'] = 0
  63. spellDiff['stun'] = 2
  64. $spellName['stun'] = "Stun"
  65. $spellDesc['stun'] = "Paralyze the enemy with a touch."
  66. !weapon
  67. spellMana['weapon'] = 20
  68. spellTime['weapon'] = 0
  69. spellDiff['weapon'] = 0
  70. $spellName['weapon'] = "Empower Weapon"
  71. $spellDesc['weapon'] = "Magically power a weapon causing greater damage."
  72. !wind
  73. spellMana['wind'] = 40
  74. spellTime['wind'] = 0
  75. spellDiff['wind'] = 2
  76. $spellName['wind'] = "Gust of Wind"
  77. $spellDesc['wind'] = "Summon a gust of wind that will clear away fog."
  78. !multiclone
  79. spellMana['multiclone'] = 45
  80. spellTime['multiclone'] = 0
  81. spellDiff['multiclone'] = 2
  82. $spellName['multiclone'] = "Multi-Clone"
  83. $spellDesc['multiclone'] = "Summon three clones of yourself and slip out of the enemys sight."
  84. !energo
  85. spellMana['energo'] = 50
  86. spellTime['energo'] = 0
  87. spellDiff['energo'] = 3
  88. $spellName['energo'] = "Energy Shield"
  89. $spellDesc['energo'] = "Create an energy shield to absorb incoming damage. You gain 100 defense."
  90. !haste
  91. spellMana['haste'] = 60
  92. spellTime['haste'] = 0
  93. spellDiff['haste'] = 3
  94. $spellName['haste'] = "Haste"
  95. $spellDesc['haste'] = "Hasten your passage through time to gain reaction speed to seize the initiative."
  96. !heal
  97. spellMana['heal'] = 400
  98. spellTime['heal'] = 0
  99. spellDiff['heal'] = 4
  100. $spellName['heal'] = "Heal"
  101. $spellDesc['heal'] = "Exchange mana for health, healing your wounds and fortifying your body."
  102. !hand
  103. spellMana['hand'] = 100
  104. spellTime['hand'] = 0
  105. spellDiff['hand'] = 0
  106. $spellName['hand'] = "Quivering Palm"
  107. $spellDesc['hand'] = "Add energy from your mana to your hand for a devistating strike."
  108. !scaldingtouch
  109. spellMana['scaldingtouch'] = 10
  110. spellTime['scaldingtouch'] = 0
  111. spellDiff['scaldingtouch'] = 6
  112. $spellName['scaldingtouch'] = "Scalding Touch"
  113. $spellDesc['scaldingtouch'] = "Flames spring from your hands."
  114. !burninghands
  115. spellMana['burninghands'] = 100
  116. spellTime['burninghands'] = 0
  117. spellDiff['burninghands'] = 7
  118. $spellName['burninghands'] = "Burning Hands"
  119. $spellDesc['burninghands'] = "A torrent of flames jets from your hands."
  120. !firebarrier
  121. spellMana['firebarrier'] = 150
  122. spellTime['firebarrier'] = 0
  123. spellDiff['firebarrier'] = 8
  124. $spellName['firebarrier'] = "Fire Barrier"
  125. $spellDesc['firebarrier'] = "You are shielded by a wall of flames. Adds 750 defense."
  126. !firestorm
  127. spellMana['firestorm'] = 250
  128. spellTime['firestorm'] = 0
  129. spellDiff['firestorm'] = 9
  130. $spellName['firestorm'] = "Fire Storm"
  131. $spellDesc['firestorm'] = "Super heated embers rain down upon your enemies."
  132. !flameshield
  133. spellMana['flameshield'] = 500
  134. spellTime['flameshield'] = 0
  135. spellDiff['flameshield'] = 10
  136. $spellName['flameshield'] = "Flame Shield"
  137. $spellDesc['flameshield'] = "A Shield made of Flames interposes itself between you and your enemy, absorbing 2500 damage to defend you."
  138. !shock
  139. spellMana['shock'] = 10
  140. spellTime['shock'] = 0
  141. spellDiff['shock'] = 6
  142. $spellName['shock'] = "Electric Shock"
  143. $spellDesc['shock'] = "An electric spark shoots from your hand."
  144. !lightning
  145. spellMana['lightning'] = 100
  146. spellTime['lightning'] = 0
  147. spellDiff['lightning'] = 7
  148. $spellName['lightning'] = "Lightning"
  149. $spellDesc['lightning'] = "A lightning bolt shoots from your hand."
  150. !electricbarrier
  151. spellMana['electricbarrier'] = 150
  152. spellTime['electricbarrier'] = 0
  153. spellDiff['electricbarrier'] = 8
  154. $spellName['electricbarrier'] = "Electric Barrier"
  155. $spellDesc['electricbarrier'] = "A static electric field blocks incoming attacks from reaching you."
  156. !1000birds
  157. spellMana['1000birds'] = 250
  158. spellTime['1000birds'] = 0
  159. spellDiff['1000birds'] = 9
  160. $spellName['1000birds'] = "Dance of a Thousand Birds"
  161. $spellDesc['1000birds'] = "The air is filled with small lightning bolts leaping through the air with shrieks."
  162. !dancingsphere
  163. spellMana['dancingsphere'] = 500
  164. spellTime['dancingsphere'] = 0
  165. spellDiff['dancingsphere'] = 10
  166. $spellName['dancingsphere'] = "Dancing Sphere"
  167. $spellDesc['dancingsphere'] = "Lightning dances around you blocking attacks coming toward you."
  168. !quicksand
  169. spellMana['quicksand'] = 10
  170. spellTime['quicksand'] = 0
  171. spellDiff['quicksand'] = 6
  172. $spellName['quicksand'] = "Quicksand"
  173. $spellDesc['quicksand'] = "Opponent is caught in a quicksand trap."
  174. !earthshield
  175. spellMana['earthshield'] = 100
  176. spellTime['earthshield'] = 0
  177. spellDiff['earthshield'] = 7
  178. $spellName['earthshield'] = "Earth Shield"
  179. $spellDesc['earthshield'] = "Tendrils of earth reach up to defend you. Some of the damage it absorbs is captured as mana and given to you."
  180. !abyss
  181. spellMana['abyss'] = 150
  182. spellTime['abyss'] = 0
  183. spellDiff['abyss'] = 8
  184. $spellName['abyss'] = "Abyss"
  185. $spellDesc['abyss'] = "The Earth opens up beneath your opponents feet, slamming shut damaging him and depriving him of the ability to move."
  186. !earthguardian
  187. spellMana['earthguardian'] = 250
  188. spellTime['earthguardian'] = 0
  189. spellDiff['earthguardian'] = 9
  190. $spellName['earthguardian'] = "Earth Guardian"
  191. $spellDesc['earthguardian'] = "The Earth itself comes alive defending you from attacks. It draws from the power of the land to regenerate itself every round."
  192. !sando
  193. spellMana['sando'] = 500
  194. spellTime['sando'] = 0
  195. spellDiff['sando'] = 10
  196. $spellName['sando'] = "Sando"
  197. $spellDesc['sando'] = "Two huge plates of earth colapse together crushing the enemy and depriving him of the ability to move."
  198. !windgust
  199. spellMana['windgust'] = 10
  200. spellTime['windgust'] = 0
  201. spellDiff['windgust'] = 6
  202. $spellName['windgust'] = "Wind Gust"
  203. $spellDesc['windgust'] = "a huge gust of wind rips past you killing clones and removing fog."
  204. !pressure
  205. spellMana['pressure'] = 100
  206. spellTime['pressure'] = 0
  207. spellDiff['pressure'] = 7
  208. $spellName['pressure'] = "Horrific Pressure"
  209. $spellDesc['pressure'] = "Enormous air pressure surrounds your enemy causing damage as well as killing clones and removing fog."
  210. !vacuum
  211. spellMana['vacuum'] = 150
  212. spellTime['vacuum'] = 0
  213. spellDiff['vacuum'] = 8
  214. $spellName['vacuum'] = "Vacuum Sphere"
  215. $spellDesc['vacuum'] = "A turbulent sphere of vacuum surrounds you blocking incoming attacks."
  216. !vacuumshells
  217. spellMana['vacuumshells'] = 250
  218. spellTime['vacuumshells'] = 0
  219. spellDiff['vacuumshells'] = 9
  220. $spellName['vacuumshells'] = "Vacuum Shells"
  221. $spellDesc['vacuumshells'] = "Turbulent spheres of vacuum bombard your enemy destroying clones and removing fog."
  222. !devouringvacuum
  223. spellMana['devouringvacuum'] = 500
  224. spellTime['devouringvacuum'] = 0
  225. spellDiff['devouringvacuum'] = 10
  226. $spellName['devouringvacuum'] = "Devouring Vacuum"
  227. $spellDesc['devouringvacuum'] = "A devouring vacuum sucks away your enemys defensive shields."
  228. !leechmana
  229. spellMana['leechmana'] = 10
  230. spellTime['leechmana'] = 0
  231. spellDiff['leechmana'] = 6
  232. $spellName['leechmana'] = "Leech Mana"
  233. $spellDesc['leechmana'] = "Inflict 100 damage and absorb 100 mana from your foe."
  234. !flood
  235. spellMana['flood'] = 100
  236. spellTime['flood'] = 0
  237. spellDiff['flood'] = 7
  238. $spellName['flood'] = "Flood"
  239. $spellDesc['flood'] = "Inflict 1000 damage and absorb 500 mana from your foe."
  240. !blister
  241. spellMana['blister'] = 150
  242. spellTime['blister'] = 0
  243. spellDiff['blister'] = 8
  244. $spellName['blister'] = "Blister"
  245. $spellDesc['blister'] = "Create a protective sphere of water. Some of the damage absorbed is converted into mana for you."
  246. !sharkrockets
  247. spellMana['sharkrockets'] = 250
  248. spellTime['sharkrockets'] = 0
  249. spellDiff['sharkrockets'] = 9
  250. $spellName['sharkrockets'] = "Shark Rockets"
  251. $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"
  252. !greatflood
  253. spellMana['greatflood'] = 500
  254. spellTime['greatflood'] = 0
  255. spellDiff['greatflood'] = 10
  256. $spellName['greatflood'] = "Great Flood"
  257. $spellDesc['greatflood'] = "A huge flood of water fills the area absorbing mana from the enemy and giving you additional protection."
  258. ! List Combat Spells for use in fight scenerios
  259. $combatSpells[0] = 'fog'
  260. $combatSpells[1] = 'clone'
  261. $combatSpells[2] = 'stun'
  262. $combatSpells[3] = 'weapon'
  263. $combatSpells[4] = 'wind'
  264. $combatSpells[5] = 'multiclone'
  265. $combatSpells[6] = 'energo'
  266. $combatSpells[7] = 'haste'
  267. $combatSpells[8] = 'heal'
  268. $combatSpells[9] = 'hand'
  269. $combatSpells[10] = 'scaldingtouch'
  270. $combatSpells[11] = 'burninghands'
  271. $combatSpells[12] = 'firebarrier'
  272. $combatSpells[13] = 'firestorm'
  273. $combatSpells[14] = 'flameshield'
  274. $combatSpells[15] = 'shock'
  275. $combatSpells[16] = 'lightning'
  276. $combatSpells[17] = 'electricbarrier'
  277. $combatSpells[18] = '1000birds'
  278. $combatSpells[19] = 'dancingsphere'
  279. $combatSpells[20] = 'quicksand'
  280. $combatSpells[21] = 'earthshield'
  281. $combatSpells[22] = 'abyss'
  282. $combatSpells[23] = 'earthguardian'
  283. $combatSpells[24] = 'sando'
  284. $combatSpells[25] = 'windgust'
  285. $combatSpells[26] = 'pressure'
  286. $combatSpells[27] = 'vacuum'
  287. $combatSpells[28] = 'vacuumshells'
  288. $combatSpells[29] = 'devouringvacuum'
  289. $combatSpells[30] = 'leechmana'
  290. $combatSpells[31] = 'flood'
  291. $combatSpells[32] = 'blister'
  292. $combatSpells[33] = 'sharkrockets'
  293. $combatSpells[34] = 'greatflood'
  294. ! List of Non-Combat Spells for use in Menu
  295. $nonComSpells[0] = 'heal'
  296. $nonComSpells[1] = 'regenerate'
  297. ! Basic Spells
  298. $basicSpells[0] = 'fog'
  299. $basicSpells[1] = 'clone'
  300. $basicSpells[2] = 'stun'
  301. $basicSpells[3] = 'wind'
  302. $basicSpells[4] = 'multiclone'
  303. $basicSpells[5] = 'energo'
  304. $basicSpells[6] = 'haste'
  305. ! Elemental Spell Groups
  306. $fireSpells[0] = 'scaldingtouch'
  307. $fireSpells[1] = 'burninghands'
  308. $fireSpells[2] = 'firebarrier'
  309. $fireSpells[3] = 'firestorm'
  310. $fireSpells[4] = 'flameshield'
  311. $electSpells[0] = 'shock'
  312. $electSpells[1] = 'lightning'
  313. $electSpells[2] = 'electricbarrier'
  314. $electSpells[3] = '1000birds'
  315. $electSpells[4] = 'dancingsphere'
  316. $earthSpells[0] = 'quicksand'
  317. $earthSpells[1] = 'earthshield'
  318. $earthSpells[2] = 'abyss'
  319. $earthSpells[3] = 'earthguardian'
  320. $earthSpells[4] = 'sando'
  321. $airSpells[0] = 'windgust'
  322. $airSpells[1] = 'pressure'
  323. $airSpells[2] = 'vacuum'
  324. $airSpells[3] = 'vacuumshells'
  325. $airSpells[4] = 'devouringvacuum'
  326. $waterSpells[0] = 'leechmana'
  327. $waterSpells[1] = 'flood'
  328. $waterSpells[2] = 'blister'
  329. $waterSpells[3] = 'sharkrockets'
  330. $waterSpells[4] = 'greatflood'
  331. if $ARGS[0] = 'teacherActions':
  332. ! Make Actions for learning spells
  333. ! $ARGS[1] = the name of the array of spells
  334. ! $ARGS[2] = Exit Location
  335. ! $ARGS[3] = Arg for exit location
  336. ! Example:
  337. ! gs 'spellList', 'teacherActions', '$fireSpells', 'kakuzu', 'mansion1'
  338. $ThisArrayName = $ARGS[1]
  339. $ExitLocation = $ARGS[2]
  340. $ExitLocation2 = $ARGS[3]
  341. ThisArraySize = dyneval("result=arrsize('<<$ThisArrayName>>')")
  342. i = 0
  343. :LearnSpellLoop
  344. $ThisSpellName = dyneval("$result = <<$ThisArrayName>>[<<i>>]")
  345. spellDifficulty = $spellDiff[$ThisSpellName]
  346. if spellDifficulty = 0: spellDifficulty = 1
  347. if i < ThisArraySize:
  348. if pcs_magik >= spellDifficulty and spellKnown[$ThisSpellName] = 0:
  349. dynamic "act 'Learn <<$spellName[$ThisSpellName]>> (1:00)':
  350. cla
  351. if pcs_mana >= 1000:
  352. pcs_mana -= 1000
  353. minut += 60
  354. spellLearn['<<$ThisSpellName>>'] += rand(1, 100/<<spellDifficulty>>)
  355. if spellLearn['<<$ThisSpellName>>'] < 100:
  356. 'You diligently study the spell for an hour, but could not grasp it.'
  357. else
  358. spellKnown['<<$ThisSpellName>>'] = 1
  359. 'Finally you are able to grasp and learn the spell.'
  360. *nl
  361. '<<$spellName[$ThisSpellName]>>: <<$spellDesc[$ThisSpellName]>>'
  362. end
  363. else
  364. *pl ""You don't have enough mana to learn this spell.""
  365. end
  366. act 'Move away':gt '<<$ExitLocation>>', '<<$ExitLocation2>>'
  367. end"
  368. end
  369. i += 1
  370. jump 'LearnSpellLoop'
  371. end
  372. killvar 'i'
  373. killvar '$ThisSpellName'
  374. killvar 'ThisArraySize'
  375. killvar '$ThisArrayName'
  376. killvar '$ExitLocation'
  377. killvar '$ExitLocation2'
  378. killvar 'spellDifficulty'
  379. end
  380. --- spellList ---------------------------------