spellList.qsrc 16 KB

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