spellList.qsrc 13 KB

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