If you stop using aftercasts in your Thf XML and have a idle/tp gear trigger spell macro, then you dont need to over-complicate things with auto-exec.
Hit SA/TA/Both, wait for strike, hit idle macro to swap back to TP gear.
For initial engaging you could do: If Status=Engaged > If BuffActive=Sneak Attack Equip=SA Set, Elseif BuffActive=Trick Attack Equip=TA Set, Else Equip=TP Set.
Though I don't do this, my If Status=Engaged just swaps in Af2 hands and AF3 feet so no matter how I engage. Is annoying to engage, have your first strike level up to TH4 before you swap in your other TH gear, "wasting" the proc as it were.
My rules:
Code:
<rules>
<if status="engaged">
<equip when="engaged" set="TH" />
</if>
<if status="idle">
<equip when="idle" set="Idle" />
</if>
<if spell="Azure Lore">
<cancelspell />
<if status="engaged">
<equip set="TP" />
</if>
<elseif status="Idle">
<equip set="Idle" />
</elseif>
</if>
<if spell="Trick Attack">
<if BuffActive="Sneak Attack">
<equip when="precast" set="SATA" />
</if>
<else>
<equip when="precast" set="TA" />
</else>
</if>
<if spell="Sneak Attack">
<if BuffActive="Trick Attack">
<equip when="precast" set="SATA" />
</if>
<else>
<equip when="precast" set="SA" />
</else>
</if>
<if spell="Dancing Edge">
<if BuffActive="Sneak Attack">
<if BuffActive="Trick Attack">
<equip when="precast" set="SADancing" />
</if>
<elseif NotBuffActive="Trick Attack">
<equip when="precast" set="SADancing" />
</elseif>
</if>
<elseif BuffActive="Trick Attack">
<if BuffActive="Sneak Attack">
<equip when="precast" set="SADancing" />
</if>
<elseif NotBuffActive="Sneak Attack">
<equip when="precast" set="TADancing" />
</elseif>
</elseif>
<else>
<equip when="precast" set="Dancing" />
</else>
</if>
<if spell="Evisceration">
<if BuffActive="Sneak Attack">
<if BuffActive="Trick Attack">
<equip when="precast" set="Evis" />
</if>
<elseif NotBuffActive="Trick Attack">
<equip when="precast" set="Evis" />
</elseif>
</if>
<elseif BuffActive="Trick Attack">
<if BuffActive="Sneak Attack">
<equip when="precast" set="Evis" />
</if>
<elseif NotBuffActive="Sneak Attack">
<equip when="precast" set="TAEvis" />
</elseif>
</elseif>
<else>
<equip when="precast" set="Evis" />
</else>
</if>
<if spell="Exenterator">
<if BuffActive="Sneak Attack">
<if BuffActive="Trick Attack">
<equip when="precast" set="TAExen" />
</if>
<elseif NotBuffActive="Trick Attack">
<equip when="precast" set="SAExen" />
</elseif>
</if>
<elseif BuffActive="Trick Attack">
<if BuffActive="Sneak Attack">
<equip when="precast" set="TA" />
</if>
<elseif NotBuffActive="Sneak Attack">
<equip when="precast" set="TA" />
</elseif>
</elseif>
<else>
<equip when="precast" set="Exen" />
</else>
</if>
<if spell="Shark Bite|Mandalic Stab">
<if BuffActive="Sneak Attack">
<if BuffActive="Trick Attack">
<equip when="precast" set="SATAWS" />
</if>
<elseif NotBuffActive="Trick Attack">
<equip when="precast" set="SAWS" />
</elseif>
</if>
<elseif BuffActive="Trick Attack">
<if BuffActive="Sneak Attack">
<equip when="precast" set="SATAWS" />
</if>
<elseif NotBuffActive="Sneak Attack">
<equip when="precast" set="TAWS" />
</elseif>
</elseif>
<else>
<equip when="precast" set="SAWS" />
</else>
</if>
<if spell="Aeolian Edge">
<equip when="precast" set="AE" />
</if>
<if spell="Flee">
<equip when="precast">
<feet>Rogue's Poulaines</feet>
</equip>
<equip when="aftercast">
<feet>Skadi's Jambeaux</feet>
</equip>
</if>
<if spell="ranged">
<equip when="precast" set="Racc" />
</if>
<if skill="Ninjutsu">
<equip when="precast" set="Utsusemi" />
</if>
</rules>
As you can see, it's all really basic. Don't find a need for lots of advanced rules and variables. Evasion, Hybrid and MDT sets are just equipped with simple /console sc set Gearset macros.