This has been bothering me for a bit, so I'm hoping spellcast can help me fix it. Accuracy seems relevant now(Legion aside), so I'm finding myself in situations where I'm not capped on accuracy.
One way to solve this problem is to make multiple sets with varying degrees of accuracy, but the problem I have with that is that I'll have to readjust every set every time I gain any new piece of gear. I'm wondering if there's something else spellcast can do for me.
At the moment, I know that spellcast can identify which piece of gear is currently equipped using [if equipmain="blahblah"]. My question is, is it possible to now use that equipment's name as a variable?
Basically, I want to dynamically change my tp set as I fight without manually adjusting my xml.
Say, I'm fighting Mob_A and my parser tells me I'm at 80% accuracy. I want to be able to open up my menu, switch out a few pieces of gear, then trigger spellcast to use what I currently have equipped as my new tp set. Is there any way for me to do that?
I imagine if it was possible, it would look something like this
Quote:
<if spell="some_absurd_spell_a_melee_would_never_use">
<var cmd="set tphead (current_head)"/>
<var cmd="set tpneck (current_neck)"/>
<var cmd="set tplear (current_lear)"/>
<var cmd="set tprear (current_rear)"/>
....
</if>
<var cmd="set tphead (current_head)"/>
<var cmd="set tpneck (current_neck)"/>
<var cmd="set tplear (current_lear)"/>
<var cmd="set tprear (current_rear)"/>
....
</if>
Then have your tp set as:
Code
<set name="tp"> <head>$tphead</head> <neck>$tpneck</neck> <lear>$tplear</lear> <rear>$tprear</rear> ..... </set>
Many thanks in advanced.