Wednesday, July 29, 2009

Spellcast Lesson Deux, Le Dressing Room Intermediate

I hope you have the basics down of gearsets and how to apply them to your statuses of being idle, engaged and healing.

But now you ask, "What about when I wanna do some actual useful stuff? Do I have to set up an entire new gear set for all 12-16 slots every single time?!" Nope! That's where the use of base sets come in. Think of it as layering a set of armor over another set of gear.


So let's get back to creating updating some XML! Okay, I know the above pic has Corsair gear shown, but I changed my mind for my following example. Suppose you played Samurai...

Take note of the gearsets "melee" and "ws". "Melee" has all 12 armor slots filled. "WS" only has 8 declared. However, "WS" is using "melee" as what is called a base set. In a way, Spellcast will know to use first equip the "melee" set and then equip gears noted in the "WS" accordingly.

<?xml version="1.0"?>
<!DOCTYPE spellcast PUBLIC "spellcast" "spellcast.dtd">
<spellcast>
<config debug="false"/>
  <sets>
    <group name="Samurai|SAM" default="yes">
      <set name="idle">
        <head>No.3's Garland</head>
        <body>Kirin's Osode</body>
        <hands>Ochiudo's Kote</hands>
        <legs>Byakko's haidate</legs>
        <feet>Nobushi Kyahan</feet>
      </set>
      <set name="Melee">
        <head>Walahra Turban</head>
        <neck>Spectacles</neck>
        <lear>Fowling earring</lear>
        <rear>Merman's Earring</rear>
        <body>Haubergeon</body>
        <hands>Hachiman kote</hands>
        <lring>Blood Ring</lring>
        <rring>Rajas Ring</rring>
        <back>Amemet Mantle +1</back>
        <waist>Life belt</waist>
        <legs>Byakko's Haidate</legs>
        <feet>Nobushi Kyahan</feet>
      </set>
      <set name="WS" baseset="Melee">
        <head>Wyvern helm</head>
        <neck>Chivalrous chain</neck>
        <body>Kirin's Osode</body>
        <hands>Pallas's bracelets</hands>
        <lring>Flame Ring</lring>
        <waist>Warwolf belt</waist>
        <legs>Shura Haidate</legs>
        <feet>Creek F Clomps</feet>
      </set>
      <set name="WSmulti" baseset="WS">
        <hands>Enkidu's Mittens</hands>
      </set>
    </group>
  <sets>
  <rules>
    <action when="Idle"    type="equip" set="idle"/>
    <action when="Engaged" type="equip" set="melee"/>

    <if type="WeaponSkill" spell="Tachi:*">
      <action type="equip" when="PreCast" set="WS">
      <action type="equip" when="AfterCast" set="melee">
    </if>

    <if type="WeaponSkill" spell="Penta Thrust">
      <action type="equip" when="PreCast" set="WSmulti">
      <action type="equip" when="AfterCast" set="melee">
    </if>

  </rules>
</spellcast>


As for the rules section, it will equip the "WS" set before you perform any weaponskill that starts with "Tachi:". After you perform a tachi weaponskill, it will then equip your "melee" set.

And before you ask, the answer is yes. You can create a set that uses another gear set as a base set that's using another gear set that's using a base set. Take note of the gearset "WSmulti". It's using "WS" as a base set which is then using "melee" as its base set. Think of it like that one douchebag that likes to wear 3 polo shirts with all popped collars. Make sense? Okay, maybe not.

Setting up weaponskills (and spells) with different gear sets is quite useful since all situations don't always call for the same gear. In this situation, the "WSmulti" gear set can be used for multi-hit weaponskills like Penta Thrust where accuracy and DEX is moreso needed.

Our next lesson will delve into variables with the gear sets...so long as my ADD doesn't kick in. Otherwise, my next post will be about making tomato omelettes!

No comments:

Post a Comment