Thanks for the post JSHidaka, I've been away for a lil while during easter holidays.
Yes, I can see that working possibly.
And the Saber Dance set which you talk about would be defined into something like:
sets.precast['Saber Dance'] = set_combine(sets.TP[sets.TP.index[TP_ind]], {legs='Horos Tights'})
Hmm... Not sure this would work but your rule gave me an idea. I could use that rule and do the same I've done for Saber Dance above, just for WS though.
I currently don't use indexes for WS though, so I'm not really sure how to do this.
Clearly there's gotta be a rule to add somewhere here:
Code:
elseif spell.type == 'WeaponSkill' then
-- all weaponskills fall under this table
local wsSet = sets.precast.WS
-- if you defined a set for a specific weaponskill...
if wsSet[spell.english] then
-- then use that sub-table
wsSet = wsSet[spell.english]
-- if you defined a set for the current weaponskill mode for this weaponskill...
if wsSet[weaponskillMode] then
-- then use that sub-table
wsSet = wsSet[weaponskillMode]
end
end
-- equip whatever table we ended up finding
equip(wsSet)
end
And actually, now that I think about it, buffactive='Climatic Flourish' and buffactive='sneak attack' should be two different rules.
That's because AT THE MOMENT I would be using the same set for both (Charis Feather and Rancorous Mantle) but in the future, once reforged Empy armor comes out, I'm gonna be wanting to use reforged Charis head as well, for Climatic Only but not for Sneak.
So, thinking about the future, I might as well put them into the lua as two different yet similar rules, into this "WS" part of my Lua.