someone started a tutorial page but never finished it.
but think of an xml document like a tree.
each 'element' in the <xxx> stuff is a branch.
and each branch can have more branches coming off it
Code:
<spellcast>
<sets>
<group name="mymaingroup">
<set name="lightgear">
<main>Light Staff</main>
</set>
<set name="thundergear">
<main>Thunder Staff</main>
</set>
</group>
</sets>
<rules>
<if element="thunder">
<equip set="thundergear" />
</if>
<if element="light">
<equip set="lightgear" />
</if>
</rules>
</spellcast>
<spellcast> is the trunk of the tree. Your tree should always have 1 trunk, if not wtf kind of tree is that?
then you have 2 branches, a sets branch and a rules branch.
Every branch needs to be opened with <branchname> and closed with </branchname> and everything between those 2 are more branches off of that branch... mostly..
In the above example with <equip set="thundergear" /> thats a open and close in same line, so its EXACTLY the same as <equip set="Thundergear"></equip>
The equip branch in this example doesnt have any sub branches.
So long as you get your format down and keep the XML syntax correct, it becomes easier.
You make a group branch off of the main <sets> branch and give it a name, and on that branch you make set branches each with their own name.
then in the rules branch you can tell spellcast "hey, fly over to this sets branch and pick off the lil branches of gear to equip"
Each attribute on a rules branch under <if> and <elseif> gives it criteria for walking on that branch.
Think of it like a real tree branch that splits off into 2 branches.
Y
you have some badass bully bird at the split asking for a toll fee to enter the left branch. If you can pay it, you can go on the left, but if you cant, he sends you to the right.
Thats how a <if xxx=xxx> .... </if> <else> .... </else> system works.
Then you have action tags that when hit tell spellcast what to do. and <equip> does well... you guessed it.
check the links on this page SpellCast Tutorial [Windower.net]
and you really can start getting into it if you just put the time behind it. Your going to have to read, your going to have to learn something new, but its worth it