I'm very new to lua, I never used SC so I'm slowly learning the language whenever time permits me to actually play and modify my own luas. Someone gave me a really basic mage lua and I've been revising/building on it for my SCH, but I can't seem to get it to switch to idle sublimation gear when sublimation is active. What I have written is:
function aftercast(spell)
if player.status == 'Sublimation: Activated'
then equip(sets.Idle.Sublimation)
else equip(sets.Idle[sets.Idle.index[Idle_ind]])
end
I've tried looking at others' luas, but again I'm very new to the language and have a hard time discerning how to revise my own in accordance to theirs to make the ability work, every time I try to revise this section I just get console errors about functions and lines. If someone could tell me how to revise my lines/what to replace them with I'd greatly appreciate it.