Help with XML for summoning?
Posted: Tue Jun 27, 2006 7:22 am
I'm on a roll here. I've created a few different summoning scripts, and now I want to modify this one (SummonIt.iss) to use the included xml file on this post.
What I want to be able to do is take parameter CastMe, check against the xml file, and use that to determine what is being summoned. That way, a user would only have to enter 2 parameters, the spell and number to summon.
This file contains (afaik) all the possible item summoning spells for a magician, from 1 to 70. I just finished doing it manually.
Now, I don't know how well I did, but I know I'm close. So I'd appriciate tips on how to properly format it. Past that, how do I work this into my script?
Once I get this working, I will eventually go through all classes that can summon and add in their items as well.
What I want to be able to do is take parameter CastMe, check against the xml file, and use that to determine what is being summoned. That way, a user would only have to enter 2 parameters, the spell and number to summon.
This file contains (afaik) all the possible item summoning spells for a magician, from 1 to 70. I just finished doing it manually.
Code: Select all
<?xml version='1.0'?>
<!-- Generated by LavishSettings v1 -->
<InnerSpaceSettings>
<Class>
<Magician>
<spell>
<spellname>Summon Food</spellname>
<summoned>Summoned: Black Bread</summoned>
</spell>
<spell>
<spellname>Summon Drink</spellname>
<summoned>Globe of Water</summoned>
</spell>
<spell>
<spellname>Summon Dagger</spellname>
<summoned>Summoned: Dagger</summoned>
</spell>
<spell>
<spellname>Dimensional Pocket</spellname>
<summoned>Dimensional Pocket</summoned>
</spell>
<spell>
<spellname>Summon Bandages</spellname>
<summoned>Summoned: Bandages</summoned>
</spell>
<spell>
<spellname>Summon Brass Choker</spellname>
<summoned>Jedah's Brass Choker</summoned>
</spell>
<spell>
<spellname>Staff of Tracing</spellname>
<summoned>Summoned: Staff of Tracing</summoned>
</spell>
<spell>
<spellname>Summon Linen Mantle</spellname>
<summoned>Tavee's Linen Mantle</summoned>
</spell>
<spell>
<spellname>Summon Fang</spellname>
<summoned>Summoned: Snake Fang</summoned>
</spell>
<spell>
<spellname>Summon Tarnished Bauble</spellname>
<summoned>Jolum's Tarnished Bauble</summoned>
</spell>
<spell>
<spellname>Summon Elemental Defender</spellname>
<summoned>Elemental Defender</summoned>
</spell>
<spell>
<spellname>Staff of Warding</spellname>
<summoned>Summoned: Staff of Warding</summoned>
</spell>
<spell>
<spellname>Summon Throwing Dagger</spellname>
<summoned>Summoned: Throwing Dagger</summoned>
</spell>
<spell>
<spellname>Summon Heatstone</spellname>
<summoned>Summoned: Heatstone</summoned>
</spell>
<spell>
<spellname>Summon Tiny Ring</spellname>
<summoned>Naki's Tiny Ring</summoned>
</spell>
<spell>
<spellname>Summon Waterstone</spellname>
<summoned>Summoned: Waterstone</summoned>
</spell>
<spell>
<spellname>Summon Phantom Leather</spellname>
<summoned>Phantom Leather Tunic</summoned>
</spell>
<spell>
<spellname>Summon Arrows</spellname>
<summoned>Summoned: Arrow</summoned>
</spell>
<spell>
<spellname>Spear of Warding</spellname>
<summoned>Summoned: Spear of Warding</summoned>
</spell>
<spell>
<spellname>Summon Jade Bracelet</spellname>
<summoned>Gallenite's Jade Bracelet</summoned>
</spell>
<spell>
<spellname>Summon Wooden Bracelet</spellname>
<summoned>Rallican's Wooden Bracelet</summoned>
</spell>
<spell>
<spellname>Cornucopia</spellname>
<summoned>Summoned: Black Bread</summoned>
</spell>
<spell>
<spellname>Everfont</spellname>
<summoned>Summoned: Globe of Water</summoned>
</spell>
<spell>
<spellname>Summon Silver Choker</spellname>
<summoned>Jedah's Silver Choker</summoned>
</spell>
<spell>
<spellname>Staff of Runes</spellname>
<summoned>Summoned: Staff of Runes</summoned>
</spell>
<spell>
<spellname>Summon Phantom Chain</spellname>
<summoned>Phantom Chain Coif</summoned>
</spell>
<spell>
<spellname>Sword of Runes</spellname>
<summoned>Summoned: Sword of Runes</summoned>
</spell>
<spell>
<spellname>Summon Leather Mantle</spellname>
<summoned>Tavee's Leather Mantle</summoned>
</spell>
<spell>
<spellname>Summon Coldstone</spellname>
<summoned>Summoned: Coldstone</summoned>
</spell>
<spell>
<spellname>Dimensional Hole</spellname>
<summoned>Dimensional Hole</summoned>
</spell>
<spell>
<spellname>Summon Shiny Bauble</spellname>
<summoned>Jolum's Shiny Bauble</summoned>
</spell>
<spell>
<spellname>Summon Shard of the Core</spellname>
<summoned>Summoned: Shard of the Core</summoned>
</spell>
<spell>
<spellname>Staff of Symbols</spellname>
<summoned>Summoned: Staff of Symbols</summoned>
</spell>
<spell>
<spellname>Summoned: Dagger of Symbols</spellname>
<summoned>Dagger of Symbols</summoned>
</spell>
<spell>
<spellname>Summon Ring of Levitation</spellname>
<summoned>Summoned: Ring of Levitation</summoned>
</spell>
<spell>
<spellname>Summon Twisted Ring</spellname>
<summoned>Naki's Twisted Ring</summoned>
</spell>
<spell>
<spellname>Summon Phantom Plate</spellname>
<summoned>Phantom Breastplate</summoned>
</spell>
<spell>
<spellname>Summon Opal Bracelet</spellname>
<summoned>Gallenite's Opal Bracelet</summoned>
</spell>
<spell>
<spellname>Summon Orb of Exploration</spellname>
<summoned>Orb of Exploration</summoned>
</spell>
<spell>
<spellname>Summon Modulating Rod</spellname>
<summoned>Summoned: Modulating Rod</summoned>
</spell>
<spell>
<spellname>Summon Stone Bracelet</spellname>
<summoned>Rallican's Stone Bracelet</summoned>
</spell>
<spell>
<spellname>Summon Orb</spellname>
<summoned>Orb of Mastery</summoned>
</spell>
<spell>
<spellname>Summon Elemental Blanket</spellname>
<summoned>Elemental Blanket</summoned>
</spell>
<spell>
<spellname>Summon Golden Choker</spellname>
<summoned>Jedah's Golden Choker</summoned>
</spell>
<spell>
<spellname>Gift of Xev</spellname>
<summoned>Glowing Backpack</summoned>
</spell>
<spell>
<spellname>Summon Silken Mantle</spellname>
<summoned>Tavee's Silken Mantle</summoned>
</spell>
<spell>
<spellname>Bristlebane's Bundle</spellname>
<summoned>Summoned: Spinning Bottle</summoned>
</spell>
<spell>
<spellname>Summon Brilliant Bauble</spellname>
<summoned>Jolum's Brilliant Bauble</summoned>
</spell>
<spell>
<spellname>Quiver of Marr</spellname>
<summoned>Quiver of Marr</summoned>
</spell>
<spell>
<spellname>Summon Studded Ring</spellname>
<summoned>Naki's Studded Ring</summoned>
</spell>
<spell>
<spellname>Bandoleer of Luclin</spellname>
<summoned>Bandoleer of Luclin</summoned>
</spell>
<spell>
<spellname>Summon Ruby Bracelet</spellname>
<summoned>Gallenite's Ruby Bracelet</summoned>
</spell>
<spell>
<spellname>Summon Iron Bracelet</spellname>
<summoned>Rallican's Iron Bracelet</summoned>
</spell>
<spell>
<spellname>Pouch of Quellious</spellname>
<summoned>Pouch of Quellious</summoned>
</spell>
<spell>
<spellname>Mass Mystical Transvergance</spellname>
<summoned>Rod of Mystical Transvergance</summoned>
</spell>
<spell>
<spellname>Rod of Mystical Transvergance</spellname>
<summoned>Rod of Mystical Transvergance</summoned>
</spell>
<spell>
<spellname>Belt of Magi`Kot</spellname>
<summoned>Summoned: Belt of Magi`Kot</summoned>
</spell>
<spell>
<spellname>Blade of Walnan</spellname>
<summoned>Summoned: Blade of Walnan</summoned>
</spell>
<spell>
<spellname>Summon Platinum Choker</spellname>
<summoned>Jedah's Platinum Choker</summoned>
</spell>
<spell>
<spellname>Summon Runed Mantle</spellname>
<summoned>Tavee's Runed Mantle</summoned>
</spell>
<spell>
<spellname>Summon Sapphire Bracelet</spellname>
<summoned>Gallenite's Sapphire Bracelet</summoned>
</spell>
<spell>
<spellname>Summon Spiked Ring</spellname>
<summoned>Naki's Spiked Ring</summoned>
</spell>
<spell>
<spellname>Summon Glowing Bauble</spellname>
<summoned>Jolum's Glowing Bauble</summoned>
</spell>
<spell>
<spellname>Summon Steel Bracelet</spellname>
<summoned>Rallican's Steel Bracelet</summoned>
</spell>
<spell>
<spellname>Summon Lava Orb</spellname>
<summoned>Lava Orb</summoned>
</spell>
<spell>
<spellname>Fist of Ixiblat</spellname>
<summoned>Hand of Ixiblat</summoned>
</spell>
<spell>
<spellname>Talisman of Return</spellname>
<summoned>Summoned: Talisman of Return</summoned>
</spell>
<spell>
<spellname>Imbue Earth</spellname>
<summoned>Brown Diamond of Earth</summoned>
</spell>
<spell>
<spellname>Blade of the Kedge</spellname>
<summoned>Summoned: Blade of the Kedge</summoned>
</spell>
<spell>
<spellname>Summon Jewelry Bag</spellname>
<summoned>Jedah's Platinum Choker</summoned>
</spell>
<spell>
<spellname>Girdle of Magi`Kot</spellname>
<summoned>Summoned: Girdle of Magi`Kot</summoned>
</spell>
<spell>
<spellname>Imbue Air</spellname>
<summoned>Cloudy Diamond of Air</summoned>
</spell>
<spell>
<spellname>Imbue Fire</spellname>
<summoned>Red Diamond of Fire</summoned>
</spell>
<spell>
<spellname>Imbue Water</spellname>
<summoned>Aqua Diamond of Water</summoned>
</spell>
<spell>
<spellname>Summon Calliav's Runed Mantle</spellname>
<summoned>Calliav's Runed Mantle</summoned>
</spell>
<spell>
<spellname>Summon Fireblade</spellname>
<summoned>Summoned: Fireblade</summoned>
</spell>
<spell>
<spellname>Summon Calliav's Jeweled Bracelet</spellname>
<summoned>Calliav's Jeweled Bracelet</summoned>
</spell>
<spell>
<spellname>Summon Calliav's Spiked Ring</spellname>
<summoned>Calliav's Spiked Ring</summoned>
</spell>
<spell>
<spellname>Summon Calliav's Glowing Bauble</spellname>
<summoned>Calliav's Glowing Bauble</summoned>
</spell>
<spell>
<spellname>Summon Calliav's Steel Bracelet</spellname>
<summoned>Calliav's Steel Bracelet</summoned>
</spell>
<spell>
<spellname>Summon Calliav's Platinum Choker</spellname>
<summoned>Calliav's Platinum Choker</summoned>
</spell>
<spell>
<spellname>Summon Staff of the North Wind</spellname>
<summoned>Summoned: Staff of the North Wind</summoned>
</spell>
<spell>
<spellname>Summon Dagger of the Deep</spellname>
<summoned>Summoned: Dagger of the Deep</summoned>
</spell>
<spell>
<spellname>Summon Sphere of Air</spellname>
<summoned>Summoned: Sphere of Air</summoned>
</spell>
<spell>
<spellname>Summon Crystal Belt</spellname>
<summoned>Summoned: Crystal Belt</summoned>
</spell>
<spell>
<spellname>Summon Pouch of Jerikor</spellname>
<summoned>Calliav's Platinum Choker</summoned>
</spell>
<spell>
<spellname>Summon Molten Orb</spellname>
<summoned>Molten Orb</summoned>
</spell>
</Magician>
</Class>
</InnerSpaceSettings>Once I get this working, I will eventually go through all classes that can summon and add in their items as well.