Browse Source

Beginning Combat Spell integration.

KeyMasterOfGozer 5 years ago
parent
commit
bce423cdba
4 changed files with 27 additions and 11 deletions
  1. 1 0
      glife.qproj
  2. 2 11
      locations/castSpell.qsrc
  3. 22 0
      locations/spellList.qsrc
  4. 2 0
      locations/spell_teleport.qsrc

+ 1 - 0
glife.qproj

@@ -1098,6 +1098,7 @@
 	<Location name="BanSexType"/>
 	<Folder name="Magic">
 		<Location name="castSpell"/>
+		<Location name="spellList"/>
 		<Location name="spell_teleport"/>
 		<Location name="treeCircle"/>
 		<Location name="treeCircActs"/>

+ 2 - 11
locations/castSpell.qsrc

@@ -9,16 +9,7 @@
 !	Example:
 !		gs 'castSpell', 'teleport', 'CentralPark'
 
-!teleport
-spellMana['teleport'] = 1000
-spellTime['teleport'] = 20
-spellWill['teleport'] = 20
-spellDiff['teleport'] = 20
-!glamour
-spellMana['glamour'] = 500
-spellTime['glamour'] = 1
-spellWill['glamour'] = 15
-spellDiff['glamour'] = 30
+gs 'spellList'
 
 spellSuccess = 0
 
@@ -79,7 +70,7 @@ gs 'stat'
 
 $SpellExec = "gs 'spell_<<$SpellName>>', '<<spellSuccess>>'<<$SpellArgs>>"
 
-dynamic $SpellExec
+result = dyneval($SpellExec)
 
 killvar '$SpellName'
 killvar '$SpellArgs'

+ 22 - 0
locations/spellList.qsrc

@@ -0,0 +1,22 @@
+#spellList
+
+!teleport
+spellMana['teleport'] = 1000
+spellTime['teleport'] = 20
+spellDiff['teleport'] = 20
+$spellName['teleport'] = "Teleport"
+$spellDesc['teleport'] = "You can move from one Fairy Circle to another."
+!glamour
+spellMana['glamour'] = 500
+spellTime['glamour'] = 1
+spellDiff['glamour'] = 30
+$spellName['teleport'] = "Glamour"
+$spellDesc['teleport'] = "Change your appearance."
+
+
+
+! List Combat Spells for use in fight scenerios
+combatSpells[0] = ''
+
+
+--- spellList ---------------------------------

+ 2 - 0
locations/spell_teleport.qsrc

@@ -38,4 +38,6 @@ killvar '$randomLoc'
 killvar '$NewLocation'
 killvar didItWork
 
+result = ""
+
 -- spell_teleport ---------------------------------