Hi
I was wondering if this coding could be use as a catch-all for the midcast of magic spells, specifically lines 6-7.
However I also want to ask if lines 4-5 will work with the grouping of " 'Protect' or 'Shell' ", or if i need to break them into 2 rules.
if spell.type:endswith('Magic') then if sets.midcast[spell.english] then equip(sets.midcast[spell.english]) elseif string.find(spell.english,'Protect' or 'Shell') then equip(sets.midcast.ProtectShell) elseif spell.skill[spell.english] then equip(sets.midcast[skill.english])
So let me say, that I think lines 6-7 will work but it's dependent upon how you have your sets set up. I have sets that are oriented towards the magic type, such as:
sets.midcast['Enhancing Magic'] = {
This is why I think it will work, however I may have some of the terminology wrong. I figured if we can do sets.midcast[spell.english] then why not skills, as long as the sets.midcast are named like I have above.
Please let me know, this would save me some time